/* ST1 官網樣式。深色、金屬感，顏色取自產品影片的深鐵灰與螢幕冷光。 */
:root {
  --bg: #07090d;
  --bg-2: #0c1016;
  --steel: #151b23;
  --steel-2: #1d2530;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e8edf3;
  --muted: #8a95a4;
  --dim: #5b6573;
  --accent: #7fd3ff;
  --accent-2: #c5d3e2;
  --warn: #ffb547;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --f-head: "Sora", "Noto Sans TC", system-ui, sans-serif;
  --f-body: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
body[data-lang="zh"] { --f-head: "Noto Sans TC", "Sora", system-ui, sans-serif; --f-body: "Noto Sans TC", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--f-body); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
body[data-lang="zh"] h1, body[data-lang="zh"] h2, body[data-lang="zh"] h3 { letter-spacing: 0.02em; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--accent); color: #001018; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.1em; height: 1.1em; flex: none; }
.eyebrow {
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 52ch; margin-top: 26px; }
.muted { color: var(--muted); }

/* ── 背景質感：顆粒與跟著滑鼠的光 ── */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 2; mix-blend-mode: screen;
  pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(circle, rgba(127, 211, 255, 0.09), transparent 60%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
}
body.has-pointer .cursor-glow { opacity: 1; }
/* main 不建立自己的圖層，開場讀秒才能蓋過頁首 */
main { position: relative; overflow-x: clip; } /* clip 不會弄壞產品故事段的釘住效果，hidden 會 */

/* ── 按鈕 ── */
.btn {
  --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--f-body); letter-spacing: 0.01em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s, transform 0.3s var(--ease);
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn .ico { transition: transform 0.4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--text); color: #05070a; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn-primary:hover::before { transform: none; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(10px); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wide { width: 100%; }

/* ── 頁首 ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding: 0 var(--pad); transition: height 0.5s var(--ease), background 0.5s, border-color 0.5s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { height: 62px; background: rgba(7, 9, 13, 0.72); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { display: grid; grid-auto-flow: column; gap: 3px; align-items: end; height: 18px; }
.logo-mark i { width: 4px; background: var(--accent); border-radius: 1px; animation: eq 1.6s var(--ease-in-out) infinite; }
.logo-mark i:nth-child(1) { height: 40%; animation-delay: -0.4s; }
.logo-mark i:nth-child(2) { height: 100%; animation-delay: -0.8s; }
.logo-mark i:nth-child(3) { height: 65%; animation-delay: -1.2s; }
@keyframes eq { 50% { transform: scaleY(0.45); } }
.logo-mark i { transform-origin: bottom; }
.logo-word { font: 700 18px/1 "Sora", sans-serif; letter-spacing: 0.02em; white-space: nowrap; }
.logo-word sup { font: 500 10px/1 var(--f-mono); letter-spacing: 0.1em; color: var(--accent); margin-left: 6px; vertical-align: top; }
.logo-word.big { font-size: clamp(28px, 4vw, 44px); }
.nav-links { display: flex; gap: 6px; }
.nav-link { position: relative; padding: 10px 14px; font-size: 14px; color: var(--muted); transition: color 0.3s; }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color 0.3s, color 0.3s; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
body.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--pad);
    background: rgba(7, 9, 13, 0.96); backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path 0.8s var(--ease-in-out);
  }
  body.menu-open .nav-links { clip-path: circle(150% at calc(100% - 44px) 38px); }
  .nav-link { font: 600 clamp(30px, 9vw, 44px)/1.2 var(--f-head); color: var(--text); padding: 8px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.6s var(--ease); }
  .nav-link::after { display: none; }
  body.menu-open .nav-link { opacity: 1; transform: none; }
  body.menu-open .nav-link:nth-child(2) { transition-delay: 0.06s; }
  body.menu-open .nav-link:nth-child(3) { transition-delay: 0.12s; }
  body.menu-open .nav-link:nth-child(4) { transition-delay: 0.18s; }
  .nav-link.is-active { color: var(--accent); }
}

/* ── 進場：開場讀秒 ── */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--bg); transition: clip-path 1.1s var(--ease-in-out); clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.pre-readout { font: 600 clamp(56px, 12vw, 140px)/1 var(--f-mono); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.pre-readout small { font-size: 0.22em; color: var(--accent); letter-spacing: 0.1em; }
.pre-bar { width: min(320px, 60vw); height: 1px; background: var(--line-2); overflow: hidden; }
.pre-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pre-brand { font: 500 11px/1 var(--f-mono); letter-spacing: 0.4em; color: var(--muted); }

/* ── 首頁主視覺 ── */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) saturate(0.9); transform: scale(1.08); transition: transform 2.4s var(--ease); }
body:not(.is-loading) .hero-video { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  /* 影片裡有幾段自帶英文字幕在左上，標題壓在上面會打架，所以左半邊壓暗多一點 */
  background: linear-gradient(180deg, rgba(7,9,13,0.6) 0%, rgba(7,9,13,0.2) 30%, rgba(7,9,13,0.35) 55%, rgba(7,9,13,0.97) 100%),
              linear-gradient(90deg, rgba(7,9,13,0.94) 0%, rgba(7,9,13,0.78) 42%, rgba(7,9,13,0.15) 78%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(70px, 12vh, 130px); }
.hero-title { font-size: clamp(42px, 7.6vw, 112px); font-weight: 600; max-width: 14ch; }
body[data-lang="zh"] .hero-title { font-size: clamp(36px, 6vw, 88px); max-width: none; }
.hero-sub { font-size: clamp(16px, 1.5vw, 20px); color: var(--accent-2); max-width: 46ch; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hud {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2;
  padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(7,9,13,0.45); backdrop-filter: blur(14px);
  font-family: var(--f-mono); min-width: 220px; opacity: 0; transition: opacity 1s 1.2s;
}
body:not(.is-loading) .hud { opacity: 1; }
.hud::before { content: "DEMO"; position: absolute; top: -9px; left: 18px; font-size: 10px; letter-spacing: 0.2em; padding: 2px 8px; background: var(--accent); color: #001018; border-radius: 4px; }
.hud-row { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.hud-row b { font-size: 34px; font-weight: 600; }
.hud-row span { color: var(--muted); font-size: 12px; }
.hud-row em { margin-left: auto; font-style: normal; color: var(--accent); font-size: 12px; }
.hud-row.small { justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 40px; margin-left: -12px; border: 1px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--accent); border-radius: 2px; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 860px) { .hud { top: auto; bottom: auto; top: 96px; right: 20px; transform: none; min-width: 0; padding: 12px 16px; } .hud-row b { font-size: 24px; } }

/* ── 文字逐字浮現 ── */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d0, 0ms)); }
[data-split].is-in .w > span { transform: none; }

