/* =========================================================
   潘婷 Pantene 台灣 — 設計系統「香檳金 × 珍珠白 × 柔玫瑰」
   色彩取自潘婷現行官方主視覺（香港官網 2026）：香檳金光暈、珍珠白、柔粉瓶身、金色 Pro-V 膠囊
   WCAG 2.2 AA：文字對比 ≥ 4.5:1、非文字 ≥ 3:1、
   200% 放大與 320px 重排無遮擋、焦點可見且不被遮蔽、
   prefers-reduced-motion 與「暫停動態」開關（2.2.2）
   ========================================================= */
/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */


/* ---------- 設計變數 ---------- */
:root {
  /* 色彩（括號內為對比值；底色見註） */
  --c-ink: #2B1D14;            /* 可可棕文字：珍珠白 15.4:1、香檳 13.8:1、玫瑰 13.6:1 */
  --c-ink-2: #5C4A3B;          /* 次要文字：珍珠白 7.9:1、香檳 7.1:1、玫瑰 7.0:1 */
  --c-paper: #FBF8F3;          /* 珍珠白 */
  --c-white: #FFFFFF;
  --c-champ: #F4EBDD;          /* 香檳底 */
  --c-rose: #F6E7E4;           /* 柔玫瑰底 */
  --c-line: #8C7A69;           /* 表單邊框／分隔：珍珠白 3.9:1、香檳 3.5:1 */
  --c-line-soft: #E4D8C6;      /* 純裝飾 */
  --c-gold: #C9A45C;           /* 裝飾香檳金：線條、膠囊、大面積光暈（不用於文字） */
  --c-gold-deep: #7A5A12;      /* 金棕文字：珍珠白 6.0:1、香檳 5.4:1、玫瑰 5.3:1 */
  --c-rose-deep: #9B4F55;      /* 玫瑰重點文字：珍珠白 5.4:1 */
  --c-cocoa: #2A1D14;          /* 深色區底 */
  --c-on-dark: #F7F1E8;        /* 深底文字 14.6:1 */
  --c-on-dark-2: #CDBFAE;      /* 深底次要文字 9.1:1 */
  --c-gold-light: #E6C887;     /* 深底金字 10.1:1 */
  --c-dark-line: #4A3A2C;      /* 深底純裝飾線 */
  --c-dark-line-strong: #9A8A78; /* 深底 UI 邊框 4.9:1 */
  --c-error: #B3261E;          /* 珍珠白 6.2:1、香檳 5.5:1 */
  --c-error-on-dark: #FFB4AB;  /* 深底 9.6:1 */
  --c-success: #2F6B3A;

  /* 官方主視覺光暈 */
  --g-champagne: radial-gradient(120% 90% at 15% 10%, #FFFDF8 0%, var(--c-champ) 55%, #EAD9BD 100%);
  --g-rose: linear-gradient(120deg, var(--c-champ) 0%, var(--c-rose) 100%);

  /* 字型 */
  --f-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;

  /* 字級（rem + clamp，隨使用者字型設定與放大縮放） */
  --fs-xs: 0.875rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.75rem);
  --fs-3xl: clamp(2.5rem, 1.2rem + 5vw, 6rem);
  --fs-hero: clamp(3rem, 1rem + 6.5vw, 8rem);
  --lh: 1.75;
  --lh-tight: 1.2;

  /* 間距：4/8 倍數 */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem;    --sp-7: 3rem;   --sp-8: 4rem;    --sp-9: 6rem;  --sp-10: 8rem;
  --section-y: clamp(3.5rem, 1.5rem + 5vw, 6.5rem); /* 段落上下留白：手機 56px、1440 寬約 104px */

  --radius: 2px;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --container: 90rem;
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 4rem);
  --shadow-soft: 0 24px 48px -24px rgb(122 90 18 / 0.28);

  /* 動態 */
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-reveal: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 0px; /* 由 main.js 依實際高度設定，僅於固定頁首時使用 */
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4)); /* 2.4.11 */
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
  margin: 0 0 var(--sp-4);
}
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
/* 大標：中文詞組不拆開（於 <wbr>／標點處換行），避免最後一行只剩 1–2 字 */
.hero-title, .chapter-title, .manifesto h2, .newsletter h2, .need-panel h3, .story-step h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.routine span, .chapter-lead, .story-meta, .faq-item summary h3 { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-gold-deep); text-underline-offset: 0.22em; }
a:hover { color: var(--c-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--c-gold); color: var(--c-ink); }

