/* 弧光車體包膜— 石墨黑底＋電光青，數字用窄體 */
:root {
  --ink: #0c0e11;
  --ink-2: #13161b;
  --panel: #191d23;
  --panel-2: #20252c;
  --line: #2b313a;
  --text: #e9ecef;
  --muted: #9aa3ad;
  --dim: #6b7480;
  --accent: #2ee6d6;
  --accent-ink: #062b28;
  --warn: #f5c400;
  --danger: #ff5a5f;
  --radius: 14px;
  --wrap: 1240px;
  --header-h: 68px;
  --font: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  --num: "Barlow Condensed", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.75;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.22; }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.num { font-family: var(--num); font-weight: 600; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }

/* ===== 按鈕 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5ff0e3; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* ===== Header（sticky，手機不改 position） ===== */
.topbar { background: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar b { color: var(--accent); font-weight: 500; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,14,17,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #1a8f86); color: var(--accent-ink); font: 700 18px/1 var(--num);
}
.nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 15px; color: #cfd5db; transition: color .2s, background .2s; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"] { color: var(--accent); background: rgba(46,230,214,.07); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #cfd5db; }
.submenu a:hover { background: var(--panel-2); color: var(--accent); }
.nav-cta { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 2px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.nav-close { display: none; }

@media (max-width: 960px) {
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .site-header { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: var(--ink); padding: 18px 20px calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s;
  }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-close { display: block; align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; margin-bottom: 8px; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { padding: 15px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .has-sub > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 14px; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ===== 圖位（缺圖時顯示規格，給 Codex 補） ===== */
.slot { position: relative; overflow: hidden; background: var(--panel); margin: 0; }
.slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.slot.missing img { visibility: hidden; }
.slot.missing {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    var(--slot-bg, linear-gradient(135deg, #1b2027, #12161b));
}
.slot.missing::after {
  content: "圖位 " attr(data-slot) "　" attr(data-size);
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font: 500 12px/1.4 var(--font); color: rgba(233,236,239,.72);
  background: rgba(0,0,0,.45); border: 1px dashed rgba(46,230,214,.45); border-radius: 8px; padding: 6px 9px;
  pointer-events: none;
}
.r-16x9 { aspect-ratio: 16/9; } .r-4x3 { aspect-ratio: 4/3; } .r-3x2 { aspect-ratio: 3/2; } .r-1x1 { aspect-ratio: 1/1; } .r-3x4 { aspect-ratio: 3/4; } .r-21x9 { aspect-ratio: 21/9; }

/* ===== Hero ===== */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.hero > .slot { position: absolute; inset: 0; }
.hero > .slot img { object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,14,17,.92) 0%, rgba(12,14,17,.6) 45%, rgba(12,14,17,.15) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 35%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 72px; width: 100%; }
.hero-text { max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: #c9d0d6; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats div { font-size: 13px; color: var(--muted); }
.hero-stats .num { display: block; font-size: 34px; color: var(--text); line-height: 1.1; }

.page-hero { position: relative; padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 85% 0%, rgba(46,230,214,.12), transparent 70%), var(--ink-2); }
.crumb { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumb a:hover { color: var(--accent); }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 17px; }

/* ===== 區塊 ===== */
section.block { padding: 88px 0; }
section.block.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); max-width: 620px; margin: 0; }
.tag { display: inline-block; font-size: 13px; color: var(--accent); border: 1px solid rgba(46,230,214,.35); border-radius: 999px; padding: 2px 12px; margin-bottom: 14px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .g4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .g2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g3 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(46,230,214,.5); transform: translateY(-3px); }
.card:hover .slot img { transform: scale(1.05); }
.card-body { padding: 20px 22px 22px; }
.card-body p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.chip.on { color: var(--accent); border-color: rgba(46,230,214,.4); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; font-size: 15px; margin-top: 12px; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }

/* 試色流程四步 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 26px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 40px/1 var(--num); color: var(--accent); display: block; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* 前後對比滑桿 */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; user-select: none; touch-action: pan-y; }
.compare .slot { position: absolute; inset: 0; }
.compare .after-layer { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--accent); z-index: 3; transform: translateX(-1px); }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.compare .lbl { position: absolute; top: 14px; z-index: 2; font-size: 13px; background: rgba(0,0,0,.6); padding: 3px 11px; border-radius: 999px; }
.compare .lbl.l { left: 14px; } .compare .lbl.r { right: 14px; color: var(--accent); }

/* 色卡 */
.swatch-card { cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; }
.swatch-card .slot { aspect-ratio: 4/3; }
.swatch-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 8px; border: 1px solid rgba(255,255,255,.25); }
.swatch-card .card-body { padding: 14px 16px 16px; }
.swatch-card h3 { font-size: 16px; margin: 0 0 4px; }
.swatch-card small { color: var(--dim); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { font: 500 14px/1 var(--font); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; transition: .2s; }
.filters button:hover { color: var(--text); }
.filters button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filter-label { width: 100%; font-size: 13px; color: var(--dim); margin: 4px 0 -2px; }

/* 服務列 */
.svc-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row:nth-child(even) .slot { order: 2; }
.svc-row .slot { border-radius: var(--radius); }
.svc-row ul { padding-left: 20px; color: var(--muted); margin: 0 0 18px; }
.svc-row li { margin-bottom: 6px; }
.svc-row .price-hint { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; margin-bottom: 18px; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; } .svc-row:nth-child(even) .slot { order: 0; } }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--panel-2); font-weight: 600; color: #cfd5db; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-size: 18px; white-space: nowrap; }
.note { font-size: 14px; color: var(--dim); margin-top: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 18px 0; margin: 0; }

