/*
 * Shine Care 官網。
 *
 * 色票沿用產品（apps/web/src/app/globals.css）：深綠、青綠、冷灰白；CI 黃只當品牌記號——
 * 太陽、日弧、深綠底上的主要按鈕。白底上的 CI 黃對比只有 1.95，不當文字用。
 * 字體是昭源圓體（Chiron GoRound TC）：中文與拉丁字母都是圓頭，跟 Logo 太陽的單線圓頭是同一種筆觸。
 * 主視覺沿用客戶選的「深綠大卡片」；卡片裡是一天的日弧：07:30 從左邊地平線升起、17:30 在右邊落下。
 *
 * 動態只有兩件事：主視覺的太陽走一遍（載入時），與「一位長輩的一天」跟著捲動——
 * 太陽沿左邊的時間線往下走，走到的時刻亮起來，每一段的畫面先出中心的、再出家屬的手機。
 * 其他段落只有很輕、很短的進場（捲得快也不會留下一片空白）。系統設定「減少動態效果」時全部不動。
 * 進場的隱藏狀態都掛在 .js 底下：沒有 JS 時內容全部直接看得到。
 *
 * 可以點的東西不分手機桌機都至少 44×44px（Logo、主選單、語言切換、選單、頁尾連結、信箱、照片列的左右鈕）。
 */
:root {
  --pine: #073D3B;
  --pine-2: #0A4744;
  --teal-deep: #006D66;
  --teal-ink: #04635C;
  --teal: #008C82;
  --soft: #E4F4F1;
  --sun: #F6AB2B;
  --sun-hi: #FFBE4A;
  --mist: #F4F7F6;
  --paper: #FFFFFF;
  --ink: #173B39;
  --ink-2: #36504E;
  --muted: #5E7472;
  --line: #D7E4E1;
  --line-2: #B9D4D1;
  /* 還沒走到的時刻：大字 3:1（WCAG 大字標準），走到後換 --teal-ink */
  --time-idle: #6E9591;
  --on-pine: #FFFFFF;
  --on-pine-2: rgba(255, 255, 255, .80);
  --on-pine-3: rgba(255, 255, 255, .58);
  /* 本機草稿的「待補」框 */
  --todo-line: #D9A638;
  --todo-bg: #FFF8E4;
  --todo-ink: #6B4E00;
  --ff: "Chiron GoRound TC", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 32px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* 深綠面的細紙紋：一點顆粒，讓大面積深色不死板 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lb-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p, dd, figcaption { text-wrap: pretty; }
/* 不拆開：.nw 引號裡的詞與 Shine Care；.w 中文的一個詞（render.mjs 斷詞）；.ph 詞組，只在詞組之間換行 */
.nw, .w { white-space: nowrap; }
.ph { display: inline-block; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
section[id], li[id] { scroll-margin-top: 88px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 10px 18px; border-radius: 12px;
  background: var(--pine); color: #fff; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* 深綠面共用的紙紋（::before，排在內容與天空下面） */
.hero__card::before, .rules::before, .cta::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: var(--grain); opacity: .07; mix-blend-mode: soft-light;
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, box-shadow .25s ease, color .2s ease, transform .25s var(--ease);
}
.btn:active { transform: translateY(0) scale(.98); }
.btn--sun { background: var(--sun); color: var(--pine); box-shadow: 0 6px 18px -10px rgba(246, 171, 43, .6); }
.btn--line { color: var(--on-pine); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42); }
.btn--login, .btn--contact { min-height: 44px; padding: 0 20px; font-size: 15px; background: var(--teal-deep); color: #fff; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--sun:hover { background: var(--sun-hi); box-shadow: 0 14px 30px -12px rgba(246, 171, 43, .75); }
  .btn--line:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .78); }
  .btn--login:hover, .btn--contact:hover { background: var(--teal-ink); box-shadow: 0 10px 22px -12px rgba(0, 109, 102, .7); }
}

/* App Store 標章：Apple 的原檔，只縮放、不改樣子（App 上架後才出現） */
.store { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .25s var(--ease); }
.store img { height: 44px; width: auto; }
@media (hover: hover) { .store:hover { transform: translateY(-2px); } }

/* ---------- 頂欄 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  /* 幾乎不透明：底下捲過深綠滿版的段落時，半透明會透出一層灰綠 */
  background: rgba(244, 247, 246, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.top.is-scrolled { border-bottom-color: rgba(7, 61, 59, .08); box-shadow: 0 10px 30px -24px rgba(7, 61, 59, .45); }
.top__in {
  position: relative;
  width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto;
  height: 72px; display: flex; align-items: center; gap: 24px;
}
.top__brand { flex: none; display: flex; align-items: center; min-height: 44px; border-radius: 8px; }
.top__brand img { height: 32px; width: auto; }
.top__nav { display: flex; gap: 2px; margin-left: auto; }
.top__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.top__nav a:hover { background: rgba(7, 61, 59, .06); color: var(--ink); }
/* 現在捲到的那一段：下方一個 CI 黃的小點 */
.top__nav a.is-on { color: var(--ink); }
.top__nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--sun); opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .25s var(--ease);
}
.top__nav a.is-on::after { opacity: 1; transform: none; }
.top__end { display: flex; align-items: center; gap: 12px; }