.latin {
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

/* 焦點：雙色外框，深淺背景皆 ≥ 3:1 */
:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--c-white);
}
.on-dark :focus-visible {
  outline-color: var(--c-gold-light);
  box-shadow: 0 0 0 6px var(--c-cocoa);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-2);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 700;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; color: var(--c-paper); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--champ { background: var(--c-champ); }
.section--rose { background: var(--g-rose); }
.section--dark { background: var(--c-cocoa); color: var(--c-on-dark); }

/* 章節標頭：編號 + 英文斜體 + 中文大標 */
.chapter {
  display: grid;
  gap: var(--sp-5) var(--sp-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(var(--sp-6), 3.5vw, var(--sp-8));
}
@media (min-width: 64em) {
  .chapter { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.chapter-kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-gold-deep);
}
.chapter-kicker::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: var(--c-gold);
}
.on-dark .chapter-kicker { color: var(--c-gold-light); }
.chapter-title {
  font-size: var(--fs-3xl);
  margin: 0;
  letter-spacing: 0.02em;
}
.chapter-title .latin {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--c-gold-deep);
  margin-bottom: var(--sp-2);
}
.on-dark .chapter-title .latin { color: var(--c-gold-light); }
.chapter-lead {
  font-size: var(--fs-md);
  color: var(--c-ink-2);
  max-width: 34em;
  margin: 0;
}
.on-dark .chapter-lead { color: var(--c-on-dark-2); }

/* ---------- 按鈕與連結 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--c-ink);
  border-radius: var(--radius-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.btn::before { /* 香檳金由下而上填滿 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-gold);
  transform: translateY(101%);
  transition: transform var(--t-base) var(--ease-out);
}
.btn:hover { color: var(--c-ink); border-color: var(--c-gold); }
.btn:hover::before { transform: none; }
.btn .od-icon { --od-icon-size: 1.125rem; transition: transform var(--t-base) var(--ease-out); }
.btn:hover .od-icon { transform: translateX(4px); }
.btn--outline { background: transparent; color: var(--c-ink); }
.btn--light { background: var(--c-paper); color: var(--c-ink); border-color: var(--c-paper); }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size var(--t-base) var(--ease-out);
}
.link-line:hover { color: inherit; background-size: 0 1px; background-position: 100% calc(100% - 8px); }
.link-line .od-icon { --od-icon-size: 1.125rem; transition: transform var(--t-base) var(--ease-out); }
.link-line:hover .od-icon { transform: translateX(4px); }

/* ---------- 頁首（珍珠白） ---------- */
.site-header {
  position: relative; /* 小螢幕與放大時不固定 */
  z-index: 70;
  background: rgb(251 248 243 / 0.94);
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line-soft);
  backdrop-filter: blur(12px);
}
@media (min-width: 64em) and (min-height: 40em) {
  .site-header { position: sticky; top: 0; }
}
.header-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 4.5rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { display: block; width: clamp(7rem, 5rem + 4vw, 8.75rem); height: auto; }
.on-dark .brand img { filter: invert(1); }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; gap: var(--sp-2); }
.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: var(--sp-4); right: var(--sp-4); bottom: 6px;
  height: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}
.primary-nav a:hover { color: var(--c-gold-deep); }
.primary-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 64em) {
  .primary-nav { display: block; margin-inline: auto; }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
@media (min-width: 64em) { .header-actions { margin-left: 0; } }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-width: 44px;
  min-height: 44px;
  padding: var(--sp-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  color: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color var(--t-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--c-gold-deep); }
.on-dark .icon-btn:hover { color: var(--c-gold-light); }
.icon-btn .od-icon { --od-icon-size: 1.375rem; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: inline-block; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.menu-toggle { padding-inline: var(--sp-3); }
@media (min-width: 64em) { .menu-toggle { display: none; } }

.search-panel { border-top: 1px solid var(--c-line-soft); padding-block: var(--sp-5); }
.search-panel[hidden] { display: none; }
.search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); }
.search-form .field { flex: 1 1 16rem; }

/* 全畫面選單（< 64em，可可深底） */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: var(--c-cocoa);
  color: var(--c-on-dark);
  overflow-y: auto; /* 放大時可捲動，不截斷 */
  overscroll-behavior: contain;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay .header-bar { border-bottom: 1px solid var(--c-dark-line); }