/* ── 一般區塊進場 ── */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── 大段文字：捲動時一個字一個字點亮 ── */
.statement { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 18vw, 220px) var(--pad); }
.statement-text { font: 500 clamp(26px, 3.6vw, 52px)/1.28 var(--f-head); letter-spacing: -0.015em; max-width: 26ch; }
body[data-lang="zh"] .statement-text { line-height: 1.55; max-width: 22em; letter-spacing: 0.04em; }
.statement-text .sw { opacity: 0.14; transition: opacity 0.3s; }
.statement-text .sw.on { opacity: 1; }

/* ── 數字 ── */
.stats {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(90px, 14vw, 180px);
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
}
.stat { padding: 36px 24px 0 0; position: relative; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { font: 600 clamp(40px, 4.6vw, 76px)/1 var(--f-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat small { font: 500 13px/1 var(--f-mono); color: var(--accent); margin-left: 8px; letter-spacing: 0.08em; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 32px; }
}

/* ── 產品故事：釘住畫面、捲動推進三段 ── */
.story { position: relative; height: 380vh; }
/* minmax(0, …)：不讓產品圖的原始寬度把左欄撐大、壓到右邊的文字 */
.story-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 96px); padding: 0 var(--pad); max-width: 1500px; margin: 0 auto; overflow: hidden; }
.story-stage { position: relative; height: 72vh; display: grid; place-items: center; perspective: 1400px; }
.story-stage::before {
  content: ""; position: absolute; inset: 8% -4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127,211,255,0.18), rgba(197,211,226,0.05) 55%, transparent);
  filter: blur(10px); transform: scale(var(--glow, 1)); transition: transform 0.4s;
}
/* 產品與光圈綁在同一個「支架」上，一起轉、一起放大，光圈永遠貼在產品對應的部位上。
   支架只佔左欄 78% 寬，加上最大放大倍率與旋轉後仍留在左欄內，不會碰到文字。 */