/* 語言切換：每個選項整個 44px 高可以點；透明的 3px 邊框讓「目前的語言」那塊底色縮在框線裡面 */
.lang {
  display: inline-flex; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 3px solid transparent; border-radius: 999px; background-clip: padding-box;
  font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.lang a:not([aria-current]):hover { color: var(--ink); }
.lang a[aria-current="page"] { background-color: var(--soft); color: var(--teal-ink); }

/* 手機選單（960px 以下才出現）：「聯絡我們」一直留在頂欄，其他收進「選單」 */
.btn--contact, .menu { display: none; }
.menu__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1;
  list-style: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu[open] .menu__btn { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.menu__btn:focus-visible { border-radius: 999px; }
.menu__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu__icon path { transform-box: view-box; transform-origin: 12px 12px; transition: transform .3s var(--ease), opacity .2s ease; }
.menu[open] .menu__l1 { transform: rotate(45deg) translateY(5px); }
.menu[open] .menu__l2 { opacity: 0; }
.menu[open] .menu__l3 { transform: rotate(-45deg) translateY(-5px); }
.menu__panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  padding: 8px; border-radius: 24px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(7, 61, 59, .07), 0 32px 64px -28px rgba(7, 61, 59, .5);
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__panel { animation: menu-in .26s var(--ease); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: center; min-height: 56px; padding: 0 16px; border-radius: 16px;
  font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none;
  transition: background-color .2s ease;
}
.menu__nav a:hover, .menu__nav a:active { background: var(--mist); }
.menu__end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 6px; padding: 14px 8px 6px; border-top: 1px solid var(--line);
}
.lang--menu a { padding: 0 18px; font-size: 15px; }
.menu__end .btn--login { min-height: 48px; padding: 0 26px; font-size: 16px; }

/* ---------- 主視覺：深綠卡片裡的一天 ---------- */
.hero { padding: 8px var(--gutter) 0; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(1360px, 100%); margin-inline: auto;
  padding: 64px 56px 36px;
  border-radius: var(--r-xl);
  background: var(--pine); color: var(--on-pine);
  /* list＝時刻排在地平線上（JS 以清單量弧線）；free＝手機，清單在下面、弧線自己量 */
  --sky-axis: list;
}
.hero :focus-visible, .cta :focus-visible { outline-color: var(--sun); }

.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky__horizon { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.sky__path { fill: none; stroke: rgba(246, 171, 43, .45); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 11; }
.sky__trail { fill: none; stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; }
.sky__tick { fill: var(--pine); stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; transition: fill .3s ease, stroke .3s ease; }
.sky__tick.is-lit { fill: var(--sun); stroke: var(--sun); }
.sky__sun {
  position: absolute; left: 0; top: 0; width: 60px; height: auto;
  opacity: 0; will-change: transform;
  filter: drop-shadow(0 0 20px rgba(246, 171, 43, .4));
}
/* 太陽周圍的天光：跟著太陽走 */
.sky__glow {
  position: absolute; left: 0; top: 0; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 171, 43, .17), rgba(246, 171, 43, .05) 55%, rgba(246, 171, 43, 0));
  opacity: 0; will-change: transform; transition: opacity 1.2s ease;
}

.hero__copy { max-width: 780px; margin-inline: auto; padding-top: 76px; text-align: center; }
.hero__title { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.24; letter-spacing: .03em; }
.hero__title span { display: block; }
html[lang="en"] .hero__title { line-height: 1.12; letter-spacing: -.012em; }
/* 副標＝標語（site.slogan）：跟主標一組，比介紹文字大、全白 */
.hero__sub { margin-top: 14px; font-size: clamp(20px, 2vw, 26px); line-height: 1.5; letter-spacing: .06em; color: var(--on-pine); }
html[lang="en"] .hero__sub { letter-spacing: 0; }
.hero__lede { max-width: 33em; margin: 24px auto 0; font-size: 18px; color: var(--on-pine-2); }
html[lang="en"] .hero__lede { max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--on-pine-3); }
.hero__store { margin-top: 18px; }
/* 手機才有：卡片佔滿第一個畫面時，告訴人下面還有一位長輩的一天 */
.hero__next { display: none; }

/* 手機主視覺的太陽標誌（桌機、平板是日弧，不顯示這個）：
   外圈與雙手從九點鐘方向順時針畫出來 → 三道光芒由左到右亮起 → 背後泛起暖光 */
.mark { display: none; width: 92px; margin: 0 auto; }
.mark svg, .mark img { display: block; width: 100%; height: auto; overflow: visible; }
.mark__sweep { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: mark-sweep 1.15s cubic-bezier(.5, .05, .25, 1) .2s forwards; }
.mark__ray { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: mark-ray .55s var(--ease) forwards; }
.mark__ray--l { animation-delay: 1.15s; }
.mark__ray--m { animation-delay: 1.28s; }
.mark__ray--r { animation-delay: 1.41s; }
.mark__glow { opacity: 0; transform-box: fill-box; transform-origin: center; animation: mark-glow 1.8s ease-out 1.1s forwards; }
@keyframes mark-sweep { to { stroke-dashoffset: 0; } }
@keyframes mark-ray { from { opacity: 0; transform: translateY(6px) scale(.2); } to { opacity: 1; transform: none; } }
@keyframes mark-glow { 0% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; } 100% { opacity: .85; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .mark__sweep { stroke-dashoffset: 0; animation: none; }
  .mark__ray, .mark__glow { opacity: 1; transform: none; animation: none; }
}