.menu-list { list-style: none; counter-reset: menu; padding-block: var(--sp-6); flex: 1; }
.menu-list li { counter-increment: menu; border-bottom: 1px solid var(--c-dark-line); }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  min-height: 44px;
  padding: var(--sp-4) 0;
  color: var(--c-on-dark);
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1rem + 5vw, 3rem);
  font-weight: 700;
  text-decoration: none;
}
.menu-list a::before {
  content: "0" counter(menu);
  font-family: var(--f-latin);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-gold-light);
}
.menu-list a:hover { color: var(--c-gold-light); }
.menu-foot { padding-block: var(--sp-6); color: var(--c-on-dark-2); font-size: var(--fs-sm); }
.menu-foot p { margin: 0; }

/* ---------- 表單 ---------- */
.field label, .field .label { display: block; font-weight: 700; margin-bottom: var(--sp-1); }
.field .hint { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); margin-bottom: var(--sp-2); }
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-ink);
}
.input--line { border-width: 0 0 1px; border-radius: 0; padding-inline: 0; font-size: var(--fs-lg); background: transparent; }
.input[aria-invalid="true"] { border-color: var(--c-error); box-shadow: inset 0 -2px 0 var(--c-error); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 0;
  color: var(--c-error);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.field-error[hidden] { display: none; }
.field-error .od-icon { --od-icon-size: 1.25rem; margin-top: 0.2em; }

/* ---------- 01 主視覺（官方形象照全幅背景） ---------- */
.hero {
  position: relative;
  background: var(--g-champagne);
  color: var(--c-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { margin: 0; }
.hero-media picture { display: block; height: 100%; }
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 背景形象圖，允許裁切 */
  object-position: 82% 25%;
}
.hero-liquid { /* 裝飾：香檳金光暈畫布 */
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--sp-7) var(--sp-8);
}
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-gold-deep);
}
.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-6);
}
.hero-title .line { display: block; }
.hero-title .gold { color: var(--c-gold-deep); }
.hero-title .latin {
  display: block;
  margin-top: var(--sp-3);
  font-size: max(0.3em, 1.25rem);
  font-weight: 400;
  color: var(--c-ink-2);
  letter-spacing: 0.02em;
}
.hero-text { font-size: var(--fs-md); color: var(--c-ink-2); max-width: 30em; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-gold);
  max-width: 34rem;
}
.hero-facts strong {
  display: block;
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  line-height: 1;
  color: var(--c-gold-deep);
  margin-bottom: var(--sp-2);
}
.hero-facts span { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); }

/* 寬螢幕：形象照滿版，文案置於左側留白 */
@media (min-width: 56em) {
  .hero-media { position: absolute; inset: 0; z-index: -2; }
  .hero-media::after { /* 左側加一層珍珠白，確保文字對比 */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(251 248 243 / 0.9) 0%, rgb(251 248 243 / 0.72) 38%, rgb(251 248 243 / 0) 60%);
    pointer-events: none;
  }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(52rem, calc(100svh - 4.5rem)); }
  .hero-copy { padding-block: var(--sp-9); padding-right: var(--sp-6); }
}
/* 小螢幕：形象照在上、文案在下 */
@media (max-width: 55.99em) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; height: min(85vw, 55svh); min-height: 12rem; margin-inline: calc(var(--gutter) * -1); }
  .hero-media img { object-position: 50% 18%; } /* 手機版改用置中構圖的裁切圖（hero-model-mobile.jpg），人物置中、臉部不被裁掉 */
  .hero-copy { padding-block: var(--sp-6) var(--sp-8); }
  .hero-liquid { display: none; }
}

.scroll-cue {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  color: var(--c-ink-2);
}
.scroll-cue i { display: block; width: 1px; height: 3rem; background: var(--c-line-soft); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--c-gold-deep); transform: translateY(-100%); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 56em) and (min-height: 44em) { .scroll-cue { display: flex; } }