.story-rig { position: relative; width: 78%; transform-style: preserve-3d; will-change: transform; }
.story-product {
  display: block; width: 100%;
  filter: drop-shadow(0 50px 60px rgba(0,0,0,0.7)) brightness(1.35) contrast(1.05);
  animation: hover-y 6s var(--ease-in-out) infinite;
}
@keyframes hover-y { 50% { translate: 0 -10px; } }
.story-ring {
  position: absolute; top: 50%; left: var(--rx, 15%); width: clamp(84px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--accent);
  transform: translate(-50%, -50%); z-index: 2; pointer-events: none;
  box-shadow: 0 0 0 10px rgba(127,211,255,0.05), inset 0 0 30px rgba(127,211,255,0.15);
}
.story-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(127,211,255,0.4); animation: spin 14s linear infinite; }
.story-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.story-copy { position: relative; z-index: 3; height: 340px; }
.story-step { position: absolute; inset: 0; opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); pointer-events: none; }
.story-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.story-step.is-past { transform: translateY(-40px); }
.step-no { font: 500 13px/1 var(--f-mono); color: var(--accent); letter-spacing: 0.2em; display: block; margin-bottom: 18px; }
.story-step h3 { font-size: clamp(32px, 3.6vw, 54px); margin-bottom: 20px; }
.story-step p { color: var(--muted); font-size: 17px; max-width: 40ch; }
.story-progress { position: absolute; left: 0; bottom: 0; width: 160px; height: 2px; background: var(--line-2); }
.story-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 860px) {
  .story { height: 320vh; }
  .story-sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding-top: 80px; padding-bottom: 40px; gap: 10px; }
  .story-stage { height: 42vh; }
  .story-rig { width: 84%; }
  .story-copy { height: 240px; }
}

/* ── 共用：區塊標題 ── */
.section-head { max-width: var(--max); margin: 0 auto 56px; padding: 0 var(--pad); }
.section-head h2 { font-size: clamp(34px, 5vw, 72px); max-width: 18ch; }

/* ── 細節圖塊 ── */
.tiles { padding: clamp(80px, 12vw, 160px) 0; }
.tile-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tile { grid-column: span 2; margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--steel); aspect-ratio: 4 / 3.4; isolation: isolate; }
.tile-wide { grid-column: span 3; aspect-ratio: auto; }
.tile-img { position: absolute; inset: -8% 0; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: grid; gap: 6px;
  background: linear-gradient(transparent, rgba(7,9,13,0.92));
}
.tile figcaption b { font: 600 20px/1.2 var(--f-head); }
.tile figcaption span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .tile-grid { grid-template-columns: 1fr; } .tile, .tile-wide { grid-column: auto; aspect-ratio: 4 / 3; } }