/* 開場：文字依序浮上來（純 CSS，跟太陽一起開始） */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__title span, .hero__sub, .hero__lede, .hero__actions, .hero__note, .hero__store, .hero__next { animation: rise 1s var(--ease) both; }
  .hero__title span:nth-child(2) { animation-delay: .08s; }
  .hero__sub { animation-delay: .14s; }
  .hero__lede { animation-delay: .2s; }
  .hero__actions { animation-delay: .3s; }
  .hero__note { animation-delay: .38s; }
  .hero__store { animation-delay: .44s; }
  .hero__next { animation-delay: .5s; }
}

/* 地平線上的七個時刻：桌機排在時間的位置上，手機改成兩欄清單 */
.day { position: relative; height: 66px; margin: 52px 24px 0; }
.day__m { position: absolute; top: 0; left: calc(var(--t) * 100%); transform: translateX(-50%); }
.day__m a {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px; padding: 14px 2px 4px; border-radius: 10px; text-decoration: none; white-space: nowrap;
}
.day__m time { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--sun); font-variant-numeric: tabular-nums; transition: color .4s ease; }
.day__m span { font-size: 15px; line-height: 1.5; color: var(--on-pine); transition: color .4s ease; }
.day__m a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sun); }
.is-rising .day__m:not(.is-lit) time,
.is-rising .day__m:not(.is-lit) span { color: var(--on-pine-3); }

/* ---------- 一位長輩的一天 ---------- */
.days { padding: clamp(80px, 11vw, 144px) 0 clamp(64px, 8vw, 112px); }
.sechead { max-width: 42em; }
.sechead h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; letter-spacing: .02em; }
html[lang="en"] .sechead h2 { line-height: 1.15; letter-spacing: -.01em; }
.sechead p { margin-top: 16px; font-size: 19px; color: var(--ink-2); }
.sechead .sechead__note { margin-top: 8px; font-size: 14px; color: var(--muted); }

.story { position: relative; margin-top: clamp(56px, 7vw, 96px); }
/* 左邊的時間線：底線、走過的部分（青綠）、太陽。高度與「走到哪」由 site.js 設（--p）。
   時刻的點（.ch::before）畫在太陽上面；太陽經過點時淡出（--sun），點一直看得到 */
.rail { position: absolute; z-index: 0; left: 7px; top: 22px; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.rail__fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0px); border-radius: 2px; background: var(--teal); }
.rail__sun {
  position: absolute; left: 50%; top: 0; width: 30px; max-width: none; height: auto;
  transform: translate(-50%, calc(var(--p, 0px) - 52%));
  filter: drop-shadow(0 0 10px rgba(246, 171, 43, .55));
  opacity: 0; transition: opacity .25s ease;
}
.js .rail__sun { opacity: var(--sun, 1); }

.ch {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: 0 0 clamp(96px, 12vw, 168px) 56px;
}
.ch::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 14px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mist); box-shadow: inset 0 0 0 3px var(--teal);
  transition: background-color .45s ease, box-shadow .45s ease;
}
.js .ch::before { box-shadow: inset 0 0 0 2px var(--line-2); }
.js .ch.is-past::before { background: var(--teal); box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 5px rgba(0, 140, 130, .12); }
.ch--end { padding-bottom: 0; }
.js .ch--end.is-past::before { background: var(--sun); box-shadow: inset 0 0 0 2px var(--sun), 0 0 0 6px rgba(246, 171, 43, .18); }