/* ---------- 跑馬燈（裝飾，可暫停） ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, #D9B979, var(--c-gold) 50%, #D9B979);
  color: var(--c-ink);
  padding-block: var(--sp-4);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding-right: var(--sp-6);
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 700;
  white-space: nowrap;
}
.marquee-track .latin { font-weight: 500; }
.marquee-track span::after { content: ""; flex: none; width: 0.3em; height: 0.3em; background: currentColor; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 01 系列畫廊 ---------- */
.gallery-head-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.gallery-status { display: flex; align-items: center; gap: var(--sp-4); min-width: min(100%, 16rem); flex: 1 1 16rem; }
.gallery-count { font-family: var(--f-latin); font-style: italic; font-size: var(--fs-lg); white-space: nowrap; }
.gallery-progress { flex: 1; height: 2px; background: var(--c-line-soft); position: relative; overflow: hidden; }
.gallery-progress i { position: absolute; inset: 0; background: var(--c-gold-deep); transform-origin: left; transform: scaleX(var(--p, 0.2)); transition: transform var(--t-base) var(--ease-out); }
.gallery-btns { display: flex; gap: var(--sp-2); }
.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.round-btn:hover { background: var(--c-ink); color: var(--c-paper); }
.round-btn[aria-disabled="true"] { border-color: var(--c-line); color: var(--c-line); cursor: not-allowed; }
.round-btn[aria-disabled="true"]:hover { background: transparent; color: var(--c-line); }
.round-btn .od-icon { --od-icon-size: 1.25rem; }

.gallery {
  --od-gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  --od-rail-pad: var(--gutter);
  list-style: none;
  margin-top: var(--sp-6);
  padding: 0 var(--gutter) var(--sp-5);
  scroll-padding-inline: var(--gutter);
  cursor: grab;
}
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery.is-dragging a { pointer-events: none; }
.gallery img { -webkit-user-drag: none; user-select: none; }
.series {
  width: clamp(16rem, 72vw, 28rem);
  display: flex;
  flex-direction: column;
}
.series-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-champ);
  box-shadow: var(--shadow-soft);
}
.series-media img { transition: transform 900ms var(--ease-out); }
.series:hover .series-media img { transform: scale(1.04); }
.series-body { padding-top: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.series-no { margin: 0 0 var(--sp-1); font-family: var(--f-latin); font-style: italic; font-size: var(--fs-md); color: var(--c-gold-deep); }
.series-body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.series-body p { color: var(--c-ink-2); margin-bottom: var(--sp-3); }
.series-body .link-line { margin-top: auto; align-self: flex-start; }

/* ---------- 02 髮質診斷（tabs） ---------- */
.diagnose {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 64em) { .diagnose { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-8); align-items: center; } } /* 頁籤與面板垂直置中，避免左欄下方空一大塊 */
.need-tabs { display: grid; gap: 0; border-top: 1px solid var(--c-line); align-content: start; }
.need-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  min-height: 64px;
  padding: var(--sp-4) var(--sp-2);
  border: 0;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
  text-align: left;
  color: var(--c-ink-2);
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  transition: color var(--t-fast) var(--ease-out), padding var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.need-tab .no { font-family: var(--f-latin); font-style: italic; font-weight: 500; font-size: var(--fs-md); color: var(--c-gold-deep); }
.need-tab .od-icon { --od-icon-size: 1.25rem; opacity: 0; transform: translateX(-8px); transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
.need-tab:hover { color: var(--c-ink); }
.need-tab[aria-selected="true"] { color: var(--c-ink); padding-left: var(--sp-4); background: rgb(255 255 255 / 0.6); box-shadow: inset 3px 0 0 var(--c-gold-deep); }
.need-tab[aria-selected="true"] .od-icon { opacity: 1; transform: none; }
.need-panel {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(var(--sp-5), 3vw, var(--sp-8));
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.need-panel[hidden] { display: none; }
@media (min-width: 48em) { .need-panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.need-panel h3 { font-size: var(--fs-xl); }
.need-panel .diag-q { font-size: var(--fs-md); color: var(--c-ink-2); }
.need-media { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-champ); }
@media (max-width: 47.99em) { .need-media { max-width: 22rem; } }
.routine { list-style: none; counter-reset: step; display: grid; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-6); }
.routine li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: baseline;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line-soft);
}
.routine li::before { content: "0" counter(step); font-family: var(--f-latin); font-style: italic; font-size: var(--fs-md); color: var(--c-gold-deep); }
.routine b { display: block; }
.routine span { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); }