/* ── 認證跑馬燈與扇形證書 ── */
.certs-band { padding: 40px 0 clamp(90px, 14vw, 180px); overflow: hidden; }
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 44px; align-items: center; animation: marquee 38s linear infinite; }
.marquee-track span { font: 600 clamp(28px, 4vw, 54px)/1 var(--f-head); letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color 0.4s; white-space: nowrap; }
.marquee-track span:hover { color: var(--text); }
.marquee-track i { font-style: normal; color: var(--accent); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.certs-band-inner { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 130px) var(--pad) 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.certs-band-copy h2 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: 24px; }
.certs-band-copy p { color: var(--muted); margin-bottom: 34px; max-width: 44ch; }
.fan { position: relative; height: 480px; perspective: 1400px; }
.fan-card {
  --spread: 0; position: absolute; left: 50%; top: 50%; width: 230px; margin: -165px 0 0 -115px;
  border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  transform: translateX(calc((var(--i) - 2) * 26px * var(--spread))) rotate(calc((var(--i) - 2) * 7deg * var(--spread))) translateY(calc(var(--o) * 14px * var(--spread)));
  transition: transform 1.2s var(--ease), box-shadow 0.4s; transform-origin: 50% 120%;
}
.fan.is-in .fan-card { --spread: 3.2; }
.fan-card img { width: 100%; aspect-ratio: 360 / 500; object-fit: cover; object-position: top; }
.fan-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font: 600 13px/1.2 var(--f-body); color: #fff; background: linear-gradient(transparent, rgba(5,8,12,0.88)); opacity: 0; transition: opacity 0.4s; }
.fan-card:hover { z-index: 5; box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px var(--accent); }
.fan-card:hover span { opacity: 1; }
@media (max-width: 860px) {
  .certs-band-inner { grid-template-columns: 1fr; }
  .fan { height: 380px; }
  .fan-card { width: 170px; margin: -125px 0 0 -85px; }
  .fan.is-in .fan-card { --spread: 2; }
}

/* ── 影片 ── */
.film { padding: 0 var(--pad) clamp(90px, 14vw, 180px); }
.film-frame { position: relative; max-width: var(--max); margin: 0 auto; border-radius: calc(var(--radius) + 6px); overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 6px; background: rgba(255,255,255,0.08); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); transition: background 0.4s, transform 0.4s var(--ease);
}
.film-play .ico { width: 30px; height: 30px; }
.film-play span { font: 500 10px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.film-play::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(127,211,255,0.35); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.film-play:hover { background: var(--accent); color: #001018; }
.film-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 22px 26px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--accent-2); background: linear-gradient(transparent, rgba(0,0,0,0.6)); transition: opacity 0.5s; }
.film-frame.is-playing .film-play, .film-frame.is-playing .film-caption { opacity: 0; pointer-events: none; }

/* ── 全球地圖 ── */
.global { padding-bottom: clamp(90px, 14vw, 180px); }
.map { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.map img { width: 100%; opacity: 0.16; filter: drop-shadow(0 0 1px rgba(255,255,255,0.4)); }
.map-inner { position: relative; }
.map-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-arcs path { fill: none; stroke: var(--accent); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 1.2px; opacity: 0.55; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.map.is-in .map-arcs path { animation: draw 2.4s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 300ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pin { position: absolute; transform: translate(-50%, -50%); margin-left: 0; }
.pin i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); opacity: 0; transform: scale(0); transition: opacity 0.5s, transform 0.6s var(--ease); transition-delay: calc(var(--i) * 120ms + 1.6s); }
.pin i::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.6s var(--ease) infinite; animation-delay: calc(var(--i) * 230ms); }
.pin em { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--f-mono); letter-spacing: 0.06em; white-space: nowrap; color: var(--accent-2); opacity: 0; transition: opacity 0.6s; transition-delay: calc(var(--i) * 120ms + 1.9s); }
.map.is-in .pin i { opacity: 1; transform: none; }
.map.is-in .pin em { opacity: 0.85; }
.pin-home i { width: 12px; height: 12px; background: #fff; box-shadow: 0 0 22px var(--accent), 0 0 0 4px rgba(127,211,255,0.25); }
.pin-home em { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .pin em { display: none; } .pin-home em { display: block; } }
.sites { max-width: var(--max); margin: 70px auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.site { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); display: grid; gap: 10px; }
.site b { font: 600 16px/1.2 var(--f-head); }
.site span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .sites { grid-template-columns: 1fr; } }