.ch__time {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  font-size: clamp(44px, 5vw, 68px); font-weight: 300; line-height: .95;
  color: var(--teal-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  transition: color .6s ease;
}
.js .ch__time { color: var(--time-idle); }
.js .ch.is-past .ch__time { color: var(--teal-ink); }
.ch__until { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.ch__title { margin-top: 22px; font-size: 27px; line-height: 1.4; }
.ch__body { margin-top: 14px; max-width: 30em; color: var(--ink-2); }
html[lang="en"] .ch__body { max-width: 34em; }
.ch__who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ch__who li {
  padding: 1px 12px; border-radius: 999px;
  background: var(--soft); color: var(--teal-ink);
  font-size: 14px; font-weight: 700; line-height: 1.85;
}

/* 每一段的進場：文字一行一行浮上來；中心的畫面先出、家屬的手機晚一拍。時間短，捲得快也跟得上 */
.js .ch .ch__text > * { opacity: 0; transform: translateY(16px); }
.js .ch .shot__in { opacity: 0; transform: translateY(28px); }
.js .ch .shot--phone .shot__in { transform: translateY(48px); }
.js .ch.is-in .ch__text > *,
.js .ch.is-in .shot__in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .6s ease;
}
.js .ch.is-in .ch__text > :nth-child(2) { transition-delay: .04s; }
.js .ch.is-in .ch__text > :nth-child(3) { transition-delay: .08s; }
.js .ch.is-in .ch__text > :nth-child(n+4) { transition-delay: .12s; }
.js .ch.is-in .shot--desk .shot__in, .js .ch.is-in .shot--panel .shot__in { transition-delay: .06s; }
.js .ch.is-in .shot--phone .shot__in { transition-delay: .2s; transition-duration: .5s, .7s; }

/* 截圖：整個框是按鈕，點了放大 */
.shot__frame {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  font: inherit; color: inherit; cursor: zoom-in;
  overflow: hidden; border-radius: var(--r-lg); background: var(--paper);
  box-shadow: 0 0 0 1px rgba(7, 61, 59, .07), 0 30px 60px -32px rgba(7, 61, 59, .38);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.shot__frame img { width: 100%; height: auto; }
.shot__frame:focus-visible { outline-offset: 5px; }
@media (hover: hover) {
  .shot__frame:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(7, 61, 59, .09), 0 44px 80px -36px rgba(7, 61, 59, .5); }
}
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.shot--phone .shot__frame {
  border: 7px solid var(--pine); border-radius: 32px;
  box-shadow: 0 40px 64px -30px rgba(7, 61, 59, .6);
}

.media { position: relative; }
.media--pair { padding-bottom: 15%; }
.media--pair .shot--desk { width: 84%; }
/* 手機壓在中心畫面的一角 */
.media--pair .shot--phone { position: absolute; right: 0; bottom: 0; width: 30%; }

/* ---------- 捲動放大（桌機，html.cine） ----------
   右邊的畫面停住（.stage sticky），下面的 runway 撐出捲動距離；site.js 依捲到哪設：
     .shot        --lx --ly --ls（整張移動、放大）、--op（變淡）
     .shot__cam   --z --tx --ty（框裡的鏡頭推近）
     .spot        --on（重點的框亮起，框外變暗） */
.shot__cam { position: relative; display: block; transform-origin: 0 0; }
.spot {
  position: absolute; pointer-events: none;
  left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  width: calc(var(--w) * 100%); height: calc(var(--h) * 100%);
  border-radius: calc(12px / var(--z, 1));
  opacity: var(--on, 0);
  box-shadow:
    0 0 0 calc(2.5px / var(--z, 1)) var(--sun),
    0 0 calc(26px / var(--z, 1)) calc(2px / var(--z, 1)) rgba(246, 171, 43, .45),
    0 0 0 200vmax rgba(4, 30, 29, .44);
}
.cine .shot {
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0) scale(var(--ls, 1));
  opacity: var(--op, 1);
  will-change: transform, opacity;
}
.cine .shot__cam {
  transform: translate(calc(var(--tx, 0) * 100%), calc(var(--ty, 0) * 100%)) scale(var(--z, 1));
  will-change: transform;
}
.cine .shot--desk, .cine .shot--panel { position: relative; }
.cine .shot.is-front { z-index: 3; }
.cine .ch--zoom .stage { position: sticky; top: var(--stick, 120px); z-index: 1; }
.stage__runway { display: none; }
.cine .stage__runway { display: block; height: calc(var(--n, 2) * 66vh); }
/* 放大中的截圖不要再「浮起來」，免得跟鏡頭打架 */
.cine .ch--zoom .shot__frame:hover { transform: none; }

/* 左邊「畫面上的重點」：捲到哪一個就亮哪一個，點了跳過去 */
.ch__steps { display: none; }
.cine .ch__steps { display: grid; gap: 6px; margin-top: 26px; }
.ch__step {
  display: flex; align-items: baseline; gap: 12px; width: 100%;
  padding: 10px 14px; border: 0; border-radius: 14px; background: transparent;
  font: inherit; font-size: 16px; line-height: 1.6; text-align: left; color: var(--muted); cursor: pointer;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.ch__step:hover { color: var(--ink-2); }
.ch__step-n {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; font-weight: 700; line-height: 1; color: var(--teal-ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
  transform: translateY(-1px);
}
.ch__step.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 14px 34px -22px rgba(7, 61, 59, .4); }
.ch__step.is-on .ch__step-n { background: var(--sun); color: var(--pine); box-shadow: none; }

/* 特寫卡（手機寬度、減少動態時取代捲動放大）：從截圖裁出重點，捲到時鏡頭推近；點了用原尺寸看整張 */
.zooms { display: grid; gap: 22px; max-width: 560px; margin-top: 30px; }
.cine .zooms { display: none; }
.zoom__view {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0;
  overflow: hidden; aspect-ratio: var(--ar);
  border-radius: 16px; background: var(--paper);
  font: inherit; color: inherit; cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(7, 61, 59, .08), 0 24px 48px -28px rgba(7, 61, 59, .4);
}
.zoom__view::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--sun); pointer-events: none; }
.zoom__view:focus-visible { outline-offset: 4px; border-radius: 16px; }
.zoom__img { position: absolute; background-size: 100% 100%; background-repeat: no-repeat; }
.zoom figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.zoom__n {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun); color: var(--pine); font-size: 12px; font-weight: 700; line-height: 1; transform: translateY(-1px);
}
.js .zoom[data-reveal] { opacity: 0; transform: translateY(18px); }
.js .zoom[data-reveal] .zoom__img { transform: scale(.84); }
.js .zoom.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .zoom.is-in .zoom__img { transform: none; transition: transform 1.1s var(--ease) .1s; }
.media--phone-left .shot--desk { margin-left: auto; }
.media--phone-left .shot--phone { right: auto; left: 0; }
.media--phone-left .shot--desk figcaption { text-align: right; }
.media--duo {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: 28px; align-items: end; max-width: 560px; margin-left: auto;
}