/* ---------- 03 Pro-V 科學敘事（可可深底） ---------- */
.prov-section {
  background:
    radial-gradient(60% 50% at 20% 20%, rgb(201 164 92 / 0.18) 0%, rgb(201 164 92 / 0) 70%),
    var(--c-cocoa);
}
.story { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr); }
.story-stage { display: none; }
.story-step { padding-block: var(--sp-5); border-top: 1px solid var(--c-dark-line); }
.story-step .num {
  display: block;
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4rem, 2rem + 8vw, 8rem);
  line-height: 0.9;
  color: var(--c-gold-light);
  margin-bottom: var(--sp-4);
}
.story-step h3 { font-size: var(--fs-xl); }
.story-step p { color: var(--c-on-dark-2); max-width: 32em; }
.story-step p strong { color: var(--c-on-dark); }
.story-step .btn { align-self: flex-start; margin-top: var(--sp-5); }
.story-fig { margin: var(--sp-5) 0 0; max-width: 28rem; }
.story-fig img, .stage-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }

/* 成分重點卡（取代原本的成分表照片） */
.inci-keys { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.inci-key {
  padding: var(--sp-5);
  border: 1px solid var(--c-dark-line-strong);
  border-radius: var(--radius-lg);
  background: rgb(247 241 232 / 0.04);
}
.inci-key dt { font-family: var(--f-latin); font-style: italic; font-size: var(--fs-lg); line-height: 1.3; color: var(--c-gold-light); }
.inci-key dt span { display: block; font-family: var(--f-sans); font-style: normal; font-size: var(--fs-sm); font-weight: 700; color: var(--c-on-dark); margin-top: var(--sp-1); }
.inci-key dd { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--c-on-dark-2); }

/* 成分表示意：以文字重現包裝背面，標示 Pro-V 成分 */
.inci-label {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
  color: var(--c-ink-2);
  max-width: 34rem;
}
.inci-label .inci-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); margin: 0 0 var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line-soft); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; color: var(--c-ink); }
.inci-label .inci-list { margin: 0; font-size: var(--fs-xs); line-height: 1.8; font-family: var(--f-sans); }
.inci-label mark {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #F3DFA8;
  color: var(--c-ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--c-gold);
}
.inci-label .inci-note { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--c-ink-2); }
/* 淺底卡片置於深色章節內：覆寫 .story-step p 的深底文字色 */
.story-step .inci-label p { color: var(--c-ink-2); max-width: none; }
.story-step .inci-label .inci-head { color: var(--c-ink); }

/* 寬螢幕且未放大：左側固定舞台、右側捲動章節 */
@media (min-width: 64em) and (min-height: 40em) {
  .story { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sp-9); }
  .story-stage {
    display: grid;
    position: sticky;
    top: calc(var(--header-h) + var(--sp-6));
    height: calc(100vh - var(--header-h) - var(--sp-8));
    max-height: 46rem;
    align-items: center;
  }
  .stage-fig {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .stage-fig.is-active { opacity: 1; transform: none; }
  .stage-fig img { max-height: 38rem; width: auto; max-width: 100%; }
  .stage-fig--year { align-self: start; align-items: flex-start; justify-content: flex-start; padding-top: var(--sp-6); } /* 年份貼齊章節上緣，不在舞台中央留白 */
  .stage-year {
    font-family: var(--f-latin);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(8rem, 4rem + 10vw, 16rem);
    line-height: 0.85;
    color: var(--c-gold-light);
  }
  .stage-year-sub { font-size: var(--fs-lg); color: var(--c-on-dark); letter-spacing: 0.2em; margin-top: var(--sp-4); }
  .story-steps .story-step { min-height: min(56vh, 30rem); display: flex; flex-direction: column; justify-content: center; border-top: 0; }
  .story-steps .story-step:first-child { justify-content: flex-start; padding-top: var(--sp-6); }
  .story-fig { display: none; } /* 圖已於舞台呈現（含替代文字） */
  .story-step .num { font-size: var(--fs-2xl); }
}

/* ---------- 品牌宣言（柔玫瑰） ---------- */
.manifesto { background: var(--g-rose); }
.manifesto-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.manifesto-media { margin: 0; }
.manifesto-copy { padding: var(--section-y) var(--gutter); max-width: 40rem; }
.manifesto-copy h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); line-height: 1.15; margin-bottom: var(--sp-6); }
.manifesto-copy p { font-size: var(--fs-md); color: var(--c-ink-2); }
@media (min-width: 64em) {
  .manifesto-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .manifesto-copy { padding-inline: var(--sp-8) var(--gutter); }
}

