/* 隱智智能棋盤 台灣官網 —— 共用樣式 */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #fff;
  --mist: #f5f5f7;
  --line: rgba(0, 0, 0, .1);
  --line-dark: rgba(255, 255, 255, .14);
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --kaya: #eab04a;
  --kaya-hi: #f8cf7a;
  --kaya-deep: #c98a23;
  --blue: #0071e3;
  --blue-hi: #2997ff;
  --red: #e0281f;
  --green: #3ddc84;
  --radius: 28px;
  --radius-s: 18px;
  --nav-h: 52px;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro TC", "SF Pro Display", "PingFang TC",
          "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.no-learn [data-learn], body:not(.no-learn) [data-nolearn] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── 開場載入畫面（底色＋標誌＋真實進度，到齊才整頁淡入） ── */
#boot {
  position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .4s ease;
}
#boot svg, #boot img { width: 132px; height: auto; }
#boot .boot__bar { width: 132px; height: 2px; background: rgba(255, 255, 255, .16); border-radius: 2px; overflow: hidden; }
#boot .boot__bar i { display: block; height: 100%; width: 8%; background: #fff; border-radius: 2px; transition: width .25s ease; }
#boot.is-out { opacity: 0; pointer-events: none; }
.page { opacity: 0; }
.page.is-in { opacity: 1; transition: opacity .6s var(--ease); }
.page.is-in .rise { animation: rise .7s var(--ease) both; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ── 版面基礎 ── */
.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.sec { padding: clamp(72px, 11vw, 150px) 0; background: var(--paper); position: relative; }
.sec--mist { background: var(--mist); }
.sec--dark { background: var(--black); color: var(--on-dark); }
.sec--tight { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow { font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; letter-spacing: .02em; color: var(--kaya-deep); }
.sec--dark .eyebrow { color: var(--kaya); }
.h1 { font-size: clamp(44px, 8.4vw, 104px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.h2 { font-size: clamp(34px, 5.6vw, 68px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; font-weight: 700; }
.lead { font-size: clamp(18px, 2vw, 24px); line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.sec--dark .lead { color: var(--on-dark-2); }
.gold { background: linear-gradient(92deg, var(--kaya-hi), #f0a23c 60%, #e2852c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-2); }
.sec--dark .muted { color: var(--on-dark-2); }
.note { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.head { max-width: 860px; }
.head .eyebrow { margin-bottom: 12px; display: block; }
.head .lead { margin-top: 22px; max-width: 700px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }
.nowrap { white-space: nowrap; }
.h1, .h2, .h3, .lead, .tile h3, .tile p, .card p, .num p, .trio p { text-wrap: balance; }
.lead, .tile p, .card p, .num p, .trio p, .faq p { text-wrap: pretty; }
.hero .lead { text-wrap: balance; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; font-size: 17px; font-weight: 500;
  background: var(--blue); color: #fff; transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: #0077ed; }
.btn:active { transform: scale(.98); }
.btn--s { min-height: 32px; padding: 0 15px; font-size: 13.5px; }
.btn--l { min-height: 54px; padding: 0 30px; font-size: 18px; font-weight: 600; }
.btn--ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(0, 113, 227, .08); }
.sec--dark .btn--ghost, .hero .btn--ghost { color: var(--blue-hi); }
.sec--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(41, 151, 255, .14); }
.btn--line { background: #06c755; }
.btn--line:hover { background: #05b54d; }
.btn--block { width: 100%; }
.more { color: var(--blue); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.sec--dark .more, .hero .more { color: var(--blue-hi); }
.more::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s; }
.more:hover::after { transform: translate(3px, -1px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.head--center .cta-row, .hero .cta-row { justify-content: center; }

/* 待填提示（設定檔填好後自動消失） */
.todo {
  display: inline-block; padding: 1px 9px; border: 1.5px dashed #d08a1e; border-radius: 8px;
  color: #b8730f; background: rgba(234, 176, 74, .12); font-size: .88em; font-weight: 600; line-height: 1.5;
}
.sec--dark .todo, .foot .todo { color: var(--kaya-hi); background: rgba(234, 176, 74, .1); }

/* ── 導覽列 ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  color: var(--on-dark);
}
/* 毛玻璃放在偽元素上：直接放在 .nav 會讓手機選單（position: fixed）被困在導覽列的框裡 */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(18, 18, 20, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.brand svg, .brand img { width: 68px; height: auto; }
.brand span { color: var(--on-dark-2); font-weight: 500; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 34px); font-size: 13.5px; color: #d2d2d7; }
.nav__links a { opacity: .86; transition: opacity .2s; padding: 6px 0; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; color: #fff; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle i { position: absolute; left: 11px; right: 11px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle i:first-child { top: 15px; }
.nav__toggle i:last-child { top: 23px; }
.nav.is-open .nav__toggle i:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle i:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; margin-right: -8px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0; flex-direction: column; gap: 0; padding: 18px 22px 40px;
    background: #000; font-size: 26px; font-weight: 600; color: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); opacity: 1; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .brand span { display: none; }
}

/* ── 主視覺 ── */
.hero {
  background: #000; color: var(--on-dark); text-align: center; overflow: hidden; position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 0;
}
.hero::before {
  content: ""; position: absolute; left: 50%; bottom: -12%; width: 140vw; max-width: 1900px; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(234, 160, 60, .34), rgba(234, 160, 60, .08) 55%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--kaya); }
.hero .h1 { margin-top: 14px; }
.hero .lead { color: var(--on-dark-2); max-width: 660px; margin: 24px auto 0; }
.hero .cta-row { margin-top: 32px; }

.stage { perspective: 1900px; perspective-origin: 50% 20%; margin-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(48px, 8vw, 110px); position: relative; }
.stage__tilt {
  --rx: 56deg; --rz: -16deg; --sc: 1;
  width: min(600px, 78vw); margin-inline: auto; position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz)) scale(var(--sc)); will-change: transform;
}
.stage__board { position: relative; border-radius: 2.6% / 2.4%; transform: translateZ(0); }
.stage__board svg { width: 100%; height: auto; border-radius: 2.6% / 2.4%; }
.stage__edge { position: absolute; background: linear-gradient(#c58a26, #8f5f12); }
.stage__edge--b { left: 1.6%; right: 1.6%; top: calc(100% - 1px); height: 30px; transform-origin: top; transform: rotateX(-90deg); border-radius: 0 0 8px 8px; }
.stage__edge--l { top: 1.6%; bottom: 1.6%; right: calc(100% - 1px); width: 30px; transform-origin: right; transform: rotateY(-90deg); background: linear-gradient(90deg, #7d520e, #b47c20); }
.stage__edge--r { top: 1.6%; bottom: 1.6%; left: calc(100% - 1px); width: 30px; transform-origin: left; transform: rotateY(90deg); background: linear-gradient(90deg, #b47c20, #7d520e); }
.stage__shadow { position: absolute; inset: 3%; transform: translateZ(-34px); border-radius: 30px; box-shadow: 0 0 90px 30px rgba(0, 0, 0, .75), 0 0 220px 90px rgba(234, 150, 50, .22); }
.stage__cap { margin-top: clamp(-30px, -2vw, -10px); position: relative; }
.hero .note { color: #6e6e73; }

/* 棋盤動畫 */
.izb { width: 100%; height: auto; display: block; }
.izb-drop { animation: izb-drop .34s var(--ease) both; }
.izb-fade { animation: izb-fade .34s ease both; }
.izb-pulse { animation: izb-fade .34s ease both, izb-pulse 1.5s ease-in-out .34s infinite; }
.izb g { transition: opacity .5s ease; }
.izb-reset > g > g { opacity: 0; }
@keyframes izb-drop { from { transform: scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes izb-fade { from { opacity: 0; } }
@keyframes izb-pulse { 50% { opacity: .45; } }

/* ── 數字帶 ── */
.stats { background: #000; color: var(--on-dark); padding: 0 0 clamp(64px, 9vw, 120px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 34px 20px 0; text-align: center; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(36px, 5vw, 62px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; font-weight: 600; margin-left: 2px; }
.stat span { display: block; margin-top: 8px; color: var(--on-dark-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 10px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ── 大圖段落 ── */
.wide { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius); overflow: hidden; background: #e9e6e1; position: relative; }
.wide img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: 78% 60%; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.trio h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.trio p { color: var(--ink-2); font-size: 16px; }
.sec--dark .trio p { color: var(--on-dark-2); }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; gap: 28px; } }

/* ── 功能格（Bento） ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.tile {
  background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 380px; grid-column: span 2;
}
.tile--w3 { grid-column: span 3; }
.tile--w4 { grid-column: span 4; }
.tile--full { grid-column: 1 / -1; }
.tile--dark { background: #111113; color: var(--on-dark); }
.tile__k { font-size: 14px; font-weight: 600; color: var(--kaya-deep); letter-spacing: .03em; }
.tile--dark .tile__k { color: var(--kaya); }
.tile h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; margin-top: 8px; }
.tile p { color: var(--ink-2); font-size: 16px; margin-top: 12px; max-width: 30em; }
.tile--dark p { color: var(--on-dark-2); }
.tile__art { margin-top: auto; padding-top: 28px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile--w3, .tile--w4 { grid-column: span 1; } .tile--w4, .tile--full { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; gap: 14px; } .tile, .tile--w3, .tile--w4, .tile--full { grid-column: span 1; min-height: 0; } }

/* 格內小圖 */
.engines { display: flex; flex-wrap: wrap; gap: 10px; }
.engines span { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 600; font-size: 15px; border: 1px solid var(--line-dark); }
.levels { display: flex; gap: 5px; align-items: flex-end; height: 88px; margin-top: 22px; }
.levels i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--kaya-hi), #d98a2a); opacity: .9; }
.levels__cap { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--on-dark-2); }
.qr { width: 128px; height: 128px; border-radius: 18px; background: var(--mist); padding: 14px; }
.kifu { display: flex; align-items: flex-end; gap: 18px; }
.kifu__file { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.kifu__file b { display: block; color: var(--ink); font-size: 15px; }
.clock { display: flex; align-items: center; justify-content: center; gap: 22px; }
.clock__btn { width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff, #d6d8dc 46%, #8d9096); box-shadow: 0 0 0 9px #111, 0 14px 30px rgba(0, 0, 0, .28); }
.clock__time { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.clock__time small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.sizes { position: relative; width: 150px; aspect-ratio: 1; margin-inline: auto; }
.sizes i { position: absolute; border: 2px solid var(--ink); border-radius: 6px; display: grid; place-items: start; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 6px; }
.sizes i:nth-child(1) { inset: 0; background: var(--kaya-hi); }
.sizes i:nth-child(2) { inset: 0 31.6% 31.6% 0; background: var(--kaya); }
.sizes i:nth-child(3) { inset: 0 52.6% 52.6% 0; background: #dc962f; }
.live { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--mist); font-size: 14px; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.live b { color: #fff; background: var(--red); border-radius: 6px; padding: 2px 8px; font-size: 12px; letter-spacing: .06em; }
.remote { display: flex; align-items: center; justify-content: center; gap: 12px; }
.remote i { width: 74px; aspect-ratio: 502 / 545; border-radius: 8px; background: linear-gradient(#1a1a1c 0 12%, var(--kaya) 12%); box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.remote span { flex: 0 1 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px); }
.tile--photo { padding: 0; min-height: 380px; color: #fff; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 244, 241, .97) 0, rgba(246, 244, 241, .9) 34%, rgba(246, 244, 241, 0) 62%); }
.tile--photo .tile__body { position: relative; z-index: 1; padding: clamp(26px, 3vw, 40px); color: var(--ink); max-width: 25em; }
@media (max-width: 640px) {
  .tile--photo { min-height: 440px; }
  .tile--photo img { object-position: 76% 100%; height: 60%; top: auto; }
  .tile--photo::after { background: linear-gradient(180deg, #f6f4f1 0 42%, rgba(246, 244, 241, 0) 62%); }
}

/* ── AI 燈光示範 ── */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.demo__board { border-radius: 16px; box-shadow: 0 40px 120px rgba(234, 150, 50, .2), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; background: var(--kaya); aspect-ratio: 1000 / 1086; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-top: 34px; max-width: 100%; }
.seg button { padding: 9px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #d2d2d7; transition: background .25s, color .25s; white-space: nowrap; }
.seg button[aria-selected="true"] { background: #fff; color: #000; }
.demo__pane { margin-top: 28px; min-height: 148px; }
.demo__pane h3 { font-size: 24px; font-weight: 700; }
.demo__pane p { color: var(--on-dark-2); margin-top: 10px; font-size: 17px; max-width: 30em; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 12px currentColor; background: currentColor; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } .demo__board { max-width: 520px; width: 100%; margin-inline: auto; order: -1; } .demo__pane { min-height: 0; } }
@media (max-width: 420px) { .seg button { padding: 9px 13px; font-size: 14px; } }

/* ── 學習：大數字 ── */
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.num { background: var(--mist); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 44px); }
.sec--mist .num { background: var(--paper); }
.num b { display: block; font-size: clamp(52px, 8vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num b small { font-size: .42em; margin-left: 4px; letter-spacing: 0; }
.num h3 { font-size: 22px; font-weight: 700; margin-top: 18px; }
.num p { color: var(--ink-2); font-size: 16px; margin-top: 6px; max-width: 28em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); background: #fff; }
@media (max-width: 720px) { .nums { grid-template-columns: 1fr; gap: 14px; } }

/* ── 連線 ── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.card { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; }
.sec:not(.sec--mist):not(.sec--dark) .card { background: var(--mist); }
.card svg.ico { width: 44px; height: 44px; margin-bottom: 20px; color: var(--kaya-deep); }
.card h3 { font-size: 23px; font-weight: 700; line-height: 1.3; }
.card p { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.card .tags { margin-top: auto; padding-top: 20px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; gap: 14px; } }

/* ── 硬體設計 ── */
.hw { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.hw__pic { position: relative; }
.hw__pic img { width: 100%; height: auto; }
.dot {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(0, 113, 227, .2), 0 6px 16px rgba(0, 0, 0, .2);
}
.hw__list li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.hw__list li:last-child { border-bottom: 1px solid var(--line); }
.hw__list b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; display: grid; place-items: center; }
.hw__list h3 { font-size: 18px; font-weight: 700; }
.hw__list p { font-size: 15.5px; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 860px) { .hw { grid-template-columns: 1fr; } }

/* ── 規格表 ── */
.specs { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.specs__row h3 { font-size: 20px; font-weight: 700; }
.specs__row dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.specs__row dt { font-size: 14px; color: var(--ink-3); }
.specs__row dd { font-size: 17px; font-weight: 600; margin-top: 2px; }
@media (max-width: 760px) { .specs__row { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 460px) { .specs__row dl { grid-template-columns: 1fr; } }

/* ── 收尾行動區 ── */
.final { text-align: center; overflow: hidden; padding-bottom: 0; }
.final img { width: min(820px, 96vw); margin: clamp(20px, 4vw, 48px) auto 0; mix-blend-mode: lighten; }
.final .cta-row { justify-content: center; margin-top: 30px; }

/* ── 頁尾 ── */
.foot { background: #0b0b0c; color: #a1a1a6; font-size: 13.5px; padding: 44px 0 56px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.foot h4 { color: var(--on-dark); font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.foot li { margin-top: 8px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot__legal { padding-top: 22px; display: grid; gap: 8px; font-size: 12px; color: #86868b; line-height: 1.7; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* ── 捲動浮現 ── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.is-on { opacity: 1; transform: none; }

/* ══════════ 銷售頁 ══════════ */
.buy { padding: calc(var(--nav-h) + clamp(28px, 4vw, 56px)) 0 clamp(64px, 8vw, 110px); background: var(--paper); }
.buy__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gal { position: sticky; top: calc(var(--nav-h) + 24px); }
.gal__main { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 1.15; display: grid; place-items: center; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; }
.gal__main.is-cover img { object-fit: cover; }
.gal__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gal__thumbs button { border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--mist); opacity: .62; box-shadow: inset 0 0 0 0 var(--blue); transition: opacity .2s; position: relative; }
.gal__thumbs button[aria-selected="true"] { opacity: 1; }
.gal__thumbs button[aria-selected="true"]::after { content: ""; position: absolute; inset: 0; border: 2.5px solid var(--blue); border-radius: 14px; }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy__info .badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff3dd; color: #a8660a; font-size: 13px; font-weight: 700; }
.buy__info h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.15; font-weight: 700; margin-top: 14px; }
.buy__info .lead { font-size: 19px; margin-top: 14px; }
.price { margin-top: 26px; padding: 22px 0; border-block: 1px solid var(--line); }
.price__now { font-size: 38px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.price__now small { font-size: 17px; font-weight: 600; margin-right: 4px; }
.price__was { color: var(--ink-3); text-decoration: line-through; margin-left: 10px; font-size: 18px; }
.price p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; }
.ticks svg { width: 22px; height: 22px; color: #1a9b50; margin-top: 3px; }
.buy__cta { display: grid; gap: 12px; margin-top: 28px; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.assure li { background: var(--mist); border-radius: 16px; padding: 14px 10px; text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.assure b { display: block; color: var(--ink); font-size: 14.5px; }
@media (max-width: 900px) { .buy__grid { grid-template-columns: 1fr; } .gal { position: static; } }

.vs { margin-top: clamp(36px, 5vw, 60px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vs table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.vs th, .vs td { padding: 17px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.vs th:first-child, .vs td:first-child { text-align: left; font-weight: 600; width: 34%; }
.vs thead th { font-size: 15px; color: var(--ink-2); font-weight: 600; vertical-align: bottom; }
.vs thead th.is-us { color: var(--ink); font-size: 18px; }
.vs .is-us { background: #fff; }
.vs thead .is-us { border-radius: 20px 20px 0 0; border-top: 2px solid var(--kaya); }
.vs td.is-us, .vs th.is-us { border-inline: 2px solid var(--kaya); }
.vs tbody tr:last-child .is-us { border-bottom: 2px solid var(--kaya); border-radius: 0 0 20px 20px; }
@media (max-width: 640px) {
  .vs { overflow: visible; }
  .vs table { min-width: 0; font-size: 14.5px; table-layout: fixed; }
  .vs th, .vs td { padding: 14px 4px; }
  .vs th:first-child, .vs td:first-child { width: 40%; padding-left: 0; }
  .vs thead th { font-size: 12px; line-height: 1.35; }
  .vs thead th.is-us { font-size: 13px; }
}
.yes, .no, .mid { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; font-weight: 800; }
.yes { background: #1a9b50; color: #fff; }
.no { background: #e8e8ed; color: #86868b; }
.mid { background: #ffe9b8; color: #9a6a05; }

.box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.box li { background: var(--mist); border-radius: var(--radius-s); padding: 24px 20px; }
.sec--mist .box li { background: #fff; }
.box b { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; }
.box b small { font-size: 15px; font-weight: 600; margin-left: 3px; }
.box span { display: block; font-weight: 700; margin-top: 8px; }
.box p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 860px) { .box { grid-template-columns: repeat(2, 1fr); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 60px); counter-reset: s; }
.steps li { counter-increment: s; background: #111113; border-radius: var(--radius); padding: 30px 28px 34px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--kaya); color: #000; font-weight: 800; margin-bottom: 20px; }
.steps h3 { font-size: 22px; font-weight: 700; }
.steps p { color: var(--on-dark-2); font-size: 16px; margin-top: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

/* 方案選擇 */
.hero__price { margin-top: 18px; font-size: 15px; color: var(--on-dark-2); }
.plans { border: 0; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; min-width: 0; }
.plans legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.plan { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px #d2d2d7; cursor: pointer; transition: box-shadow .2s, background .2s; }
.plan:hover { box-shadow: inset 0 0 0 1.5px #86868b; }
.plan.is-on { box-shadow: inset 0 0 0 2.5px var(--blue); background: #f5f9ff; }
.plan input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.plan__body { display: grid; gap: 3px; min-width: 0; }
.plan__name { font-size: 17px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.plan__name em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #fff3dd; color: #a8660a; }
.plan__desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.plan__save { font-size: 13.5px; color: #1a7f43; font-weight: 600; }
.plan__save s { color: var(--ink-3); font-weight: 500; }
.plan__price { font-size: 19px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .plan { padding: 14px; gap: 10px; } .plan__price { font-size: 17px; } }

/* 組合方案的價值拆解 */
.stack { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.stack__list { background: #151517; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 8px clamp(20px, 3vw, 32px); }
.stack__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; font-weight: 600; }
.stack__list li:last-child { border-bottom: 0; }
.stack__list small { display: block; font-size: 14px; font-weight: 400; color: var(--on-dark-2); margin-top: 3px; }
.stack__list b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stack__list .stack__sum { color: var(--on-dark-2); }
.stack__list .stack__sum s { font-weight: 500; }
.stack__list .stack__total { font-size: 20px; }
.stack__list .stack__total b { font-size: 28px; color: var(--kaya-hi); }
.stack__list .stack__total small { color: var(--green); font-weight: 600; }
.stack__side { display: grid; gap: 22px; }
.stack__steps { counter-reset: st; display: grid; gap: 12px; }
.stack__steps li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--on-dark-2); font-size: 15.5px; }
.stack__steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 860px) { .stack { grid-template-columns: 1fr; } }
.vs td small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 2px; line-height: 1.4; }
.vs td b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .vs--models th:first-child, .vs--models td:first-child { width: 27%; }
  .vs--models td { font-size: 13.5px; }
  .vs--models td b { font-size: 13px; letter-spacing: -.02em; }
}

.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 60px); }
.vid { display: flex; flex-direction: column; color: var(--ink); background: #fff; border-radius: var(--radius-s); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.vid:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, .12); }
.vid__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vid:hover .vid__thumb img { transform: scale(1.05); }
.vid__play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(0, 0, 0, .62); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s, transform .25s var(--ease); }
.vid__play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 19px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vid:hover .vid__play { background: #e0281f; transform: scale(1.08); }
.vid__tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; }
.vid__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 22px; }
.vid__body b { font-size: 16.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid__body span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 980px) { .vids { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vids { grid-template-columns: 1fr; gap: 14px; } }

.faq { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq p { padding: 0 44px 24px 0; color: var(--ink-2); font-size: 16.5px; }

.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.order__side .h2 { font-size: clamp(32px, 4.4vw, 54px); }
.contact { margin-top: 28px; display: grid; gap: 14px; font-size: 16px; }
.contact li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; }
.contact span:first-child { color: var(--on-dark-2); }
.form { background: #151517; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; font-size: 14px; color: var(--on-dark-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff; background: #0b0b0c; border: 1px solid #3a3a3e; border-radius: 12px; padding: 12px 14px; min-height: 48px;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(41, 151, 255, .28); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.6; color: var(--on-dark-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-hi); }
.btn[disabled] { opacity: .55; cursor: progress; }
.form__msg { font-size: 14.5px; line-height: 1.6; padding: 14px 16px; border-radius: 12px; background: rgba(234, 176, 74, .12); color: var(--kaya-hi); white-space: pre-wrap; }
.form__msg[hidden] { display: none; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

.bar {
  position: fixed; inset: auto 0 0; z-index: 95; background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.bar.is-on { transform: none; }
.bar b { font-size: 17px; line-height: 1.2; }
.bar small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 500; }
@media (max-width: 760px) { .bar { display: flex; } .has-bar { padding-bottom: 72px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