/* 收尾圖（到家）：主視覺日弧的縮小版。捲到時日弧等速畫出來、時刻依序亮、太陽最後出現 */
.dusk { max-width: 560px; }
.dusk__card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 24px; background: var(--pine);
  box-shadow: 0 30px 60px -32px rgba(7, 61, 59, .5);
}
.dusk__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .07; mix-blend-mode: soft-light;
}
.dusk svg { display: block; width: 100%; height: auto; }
.dusk__horizon { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.dusk__path { fill: none; stroke: rgba(246, 171, 43, .4); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 9; }
.dusk__trail { fill: none; stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; }
.dusk__tick { fill: var(--sun); }
.dusk__time { fill: rgba(255, 255, 255, .62); font-family: var(--ff); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dusk figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.js .ch .dusk { opacity: 0; transform: translateY(28px); }
.js .ch.is-in .dusk { opacity: 1; transform: none; transition: opacity .55s var(--ease) .06s, transform .65s var(--ease) .06s; }
.js .dusk__trail { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .ch.is-in .dusk__trail { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s linear .3s; }
.js .dusk__tick, .js .dusk__time { opacity: .2; }
.js .ch.is-in .dusk__tick, .js .ch.is-in .dusk__time { opacity: 1; transition: opacity .35s ease var(--d, 0s); }
.js .dusk__sun, .js .dusk__glow { opacity: 0; }
.js .ch.is-in .dusk__sun, .js .ch.is-in .dusk__glow { opacity: 1; transition: opacity .9s ease 2.3s; }

/* 燈箱：預設整張放進畫面；整張縮到字看不清（手機）就用原尺寸打開、可以上下左右拖，對準重點。
   「放大看／看整張」切換，點圖本身也切換。尺寸由 site.js 算（.lb__img 的 width/height） */
.lb {
  width: min(96vw, 1440px); height: 94vh; max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: visible;
}
.lb[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) { .lb[open] { animation: lb-in .28s var(--ease); } }
.lb::backdrop { background: rgba(4, 30, 29, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lb__bar { flex: none; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lb__cap { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.lb__mode, .lb__close {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
}
.lb__mode { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42); }
.lb__mode[hidden] { display: none; }
.lb__mode:hover, .lb__close:hover { background: rgba(255, 255, 255, .2); }
.lb__mode:focus-visible, .lb__close:focus-visible { outline-color: var(--sun); border-radius: 999px; }
.lb__view {
  flex: 1 1 auto; min-height: 0; display: flex; overflow: auto;
  border-radius: 14px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.lb__view:focus-visible { outline-color: var(--sun); outline-offset: -3px; }
/* margin:auto 置中：圖比框大時，左上角還捲得到（place-items:center 會把超出的部分切掉） */
.lb__img { flex: none; margin: auto; max-width: none; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); cursor: zoom-in; }
.lb.is-full .lb__img { border-radius: 0; box-shadow: none; cursor: grab; }
.lb.is-photo .lb__img { cursor: default; }
.lb.is-dragging .lb__view { cursor: grabbing; user-select: none; }
.lb.is-dragging .lb__img { cursor: grabbing; }
.lb__hint { display: none; flex: none; margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); text-align: center; }
.lb.is-full .lb__hint { display: block; }

/* ---------- 守住的事（深綠滿版） ---------- */
.rules {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(88px, 11vw, 152px) 0;
  background: radial-gradient(1000px 520px at 85% 0%, rgba(246, 171, 43, .07), transparent 70%), var(--pine);
  color: var(--on-pine);
}
.rules__title { max-width: 18em; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; letter-spacing: .02em; }
html[lang="en"] .rules__title { line-height: 1.15; letter-spacing: -.01em; }
.rules__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; margin-top: 56px; }
.rule { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.rule h3 { font-size: 23px; line-height: 1.45; color: #fff; }
.rule p { max-width: 30em; margin-top: 12px; color: var(--on-pine-2); }

/* ---------- 給機構 ---------- */
.centers { padding: clamp(88px, 11vw, 144px) 0 clamp(48px, 6vw, 80px); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; margin-top: 48px; }
.feat {
  display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
html[lang="en"] .feat { grid-template-columns: 10.5em minmax(0, 1fr); }
.feat dt { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--teal-ink); }
.feat dd { font-size: 16px; color: var(--ink-2); }

/* ---------- 關於我們 ---------- */
.about { padding: clamp(88px, 11vw, 144px) 0 clamp(40px, 5vw, 64px); }
.about .sechead p { max-width: 38em; }

/* 場域照片：一整排左右滑。照片同高（--ph，跟 render.mjs 的 FIELD_H 一樣）、寬度照比例。
   電腦、平板：照片列跟內容一樣寬，左右都對齊內容（不伸到畫面邊緣），右邊切到一半的那張看得出還有；
   兩邊各多留 --edge（8px）給照片的焦點框，不然會被切掉。手機：伸到畫面兩邊，第一張對齊內容的左邊（760px 以下）。
   每組上面一條細線寫主題，線的頭是一個太陽色的點（跟一天的時間線同一種記號）。 */
.field { --ph: 300px; --edge: 8px; margin-top: clamp(44px, 5vw, 64px); }
/* position: relative：裡面絕對定位的東西（按鈕裡給讀螢幕的 .vh）才會被這一排裁掉，不然會撐寬整頁 */
.field__scroller {
  width: calc(min(1200px, 100% - 2 * var(--gutter)) + 2 * var(--edge)); margin-inline: auto;
  position: relative; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  padding-bottom: 14px;
}
.field__scroller:focus-visible { outline-offset: -3px; }
/* 有 JS 時捲軸換成下面的進度條（沒有 JS 時留著原生捲軸，滑鼠也拖得動） */
.js .field__scroller { scrollbar-width: none; padding-bottom: 0; }
.js .field__scroller::-webkit-scrollbar { display: none; }
.field__strip { display: flex; gap: 40px; width: max-content; padding-inline: var(--edge); }
.field__group { display: grid; align-content: start; gap: 16px; }
.field__theme { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--teal-ink); white-space: nowrap; }
.field__theme::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.field__theme::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--line-2); }
.field__photos { display: flex; gap: 16px; }
.field__item { flex: none; width: calc(var(--ph) * var(--ar)); scroll-snap-align: start; }
.field__view {
  position: relative; display: block; width: 100%; height: var(--ph); margin: 0; padding: 0; border: 0;
  overflow: hidden; border-radius: var(--r-lg); background: var(--soft);
  font: inherit; color: inherit; cursor: zoom-in;
}
.field__view img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .field__view:hover img { transform: scale(1.03); } }
.field__view:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
.field__photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
/* 進度條＋左右鈕（site.js 才有）：進度條的亮段＝看得到的那一段（--fx 從哪裡開始、--fw 多寬） */
.field__foot { display: none; }
.js .field__foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.field__track { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.field__thumb {
  position: absolute; top: 0; height: 100%; border-radius: 2px; background: var(--teal);
  left: calc(var(--fx, 0) * 100%); width: calc(var(--fw, .3) * 100%);
}
.field__btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.field__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.field__btn[aria-disabled="true"] { opacity: .38; cursor: default; }
.field__btn:focus-visible { border-radius: 50%; }
@media (hover: hover) { .field__btn:not([aria-disabled="true"]):hover { background: var(--pine); color: #fff; box-shadow: none; } }
/* 觸控的裝置用手指滑：不放左右鈕，只留進度條 */
@media (hover: none) { .field__btn { display: none; } }

.about__quote { max-width: 34em; margin-top: 48px; }
.about__quote p { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.6; color: var(--ink); }
.about__quote footer { margin-top: 12px; font-size: 15px; color: var(--muted); }
.about__sub { margin-top: clamp(64px, 8vw, 104px); font-size: 22px; line-height: 1.4; }
/* 核心團隊：五個人一排（桌機）→ 三個一排（平板）→ 照片在左、字在右（手機） */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 28px; margin-top: 28px; }
.member { display: grid; align-content: start; gap: 18px; }
.member__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: var(--soft); }
.member__text { display: grid; gap: 2px; }
.member__name { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.member__alt { display: block; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--muted); }
.member__role { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--teal-ink); }
.member__bio { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
html[lang="en"] .member__bio { line-height: 1.6; }
.member--todo .member__photo { border: 2px dashed var(--todo-line); background: var(--todo-bg); }
.member--todo .member__name, .member--todo .member__role, .member--todo .member__bio { color: #B49A68; }

/* ---------- 合作夥伴：一排，細線隔開；logo 照各家的顏色 ---------- */
.partners { padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.partners__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.partners__head h2 { font-size: 22px; line-height: 1.4; letter-spacing: .02em; }
.partners__head p { font-size: 15px; color: var(--muted); }
.partners__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border-block: 1px solid var(--line); }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 128px; padding: 20px 16px; text-align: center;
}
.partner + .partner { border-left: 1px solid var(--line); }
/* 高度 --h 由 render.mjs 照長寬比算（每個 logo 一樣的面積）；手機縮成八成 */
.partner img { width: auto; height: var(--h, 38px); max-width: 100%; object-fit: contain; }
.partner__name { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; color: var(--ink-2); }
.partner__note { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* 其他段落的進場：很輕、很短，只浮一點點 */
.js [data-reveal]:not(.ch):not(.zoom) { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in:not(.ch):not(.zoom) {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- 聯絡 ---------- */
.contact { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 112px); }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: radial-gradient(640px 420px at 88% 100%, rgba(246, 171, 43, .13), transparent 70%), var(--pine);
  color: var(--on-pine);
}
/* 產品首頁主視覺卡的那個放大太陽紋 */
.cta__sun { position: absolute; z-index: -1; right: -48px; bottom: -120px; width: 420px; height: auto; opacity: .14; }
.cta h2 { max-width: 15em; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.32; letter-spacing: .02em; }
html[lang="en"] .cta h2 { max-width: 17em; line-height: 1.15; letter-spacing: -.01em; }
.cta__body { max-width: 32em; margin-top: 16px; font-size: 18px; color: var(--on-pine-2); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.cta__store { margin-left: 8px; }
/* 信箱：寫出來，旁邊一個「複製」——手機沒設定郵件 App 的人也拿得到 */
.cta__reach { display: grid; justify-items: start; gap: 10px; margin-top: 32px; }
.cta__lead { font-size: 15px; color: var(--on-pine-3); }
.mail {
  display: inline-flex; align-items: stretch; max-width: 100%; min-height: 48px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
}
.mail__addr {
  display: flex; align-items: center; min-width: 0; padding: 0 14px 0 22px; border-radius: 999px 0 0 999px;
  font-size: 17px; font-weight: 700; color: var(--on-pine); text-decoration: none; white-space: nowrap;
}
.mail__addr:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sun); }
.mail__copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: 48px; padding: 0 20px 0 14px;
  border: 0; border-left: 1px solid rgba(255, 255, 255, .18); border-radius: 0 999px 999px 0;
  background: transparent; color: var(--on-pine-2); font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.mail__copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mail__copy:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mail__copy.is-done { color: var(--sun); }
.mail a:focus-visible, .mail__copy:focus-visible { outline-offset: -3px; }
/* 官方信箱下面另外列的聯絡人：「聯絡人」小字、名字、職稱、信箱（信箱整個 44px 高可以點） */
.cta__person { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--on-pine-2); }
.cta__person-label { font-size: 15px; color: var(--on-pine-3); }
.cta__person-name { font-weight: 700; color: var(--on-pine); }
.cta__person-reach a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--on-pine); font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px;
}
.cta__person-reach a:hover { text-decoration-color: var(--sun); }