/* 評價 */
.review { padding: 24px; }
.review .stars { color: var(--warn); letter-spacing: 2px; margin-bottom: 8px; }
.review p { color: #cfd5db; font-size: 15px; }
.review .who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.review .who .slot { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.review .who .slot.missing::after { display: none; }

/* CTA 帶 */
.cta-band { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); }
.cta-band > .slot { position: absolute; inset: 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,14,17,.95), rgba(12,14,17,.55)); }
.cta-band .inner { position: relative; z-index: 2; padding: 64px 56px; max-width: 640px; }
.cta-band .inner p { color: #c9d0d6; }
@media (max-width: 640px) { .cta-band .inner { padding: 40px 24px; } }

/* ===== 線上試色（preview.html） ===== */
.tool { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
@media (max-width: 1024px) { .tool { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.panel h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 15px/1 var(--num); }
.tool-side { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1024px) { .tool-side { position: static; } }
.drop {
  display: block; border: 1.5px dashed #3a434e; border-radius: 12px; padding: 26px 16px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 15px; transition: .2s; background: rgba(255,255,255,.015);
}
.drop:hover, .drop.drag { border-color: var(--accent); color: var(--text); background: rgba(46,230,214,.05); }
.drop b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.drop input { display: none; }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.check-list li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); border-top: 1px solid var(--line); }
.check-list li::before { content: "·"; position: absolute; left: 8px; top: 4px; font-size: 20px; color: var(--dim); }
.check-list li.ok { color: var(--text); } .check-list li.ok::before { content: "✓"; color: var(--accent); font-size: 14px; top: 7px; }
.check-list li.bad { color: var(--danger); } .check-list li.bad::before { content: "!"; color: var(--danger); font-size: 14px; font-weight: 700; top: 7px; left: 10px; }
.check-list li.warn { color: var(--warn); } .check-list li.warn::before { content: "!"; color: var(--warn); font-size: 14px; font-weight: 700; top: 7px; left: 10px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.seg button { font: 500 14px/1.2 var(--font); padding: 11px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-2); color: var(--muted); cursor: pointer; }
.seg button.on { border-color: var(--accent); color: var(--accent); background: rgba(46,230,214,.07); }
.mini-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mini-swatches button { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; cursor: pointer; padding: 0; outline: 1px solid rgba(255,255,255,.12); outline-offset: -1px; }
.mini-swatches button.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,230,214,.25); }
.picked { font-size: 14px; color: var(--muted); margin-top: 12px; min-height: 22px; }
.picked b { color: var(--text); font-weight: 500; }
.parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 14px; }
.parts label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--ink-2); }
.parts input { accent-color: var(--accent); }

.stage { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stage-view { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; }
.stage-view .empty { text-align: center; color: var(--dim); padding: 20px; }
.stage-view .empty .big { font: 600 64px/1 var(--num); color: #2a313a; display: block; margin-bottom: 10px; }
.stage-view img.user-photo { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage-view .tint { position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; opacity: 0; transition: opacity .4s; }
.stage-view .scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(46,230,214,.25), transparent); height: 30%; animation: scan 1.4s linear infinite; display: none; }
.stage-view.busy .scan { display: block; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.stage-bar .status { font-size: 14px; color: var(--muted); }
.notice { font-size: 13px; color: var(--dim); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 14px; line-height: 1.7; }

/* 表單 */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--text); background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 110px; resize: vertical; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(46,230,214,.08); border: 1px solid rgba(46,230,214,.35); font-size: 15px; }

/* 門市 */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-list li span:first-child { color: var(--dim); }

/* ===== Footer ===== */
.site-footer { background: #08090b; border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 0; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* 手機底部固定鈕 */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(8,9,11,.96); border-top: 1px solid var(--line); }
  .mobile-bar .btn { min-height: 46px; font-size: 15px; }
  body { padding-bottom: 72px; }
  body.nav-open .mobile-bar { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; } h2 { font-size: 26px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section.block { padding: 60px 0; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 220px; padding-bottom: 44px; }
  .hero::before { background: linear-gradient(0deg, var(--ink) 30%, rgba(12,14,17,.55) 70%, rgba(12,14,17,.2) 100%); }
  .hero p.lead { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .hero-stats .num { font-size: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* 進場 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .stage-view .scan { animation: none; }
}

/* logo 圖：img/logo.svg 載入成功才換掉字標（Codex 補圖） */
.logo img { height: 36px; width: auto; display: none; }
.logo.has-img img { display: block; }
.logo.has-img .logo-mark, .logo.has-img .logo-text { display: none; }

/* ARCWRAP generated emblem with accessible live wordmark */
.logo.has-img .logo-text { display:flex; }
.logo-text { display:flex; flex-direction:column; line-height:1.25; }
.logo-text strong { font:600 23px/1 var(--num); letter-spacing:.12em; color:var(--text); }
.logo-text small { font-size:11px; letter-spacing:.12em; color:var(--muted); margin-top:4px; }
.logo.has-img img { width:40px; height:40px; object-fit:contain; }
.site-header .wrap { gap:16px; }
.nav > ul > li > a { padding-left:10px; padding-right:10px; }
.demo-note { color:var(--muted); font-size:13px; border-left:2px solid var(--accent); padding-left:12px; }
.location-note { padding:24px; margin-top:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); }
@media(max-width:1100px) and (min-width:961px) { .nav-cta { display:none; } }

/* Site design credit */
.site-credit{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:22px;margin-top:22px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.site-credit strong{font-weight:600;color:var(--text)}
.site-credit a:hover{color:var(--accent)}
.site-credit-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.site-credit .site-credit-line{padding:7px 12px;border:1px solid #2f5c45;border-radius:6px;color:#90d9ad;white-space:nowrap}
@media(max-width:600px){.site-credit{align-items:flex-start;flex-direction:column;gap:12px}.site-credit-links{gap:16px}}
