/* 星鼎傳動 — 方便性補強（2026/10/24）
   沿用原本的太空 HUD 風格，只加功能：手機選單、快速入口、設計／採購快速通道、3D 拆解、詢價欄位。
   放在 site.css 之後載入。 */

/* ── 手機選單 ── */
.nav-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(0,212,255,0.45); border-radius: 6px; background: rgba(3,8,20,0.6); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 20px; height: 2px; background: var(--neon-cyan); border-radius: 2px; position: relative; transition: transform .25s, background .2s; box-shadow: 0 0 6px rgba(0,212,255,0.6); }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
body > nav.nav-open .nav-burger span { background: transparent; box-shadow: none; }
body > nav.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body > nav.nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-links .nav-m { display: none; }
@media (max-width: 768px) {
  .nav-burger { display: inline-flex; }
  body > nav .nav-links { display: none; }
  body > nav.nav-open .nav-links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(3,8,20,0.995); border-bottom: 1px solid rgba(0,212,255,0.3); box-shadow: 0 18px 40px rgba(0,0,0,0.5);
    padding: 6px 5% 16px; backdrop-filter: blur(16px);
  }
  body > nav.nav-open .nav-links li { display: block !important; border-bottom: 1px solid rgba(0,212,255,0.1); }
  body > nav.nav-open .nav-links li:last-child { border-bottom: none; }
  body > nav.nav-open .nav-links a { display: block; padding: 14px 2px; font-size: 1rem; color: #dce8f5; }
  body > nav.nav-open .nav-links a.nav-cta { margin: 12px 0 4px; text-align: center; padding: 12px; }
  body > nav.nav-open .nav-links .nav-m { display: block; }
  body > nav.nav-open .nav-links .nav-m a { color: var(--neon-cyan); }
  body > nav.nav-open .nav-links li:has(.lang-toggle) { display: none !important; }
}

/* ── 開場動畫：點一下略過 ── */
.boot-skip { margin-top: 16px; text-align: center; font-size: 0.66rem; letter-spacing: 0.28em; color: rgba(0,212,255,0.55); }
#hud-boot { cursor: pointer; }
#hud-boot.skip { animation: boot-disappear 0.25s forwards !important; }