/* ---------- 頁尾 ---------- */
.foot { padding: 40px 0 28px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; }
.foot__brand { max-width: 34em; }
/* 32px（跟頂欄桌機一樣）：旁邊的 NVIDIA 徽章至少要 30px 高，又不能比我們的 logo 大 */
.foot__logo { height: 32px; width: auto; }
.foot__slogan { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.foot__company, .foot__addr { font-size: 14px; font-style: normal; line-height: 1.7; color: var(--muted); }
.foot__company { margin-top: 8px; }
/* 社群：圓形小按鈕，滑過換成深綠 */
.foot__social { display: flex; gap: 10px; margin-top: 18px; }
.foot__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .25s var(--ease);
}
.foot__social svg { width: 18px; height: 18px; fill: currentColor; }
.foot__social a:focus-visible { border-radius: 50%; }
@media (hover: hover) {
  .foot__social a:hover { background: var(--pine); color: #fff; box-shadow: none; transform: translateY(-2px); }
}
/* NVIDIA Inception 會員徽章（design.nvidia.com 的 Member Badge 規範）：原檔照比例縮，不改色、不改字、不裁、不加濾鏡。
   圖檔四周帶白邊，黑框只佔圖高的 165/217：圖高 40px＝黑框 30.4px，
   到得了 NVIDIA 的螢幕最小 30px，也不比旁邊 32px 的 Shine Care logo 高（寬 92px，也比 logo 的 140px 窄） */
.foot__inception { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.foot__inception img { flex: none; height: 40px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-left: auto; margin-top: -10px; font-size: 15px; }
.foot__links a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 28px; font-size: 13px; color: var(--muted);
}
/* NVIDIA 的商標聲明：最下面自己一行的小字 */
.foot__tm { flex-basis: 100%; font-size: 12px; line-height: 1.6; }

/* ---------- 本機草稿：還沒拿到的內容（正式版不會有這些） ---------- */
.draftbar { margin: 0; padding: 10px var(--gutter); background: #FFE9A8; color: #5B4300; font-size: 14px; line-height: 1.5; text-align: center; }
.todo {
  display: block; max-width: 40em; margin-top: 16px; padding: 12px 16px;
  border: 2px dashed var(--todo-line); border-radius: 14px; background: var(--todo-bg);
  color: var(--todo-ink); font-size: 14px; font-weight: 400; line-height: 1.65; text-align: left;
}
.sechead .todo { font-size: 14px; color: var(--todo-ink); }
.todo b { font-weight: 700; }
.todo__suggest { display: block; margin-top: 6px; color: #33402F; }
.todo--dark { background: rgba(255, 233, 168, .08); border-color: rgba(255, 214, 120, .55); color: #FFE3A0; }
.todo--dark .todo__suggest { color: rgba(255, 255, 255, .8); }
.todo--tag { display: inline-block; margin-top: 8px; padding: 0 8px; border-width: 1.5px; border-radius: 8px; font-size: 12px; }

/* ---------- 寬螢幕：每一段的文字跟著畫面走（sticky），讀完那一段才離開 ---------- */
@media (min-width: 981px) {
  .ch__text { position: sticky; top: 120px; }
}

/* ---------- 窄螢幕 ---------- */
/* 平板：卡片變窄，弧線包不住標題（太陽會落在介紹文字上）→ 弧線移到上方一條天空，
   時刻軸緊接在天空下面，標題與按鈕在最下面。英文兩個字的標籤改成兩行。 */
@media (max-width: 1100px) {
  .hero__card { display: flex; flex-direction: column; padding: 0 40px 40px; }
  .sky { position: relative; inset: auto; order: 1; height: clamp(190px, 25vw, 250px); margin: 0 -40px; }
  .day { order: 2; height: 82px; margin: 0 24px; }
  .day__m a { max-width: 5.6em; white-space: normal; text-align: center; line-height: 1.3; }
  .day__m time, .day__m span { font-size: 14px; }
  .hero__copy { order: 3; padding-top: 24px; }
}
@media (max-width: 1099px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .ch { grid-template-columns: minmax(0, 1fr); padding-left: 44px; }
  .media { max-width: 640px; }
  .field { --ph: 260px; }
}
/* 960px 以下：主選單收進「選單」（四個連結＋語言＋登入，英文版在 900px 左右就會擠到換行），頂欄只留 Logo、聯絡我們、選單。頁尾的連結與語言切換加大到 44px */
@media (max-width: 960px) {
  .top__nav, .top__end { display: none; }
  .btn--contact { display: inline-flex; margin-left: auto; }
  .menu { display: block; }
  .foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 32px; margin-left: 0; margin-top: 0; }
  .lang--foot a { padding: 0 18px; font-size: 15px; }
}
/* 手機：不放日弧（太窄，弧線與時刻擠在一起），改成太陽標誌畫出來的動畫；一天的時刻在下面「一位長輩的一天」 */
@media (max-width: 760px) {
  .hero { padding-top: 4px; }
  .hero__card { padding: 30px 20px 18px; border-radius: 24px; }
  .sky, .day { display: none; }
  .mark { display: block; width: 80px; }
  .hero__copy { order: 3; padding-top: 14px; }
  .hero__title { font-size: 34px; }
  html[lang="en"] .hero__title { font-size: 31px; }
  .hero__sub { margin-top: 10px; font-size: 19px; }
  .hero__lede { margin-top: 14px; font-size: 16px; line-height: 1.75; }
  /* 兩顆按鈕並排（放不下才換行）：第一個畫面省一點高度 */
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn { flex: 1 1 auto; padding: 0 18px; }
  .hero__note { margin-top: 14px; font-size: 13px; }
  .hero__next {
    display: inline-flex; align-items: center; gap: 4px;
    min-height: 44px; margin-top: 8px; padding: 0 14px; border-radius: 999px;
    font-size: 15px; font-weight: 700; color: var(--on-pine-2); text-decoration: none;
  }
  .hero__next svg { width: 20px; height: 20px; fill: none; stroke: var(--sun); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .days { padding-top: 56px; }
  .field { --ph: 220px; --edge: var(--gutter); }
  .field__scroller { width: auto; margin-inline: 0; }
  .field__strip { gap: 28px; }
  .field__photos { gap: 12px; }
  .team { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .member { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
  .member__photo { border-radius: 20px; }
  .member__name { font-size: 19px; }
  .lb { width: 100vw; height: 100vh; height: 100dvh; margin: 0; padding: max(10px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom)); }
  .lb__bar { gap: 8px; margin-bottom: 10px; }
  .lb__cap { font-size: 14px; }
  .lb__mode, .lb__close { padding: 0 14px; font-size: 14px; }
  .lb__view { border-radius: 10px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero__next svg { animation: nudge 1.6s ease-in-out 2.4s 3; }
}
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
@media (max-width: 640px) {
  .top__in { height: 60px; gap: 8px; }
  .top__brand img { height: 26px; }
  .btn--contact { padding: 0 16px; }
  .menu__btn { padding: 0 14px 0 10px; }
  .rules__grid, .feats { grid-template-columns: minmax(0, 1fr); }
  .rules__grid { gap: 40px; }
  .feat, html[lang="en"] .feat { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ch { padding-left: 36px; padding-bottom: 88px; }
  /* 畫面往左伸到時間線旁邊（不碰到太陽）：截圖與特寫卡寬一點，字大一點 */
  .ch__media { margin-left: -16px; }
  .ch__title { font-size: 23px; }
  .rail__sun { width: 26px; }
  .media--duo { gap: 16px; }
  /* 手機寬度：中心畫面與家屬手機上下排，不疊（疊起來兩段說明會撞在一起） */
  .media--pair { display: grid; gap: 24px; padding-bottom: 0; }
  .media--pair .shot--desk, .media--phone-left .shot--desk { width: 100%; margin: 0; }
  .media--pair .shot--phone, .media--phone-left .shot--phone { position: static; justify-self: center; width: 62%; transform: none; }
  .media--phone-left .shot--desk figcaption { text-align: left; }
  .shot figcaption { text-align: left; }
  .shot--phone .shot__frame { border-width: 5px; border-radius: 22px; }
  .partners__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner { min-height: 104px; }
  .partner img { height: calc(var(--h, 38px) * .8); }
  .partner + .partner { border-left: 0; }
  .partner:nth-child(even) { border-left: 1px solid var(--line); }
  .partner:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta__sun { width: 280px; right: -60px; bottom: -80px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__store { align-self: center; margin: 6px 0 0; }
  .cta__reach { justify-items: stretch; }
  .mail { width: 100%; }
  /* 信箱一定排一行：字小一點、「複製」窄一點 */
  .mail__addr { flex: 1; padding: 0 8px 0 18px; font-size: 15px; }
  .mail__copy { gap: 4px; padding: 0 16px 0 12px; font-size: 14px; }
}
@media (max-width: 380px) {
  /* 一張橫的照片不要剛好佔滿：留一點下一張的邊，看得出可以滑 */
  .field { --ph: 200px; }
  .top__brand img { height: 22px; }
  .btn--contact { padding: 0 12px; font-size: 14px; }
  .menu__btn { gap: 4px; padding: 0 12px 0 8px; font-size: 14px; }
}
/* 再窄（320px）：「複製」只留圖示（按鈕的名字還是「複製信箱」） */
@media (max-width: 350px) {
  .mail__addr { font-size: 14px; }
  .mail__copy { padding: 0 14px 0 12px; }
  .mail__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