/* ---------- 04 熱銷產品 ---------- */
.products {
  list-style: none;
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-champ);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.product:hover .product-media { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-body { padding-top: var(--sp-4); }
.product-type { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; color: var(--c-gold-deep); margin-bottom: var(--sp-1); }
.product-body h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.product-body h3 a { color: var(--c-ink); text-decoration: none; }
.product-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* 整張卡可點 */
.product-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--c-gold); text-decoration-thickness: 2px; }
.product:focus-within { outline: 3px solid var(--c-ink); outline-offset: 6px; border-radius: var(--radius-lg); }
.product-body h3 a:focus-visible { outline: none; box-shadow: none; }
.product-meta { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.product-meta div { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); }
.product-meta dt { font-weight: 700; color: var(--c-ink); }
.product-meta dd { margin: 0; }

/* ---------- 05 護髮知識（編輯式） ---------- */
.journal {
  display: grid;
  gap: var(--sp-7) clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48em) {
  .journal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story-card--feature { grid-column: 1 / -1; }
}
.story-card { position: relative; display: flex; flex-direction: column; }
.story-card .frame { overflow: hidden; margin-bottom: var(--sp-5); border-radius: var(--radius-lg); background: var(--c-line-soft); }
.story-card .frame img { display: block; width: 100%; height: auto; transition: transform 900ms var(--ease-out); }
.story-card .frame--crop img { aspect-ratio: 3 / 2; object-fit: cover; } /* 裝飾圖（alt=""），允許裁切成一致比例 */
.story-card:hover .frame img { transform: scale(1.04); }
.story-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-sm); color: var(--c-ink-2); margin-bottom: var(--sp-3); }
.story-meta .cat { font-weight: 700; letter-spacing: 0.12em; color: var(--c-gold-deep); }
.story-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); line-height: 1.4; }
.story-card--feature h3 { font-size: var(--fs-xl); }
.story-card h3 a { color: var(--c-ink); text-decoration: none; background: linear-gradient(var(--c-gold), var(--c-gold)) 0 100% / 0 2px no-repeat; transition: background-size var(--t-base) var(--ease-out); }
.story-card h3 a::after { content: ""; position: absolute; inset: 0; }
.story-card:hover h3 a { background-size: 100% 2px; }
.story-card:focus-within { outline: 3px solid var(--c-ink); outline-offset: 6px; border-radius: var(--radius-lg); }
.story-card h3 a:focus-visible { outline: none; box-shadow: none; }
.story-card p { color: var(--c-ink-2); margin: 0; max-width: 36em; }
.story-card .frame--crop img { aspect-ratio: 4 / 3; object-position: 50% 78%; }
/* 主文寬螢幕左右排列：需寫在 .story-card 基本規則之後才不會被覆蓋 */
@media (min-width: 64em) {
  .story-card--feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto auto 1fr; gap: 0 var(--sp-8); }
  .story-card--feature .frame { grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
  .story-card--feature > :not(.frame) { grid-column: 2; }
  /* 文字區在圖片高度內垂直置中，不再擠在上緣 */
  .story-card--feature .story-meta { grid-row: 2; }
  .story-card--feature h3 { grid-row: 3; }
  .story-card--feature p { grid-row: 4; }
}