/* ── 主視覺：設計／採購快速入口 ── */
.hero-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); gap: 14px; margin-top: 26px; opacity: 0; animation: fadeUp 0.8s 1.2s forwards; }
.hq { position: relative; display: block; padding: 16px 18px 14px; text-decoration: none; background: rgba(3,8,20,0.55); border: 1px solid rgba(0,212,255,0.22); border-radius: 4px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.hq:hover { border-color: rgba(0,212,255,0.7); box-shadow: 0 0 22px rgba(0,212,255,0.25); transform: translateY(-2px); }
.hq i { position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--neon-cyan); }
.hq i.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hq i.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hq .k { display: block; font-family: 'Orbitron', sans-serif; font-size: 0.6rem; letter-spacing: 0.24em; color: var(--neon-cyan); margin-bottom: 7px; }
.hq b { display: block; color: #fff; font-size: 1.02rem; font-weight: 700; letter-spacing: 0.04em; }
.hq span.s { display: block; margin-top: 5px; font-size: 0.8rem; color: var(--text-sub); line-height: 1.6; }
.hq .ar { position: absolute; right: 14px; top: 14px; color: var(--star-gold); font-size: 0.95rem; }
@media (max-width: 900px) { .hero-quick { justify-content: center; } }
@media (max-width: 560px) { .hero-quick { grid-template-columns: 1fr; text-align: left; } }

/* 手機：右下角座標字會壓到內容，小螢幕先不顯示；數字條改兩欄 */
@media (max-width: 600px) {
  .hud-telemetry { display: none; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .stats-inner > div:last-child { grid-column: 1 / -1; }
  .stat-num { font-size: 1.9rem; }
}

/* ── 設計／採購快速通道 ── */
.qk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.qk-panel { background: #fff; border: 1px solid var(--lt-line); border-radius: 14px; padding: 30px 30px 28px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(16,32,64,0.06); }
.qk-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-blue); }
.qk-panel.buy::before { background: var(--brand-orange); }
.qk-tag { display: inline-block; font-family: 'Orbitron', sans-serif; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--brand-blue); font-weight: 700; }
.qk-panel.buy .qk-tag { color: var(--brand-orange-dk); }
.qk-panel h3 { font-size: 1.32rem; font-weight: 900; color: var(--lt-text); margin: 8px 0 6px; }
.qk-panel > p { color: var(--lt-text-sub); font-size: 0.93rem; line-height: 1.8; margin-bottom: 16px; }
.qk-list { list-style: none; margin: 0 0 18px; padding: 0; }
.qk-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed #e3e9f0; font-size: 0.93rem; line-height: 1.7; color: #3a475c; }
.qk-list li:last-child { border-bottom: none; }
.qk-list li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 10px; height: 5px; border-left: 2px solid var(--brand-blue); border-bottom: 2px solid var(--brand-blue); transform: rotate(-45deg); }
.qk-panel.buy .qk-list li::before { border-color: var(--brand-orange); }
.qk-list b { color: var(--lt-text); }
.qk-list a { color: var(--brand-blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.qk-list a:hover { text-decoration: underline; }
.qk-sub { font-size: 0.95rem; font-weight: 800; color: var(--lt-text); margin: 6px 0 10px; }
.qk-motor { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lt-line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.qk-motor div { padding: 12px 8px; text-align: center; border-right: 1px solid var(--lt-line); background: #f7f9fc; }
.qk-motor div:last-child { border-right: none; }
.qk-motor .w { display: block; font-size: 0.86rem; font-weight: 800; color: var(--lt-text); white-space: nowrap; }
.qk-motor .f { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--lt-text-sub); }
.qk-motor .f em { font-style: normal; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1rem; color: var(--brand-orange-dk); }
.qk-note { font-size: 0.8rem; color: #7b889c; line-height: 1.7; margin-bottom: 18px; }
.qk-steps { counter-reset: q; list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qk-steps li { counter-increment: q; position: relative; padding: 10px 12px 10px 40px; background: #fff8f0; border: 1px solid #f6dfc6; border-radius: 8px; font-size: 0.86rem; color: #4a3b2a; line-height: 1.55; }
.qk-steps li::before { content: counter(q); position: absolute; left: 11px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-orange); color: #fff; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qk-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.qk-btns .btn-solid, .qk-btns .btn-ghost { padding: 11px 20px; font-size: 0.9rem; }
.btn-line { display: inline-block; padding: 11px 20px; background: #06C755; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 0.9rem; transition: transform .2s; }
.btn-line:hover { transform: translateY(-2px); background: #05b14b; }
@media (max-width: 900px) { .qk-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .qk-panel { padding: 24px 20px 22px; } .qk-motor { grid-template-columns: 1fr 1fr; } .qk-motor div:nth-child(2) { border-right: none; } .qk-motor div:nth-child(-n+2) { border-bottom: 1px solid var(--lt-line); } .qk-steps { grid-template-columns: 1fr; } }

/* ── 3D 拆解（星空底） ── */
#inside { padding: 100px 5%; background: transparent; }
.g3-wrap { max-width: 1200px; margin: 0 auto; }
.g3-frame { position: relative; height: 470px; border: 1px solid rgba(0,212,255,0.22); border-radius: 6px; background: radial-gradient(ellipse 60% 80% at 68% 50%, rgba(0,90,180,0.18) 0%, rgba(3,5,16,0.35) 70%); overflow: hidden; }
.g3-frame .boot-corner { z-index: 4; }
.g3-frame > .g3-stage, .g3-frame > .g3-stage[data-gearbox3d] { position: absolute; inset: 0; }
.g3-stage .g3d-tip-o { display: none !important; }
.g3-txt { position: relative; z-index: 3; max-width: 380px; padding: 38px 38px; pointer-events: none; }
.g3-txt .section-eyebrow { text-align: left; margin-bottom: 0.6rem; letter-spacing: 0.18em; white-space: nowrap; }
.g3-txt h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; background: linear-gradient(135deg, #fff 0%, #a0cfff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.8rem; }
.g3-txt p { color: var(--text-sub); font-size: 0.92rem; line-height: 1.85; margin-bottom: 14px; }
.g3-txt ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g3-txt li { font-size: 0.76rem; color: #cfe4f5; border: 1px solid rgba(0,212,255,0.28); border-radius: 3px; padding: 4px 10px; background: rgba(0,212,255,0.05); }
.g3-poster { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 46%; max-width: 520px; opacity: 0.85; transition: opacity .6s; }
.g3-frame.ready .g3-poster { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  #inside { padding: 70px 5%; }
  .g3-frame { height: 560px; }
  .g3-frame > .g3-stage, .g3-frame > .g3-stage[data-gearbox3d] { top: 230px; }
  .g3-txt { padding: 26px 22px; max-width: none; }
  .g3-poster { width: 84%; top: auto; bottom: 40px; transform: none; right: 8%; }
}

/* ── 詢價表單：身分、需求、欄位 ── */
.qf-quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 4px 0 18px; font-size: 0.86rem; color: var(--lt-text-sub); }
.qf-quick .btn-line, .qf-quick .btn-ghost { padding: 9px 16px; font-size: 0.86rem; }
.qf-row { text-align: left; }
.qf-label { display: block; font-size: 0.84rem; font-weight: 700; color: #34415b; margin-bottom: 7px; }
.qf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-chips label { cursor: pointer; }
.qf-chips input { position: absolute; opacity: 0; pointer-events: none; }
.qf-chips span { display: inline-block; padding: 7px 14px; border: 1px solid #cfd8e5; border-radius: 30px; font-size: 0.88rem; color: #3b4862; background: #fff; transition: all .18s; user-select: none; }
.qf-chips input:checked + span { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.qf-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10,104,184,0.25); }
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .qf-grid { grid-template-columns: 1fr; } }

/* 錨點跳轉避開固定導覽列 */
#quick, #for-design, #for-purchase, #inside { scroll-margin-top: 84px; }
