@font-face { font-family: Demo Han; src: url("assets/han.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+3000-303F,U+3400-9FFF,U+FF00-FFEF; }
:root { color-scheme: light; font: 16px/1.55 'Demo Han', system-ui, -apple-system, sans-serif; --accent:#31546b; --ink:#17222a; --muted:#4b5c67; --line:#dce3e8; --paper:#fff; --wash:#f4f6f8; --radius:12px; --side:max(16px,env(safe-area-inset-left),env(safe-area-inset-right)); color:var(--ink); background:var(--paper); }
*,*::before,*::after { box-sizing:border-box; }
body,h1,h2,h3,p,figure { margin:0; }
button,select,input { font:inherit; color:inherit; }
button,summary { cursor:pointer; }
a { color:inherit; text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:4px; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
[hidden] { display:none!important; }
img { display:block; width:100%; height:100%; object-fit:cover; }
svg { width:22px; height:22px; flex:none; }
.shell { width:min(100%,1160px); margin-inline:auto; padding-inline:var(--side); }

/* 顶栏与轻量品牌识别 */
.top { background:var(--paper); border-top:3px solid var(--accent); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:3; }
.top .shell,.menu-head,.panel header { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.identity { display:flex; align-items:center; gap:9px; min-width:0; font-size:15px; font-weight:720; line-height:1.2; }
.identity svg { color:var(--accent); width:24px; height:24px; }
.identity small { display:block; color:var(--muted); font-size:11px; font-weight:500; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.top-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.brand-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; border:1px solid var(--line); background:var(--wash); font-size:12px; font-weight:650; color:var(--ink); max-width:168px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-dot { width:8px; height:8px; border-radius:50%; background:var(--accent); flex:none; }
.brand-num { color:var(--muted); font-variant-numeric:tabular-nums; font-weight:600; }
.menu-toggle,.menu-close,.close { display:grid; place-items:center; min-width:44px; min-height:44px; border:0; background:none; border-radius:8px; }
.menu-toggle:hover,.menu-close:hover,.close:hover { background:var(--wash); }
.menu-close,.close { font:400 26px/1 system-ui,sans-serif; }

/* 首屏与自适应图片画幅（无单品牌硬编码特判） */
.hero,.hero-content,.rail { min-width:0; }
.hero { position:relative; background:var(--wash); }
.hero-copy { padding:18px var(--side) 20px; }
.eyebrow { font-size:12px; font-weight:680; letter-spacing:.06em; color:var(--accent); }
.hero h1 { font:560 clamp(30px,8.6vw,56px)/1.08 'Demo Han',system-ui,sans-serif; letter-spacing:-.035em; margin:5px 0 12px; overflow-wrap:anywhere; }
.hero-media { position:relative; isolation:isolate; background:linear-gradient(180deg,var(--wash),#e7edf2); overflow:hidden; }
.rail { display:grid; grid-auto-flow:column; grid-auto-columns:100%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; scrollbar-width:none; }
.rail::-webkit-scrollbar { display:none; }
.slide { min-width:0; aspect-ratio:var(--slide-ar,4 / 3); max-height:520px; width:100%; scroll-snap-align:start; scroll-snap-stop:always; overflow:hidden; background:linear-gradient(180deg,var(--wash),#e7edf2); }
.slide img { width:100%; height:100%; object-fit:cover; object-position:center 54%; }
.slide img.fit-contain,.model-photo img.fit-contain { object-fit:contain; padding:6px; }
.empty-art { min-height:220px; display:grid; place-content:center; text-align:center; padding:18px; background:linear-gradient(125deg,var(--wash),var(--paper)); color:var(--muted); font-size:13px; }
.empty-art strong { color:var(--accent); font-size:clamp(34px,8vw,60px); font-weight:570; letter-spacing:-.04em; overflow-wrap:anywhere; }

/* 居中磨砂胶囊轮播控制条 */
.controls { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); z-index:2; display:inline-flex; justify-content:center; align-items:center; gap:2px; padding:2px 6px; border-radius:999px; background:rgba(15,23,36,.64); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); color:#fff; box-shadow:0 4px 14px rgba(15,23,36,.24); }
.controls button { color:inherit; min-height:38px; min-width:34px; padding:0; border:0; background:none; display:grid; place-items:center; border-radius:999px; }
.controls button:hover { background:rgba(255,255,255,.14); }
.controls .arrow { font:450 22px/1 system-ui,sans-serif; }
.pager { display:flex; align-items:center; gap:2px; }
.dot { min-width:26px!important; }
.dot::before { content:''; width:14px; height:3px; border-radius:999px; background:rgba(255,255,255,.45); transition:width .18s ease,background .18s ease; }
.dot[aria-current=true]::before { width:22px; background:#fff; }

/* 主次动作按钮体系（首款与次款统一） */
.model-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.btn-primary,.config { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 16px; border-radius:9px; font-size:13.5px; font-weight:650; line-height:1.2; transition:transform .12s ease,border-color .15s ease,background .15s ease; }
.btn-primary { background:var(--accent); color:#fff; border:1px solid var(--accent); }
.btn-primary:hover { text-decoration:none; filter:brightness(1.06); }
.btn-primary span { color:rgba(255,255,255,.88); }
.config { background:var(--paper); color:var(--ink); border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line)); }
.config:hover { text-decoration:none; border-color:var(--accent); background:var(--wash); }
.config span,.footer a span { color:var(--accent); }

/* 六种布局变体（保持差异化且统一画幅逻辑） */
.layout-wide .hero-copy { background:#1d2830; color:#fff; }
.layout-wide .hero-copy .eyebrow { color:color-mix(in srgb,var(--accent) 42%,#fff); }
.layout-wide .hero-copy .config { background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.32); }
.layout-wide .hero-copy .config span { color:#fff; }
.layout-sport .hero-content { display:flex; flex-direction:column-reverse; }
.layout-sport .hero h1 { font-weight:760; }
.layout-sport .hero-copy { background:var(--paper); }
.layout-split .hero,.layout-catalog .hero,.layout-studio .hero,.layout-heritage .hero { max-width:1160px; margin-inline:auto; }
.layout-studio .hero-content { display:flex; flex-direction:column-reverse; }
.layout-studio .hero-copy { text-align:center; }
.layout-studio .hero-copy .model-links { justify-content:center; }
.layout-heritage .hero-content { display:flex; flex-direction:column-reverse; }
.layout-heritage .hero-copy { background:var(--paper); padding-top:22px; }
.layout-heritage .hero h1,.layout-heritage .model-copy h2 { font-family:Georgia,'Demo Han',serif; font-weight:500; }
.layout-catalog .hero { background:var(--paper); padding-top:14px; }
.layout-catalog .hero-media { margin-inline:var(--side); border-radius:var(--radius); border:1px solid var(--line); }
.layout-catalog .hero-copy { border-inline-start:3px solid var(--accent); margin:16px var(--side) 6px; padding:4px 0 4px 14px; }

/* 核心服务双卡（放大副标题，拉开呼吸感） */
.services { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding-block:16px; }
.service { text-align:start; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:9px; min-width:0; min-height:84px; padding:12px 10px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 1px 3px rgba(15,23,42,.05); transition:border-color .15s ease,box-shadow .15s ease,transform .12s ease; }
.service:hover { border-color:var(--accent); box-shadow:0 6px 16px rgba(15,23,42,.08); transform:translateY(-1px); }
.service-ico { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; background:color-mix(in srgb,var(--accent) 11%,var(--paper)); color:var(--accent); }
.service-ico svg { width:19px; height:19px; }
.arrow-mark { color:var(--muted); font-size:18px; line-height:1; }
.service strong,.service small { display:block; }
.service strong { font-size:clamp(14.5px,4vw,17px); font-weight:700; line-height:1.25; color:var(--ink); }
.service small { margin-top:3px; font-size:12px; line-height:1.35; color:var(--muted); }

/* 第二款车型区（按图片真实画幅紧贴，零灰柱） */
.model-block { padding-block:6px 28px; }
.model-photo { width:100%; aspect-ratio:var(--photo-ar,4 / 3); max-height:420px; border-radius:var(--radius); overflow:hidden; background:linear-gradient(180deg,var(--wash),#e7edf2); border:1px solid var(--line); }
.model-photo img { width:100%; height:100%; object-fit:cover; object-position:center 54%; }
.model-copy { padding-top:14px; }
.model-copy h2 { margin:3px 0 8px; font-size:clamp(26px,7.2vw,42px); line-height:1.12; font-weight:600; letter-spacing:-.03em; }
.model-copy p { color:var(--muted); font-size:13px; }

/* 页脚（留足底部安全区，永不被浮球压字） */
.footer { color:#2c3b44; border-top:1px solid var(--line); padding-block:20px max(96px,calc(env(safe-area-inset-bottom) + 72px)); background:var(--foot,var(--wash)); }
.footer a { min-height:38px; display:inline-flex; align-items:center; justify-content:space-between; gap:5px; font-size:13px; }
.footer p { margin-top:12px; color:var(--muted); font-size:11.5px; line-height:1.5; }
.footer h2,.footer summary { font-size:13.5px; font-weight:680; }
.footer-cells { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:16px; }
.footer-cells h2 { border-bottom:1px solid var(--line); padding-bottom:6px; margin-bottom:2px; }
.footer-cells a { display:flex; }
.footer-fold details { border-bottom:1px solid var(--line); }
.footer-fold summary { padding-block:11px; }
.footer-fold a { display:flex; padding-inline:12px 3px; }
.footer-inline,.footer-base,.footer-band { display:flex; align-items:center; gap:2px 16px; flex-wrap:wrap; }
.footer-band { padding-block:4px; border-bottom:1px solid var(--line); }
.footer-band strong { font-size:13px; color:var(--muted); }
.footer-base { border-top:1px solid var(--line); margin-top:10px; padding-top:6px; }
.layout-wide { --foot:#eef2f5; }
.layout-split { --wash:#eef2f1; --foot:#e9efed; }
.layout-studio { --wash:#f3f1f1; --foot:#eee9eb; }
.layout-catalog { --wash:#f3f5f7; --foot:#f4f6f8; }
.layout-sport { --foot:#f1f1ed; }
.layout-heritage { --wash:#f4f1ec; --foot:#efeae3; }

/* 滚动触发悬浮胶囊按钮 */
.floating { min-height:46px; display:inline-flex; align-items:center; gap:7px; padding:0 16px; background:var(--accent); color:#fff; border:1px solid rgba(255,255,255,.32); border-radius:999px; font-size:13.5px; font-weight:650; box-shadow:0 8px 22px rgba(15,23,42,.22); transition:opacity .22s ease,transform .22s ease; }
.floating svg { width:17px; height:17px; }
.page-floating { position:fixed; z-index:4; bottom:max(14px,env(safe-area-inset-bottom)); right:max(14px,env(safe-area-inset-right)); }
.page-floating[data-docked="hidden"] { opacity:0; transform:translateY(16px); pointer-events:none; }

/* 抽屉菜单与说明弹窗 */
.site-menu { margin:0; inset:0 0 0 auto; height:100%; width:min(100%,420px); max-height:none; max-width:none; border:0; padding:0 var(--side) 16px; background:var(--paper); color:var(--ink); }
.site-menu[open] { display:flex; flex-direction:column; }
.site-menu::backdrop { background:rgba(15,23,36,.52); }
body:has(.site-menu[open]) { overflow:hidden; }
.menu-head { border-bottom:1px solid var(--line); flex-shrink:0; }
.menu-links { flex:1; overflow-y:auto; }
.menu-links > :is(a,button) { width:100%; background:none; border:0; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; min-height:52px; text-align:start; padding:4px 2px; font-weight:550; }
.menu-bottom { display:flex; justify-content:flex-end; padding-top:12px; }
.panel { position:fixed; inset:auto 12px 12px auto; margin:0; width:min(390px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:18px; color:var(--ink); border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 40px rgba(15,23,42,.18); }
.panel header { min-height:42px; }
.panel h2 { font-size:20px; }
.panel p { margin-block:8px 14px; color:var(--muted); font-size:14px; }
.panel .config { color:#fff; background:var(--accent); border-color:var(--accent); }
.panel .config span { color:inherit; }

/* 目录页与工作台样式 */
.directory-header { padding:26px 0 16px; }
.directory-header h1 { font-size:clamp(26px,5.5vw,42px); line-height:1.12; }
.directory-header p { max-width:70ch; margin-top:8px; color:var(--muted); font-size:14px; }
.dir-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; padding:12px; background:var(--wash); border:1px solid var(--line); border-radius:12px; }
.dir-search { flex:1 1 200px; min-height:40px; padding:6px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:14px; }
.dir-filters { display:flex; flex-wrap:wrap; gap:6px; }
.dir-pill { min-height:36px; padding:4px 11px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:12.5px; font-weight:600; color:var(--muted); }
.dir-pill[aria-pressed="true"] { background:var(--ink); color:#fff; border-color:var(--ink); }
.dir-actions { display:flex; flex-wrap:wrap; gap:8px; }
.dir-cta { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:6px 14px; border-radius:8px; font-size:13px; font-weight:650; border:1px solid var(--line); background:#fff; }
.dir-cta.primary { background:var(--ink); color:#fff; border-color:var(--ink); }
.dir-cta:hover { text-decoration:none; filter:brightness(.96); }
.dir-count { width:100%; font-size:12px; color:var(--muted); }
.directory-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr)); gap:10px; padding-bottom:28px; }
.directory-grid a { display:flex; flex-direction:column; justify-content:space-between; gap:6px; min-height:92px; padding:11px 13px; border:1px solid var(--line); border-left:4px solid var(--card-accent,var(--accent)); border-radius:10px; background:#fff; transition:border-color .15s ease,transform .12s ease,box-shadow .15s ease; }
.directory-grid a:hover { text-decoration:none; border-color:var(--card-accent,var(--accent)); box-shadow:0 6px 16px rgba(15,23,42,.08); transform:translateY(-1px); }
.card-head { display:flex; align-items:baseline; justify-content:space-between; gap:6px; }
.card-head strong { font-size:15px; font-weight:700; }
.card-id { font-size:11.5px; font-weight:700; color:var(--card-accent,var(--accent)); font-variant-numeric:tabular-nums; }
.card-models { font-size:12px; color:var(--ink); opacity:.86; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.directory-grid small { color:var(--muted); font-size:11px; font-weight:500; }

/* 48px 全屏工作台合集（消除双层滚动） */
body.workbench-body { height:100dvh; overflow:hidden; display:flex; flex-direction:column; background:#e9eef3; }
.wb-bar { flex:none; min-height:52px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:6px 12px; background:#151f28; color:#f1f5f9; border-bottom:1px solid #283644; }
.wb-brand { font-size:13.5px; font-weight:700; letter-spacing:.02em; margin-right:4px; white-space:nowrap; }
.wb-bar select,.wb-bar button,.wb-bar input { min-height:36px; padding:4px 10px; border:1px solid #374859; border-radius:7px; background:#1f2d3a; color:#f8fafc; font-size:13px; }
.wb-bar input { width:128px; }
.wb-bar input::placeholder { color:#94a3b8; }
.wb-bar button:hover,.wb-bar select:hover { background:#2a3c4d; border-color:#536b82; }
.wb-bar button[aria-pressed="true"] { background:#3b82f6; border-color:#60a5fa; color:#fff; }
.wb-state { margin-left:auto; font-size:12px; color:#cbd5e1; font-variant-numeric:tabular-nums; white-space:nowrap; }
.wb-stage { flex:1; min-height:0; display:flex; justify-content:center; align-items:stretch; overflow:hidden; padding:0; }
.wb-stage.viewport-mobile { padding:10px; overflow:auto; }
@media (prefers-reduced-motion: reduce) {
  .page-floating,.dot::before,.service,.btn-primary,.config { transition:none; }
}
.gallery-frame { display:block; width:100%; height:100%; border:0; background:#fff; }
.wb-stage.viewport-mobile .gallery-frame { width:390px; max-width:100%; height:100%; min-height:660px; border-radius:18px; border:1px solid #cbd5e1; box-shadow:0 16px 40px rgba(15,23,42,.18); }

@media (max-width:420px) {
  .brand-chip { max-width:118px; padding:3px 8px; font-size:11.5px; }
  .services { gap:8px; }
  .service { padding:10px 8px; gap:7px; grid-template-columns:30px minmax(0,1fr) auto; }
  .service-ico { width:30px; height:30px; }
  .service small { font-size:11.5px; }
}
@media (max-width:600px) { .site-menu { width:100%; } }
@media (min-width:760px) {
  :root { --side:28px; }
  .hero-copy { padding-block:26px; }
  .layout-split .hero-content,.layout-heritage .hero-content,.layout-sport .hero-content,.hero-compact-ar .hero-content { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); align-items:center; gap:0; max-width:1160px; margin-inline:auto; }
  .layout-heritage .hero-content { grid-template-columns:minmax(0,1fr) minmax(0,1.48fr); }
  .layout-heritage .hero-media { grid-column:2; grid-row:1; }
  .layout-heritage .hero-copy { grid-column:1; grid-row:1; }
  .layout-catalog .hero-content { padding-inline:var(--side); gap:24px; }
  .layout-catalog .hero-media { margin-inline:0; }
  .layout-catalog .hero-copy { margin:0; }
  .layout-studio .hero-compact-ar .hero-copy { text-align:start; }
  .layout-studio .hero-compact-ar .hero-copy .model-links { justify-content:flex-start; }
  .layout-wide .hero-compact-ar { background:#1d2830; }
  .model-block { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:center; gap:30px; padding-block:16px 36px; }
  .model-copy { padding-top:0; }
  .services { gap:16px; padding-block:20px; }
  .service { padding:16px 18px; gap:12px; grid-template-columns:40px minmax(0,1fr) auto; }
  .service-ico { width:40px; height:40px; }
}