/* ── 收尾兩張大卡 ── */
.cta-split { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(90px, 14vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cta-card {
  position: relative; display: block; padding: clamp(30px, 4vw, 54px); min-height: 300px; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(140deg, var(--steel-2), var(--bg-2) 70%); transition: border-color 0.5s;
  transform-style: preserve-3d;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(127,211,255,0.14), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.cta-card:hover { border-color: rgba(127,211,255,0.4); }
.cta-card:hover::before { opacity: 1; }
.cta-card h3 { font-size: clamp(30px, 3.4vw, 48px); margin-bottom: 14px; position: relative; }
.cta-card p { color: var(--muted); max-width: 34ch; position: relative; }
.cta-arrow { position: absolute; right: clamp(24px, 3vw, 44px); bottom: clamp(24px, 3vw, 44px); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.cta-card:hover .cta-arrow { background: var(--accent); color: #001018; transform: rotate(-45deg); }
@media (max-width: 860px) { .cta-split { grid-template-columns: 1fr; } .cta-card { min-height: 240px; } }

/* ── 內頁主視覺 ── */
.sub-hero { max-width: var(--max); margin: 0 auto; padding: clamp(140px, 20vh, 200px) var(--pad) clamp(70px, 10vw, 120px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; min-height: 80svh; }
.sub-hero.center { grid-template-columns: 1fr; text-align: center; min-height: 62svh; }
.sub-hero.center .sub-hero-copy { display: grid; justify-items: center; }
.sub-hero.center .lead { margin-inline: auto; }
.sub-hero h1 { font-size: clamp(44px, 7vw, 104px); }
.sub-hero .btn { margin-top: 36px; }
.float-product { position: relative; }
.float-product::before { content: ""; position: absolute; inset: -20% -10%; background: radial-gradient(closest-side, rgba(127,211,255,0.18), transparent); }
.float-product img { position: relative; filter: drop-shadow(0 40px 50px rgba(0,0,0,0.7)) brightness(1.35); animation: float 7s var(--ease-in-out) infinite; transform: rotate(-10deg); }
@keyframes float { 50% { translate: 0 -16px; } }
@media (max-width: 860px) { .sub-hero { grid-template-columns: 1fr; min-height: 0; } }

/* ── 結構解析 ── */
.anatomy { padding-bottom: clamp(90px, 14vw, 170px); }
.anatomy-stage { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }
.anatomy-stage > img { width: 100%; filter: brightness(1.4) drop-shadow(0 30px 40px rgba(0,0,0,0.6)); }
.hotspot { position: absolute; transform: translate(-50%, -50%); }
.anatomy-inner { position: relative; }
.hotspot i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(127,211,255,0.2); cursor: pointer; position: relative; }
.hotspot i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.2s var(--ease) infinite; animation-delay: calc(var(--i) * 0.4s); }
.hotspot-tip {
  position: absolute; left: 50%; bottom: calc(100% + 18px); width: 220px; padding: 16px 18px; border-radius: 12px;
  background: rgba(13,17,22,0.92); border: 1px solid var(--line-2); backdrop-filter: blur(12px); display: grid; gap: 4px;
  transform: translate(-50%, 8px); opacity: 0; transition: opacity 0.4s, transform 0.5s var(--ease); pointer-events: none;
}
.hotspot-tip.left { left: auto; right: -10px; transform: translate(0, 8px); }
.hotspot-tip b { font: 600 15px/1.3 var(--f-head); }
.hotspot-tip span { font-size: 13px; color: var(--muted); }
.anatomy-stage.is-in .hotspot-tip { opacity: 1; transform: translate(-50%, 0); transition-delay: calc(var(--i) * 180ms + 400ms); }
.anatomy-stage.is-in .hotspot-tip.left { transform: none; }
.hotspot:nth-child(odd) .hotspot-tip { bottom: auto; top: calc(100% + 18px); }
@media (max-width: 860px) { .hotspot-tip { width: 150px; padding: 10px 12px; } .hotspot-tip span { display: none; } }

/* ── 左右圖文 ── */
.split { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(90px, 12vw, 160px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--steel); }
.split-media > div { height: 116%; margin-top: -8%; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 24px; }
.split-copy p { color: var(--muted); max-width: 44ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; color: var(--accent-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* ── 規格表 ── */
.specs { padding-bottom: clamp(90px, 12vw, 160px); }
.spec-table { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.spec-row { display: grid; grid-template-columns: minmax(140px, 1fr) 2.2fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); position: relative; }
.spec-row::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.spec-row:hover::after { transform: scaleX(1); }
.spec-row dt { color: var(--muted); font-size: 14px; }
.spec-row dd { margin: 0; font: 500 clamp(16px, 1.4vw, 19px)/1.5 var(--f-body); }
@media (max-width: 600px) { .spec-row { grid-template-columns: 1fr; gap: 6px; } }

/* ── 實品照與使用須知 ── */
.real { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(90px, 12vw, 160px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.real-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.real-photo img { width: 100%; height: 100%; object-fit: cover; }
.real-photo figcaption { position: absolute; left: 18px; top: 18px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; padding: 8px 12px; border-radius: 999px; background: rgba(7,9,13,0.7); backdrop-filter: blur(8px); }
.notice { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); border: 1px solid rgba(255,181,71,0.3); background: linear-gradient(160deg, rgba(255,181,71,0.07), transparent 60%); display: grid; gap: 18px; align-content: start; }
.notice h3 { color: var(--warn); font-size: 22px; }
.notice p { color: var(--accent-2); }
@media (max-width: 860px) { .real { grid-template-columns: 1fr; } }

/* ── 證書牆 ── */
.cert-section { padding-bottom: clamp(80px, 10vw, 140px); }
.cert-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.cert-grid > div { scroll-margin-top: 100px; }
.cert {
  position: relative; display: grid; width: 100%; text-align: left; border-radius: var(--radius); padding: 14px;
  background: linear-gradient(170deg, var(--steel-2), var(--bg-2)); border: 1px solid var(--line);
  transition: border-color 0.4s, box-shadow 0.5s; transform-style: preserve-3d; will-change: transform;
}
.cert:hover { border-color: rgba(127,211,255,0.45); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.cert-paper { display: block; border-radius: 8px; overflow: hidden; background: #fff; aspect-ratio: 360 / 480; box-shadow: 0 10px 30px rgba(0,0,0,0.35); transform: translateZ(30px); }
.cert-paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.cert:hover .cert-paper img { transform: scale(1.04); }
.cert-meta { display: grid; gap: 4px; padding: 16px 6px 6px; transform: translateZ(20px); }
.cert-title { font: 600 16px/1.3 var(--f-head); }
.cert-note { font-size: 13px; color: var(--muted); }
.cert-code { font: 500 12px/1.4 var(--f-mono); color: var(--accent); margin-top: 6px; letter-spacing: 0.02em; }
.cert-pages { position: absolute; top: 24px; right: 24px; font: 500 10px/1 var(--f-mono); letter-spacing: 0.1em; padding: 6px 9px; border-radius: 999px; background: rgba(7,9,13,0.8); color: var(--accent-2); }
#eu-design .cert-paper { aspect-ratio: 360 / 480; }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 10px; padding: 70px 16px 30px; background: rgba(4,6,9,0.92); backdrop-filter: blur(14px); animation: fade 0.4s var(--ease); }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 14px; justify-items: center; min-height: 0; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 40px 80px rgba(0,0,0,0.6); animation: zoomIn 0.5s var(--ease); min-height: 0; }
@keyframes zoomIn { from { transform: scale(0.94); opacity: 0; } }
.lightbox figcaption { font: 500 13px/1.4 var(--f-mono); color: var(--accent-2); text-align: center; }
.lb-close { position: absolute; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 26px; line-height: 1; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 28px; line-height: 1; transition: background 0.3s, color 0.3s; }
.lb-nav:hover, .lb-close:hover { background: var(--accent); color: #001018; }
.lb-nav[hidden] { visibility: hidden; display: block; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .lightbox figure { grid-row: 1; } .lb-nav { position: absolute; bottom: 22px; } .lb-nav.prev { left: 20px; } .lb-nav.next { right: 20px; } }

/* ── 下載專區 ── */
.dl-list { max-width: 980px; margin: 0 auto; padding: 0 var(--pad) 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.dl-card { position: relative; display: grid; gap: 16px; padding: 34px; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: linear-gradient(150deg, var(--steel-2), var(--bg-2) 70%); transition: border-color 0.4s; }
.dl-card:hover { border-color: rgba(127,211,255,0.45); }
.dl-platform { font: 500 11px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.dl-card h3 { font-size: 28px; }
.dl-card p { color: var(--muted); }
.dl-card dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); }
.dl-card dt { font-size: 12px; color: var(--dim); }
.dl-card dd { margin: 4px 0 0; font: 500 14px/1.3 var(--f-mono); }
.dl-card .btn { justify-self: start; }
.dl-empty { grid-column: 1 / -1; text-align: center; padding: 70px 30px; border: 1px dashed var(--line-2); border-radius: calc(var(--radius) + 6px); display: grid; justify-items: center; gap: 16px; }
.dl-empty h3 { font-size: 32px; }
.dl-empty p { color: var(--muted); max-width: 44ch; }
.pulse-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s var(--ease) infinite; }
.dl-steps { max-width: 980px; margin: 0 auto; padding: 0 var(--pad) clamp(90px, 12vw, 160px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 28px; border-top: 1px solid var(--line-2); }
.step-card h4 { font-size: 20px; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .dl-steps { grid-template-columns: 1fr; } }

/* ── 聯絡／留言 ── */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(140px, 20vh, 200px) var(--pad) clamp(90px, 12vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.contact h1 { font-size: clamp(48px, 7vw, 104px); }
.contact-info { margin-top: 50px; display: grid; gap: 22px; }
.contact-info > * { display: grid; gap: 4px; color: var(--accent-2); font-size: 15px; }
.contact-info small { font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.contact-info a:hover { color: var(--accent); }
.form { align-self: start; display: grid; gap: 18px; padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: linear-gradient(160deg, var(--steel), var(--bg-2)); }
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,0.25);
  color: var(--text); font: 400 16px/1.5 var(--f-body); resize: vertical; transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(127,211,255,0.04); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: left top; transition: transform 0.35s var(--ease), color 0.3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.75); color: var(--accent); }
.field.is-bad input, .field.is-bad textarea { border-color: #ff6b6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff8a8a; }
.form-privacy { font-size: 12px; color: var(--dim); }
.form.is-sent { border-color: rgba(127,211,255,0.4); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ── 頁尾 ── */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 70px var(--pad) 34px; max-width: none; }
.footer-top { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 16px; font-size: 14px; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 120px); flex-wrap: wrap; }
.footer-cols div { display: grid; gap: 10px; align-content: start; font-size: 14px; color: var(--muted); }
.footer-cols h4 { font: 500 11px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max); margin: 60px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }

/* ── 不想看動畫的人（系統設定「減少動態效果」）直接看到完整內容 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none; }
  .statement-text .sw { opacity: 1; }
  .grain { display: none; }
}

/* 中文字寬跟英文的 ch 單位差很多，標題寬度另外設，避免最後一兩個字被擠到下一行 */
body[data-lang="zh"] .section-head h2,
body[data-lang="zh"] .hero-title,
body[data-lang="zh"] .statement-text { max-width: 16em; }
body[data-lang="zh"] .section-head h2 { max-width: 16em; }
/* 標題換行時讓每行長度接近，不會剩一個字孤零零掉到下一行 */
h1, h2, h3, .statement-text { text-wrap: balance; }
