.drive { position:relative; background:#111813; isolation:isolate; }
.drive [hidden] { display:none !important; }
.drive-view { position:relative; height:min(920px, calc(100svh - var(--header-height))); min-height:min(620px, calc(100svh - var(--header-height))); overflow:hidden; outline:none; background:#405653; }
.drive-view:focus-visible { outline:2px solid #d9ff43; outline-offset:-3px; }
.drive-view canvas,.drive-poster,.drive-poster img,.drive-vignette { position:absolute; inset:0; width:100%; height:100%; }
.drive-view canvas { display:block; }
.drive-poster img { object-fit:cover; }
.drive-poster { transition:opacity .8s; }
.drive.has-scene .drive-poster { opacity:0; pointer-events:none; }
.drive-vignette { pointer-events:none; background:linear-gradient(180deg,rgba(5,14,16,.55),transparent 28%,transparent 65%,rgba(6,12,13,.72)); }
.drive-heading { position:absolute; z-index:2; top:28px; left:4%; right:4%; display:flex; justify-content:space-between; gap:20px; color:#f0f3e9; font-size:10px; font-weight:700; }
.drive-chapter { display:flex; gap:12px; align-items:center; }
.drive-chapter::before { content:''; display:block; width:26px; height:2px; background:#dcf29c; }
.drive-location { opacity:.8; }
.drive-intro { position:absolute; z-index:3; left:8%; top:22%; max-width:600px; text-shadow:0 2px 30px #14211e; }
.drive-eyebrow { color:#dcf29c; font-size:10px; font-weight:700; }
.drive h2 { margin:24px 0; font-family:'STSong','SimSun',serif; font-size:80px; font-weight:400; line-height:1.22; }
.drive h2 em { font-style:normal; color:#e1efcd; }
.drive-line { font-size:15px; line-height:1.7; color:#f2f3e9; }
.drive button { font:inherit; cursor:pointer; color:inherit; -webkit-tap-highlight-color:transparent; }
.drive button img { width:20px; height:20px; flex:0 0 20px; }
.drive button:focus-visible,.drive-after a:focus-visible { outline:2px solid #d9ff43; outline-offset:4px; }
.drive button:disabled { opacity:.6; cursor:wait; }
.drive-start { display:inline-flex; justify-content:space-between; align-items:center; gap:38px; margin-top:32px; min-height:54px; padding:0 24px; border:1px solid #e6f3c9; border-radius:2px; background:#e6f3c9; color:#18251c !important; font-size:14px !important; font-weight:700 !important; text-shadow:none; white-space:nowrap; transition:background .2s; }
.drive-start:hover { background:#f5ffe2; }
.drive-status { min-height:24px; max-width:340px; margin-top:18px; font-size:11px; line-height:1.8; color:#dae1d8; }
.drive-toolbar { position:absolute; z-index:5; top:62px; right:4%; display:flex; gap:8px; }
.drive-toolbar button { width:42px; height:42px; display:grid; place-items:center; border:1px solid #ffffff48; background:#101c20a8; border-radius:3px; }
.drive-toolbar button:hover { background:#294043; }
.drive-toolbar img,.drive-steering img { filter:invert(1); }
.drive-dashboard { position:absolute; z-index:3; bottom:36px; left:4%; right:4%; display:grid; grid-template-columns:140px minmax(160px,360px) 1fr; align-items:end; gap:28px; pointer-events:none; }
.drive-speed { display:flex; align-items:baseline; gap:9px; }
.drive-speed strong { font:52px/1 Georgia,serif; font-variant-numeric:tabular-nums; min-width:89px; }
.drive-speed>span { font-size:9px; }
.drive-route-label { display:flex; justify-content:space-between; gap:10px; font-size:10px; color:#e4e9df; }
.drive-route-label b { font-weight:400; font-variant-numeric:tabular-nums; }
.drive-progress { height:2px; background:#ffffff45; margin-top:14px; }
.drive-progress>span { display:block; width:100%; height:100%; background:#d9ff43; transform:scaleX(0); transform-origin:left; }
.drive-assist { justify-self:end; font-size:10px; color:#d6e4ce; }
.drive-touch { position:absolute; z-index:5; left:4%; right:4%; bottom:112px; display:flex; justify-content:space-between; pointer-events:none; }
.drive-steering,.drive-pedals { display:flex; align-items:end; gap:12px; pointer-events:auto; }
.drive-touch button { border:1px solid #ffffff55; background:#111e239e; border-radius:4px; touch-action:none; user-select:none; }
.drive-touch button.is-held { background:#b9d18e88; border-color:#ecf7d4; }
.drive-steering button { display:grid; place-items:center; width:54px; height:52px; }
.drive-brake { width:48px; height:48px; }
.drive-gas { width:43px; height:68px; }
.drive-pedals button span { display:block; width:55%; height:55%; margin:auto; background:repeating-linear-gradient(0deg,transparent 0 5px,#d7dedc 5px 7px); border-left:2px solid #d7dedc; border-right:2px solid #d7dedc; border-radius:2px; }
.drive-pedals button { position:relative; }
.drive-pedals button::after { position:absolute; top:calc(100% + 5px); left:0; width:100%; font-size:9px; color:#e2e8de; }
.drive-brake::after { content:'刹车'; }
.drive-gas::after { content:'油门'; }
.drive-overlay { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:80px 24px; background:#07161bb5; backdrop-filter:blur(5px); }
.drive-overlay h3 { margin:24px 0 14px; font:48px/1.35 'STSong','SimSun',serif; }
.drive-overlay>p:not(.drive-eyebrow) { font-size:13px; color:#d6e0d8; }
.drive[data-state='paused'] .drive-touch,.drive[data-state='finished'] .drive-touch { visibility:hidden; }
.drive-after { min-height:100px; display:flex; justify-content:space-between; align-items:center; padding:26px 4%; gap:20px; font-size:10px; color:#bdc8bd; border-top:1px solid #ffffff18; }
.drive-after a { min-height:44px; display:inline-flex; align-items:center; gap:30px; }
.drive-noscript { padding:20px 4%; }
body.drive-in-view .route-hud { opacity:0; pointer-events:none; }
body.drive-in-view .site-header { background:#101916; mix-blend-mode:normal; }
.drive-help { position:absolute; left:0; bottom:82px; color:#d7e1d5; font-size:10px; letter-spacing:.02em; }
.drive-view:fullscreen { height:100vh; width:100vw; max-height:none; }
.drive-view:fullscreen .drive-heading { top:30px; }
.drive-view:fullscreen .drive-toolbar { top:65px; }
body.drive-expanded { overflow:hidden; }
.drive-view.is-expanded { position:fixed; inset:0; width:100vw; height:100svh; z-index:200; }
.drive-view.is-expanded .drive-heading { top:30px; }
.drive-view.is-expanded .drive-toolbar { top:65px; }
@media (hover:hover) and (pointer:fine) and (min-width:701px) { .drive-touch { opacity:.65; } .drive-touch:hover { opacity:1; } }
@media(max-width:700px) {
  .site-nav { gap:14px; }
  .drive-view { height:calc(100svh - var(--header-height)); min-height:min(600px, calc(100svh - var(--header-height))); }
  .drive-heading { top:24px; left:22px; right:22px; font-size:8px; }
  .drive-location { max-width:115px; text-align:right; }
  .drive-intro { top:24%; left:24px; right:24px; max-width:none; }
  .drive h2 { font-size:52px; margin:20px 0; }
  .drive-line { font-size:13px; }
  .drive-start { min-height:52px; margin-top:26px; padding:0 22px; }
  .drive-toolbar { top:56px; right:20px; gap:6px; }
  .drive-toolbar button { width:38px; height:38px; }
  .drive-dashboard { bottom:24px; left:22px; right:22px; grid-template-columns:90px 1fr; gap:14px; }
  .drive-speed { gap:6px; }
  .drive-speed strong { font-size:38px; min-width:62px; }
  .drive-speed>span { font-size:7px; }
  .drive-assist { display:none; }
  .drive-help { display:none; }
  .drive-route-label { font-size:8px; gap:6px; }
  .drive-touch { bottom:100px; left:22px; right:22px; }
  .drive-steering,.drive-pedals { gap:8px; }
  .drive-steering button { width:46px; height:48px; }
  .drive-overlay h3 { font-size:34px; }
  .drive-after { padding:24px 22px; flex-wrap:wrap; gap:6px; }
}
@media(max-height:620px) { .drive-view:fullscreen,.drive-view.is-expanded { min-height:0; } .drive-view:fullscreen .drive-intro,.drive-view.is-expanded .drive-intro { top:19%; } .drive-view:fullscreen h2,.drive-view.is-expanded h2 { font-size:42px; } }
@media(max-height:620px) {
  .drive-intro { top:18%; }
  .drive h2 { font-size:40px; margin:12px 0; }
  .drive-start { margin-top:16px; min-height:44px; }
  .drive-status { margin-top:8px; }
  .drive-heading { top:18px; }
  .drive-toolbar { top:48px; }
  .drive-touch { bottom:80px; }
  .drive-dashboard { bottom:18px; }
  .drive-help { display:none; }
  .drive-overlay h3 { font-size:32px; margin:14px 0; }
}
@media(prefers-reduced-motion:reduce) { .drive-poster { transition:none; } }