/* ---------- 06 常見問答 ---------- */
.faq { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64em) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-9); }
}
@media (min-width: 64em) and (min-height: 40em) {
  .faq-intro { position: sticky; top: calc(var(--header-h) + var(--sp-7)); align-self: start; }
}
.faq-list { border-top: 1px solid var(--c-ink); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  min-height: 44px;
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .no { font-family: var(--f-latin); font-style: italic; font-size: var(--fs-md); color: var(--c-gold-deep); }
.faq-item summary h3 { margin: 0; font-size: var(--fs-md); line-height: 1.5; }
.faq-item summary:hover h3 { color: var(--c-gold-deep); }
.faq-item .plus { position: relative; width: 2.5rem; height: 2.5rem; border: 1px solid var(--c-line); border-radius: 50%; flex: none; transition: transform var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out); }
.faq-item .plus::before, .faq-item .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.875rem; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-item .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .plus { transform: rotate(45deg); background: var(--c-gold); border-color: var(--c-gold); }
.faq-answer { padding: 0 0 var(--sp-5) calc(2.5rem + var(--sp-4)); color: var(--c-ink-2); max-width: 44em; }
.faq-answer p:last-child { margin-bottom: 0; }
/* 平滑展開（支援的瀏覽器漸進增強） */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-base) var(--ease-out), content-visibility var(--t-base) allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- 07 電子報（香檳 × 玫瑰光暈） ---------- */
.newsletter { position: relative; overflow: hidden; isolation: isolate; background: var(--g-rose); }
.newsletter::before { /* 裝飾：香檳金光圈 */
  content: "";
  position: absolute;
  z-index: -1;
  width: min(60vw, 40rem);
  aspect-ratio: 1;
  right: -8%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6DD 0%, rgb(201 164 92 / 0.45) 45%, rgb(201 164 92 / 0) 70%);
  pointer-events: none;
}
.newsletter-grid { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 64em) { .newsletter-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.newsletter h2 { font-size: var(--fs-3xl); margin: 0; }
.newsletter h2 .gold { color: var(--c-gold-deep); }
.newsletter-form {
  display: grid;
  gap: var(--sp-5);
  padding: clamp(var(--sp-5), 3vw, var(--sp-7));
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.72);
  box-shadow: var(--shadow-soft);
}
.check { display: flex; align-items: flex-start; gap: var(--sp-3); }
.check input { width: 24px; height: 24px; margin: 0.2em 0 0; flex: none; accent-color: var(--c-gold-deep); }
.form-status { margin: 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--c-success); }

/* ---------- 頁尾（可可深底） ---------- */
.site-footer { background: var(--c-cocoa); color: var(--c-on-dark); padding-top: var(--sp-9); overflow: hidden; }
.site-footer a { color: var(--c-on-dark); }
.site-footer a:hover { color: var(--c-gold-light); }
.footer-top { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); padding-bottom: var(--sp-7); }
.footer-brand p { color: var(--c-on-dark-2); font-size: var(--fs-sm); max-width: 24em; }
.footer-brand .latin { display: block; font-size: var(--fs-xl); color: var(--c-gold-light); margin-bottom: var(--sp-3); }
.footer-col h2 { font-family: var(--f-sans); font-size: var(--fs-sm); letter-spacing: 0.2em; color: var(--c-gold-light); margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; }
.footer-col a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col .od-icon { --od-icon-size: 1.125rem; }
.footer-mark { padding-block: var(--sp-5); border-top: 1px solid var(--c-dark-line); }
.footer-mark img { display: block; width: 100%; height: auto; filter: invert(1); opacity: 0.92; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding-block: var(--sp-5) calc(var(--sp-7) + 3.5rem); border-top: 1px solid var(--c-dark-line); font-size: var(--fs-sm); color: var(--c-on-dark-2); }
.footer-bottom p { margin: 0; }
.credits summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 0.22em; }
.credits ul { list-style: none; margin-top: var(--sp-2); display: grid; gap: var(--sp-2); max-width: 48rem; }
.credits a { text-decoration: underline; }

/* ---------- 回到頂端 ---------- */
.to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  background: var(--c-cocoa);
  color: var(--c-gold-light);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top .od-icon { --od-icon-size: 1.375rem; }
@media (max-height: 30em) { .to-top { display: none; } } /* 矮視窗或放大時不佔用畫面，可用 Home 鍵回頂端 */

/* ---------- 進場動態（僅在 JS 啟用且允許動態時） ---------- */
.motion-ok [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.motion-ok [data-reveal].is-in { opacity: 1; transform: none; }
.motion-ok .split .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 800ms var(--ease-out) forwards;
  animation-delay: calc(120ms + var(--i) * 45ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }
.motion-ok .hero-media img { animation: settle 2400ms var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }

/* 使用者按「暫停動態」或系統減少動態：所有動態停止、內容完整顯示 */
.motion-paused .marquee-track,
.motion-paused .scroll-cue i::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .hero-liquid { display: none; }
}

@media (forced-colors: active) {
  .btn, .round-btn, .to-top, .faq-item .plus { border: 1px solid CanvasText; }
  .btn::before { display: none; }
  .need-tab[aria-selected="true"] { outline: 2px solid Highlight; }
  .inci-label mark { forced-color-adjust: none; }
}
@media print {
  .site-header nav, .search-panel, .to-top, .gallery-btns, .newsletter, .marquee, .hero-liquid { display: none !important; }
}
