/* ══════════════════════════════════════════════════════════════════
   V3b「唱片封套」皮：2026-09-29 定為正式外觀，全站唯一的樣式表。
   方向合約：.impeccable/surfaces/src-assets-skins-sleeve-css.md
   每個方案是一張唱片：一個飽和平塗底色淹滿整塊區域，白色是唯一的留白，
   正方形照片、圓角流行字標題、四個重點像曲目名排在角落，Day 1–10 是 tracklist。
   不用漸層、陰影、卡片框。
   ══════════════════════════════════════════════════════════════════ */

/* ── 自架字型：woff2 由 scripts/subset-fonts.py 依網站實際用字切出（文案新增字之後要重跑） ──
   這裡的字型網址維持乾淨路徑。建置完成後，eleventy.after（eleventy.config.js）會把 dist 裡這份 CSS 的
   url("/assets/fonts/x.woff2") 改成 url("/assets/fonts/x.woff2?v=<字型檔內容雜湊>")，
   所以重切字型後不需要手動改任何版本號（T-6，實作在 scripts/lib/assets.mjs）。 */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka.woff2?v=0fdc1d47") format("woff2"); font-weight: 400 700; font-stretch: 100% 110%; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost.woff2?v=4931c8ce") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Huninn"; src: url("/assets/fonts/huninn.woff2?v=36dc4922") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans TC"; src: url("/assets/fonts/noto-sans-tc.woff2?v=55951471") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ── 會轉場的顏色變數（捲動時整頁底色交叉淡換靠這四個） ── */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #16244a; }
@property --pop { syntax: "<color>"; inherits: true; initial-value: #16244a; }
@property --on-pop { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

/* ── 色票：每個方案一個底色，墨色是品牌深藍，白色是唯一的留白 ── */
:root {
  --ink: #16244a;
  --white: #ffffff;
  --alert: #b3102f;
  /* 首頁（公司本身）的底色：向日葵黃，跟 logo 的金色同一家族 */
  --ground: #f6c531;
  --on-ground: var(--ink);

  --display: "Fredoka", "Huninn", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --text: "Jost", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --rule: 2px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* 中山醫大營：診間的土耳其藍 */
.theme-med,
.programs .program:not(.theme-ca, .theme-kh, .theme-ai) { --ground: #1fc2c2; --on-ground: var(--ink); }
/* 加州：橘子汽水 */
.theme-ca { --ground: #ff8a2a; --on-ground: var(--ink); }
/* 柬埔寨：深洋紅，這張封套的字是白的 */
.theme-kh { --ground: #c8174f; --on-ground: var(--white); }
/* AI 機器人實作營：薰衣草紫，四張封套裡唯一的冷調（墨藍字 7.19:1） */
.theme-ai { --ground: #b9a6ff; --on-ground: var(--ink); }

/* ── 三種色調（tone）：ground＝方案底色、white＝留白、ink＝深藍 ──
   靜態版面：每個段落自己上色。捲動交叉淡換（html.sleeve-fade，由 sleeve.js 開）時，
   段落變透明，改由 body 依正中央段落的 tone 換色。 */
html:not(.sleeve-fade) :is(
  .hero, #itinerary, #safety, .trust-compact, .cta-band, #philosophy, #about
),
html:not(.sleeve-fade) body,
html:not(.sleeve-fade) .skin-sleeve:not(:has(.hero-logo)) .site-head {
  --tone: ground; --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
}
html:not(.sleeve-fade) :is(
  #pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method,
  #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials
) {
  --tone: white; --bg: var(--white); --fg: var(--ink); --pop: var(--ground); --on-pop: var(--on-ground);
}
html:not(.sleeve-fade) :is(.hero-logo, #review, #ask),
html:not(.sleeve-fade) body:has(.hero-logo),
html:not(.sleeve-fade) .skin-sleeve:has(.hero-logo) .site-head,
.site-foot {
  --tone: ink; --bg: var(--ink); --fg: var(--white); --pop: var(--ground); --on-pop: var(--on-ground);
}
/* 交叉淡換模式：body 帶著目前的 tone，段落與頁首跟著 body 走（頁尾維持深藍） */
html.sleeve-fade body[data-tone="ground"] { --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink); }
html.sleeve-fade body[data-tone="white"] { --bg: var(--white); --fg: var(--ink); --pop: var(--ground); --on-pop: var(--on-ground); }
html.sleeve-fade body[data-tone="ink"] { --bg: var(--ink); --fg: var(--white); --pop: var(--ground); --on-pop: var(--on-ground); }
html.sleeve-fade-live body {
  transition: --bg .7s var(--ease), --fg .7s var(--ease), --pop .7s var(--ease), --on-pop .7s var(--ease);
}
/* 靜態版面裡，每個有 tone 的段落自己鋪底色 */
.hero, .hero-logo, main > section, .cta-band, .site-head, .site-foot { background: var(--bg); color: var(--fg); }
html.sleeve-fade :is(.hero, .hero-logo, main > section, .cta-band) { background: transparent; }

/* ── 基礎 ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-color: var(--ink) #ffffff;
}
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--text); font-size: 17px; font-weight: 420; line-height: 1.75;
  -webkit-font-smoothing: antialiased; font-kerning: normal;
  caret-color: currentColor;
}
::selection { background: var(--fg); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 108;
  font-synthesis-weight: none; line-height: 1.18; margin: 0; text-wrap: balance;
  letter-spacing: -.005em;
}
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
/* 略過導覽的連結（T-8）：平常在畫面外，鍵盤聚焦時出現在左上角；目標是 <main id="main" tabindex="-1"> */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 20px; border-radius: 999px;
  border: var(--rule) solid var(--white); background: var(--ink); color: var(--white);
  font: 600 1rem/1.3 var(--text); text-decoration: none; transform: translateY(-250%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* 副標：模板裡的 .eyebrow 一律排在標題「下面」，像封套上的副標或英文對照，不當標題上方的小字 */
.eyebrow {
  font-family: var(--text); font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  color: color-mix(in oklab, var(--fg) 90%, var(--bg));
}

/* ── 按鈕：圓角膠囊，像封面上貼的價格貼紙 ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7em 1.5em; border-radius: 999px; border: var(--rule) solid var(--fg);
  font: 600 1rem/1.2 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--fg);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn.primary { background: var(--pop); color: var(--on-pop); border-color: var(--pop); }
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:active { transform: translateY(1px); }

/* ── 頁首 ── */
.site-head { position: sticky; top: 0; z-index: 20; border-bottom: var(--rule) solid var(--fg); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; font-variation-settings: "wdth" 108;
  font-synthesis-weight: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text small {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: color-mix(in oklab, var(--fg) 90%, var(--bg));
}
/* 徽章：地球與莖吃 currentColor，外環與葉片自帶金與綠 */
.brand-emblem, .foot-emblem { display: block; flex: none; color: var(--fg); }
.brand-emblem, .brand-emblem svg { width: 38px; height: 38px; }
.brand-emblem { background: var(--white); border-radius: 50%; padding: 1px; color: var(--ink); }
.foot-emblem, .foot-emblem svg { width: 64px; height: 64px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--fg); padding: 4px 0; }
.nav a:not(.cta, .lang-switch, .member-link):hover { text-decoration: underline; }
.nav .lang-switch, .nav .member-link { border: var(--rule) solid var(--fg); border-radius: 999px; padding: 3px 14px; font-size: .88rem; }
.nav .lang-switch:hover, .nav .member-link:hover { background: var(--fg); color: var(--bg); }
.nav .cta {
  background: var(--pop); color: var(--on-pop); border-radius: 999px; padding: 8px 18px; font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav .cta:hover { background: var(--fg); color: var(--bg); }

/* 漢堡選單：自己畫兩條線（打開變成叉），不用文字符號 */
.nav-toggle {
  display: none; flex: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--fg); font-size: 0; cursor: pointer; position: relative;
}
.nav-toggle::before {
  content: ""; position: absolute; inset: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8h18M3 16h18' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8h18M3 16h18' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-toggle[aria-expanded="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* 手機頁首的洽詢膠囊（只有方案頁有，頁首帶 .site-head--cta；桌機用選單列裡的 .cta） */
.cta-mobile { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .cta-mobile {
    display: inline-flex; align-items: center; flex: none; margin-left: auto; padding: 6px 14px; border-radius: 999px;
    background: var(--pop); color: var(--on-pop); font-size: .9rem; font-weight: 600; line-height: 1.4;
    text-decoration: none; white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease);
  }
  .cta-mobile:hover { background: var(--fg); color: var(--bg); }
  .cta-mobile + .nav-toggle { margin-left: 0; }
  /* 頁首已經有洽詢膠囊時，選單裡就不再放第二顆 */
  .site-head--cta .nav .cta { display: none; }
  .site-head--cta .wrap { gap: 12px; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: var(--rule) solid var(--fg);
  }
  .nav.open { display: flex; }
  .nav a { font-family: var(--display); font-weight: 600; font-size: 1.5rem; font-variation-settings: "wdth" 108; font-synthesis-weight: none; padding: 12px 0; border-top: var(--rule) solid var(--fg); }
  .nav a:first-child { border-top: 0; }
  .nav .lang-switch, .nav .member-link { border-radius: 0; border: 0; border-top: var(--rule) solid var(--fg); padding: 12px 0; font-size: 1.5rem; }
  .nav .cta { margin-top: 14px; text-align: center; padding: 12px 18px; font-size: 1.1rem; font-family: var(--text); }
}
/* 窄手機：品牌名、洽詢膠囊、☰ 三者要擠在同一列，各自縮一點（☰ 的點擊範圍維持 44px，靠負邊界疊進間距） */
@media (max-width: 420px) {
  .site-head--cta .wrap { gap: 8px; }
  .site-head--cta .brand { gap: 6px; }
  .site-head--cta .brand-emblem, .site-head--cta .brand-emblem svg { width: 30px; height: 30px; }
  .site-head--cta .brand-text b { font-size: .88rem; }
  .site-head--cta .brand-text small { font-size: .62rem; letter-spacing: .05em; }
  .site-head--cta .cta-mobile { padding: 5px 9px; font-size: .8rem; }
  .site-head--cta .nav-toggle { margin-right: -8px; margin-left: -4px; }
}

/* ── 方案頁封面（hero）：底色淹滿第一屏，正方形照片，四個重點排在角落 ── */
.hero { padding: clamp(24px, 4vw, 56px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: stretch; }
.hero-grid > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.hero h1 { order: 1; font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: 1.12; }
/* 中文標題只在 <wbr> 或空白處換行，不在詞中間斷開；太長的英文標題縮一級 */
.hero h1 { word-break: keep-all; overflow-wrap: break-word; }
.hero h1.long { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.hero .eyebrow { order: 2; margin-top: 14px; }
/* 標語：跟重點表分開，排在封面下面、資訊列上面，不佔封面左欄的高度 */
.hero .quote {
  margin-top: clamp(28px, 4vw, 48px); max-width: 40rem; font-family: var(--display); font-weight: 500; font-size: 1.3rem;
  font-variation-settings: "wdth" 100; line-height: 1.35; text-wrap: balance;
}
.hero .quote + .facts { margin-top: clamp(20px, 3vw, 32px); }
.hero .lead { order: 4; margin-top: 18px; font-size: 1.05rem; max-width: 36em; }
.hero .btns { order: 5; }
.hero .btns .btn:not(.primary) { border-color: var(--fg); }
/* 四個重點：像封底的曲目表，編號＋小標＋值 */
.key-facts {
  order: 6; margin: 32px 0 0; padding: 0; counter-reset: track;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 14px;
  border-top: var(--rule) solid var(--fg);
}
.hero-grid > div:first-child .key-facts { margin-top: auto; padding-top: 0; }
.key-facts > div {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 45%, var(--bg));
  counter-increment: track;
}
.key-facts > div::before {
  content: counter(track); font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; min-width: 1.2em;
}
.key-facts dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.key-facts dd { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.45; }
/* 桌機：重點表沉到文字欄底部；照片至少是正方形，左欄比較高時往下拉長，兩者下緣同一條線 */
@media (min-width: 861px) {
  .hero .btns { margin-bottom: 32px; }
  .hero .hero-grid > .photo { aspect-ratio: auto; align-self: stretch; }
  .hero .hero-grid > .photo::before { content: ""; display: block; padding-top: 100%; }
  .hero .hero-grid > .photo img { position: absolute; inset: 0; }
}

.photo { position: relative; overflow: hidden; background: color-mix(in oklab, var(--fg) 18%, var(--bg)); }
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  /* 印刷感：暖一點、飽和一點，像封套上的彩色印刷照片 */
  filter: saturate(1.12) contrast(1.06) sepia(.1);
}
.photo .credit {
  position: absolute; left: 0; bottom: 0; font-size: .72rem; line-height: 1.4; letter-spacing: .04em;
  color: var(--white); background: var(--ink); padding: 4px 10px;
}
.hero .photo { aspect-ratio: 1 / 1; align-self: start; }
.theme-ca .hero .photo img { object-position: 50% 40%; }
.theme-kh .hero .photo img { object-position: 50% 55%; }
/* StackChan 是去背的產品圖：直接站在平塗底色上，像封套上的單一物件。不加印刷濾鏡，也不墊底色 */
.photo:has(img[src*="/img/stackchan"]) { background: transparent; }
.photo img[src*="/img/stackchan"] { object-fit: contain; filter: none; }
.hero-grid.no-photo { grid-template-columns: 1fr; }

/* 封面下緣的資訊列：日期、地點等，像封套底邊的小字 */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px;
  margin: clamp(32px, 5vw, 56px) 0 0; padding: 16px 0 28px; border-top: var(--rule) solid var(--fg);
}
.fact { padding: 6px 0; min-width: 0; }
.fact dt { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: color-mix(in oklab, var(--fg) 90%, var(--bg)); }
.fact dd { margin: 2px 0 0; font-weight: 600; font-size: 1rem; line-height: 1.45; }
/* 行程標題、常見問題、資訊列與重點表：避免最後一行只剩一兩個字（tracklist 掃下來像漏字） */
.day-title, .acc summary, .fact dd, .key-facts dd { text-wrap: pretty; }

@media (max-width: 860px) {
  .hero { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  /* 手機：封面照改橫幅、按鈕排在說明文字前，方案名、重點與主按鈕都要在第一屏（390×844） */
  .hero-grid > .photo { order: -1; aspect-ratio: 3 / 2; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  /* 手機：重點表緊接在標題下面，第一屏就看得到 */
  .key-facts { order: 3; margin: 20px 0 0; }
  .hero-grid > div:first-child .key-facts { margin-top: 20px; }
  .hero .quote { font-size: 1.15rem; }
  .hero .btns { order: 4; margin-top: 22px; }
  .hero .lead { order: 5; font-size: 1rem; }
  .hero .btns .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
/* 窄手機資訊列改單欄：兩欄時「NT$200,000（含機／票、住宿）」這類值會被擠到斷在詞中間 */
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ── 段落 ── */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
.nw { white-space: nowrap; }
/* V-8：兩段白底相鄰時，上下各 120px 的留白會疊成 240px 的空白。縮短間距，中間改用一條 2px 分隔線 */
@media screen {
  :is(#pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method, #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials):has(+ :is(#pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method, #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials)) { padding-bottom: clamp(28px, 4vw, 56px); }
  :is(#pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method, #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials) + :is(#pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method, #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials) { padding-top: 0; }
  :is(#pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method, #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials) + :is(#pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method, #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials) > .wrap::before {
    content: ""; display: block; border-top: var(--rule) solid var(--fg); margin-bottom: clamp(28px, 4vw, 56px);
  }
}
.sec-head { display: flex; flex-direction: column; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { order: 1; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.12; }
.sec-head .mock-badge { order: 3; }
.sec-head p { order: 4; margin-top: 18px; font-size: 1.05rem; max-width: 40em; }
.sec-head p + p { margin-top: 12px; }
/* 標題只在空白、<wbr> 或標點處換行，不斷在詞中間（「青年／團」「學／習」）；真的放不下才在任意處斷，免得撐出橫向捲軸。
   沒有空白的長句要在資料裡放 headingParts／titleParts（partials/heading.njk 會在每段之間放 <wbr>） */
.program h3, .sec-head h2, .cta-band h2, .safety-item h4, .trust-group .safety-item h3, .result h3 { word-break: keep-all; overflow-wrap: anywhere; }
/* 320px 級的小手機：每行只放得下九個字左右，標題再縮一級，九、十個字的標題才不會掉一個字到下一行 */
@media (max-width: 340px) { .sec-head h2 { font-size: 1.7rem; } }

/* 項目列：不是卡片，是封底的曲目條目，上面一條粗線 */
.grid-2, .grid-3, .flow { display: grid; gap: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .flow { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; min-width: 0; background: none; color: inherit; }
.card.topline { border-top: var(--rule) solid var(--fg); }
/* 中文首頁「為什麼選我們」的四個小標用黃色（2026-10-16 業主要求，同頁首與主按鈕的 #f6c531） */
#why .card h3 { color: #f6c531; }
.card-body { padding: 18px 0 0; }
.card .photo { aspect-ratio: 1 / 1; }
.card .num {
  display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: var(--pop); color: var(--on-pop); margin-bottom: 16px;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums;
}
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { font-size: 1rem; }

/* 價格：主推方案是一塊平塗底色的貼紙，其他方案只有上緣粗線 */
.price-card { border-top: var(--rule) solid var(--fg); }
.price-card.featured {
  --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
  background: var(--bg); color: var(--fg); border-top: 0;
}
.price-card.featured .card-body { padding: 24px; }
.price-card .label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.price {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1.1;
  font-variant-numeric: tabular-nums; margin: 10px 0 16px; font-synthesis-weight: none;
}
.price small { font-family: var(--text); font-size: .95rem; font-weight: 500; }
.price s { display: block; font-size: 1.05rem; font-weight: 500; opacity: .8; }
.price-card.featured.card { max-width: 760px; }
.price-card small.todo { display: inline-block; margin-top: 12px; }
.price-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.price-lists :is(h3, h4) { font-size: 1.1rem; margin-bottom: 10px; }
@media (max-width: 640px) { .price-lists { grid-template-columns: 1fr; } }

/* 勾選清單：自己畫的勾，不用文字符號 */
.checks { list-style: none; padding: 0; margin: 0; font-size: .98rem; }
.checks li { position: relative; padding-left: 28px; margin-top: 6px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4 4 9-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4 4 9-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks.excludes li::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.note { margin-top: 22px; padding: 14px 18px; font-size: .95rem; border: var(--rule) solid currentColor; }

/* 缺漏標記：預覽版的「待補」像蓋上去的橡皮章；正式版的「詳情請洽詢」只是淡一點的字 */
.todo:not(em) {
  display: inline-block; padding: 0 .5em; border: var(--rule) dashed currentColor; border-radius: 6px;
  font-weight: 700; letter-spacing: .05em; line-height: 1.6;
}
.price.todo { font-size: 1.3rem; }
/* 淡色要在每種底色上都 ≥ 4.5:1（T-7）：柬埔寨洋紅底原本 80% 是 4.06，改 90% 是 4.83 */
[data-missing="detail"]:not(:has(.todo)) { color: color-mix(in oklab, currentColor 90%, transparent); font-style: normal; }

/* 列表 */
.bullets { list-style: none; padding: 0; margin: 0; border-top: var(--rule) solid var(--fg); }
.bullets li { position: relative; padding: 12px 0 12px 26px; font-size: 1rem; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); }
#safety .grid-2 h3 { font-size: 1.4rem !important; margin-bottom: 16px !important; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 18px; border-radius: 999px; background: var(--pop); color: var(--on-pop); font-weight: 600; font-size: .98rem; }
.method-chips { margin-top: clamp(40px, 5vw, 64px); }
.method-chips h3 { font-size: 1.5rem; margin-bottom: 16px; }
.method-chips p { margin-top: 16px; }

/* ── 加州每晚的 Daily Faculty Review：深藍底（晚上），比例條＋B 面曲目表 ── */
.review-bar { display: flex; gap: 4px; margin-bottom: clamp(24px, 3vw, 40px); }
.review-bar span {
  flex-basis: 0; min-width: 0; height: clamp(44px, 6vw, 64px); background: var(--pop); color: var(--on-pop);
  display: flex; align-items: flex-end; padding: 8px 10px;
}
.review-bar b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.review-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--fg); }
.review-list li {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: var(--rule) solid var(--fg);
}
.review-no, .review-time { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.review-no { font-size: 1.45rem; line-height: 1; }
.review-list h3 { font-size: 1.2rem; }
.review-list p { margin-top: 4px; }
/* 時間標籤是橘色膠囊配墨藍字（T-7）：原本的字色 --pop 會跟著捲動換色，白字落在橘底時只有 2.35:1；
   膠囊自己帶底色與字色，任何時候對比都是 6.44:1 */
.review-time { white-space: nowrap; justify-self: start; padding: 0 .75em; border-radius: 999px; line-height: 1.7; background: var(--ground); color: var(--on-ground); }
.review-note { margin-top: 20px; max-width: 40em; }
@media (max-width: 720px) {
  .review-list li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .review-time { grid-column: 2; margin-top: -8px; }
}

/* ── 行程：Day 1–10 是一張 tracklist ── */
.day-strip {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0;
  margin: 0 0 clamp(28px, 4vw, 44px); border: var(--rule) solid var(--fg);
}
.day-chip {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 12px 10px 14px; text-decoration: none; color: var(--fg);
  border-left: var(--rule) solid var(--fg);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.day-chip:first-child { border-left: 0; }
.day-chip b { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.day-chip small { font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; font-weight: 500; text-wrap: balance; }
.day-chip:hover { background: color-mix(in oklab, var(--pop) 30%, var(--bg)); }
/* 聽過的曲目留一層淡色，正在播的整格換成白 */
.day-chip.is-visited { background: color-mix(in oklab, var(--pop) 20%, var(--bg)); }
.day-chip.is-visited::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.day-chip.is-active { background: var(--pop); color: var(--on-pop); }
/* 平板（721–900px）也用 5 欄：10 欄時每格只剩約 70px，四個字的標籤就會斷成「認識議／題」 */
@media (max-width: 900px) {
  .day-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .day-chip:nth-child(6) { border-left: 0; }
  .day-chip:nth-child(n + 6) { border-top: var(--rule) solid var(--fg); }
}
@media (max-width: 720px) {
  .day-chip { padding: 10px 8px 12px; }
  .day-chip small { font-size: .76rem; }
}
/* 320–380px 的 5 欄每格更窄：邊距與字級再收一點，四個字的標籤才放得進一行 */
@media (max-width: 380px) {
  .day-chip { padding-inline: 5px; }
  .day-chip small { font-size: .7rem; }
}
/* 兩天的營隊（AI 營）：總覽條只有 A 面、B 面兩格，任何寬度都並排 */
.theme-ai .day-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-ai .day-chip { padding: 16px 18px 18px; }
.theme-ai .day-chip:nth-child(n) { border-top: 0; }
.theme-ai .day-chip:nth-child(2) { border-left: var(--rule) solid var(--fg); }
.theme-ai .day-chip small { font-size: .9rem; }
/* 標籤有短版（itinerary.tagShort）時，放不下長版的寬度改顯示短版：手機 5 欄（≤520px）與 10 欄的小筆電（901–1100px） */
.tag-short { display: none; }
@media (max-width: 520px), (min-width: 901px) and (max-width: 1100px) {
  .day-chip .tag-long { display: none; }
  .day-chip .tag-short { display: inline; }
}

.days { display: grid; gap: 0; border-top: var(--rule) solid var(--fg); }
/* 點總覽條時 site.js 用 scrollIntoView({block:"start"})：列頭與黏頂頁首的距離由 html 的 scroll-padding-top（80px）決定；
   這裡不能再加 scroll-margin-top，兩者會相加（實測 164px）。 */
details.day { border-bottom: var(--rule) solid var(--fg); transition: background-color .3s var(--ease); }
details.day > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 8rem minmax(0, 1fr) 32px; gap: 18px;
  align-items: center; padding: 18px 16px;
}
details.day > summary::-webkit-details-marker { display: none; }
.day-no { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day-no small { display: block; font-family: var(--text); font-weight: 500; font-size: .8rem; letter-spacing: .04em; margin-top: 4px; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; line-height: 1.5;
  padding: 1px 10px; border-radius: 999px; border: 1.5px solid currentColor;
}
.day-title { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.35; font-synthesis-weight: none; }
/* 打開的那一天：整列換成白底，像被選中的曲目 */
details.day[open] { --bg: var(--white); --fg: var(--ink); --pop: var(--ground); --on-pop: var(--on-ground); background: var(--bg); color: var(--fg); }
details.day > summary:hover .day-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
details.day.is-visited:not([open]) > summary .day-no { opacity: .72; }
.day-body { padding: 0 16px 24px calc(8rem + 34px); font-size: 1rem; }
.day-body > * + * { margin-top: 12px; }
@media (max-width: 640px) {
  details.day > summary { grid-template-columns: minmax(0, 1fr) 32px; gap: 8px 12px; padding: 16px 12px; }
  details.day > summary .day-no { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  details.day > summary .day-no small { display: inline; margin: 0; }
  details.day > summary .day-head { grid-row: 2; }
  details.day > summary::after { grid-row: 2; grid-column: 2; }
  .day-body { padding: 0 12px 20px; }
}

/* 收合開關：外圈＋加號；打開時實心圓＋減號（都是自己畫的 SVG 遮罩，吃 currentColor） */
details.day > summary::after, .acc summary::after {
  content: ""; width: 32px; height: 32px; flex: none; background: currentColor; justify-self: end;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M16 9.5v13M9.5 16h13' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M16 9.5v13M9.5 16h13' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
details.day[open] > summary::after, .acc details[open] summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' d='M16 0a16 16 0 1 1 0 32a16 16 0 1 1 0-32zM9.5 14.8h13v2.4h-13z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' d='M16 0a16 16 0 1 1 0 32a16 16 0 1 1 0-32zM9.5 14.8h13v2.4h-13z'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
summary:focus-visible { outline-offset: -3px; }

/* 責任程度（柬埔寨）：五顆圓點 */
.meter-row { display: flex; align-items: center; gap: 10px; }
.meter { display: inline-flex; gap: 5px; }
.meter i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; }
.meter i.on { background: currentColor; }
.meter-label { font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.missions { display: flex; flex-wrap: wrap; gap: 8px; }
.mission { font-size: .85rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--pop); color: var(--on-pop); }

/* 任務板（加州 Day 7） */
.mission-board { border-top: var(--rule) solid var(--fg); }
.mission-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.mission-row code { font-family: var(--text); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 560px) { .mission-row { grid-template-columns: 1fr; gap: 2px; } }

/* ── 常見問題 ── */
.acc { border-top: var(--rule) solid var(--fg); }
.acc details { border-bottom: var(--rule) solid var(--fg); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.4; font-synthesis-weight: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.acc .acc-body { padding: 0 60px 24px 4px; max-width: 48em; }

/* ── 可信度 ── */
.partners-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.partner-badge {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; font-synthesis-weight: none;
  background: var(--pop); color: var(--on-pop); border-radius: 999px; padding: 10px 22px;
}
.partner-badge--logo { padding: 8px 18px; display: flex; align-items: center; }
.partner-badge--logo img { max-height: 32px; width: auto; }

/* 安全承諾：封底曲目表。粗線起頭，一欄，左邊項目名、右邊內容 */
.safety-grid { border-top: 6px solid var(--fg); }
.safety-item {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: clamp(16px, 3vw, 40px);
  align-items: baseline; padding: 16px 0; min-width: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 45%, var(--bg));
}
/* 中文首頁的精簡安全承諾項目名是 h3（直接在 h2 下），樣式同完整版的 h4；方案頁精簡版不在 .trust-group 裡 */
.safety-item h4, .trust-group .safety-item h3 { font-size: 1.15rem; margin: 0; }
.safety-item p { font-size: 1rem; max-width: 46em; }
/* 方案頁精簡版只有項目名：兩欄曲目，名稱之間用細線隔開 */
.safety-grid--compact { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 40px); }
.safety-grid--compact .safety-item { display: block; padding: 12px 0; }
.safety-grid--compact .safety-item :is(h3, h4) { font-size: 1.05rem; }
@media (max-width: 640px) {
  .safety-item { grid-template-columns: 1fr; row-gap: 4px; }
  .safety-grid--compact { grid-template-columns: 1fr; }
}

/* 首頁「誰在背後把關」：一個 h2 底下三組，每組一個 h3 */
.trust-group + .trust-group { margin-top: clamp(40px, 5vw, 64px); }
.trust-group > h3 { font-size: 1.4rem; margin-bottom: 16px; }
.trust-group .team-contact { margin-top: 0; }
.team-contact { margin-top: 36px; }
.team-intro p { font-size: 1.05rem; max-width: 40em; margin-bottom: 20px; }
.contact-channels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px;
  margin: 0; padding: 14px 0 0; border-top: var(--rule) solid var(--fg);
}
.contact-channels dd a { font-weight: 600; }
.trust-more { margin-top: 28px; }
.trust-more a, [data-other-programs] { font-weight: 600; text-decoration: underline; }
.trust-more a:hover, [data-other-programs]:hover { text-decoration-thickness: 3px; }

/* ── 表單（留白段落裡）── */
.mock-badge {
  align-self: flex-start; display: inline-block; margin-top: 14px; padding: 4px 14px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  transform: rotate(-2deg);
}
.form { display: grid; gap: clamp(36px, 5vw, 56px); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend {
  float: left; width: 100%; padding: 16px 0 0; margin: 0 0 22px; border-top: var(--rule) solid var(--fg);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; font-synthesis-weight: none;
}
.form legend + * { clear: both; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
/* align-content: start：同一列裡沒有提示文字的欄位不會被隔壁「有提示文字」的欄位撐高，多出來的高度留在格子底部 */
.field { display: grid; align-content: start; gap: 8px; font-size: .98rem; min-width: 0; }
.field > span { font-weight: 600; }
/* 必填星號跟字同色（捲動淡換時段落底色會變，固定紅色在彩色底上看不清） */
.field > span em, .options label > span > em, .options em.todo { font-style: normal; color: currentColor; margin-left: 3px; font-weight: 700; }
.field small { font-size: .85rem; }
.form input[type=search] { appearance: none; }
.form :is(input[type=text], input[type=search], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea) {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: var(--rule) solid var(--ink); border-radius: 0; padding: 11px 14px; min-height: 50px; width: 100%;
  transition: background-color .2s var(--ease);
}
.form ::placeholder { color: color-mix(in oklab, var(--ink) 70%, var(--white)); opacity: 1; }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2316244a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
/* 日期欄的原生內部比文字欄高 2px，同一列並排時下緣會差一點 */
.form input[type=date] { height: 54px; }
.form textarea { min-height: 120px; resize: vertical; }
.form :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
  background-color: color-mix(in oklab, var(--ground) 16%, var(--white));
}
.form :is(input, select, textarea):user-invalid,
.form :is(input, select, textarea)[aria-invalid=true] { border-color: var(--alert); border-style: dashed; }
.form .field-error, .form-status { color: var(--alert); font-weight: 600; font-size: .92rem; }
.form-status { margin: 0; padding: 12px 0; border-top: var(--rule) solid var(--alert); }
.form[hidden], .form-status[hidden], .result[hidden], .field[hidden] { display: none; }
.options { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.options label { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; cursor: pointer; min-height: 32px; }
.options input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0;
  border: var(--rule) solid var(--ink); background: var(--white); cursor: pointer;
}
.options input[type=radio] { border-radius: 50%; }
.options input:checked {
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8.5' fill='none' stroke='%2316244a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.theme-kh .options input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.options input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.options input:user-invalid, .options input[aria-invalid=true] { border-color: var(--alert); border-style: dashed; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { min-width: 14rem; }
.result {
  --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
  background: var(--bg); color: var(--fg); padding: clamp(24px, 4vw, 44px);
}
.result .mock-badge { margin: 0 0 16px; }
.result h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.result h4 { font-size: 1.2rem; margin: 28px 0 0; }
.result .steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; max-width: 44em; }
.result .steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 12px; align-items: baseline; }
.result .steps li::before { content: counter(step); font: 600 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.result .form-actions { margin-top: 24px; }
.result dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 20px; margin: 22px 0 0; border-top: var(--rule) solid var(--fg); }
.result dt, .result dd { padding: 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.result dt { font-weight: 600; font-size: .9rem; }
.result dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) {
  .result dl { grid-template-columns: 1fr; }
  .result dt { border-bottom: 0; padding-bottom: 0; }
}

/* ── 洽詢橫幅與頁尾 ── */
.cta-band { padding: clamp(72px, 10vw, 136px) 0; }
.cta-band .wrap { display: flex; flex-direction: column; }
.cta-band h2 { order: 1; font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.1; max-width: 16em; }
@media (max-width: 340px) { .cta-band h2 { font-size: 1.9rem; } }
.cta-band p { order: 3; margin-top: 18px; max-width: 40em; font-size: 1.05rem; }
.cta-band .btns { order: 4; margin-top: 32px; }
.cta-band .btn.primary { background: var(--pop); color: var(--on-pop); border-color: var(--pop); }
.cta-band .btn.primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* 次要按鈕：只出現在頁尾橫幅，描邊、透明底 */
.btn.secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.secondary:hover { background: var(--fg); color: var(--bg); }

.site-foot { padding: 48px 0 56px; font-size: .92rem; border-top: 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; }
.site-foot a { text-decoration: underline; }
.site-foot b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; font-synthesis-weight: none; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .en { font-size: .75rem; letter-spacing: .1em; }
.foot-brand-link { text-decoration: none !important; }
.foot-brand-link:hover b { text-decoration: underline; }
.site-foot [data-other-programs] { display: inline-block; margin-top: 8px; }
/* 頁尾信箱連結的點擊範圍至少 24px 高（T-8；行內連結只有約 22px） */
.site-foot a[href^="mailto:"] { display: inline-block; min-height: 24px; padding: 2px 0; }

/* ── 首頁 ── */
#philosophy .sec-head, #about .sec-head { max-width: 58rem; margin-bottom: 0; }
#philosophy .sec-head h2, #about .sec-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.08; }
/* 英文首頁的公司全名：INTERNATIONAL 一個字在 38.4px 有 331px 寬，360px 以下的手機會撐出橫向捲軸；下限降到 32px（約 276px），320px 也放得下 */
#about .sec-head h2 { font-size: clamp(2rem, 6vw, 5rem); }
#philosophy .sec-head p, #about .sec-head p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; margin-top: 28px; }
.home-about p + p { margin-top: 14px; }

/* 三張封套並排，像唱片架上的一排唱片 */
.programs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch; padding-bottom: 18px; border-bottom: 6px solid var(--ink);
}
.program {
  --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
  display: flex; flex-direction: column; background: var(--bg); color: var(--fg); text-decoration: none; min-width: 0;
  transition: transform .45s var(--ease);
}
.program:hover { transform: translateY(-12px); }
.program .photo { aspect-ratio: 1 / 1; }
.program .card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.program h3 { order: 1; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.program .card-body .eyebrow { order: 2; margin-top: 10px; font-size: .85rem; }
.program p { order: 3; margin: 12px 0 18px; font-size: .95rem; }
.program .more {
  order: 4; align-self: flex-start; margin-top: auto; padding: 8px 16px; border-radius: 999px;
  background: var(--pop); color: var(--on-pop); font-weight: 600; font-size: .92rem;
}
.program:hover .more { background: var(--fg); color: var(--bg); }
/* 901–1100px：四張並排每張不到 250px，標題會擠成一字一行；改成兩排兩張 */
@media (min-width: 901px) and (max-width: 1100px) { .programs:not(.single) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.programs.single { grid-template-columns: minmax(0, 520px); }
.programs.single .program { width: 100%; }
/* 沒有照片的封套（英文首頁）：整張正方形平塗，標題沉到下緣 */
.program:not(:has(.photo)) { aspect-ratio: 1 / 1; }
.program:not(:has(.photo)) .card-body { justify-content: flex-end; padding: clamp(24px, 4vw, 40px); }
.program:not(:has(.photo)) h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
@media (max-width: 900px) {
  /* 手機：唱片架改成橫向滑動，下一張露出一截 */
  .programs:not(.single) {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 360px);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter) 18px; scroll-padding: 0 var(--gutter);
    border-bottom: 0; scrollbar-color: var(--ink) transparent;
  }
  .programs:not(.single) .program { scroll-snap-align: start; }
  .program:hover { transform: none; }
}

/* ══ 首頁 logo 動畫 hero（品牌承諾，幾何與時間軸照 V2 原樣；只換底色、文案與按鈕的顏色）══ */
.hero-logo { padding: 56px 0 72px; overflow: hidden; }
.hero-logo-grid { display: grid; grid-template-columns: minmax(260px, 460px) 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-logo-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; } }
.hero-logo-emblem { display: flex; flex-direction: column; align-items: center; }
.hero-logo-svg { width: min(90vw, 420px); height: auto; }
/* 手機：徽章縮小（幾何與動畫不動，只縮尺寸），標題、說明與兩顆按鈕才擠得進 390×844 的第一屏 */
@media (max-width: 560px) {
  .hero-logo { padding: 32px 0 48px; }
  .hero-logo-svg { width: min(62vw, 260px); }
  .hero-wordmark { line-height: 1.3; }
  .hero-logo-copy .btn { padding-inline: 1.25em; }
}
.hero-wordmark {
  margin-top: 6px; font-family: var(--display); font-size: 1.5rem; letter-spacing: .12em; color: var(--white);
  opacity: 0; animation: hero-fade .6s ease-out 3s both;
}
.hero-logo-copy { display: flex; flex-direction: column; color: var(--white); opacity: 0; animation: hero-copy-in .7s ease-out 3.1s both; }
.hero-logo-copy h1 { order: 1; color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.12; }
@media (max-width: 340px) { .hero-logo-copy h1 { font-size: 1.9rem; } }
/* 第二行縮排一格：手機版置中時本來就內縮，電腦版靠左對齊也比照（2026-10-16 業主） */
.hero-logo-copy h1 .h1-indent { display: inline-block; padding-inline-start: 1em; }
.hero-logo-copy .eyebrow { order: 2; margin-top: 14px; color: #f6c531; }
.hero-logo-copy .lead-line { white-space: nowrap; }
.hero-logo-copy .lead { order: 3; margin-top: 18px; color: color-mix(in oklab, var(--white) 86%, var(--ink)); font-size: 1.05rem; max-width: 34em; }
.hero-logo-copy .btns { order: 4; }
.hero-logo-copy .btn { border-color: var(--white); color: var(--white); }
.hero-logo-copy .btn.primary { background: #f6c531; border-color: #f6c531; color: var(--ink); }
.hero-logo-copy .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
@media (max-width: 900px) { .hero-logo-copy .btns { justify-content: center; } .hero-logo-copy .lead { margin-inline: auto; } }

.globe-fill { fill: #1f3163; }
.continents path { fill: none; stroke: #6c85b8; stroke-width: 1.7; opacity: 0; animation: hero-fade 1s ease-out .5s both; }
.taiwan-dot { fill: #fff; opacity: 0; transform-box: view-box; transform-origin: center; animation: taiwan-flash 1.1s ease-out .7s both; }

/* 雙細環＋兩顆定位點（V2 原樣） */
.ring-thin { fill: none; stroke: #e0b25e; opacity: 0; animation: ring-thin-in .3s ease-out .8s both; }
.ring-thin--outer { stroke-width: 3.5; --ring-thin-opacity: 1; }
.ring-thin--inner { stroke-width: 3; --ring-thin-opacity: 1; }
.ring-dot { fill: #e0b25e; opacity: 0; animation: hero-fade .25s ease-out .85s both; }
.ring-draw {
  stroke: #e8c27a; stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hero-draw .8s ease-out 0s both, hero-fade-out .25s ease-in .82s both;
}

/* 赤道環與繞行金點（V2 原樣） */
.equator-ring {
  fill: none; stroke: #cfd8ea; stroke-width: 2.6; opacity: .85;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hero-draw .8s ease-out 1.2s both;
}
.equator-dot {
  fill: #e8c27a; opacity: 0;
  offset-path: ellipse(250px 29px at 320px 340px);
  animation: hero-fade .3s linear 1.2s both, equator-orbit 16s linear 1.2s infinite;
}

/* 幼苗（V2 原樣） */
.seedling-stem {
  fill: #fbf9f6;
  transform-box: view-box; transform-origin: 318px 506px;
  animation: seedling-grow-y .7s ease-out 1.8s both;
}
.seedling-leaf { transform-box: view-box; }
.seedling-leaf--gold {
  fill: #d9aa55; transform-origin: 330px 305px;
  animation: seedling-grow-scale .55s ease-out 2.2s both, leaf-sway 3.8s ease-in-out 3.2s infinite reverse;
}
.seedling-leaf--green {
  fill: #7a9a5a; transform-origin: 318px 352px;
  animation: seedling-grow-scale .55s ease-out 2.55s both, leaf-sway 4.2s ease-in-out 3.4s infinite;
}

.ring-text { fill: #e8c27a; font-family: var(--text); font-size: 21px; font-weight: 600; letter-spacing: .3em; opacity: 0; animation: hero-fade .5s ease-out 2.8s both; }

@media (prefers-reduced-motion: reduce), print {
  .hero-wordmark, .hero-logo-copy, .continents path, .taiwan-dot, .equator-dot,
  .seedling-stem, .seedling-leaf, .ring-text, .ring-dot { animation: none !important; opacity: 1 !important; transform: none !important; }
  .ring-thin { animation: none !important; opacity: var(--ring-thin-opacity) !important; }
  .ring-draw { animation: none !important; opacity: 0 !important; }
  .taiwan-dot { opacity: .9 !important; }
  .equator-ring, .seedling-stem { stroke-dashoffset: 0 !important; }
  .equator-dot { offset-distance: 0% !important; }
}

@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-thin-in { from { opacity: 0; } to { opacity: var(--ring-thin-opacity); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes taiwan-flash {
  0% { opacity: 0; transform: scale(.3); }
  45% { opacity: 1; transform: scale(2.2); }
  100% { opacity: .9; transform: scale(1); }
}
@keyframes equator-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes seedling-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes seedling-grow-scale { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes leaf-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* ── 減少動態：拿掉所有位移與轉場 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .program:hover { transform: none; }
}

/* ── 列印：白底黑字，保留結構；<details> 由 site.js 在 beforeprint 展開 ── */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html { font-size: 14px; }
  body { background: #fff; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 導覽、表單、互動元件不印 */
  .skip-link, .site-head, .nav, .nav-toggle, .day-strip, form, .form, .form-actions, .result, .mock-badge,
  #form, #inquiry, .cta-band .btns, .hero .btns, .btn, video, iframe, .lang-switch, .member-link { display: none !important; }
  /* 沒有 JS 時的保底：讓收合的 <details> 內容也看得見 */
  details::details-content { content-visibility: visible; display: block; }
  details > summary::after { display: none !important; }
  details.day > summary, .acc summary { cursor: default; }
  .hero, .hero-logo, main > section, .cta-band, .site-foot, .program, .price-card.featured, .result, details.day, details.day[open] {
    --bg: #fff; --fg: #000; --pop: #fff; --on-pop: #000; background: #fff; color: #000;
  }
  main > section, section.block, .hero, .cta-band { padding-top: 12px; padding-bottom: 12px; }
  .sec-head { margin-bottom: 12px; }
  .grid-2, .grid-3, .flow { gap: 14px 24px; }
  .card-body { padding-top: 10px; }
  .facts, .key-facts { margin-top: 10px; }
  /* 只有螢幕上才有意義的操作提示（點一天看細節等） */
  .tap-hint { display: none !important; }
  .photo img { filter: none; }
  a { color: inherit; text-decoration: none; }
  /* 不要在卡片、行程、問答、表格列中間斷頁；標題不落單 */
  .card, .price-card, .safety-item, .fact, .review-list li, .mission-row, .acc details, details.day, .note, .partner-badge, tr, figure {
    break-inside: avoid; page-break-inside: avoid;
  }
  details.day > summary, h1, h2, h3, .sec-head { break-after: avoid; page-break-after: avoid; }
  .day-body { padding-left: 16px; }
  .acc .acc-body { padding-right: 4px; }
  .site-head { position: static; }
}

/* ── 四步報名頁（/csmu-healthcamp/apply/）：留白段落裡的分步表單，底部固定金額試算 ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.apply-hero { padding-bottom: clamp(28px, 4vw, 52px); }
.apply-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); word-break: keep-all; overflow-wrap: break-word; }
.apply-hero .eyebrow { margin-top: 14px; }
.apply-hero .lead { margin-top: 18px; font-size: 1.05rem; max-width: 40em; }
.apply-hero .mock-badge { margin-top: 22px; }
.apply-intro { display: grid; gap: 10px; max-width: 46rem; margin-bottom: 28px; }
.apply-intro .apply-note, .apply-intro .apply-status { margin: 0; }
.apply-status { font-weight: 600; padding-left: 14px; border-left: var(--rule) solid var(--fg); }
.apply-switch { max-width: 46rem; margin-bottom: 28px; display: grid; gap: 8px; }
.apply-switch h2 { margin: 0; font-size: 1.05rem; font-family: var(--text); font-weight: 600; letter-spacing: 0; }
.apply-switch ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.apply-switch li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.apply-switch-name small { margin-left: .3em; }
.apply-switch li[aria-current="page"] .apply-switch-name { font-weight: 600; }
.apply-switch-tag { font-size: .85rem; font-weight: 600; border: var(--rule) solid var(--fg); border-radius: 999px; padding: 1px 12px; }
.apply-switch a { font-weight: 600; color: var(--fg); }
.apply-note { max-width: 46rem; font-size: .95rem; margin-bottom: 28px; padding-left: 14px; border-left: var(--rule) solid var(--fg); }
.apply-steps { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule) solid var(--fg); }
.apply-steps li { border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.apply-steps button {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 6px;
  cursor: pointer; font-weight: 600; border-top: 4px solid transparent; margin-top: -3px;
}
.apply-steps button:disabled { cursor: default; opacity: .55; }
.apply-steps button[aria-current] { border-top-color: var(--fg); }
.apply-steps button:focus-visible { outline: 3px solid var(--fg); outline-offset: -3px; }
.apply-steps .disc {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: var(--rule) solid var(--fg); font-family: var(--display); font-variant-numeric: tabular-nums; line-height: 1;
}
.apply-steps button[aria-current] .disc, .apply-steps li.done .disc { background: var(--fg); color: var(--bg); }
@media (max-width: 560px) {
  .apply-steps button { flex-direction: column; justify-content: center; gap: 4px; text-align: center; font-size: .85rem; padding: 8px 2px; }
}
.apply-form [data-step-panel] > h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
.apply-form [data-step-panel] > h2:focus { outline: none; }
.step-intro { margin: 10px 0 22px; max-width: 42rem; }
.apply-form .form-status { margin: 0 0 22px; max-width: 42rem; }
.sub-head { font-size: 1.35rem; margin: 34px 0 6px; padding-top: 16px; border-top: var(--rule) solid var(--fg); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .category-grid { grid-template-columns: 1fr; } }
.category-card {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 18px 18px 56px; cursor: pointer;
  border: var(--rule) solid var(--ink); background: var(--white); color: var(--ink);
}
.category-card:has(input:checked) { background: var(--ground); color: var(--on-ground); }
.category-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.category-card input { position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
.category-name { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.category-price { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.category-price s { font-size: 1.1rem; opacity: .7; margin-right: 6px; }
.category-price small { font-family: var(--text); font-size: .9rem; font-weight: 500; }
.category-card .checks { margin: 4px 0 0; }
.student { border-top: var(--rule) solid var(--fg) !important; padding: 0 0 8px !important; margin: 0 0 28px !important; }
.student > legend { font-size: 1.3rem !important; margin-bottom: 16px !important; border-top: 0 !important; }
.student .form-actions { margin-top: 16px; }
.student .form-actions .btn, .apply-form [data-add-student] { min-width: 0; min-height: 44px; padding: .4em 1.1em; font-size: .95rem; }
.options.stacked { flex-direction: column; align-items: stretch; gap: 14px; }
.options.stacked label { align-items: flex-start; }
.options.stacked input { flex: none; margin-top: 2px; }
.terms { display: grid; gap: 20px; margin-bottom: 26px; }
.term { padding-top: 12px; border-top: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.term h4 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 6px; }
.term p { margin: 0; max-width: 46rem; }
.policy .wrap { display: grid; gap: 28px; }
.policy h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; margin: 0 0 8px; }
.policy p, .policy ul { max-width: 46rem; margin: 0 0 10px; }
.policy ul { padding-left: 1.3em; }
.policy-pending { display: inline-block; font-size: .85rem; font-weight: 600; padding: 2px 10px; border: 1px solid var(--fg); }
.consents a { text-decoration: underline; text-underline-offset: 3px; }
.consents { border: 0; margin: 0; padding: 0; }
.apply-summary { display: grid; gap: 18px; }
.apply-summary section { background: transparent; padding: 0; }
.apply-summary h4 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 4px; }
.apply-summary dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); margin: 0; border-top: var(--rule) solid var(--fg); }
.apply-summary dt, .apply-summary dd { padding: 8px 0; margin: 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); overflow-wrap: anywhere; }
.apply-summary dt { font-weight: 600; font-size: .9rem; padding-right: 14px; }
@media (max-width: 560px) {
  .apply-summary dl { grid-template-columns: 1fr; }
  .apply-summary dt { border-bottom: 0; padding-bottom: 0; }
}
.link-btn { all: unset; cursor: pointer; font-family: var(--text); font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; margin-left: 8px; }
.link-btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.estimate {
  position: sticky; bottom: 0; z-index: 5; display: grid; gap: 2px; padding: 12px 16px;
  background: var(--ink); color: var(--white); border-top: var(--rule) solid var(--white);
}
.est-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.est-label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.est-total { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est-break { font-size: .9rem; font-variant-numeric: tabular-nums; }
.est-note { font-size: .78rem; opacity: .8; }
.apply-nav { margin-top: 4px; }
.apply-nav .btn { min-width: 9rem; }
.apply-nav [data-submit]:disabled { opacity: .45; cursor: not-allowed; }
.apply-nav [data-submit]:disabled:hover { background: var(--pop); color: var(--on-pop); border-color: var(--pop); }
@media (max-width: 560px) { .est-note { display: none; } }
.apply [hidden] { display: none !important; }
/* 只有一個連結的頁首（隱私權政策）：手機寬度不收合，語言切換照常顯示 */
@media (max-width: 860px) {
  .site-head--static .nav { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; }
  .site-head--static .nav a, .site-head--static .nav .lang-switch { font-family: var(--text); font-weight: 500; font-size: .88rem; font-variation-settings: normal; border: var(--rule) solid var(--fg); border-radius: 999px; padding: 3px 14px; }
}
.policy .todo { margin-left: .5em; }
.consent-link { margin: 0; padding-left: 32px; font-size: .95rem; }


/* 家長專區（預覽站，票 #16）：家長資料摘要、學員列表、家長資料與學員表單。
   摘要沿用報名頁確認步驟的 dl 樣式（2px 線＋細線分隔），學員列表是編號的 tracklist。 */
[data-account] [hidden] { display: none !important; }
[data-account] [data-signed-in] { display: grid; gap: clamp(40px, 6vw, 64px); }
[data-account] [data-signed-in]:focus { outline: none; }
.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; border-bottom: var(--rule) solid var(--fg); }
.account-bar p { margin: 0; overflow-wrap: anywhere; }
.account-note { margin: 0; font-weight: 600; }
.account-section { display: grid; gap: 18px; }
.account-section h2, .account-form h2 { margin: 0; }
.account-form > div > p { margin: 10px 0 0; max-width: 40rem; }
.fieldset-lead { margin: 0 0 18px; max-width: 42rem; }
.account-facts { display: grid; grid-template-columns: 11rem minmax(0, 1fr); margin: 0; border-top: var(--rule) solid var(--fg); }
.account-facts > div { display: contents; }
.account-facts dt, .account-facts dd { padding: 10px 0; margin: 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); overflow-wrap: anywhere; }
.account-facts dt { font-weight: 600; font-size: .9rem; padding-right: 14px; }
.account-list { list-style: none; margin: 0; padding: 0; counter-reset: track; border-top: var(--rule) solid var(--fg); }
.account-list:empty { display: none; }
.account-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 16px;
  padding: 14px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 45%, var(--bg)); counter-increment: track;
}
.account-list li::before { content: counter(track); font-family: var(--display); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums; min-width: 1.2em; }
.account-list b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; overflow-wrap: anywhere; }
.account-list small { display: block; font-size: .88rem; color: color-mix(in oklab, var(--fg) 90%, var(--bg)); overflow-wrap: anywhere; }
.account-list .btn { min-height: 40px; padding: .45em 1.2em; }
@media (max-width: 560px) {
  .account-facts { grid-template-columns: 1fr; }
  .account-facts dt { border-bottom: 0; padding-bottom: 0; }
  .account-list li { grid-template-columns: auto minmax(0, 1fr); }
  .account-list li .btn { grid-column: 2; justify-self: start; }
}

/* 報名（預覽站，票 #18）：報名頁登入前的提示、伺服器說不能選的價格類別、勾選已登記的學員；家長專區的報名紀錄表與「回到報名頁」。 */
.apply-gate { display: grid; gap: 14px; max-width: 46rem; padding: 20px 0; border-top: var(--rule) solid var(--fg); }
.apply-gate h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.apply-gate p { margin: 0; }
.category-card:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.category-off { font-size: .85rem; font-weight: 600; }
.pick-name { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; overflow-wrap: anywhere; }
.pick-name input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--ink); }
.pick-name:has(input:disabled) { cursor: not-allowed; opacity: .7; }
.pick-meta, .pick-already { margin: 0 0 12px; font-size: .92rem; }
.pick-already { font-weight: 600; }
.account-return { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 16px; border: var(--rule) solid var(--fg); }
.account-return p { margin: 0; }
.account-table { overflow-x: auto; border-top: var(--rule) solid var(--fg); }
.account-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.account-table th, .account-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); overflow-wrap: anywhere; }
.account-table th { font-size: .85rem; font-weight: 600; }
.account-table .reg-code { font-weight: 600; white-space: nowrap; }
.account-table .reg-status b { display: block; }
.account-table .reg-status small { display: block; font-size: .85rem; max-width: 22rem; }
@media (max-width: 640px) {
  .account-table { overflow-x: visible; }
  .account-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .account-table tr { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
  .account-table td { border: 0; padding: 0; }
}

/* 後台（預覽站，票 #19，同仁用）：清楚好讀優先。資料多的地方用表格，表格容器可以橫向捲動（手機也保留表格，不改成卡片），
   頁面本身不會橫向捲動。沿用家長專區的 2px 線＋細線分隔。 */
/* 每個後台頁的根容器都要列在這裡（.admin-home、.form 之類會設 display 的 class 會蓋掉 hidden）：#19 報名後台、#25 洽詢、#21 取消申請、#24 同仁名單 */
[data-admin] [hidden], [data-inq] [hidden], [data-cancels] [hidden], [data-staff-admin] [hidden], [data-guardians] [hidden] { display: none !important; }
/* 後台頁是工作畫面：標題區到內容之間不要留對外頁面那種 120px 的段落留白（1768px 寬時標題與搜尋表單之間空了約 170px） */
@media screen {
  .hero.apply-hero:has(+ section.block:is([data-admin], [data-inq], [data-cancels], [data-staff-admin], [data-guardians], [data-deletions], [data-account], .apply)) { padding-bottom: clamp(12px, 2vw, 24px); }
  section.block:is([data-admin], [data-inq], [data-cancels], [data-staff-admin], [data-guardians], [data-deletions], [data-account], .apply) { padding-top: clamp(20px, 3vw, 40px); }
}
/* 家長專區的三步驟進度與「前往報名」 */
.account-progress { display: grid; gap: 18px; min-width: 0; }
.account-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: var(--rule) solid var(--fg); }
.account-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 0 4px; }
.account-steps .step-n { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: var(--rule) solid var(--fg); font-family: var(--display); font-weight: 600; }
.account-steps li[data-done="true"] .step-n { background: var(--fg); color: var(--bg); }
.account-steps li[data-done="true"] .step-n::before { content: "\2713"; }
.account-steps li[data-done="true"] .step-n { font-size: 0; }
.account-steps li[data-done="true"] .step-n::before { font-size: 1rem; }
.account-steps .step-name { font-weight: 600; }
.account-steps small { font-size: .85rem; }
.account-next { display: grid; gap: 12px; padding: 18px 0 0; }
.account-next p { margin: 0; font-weight: 500; }
.account-next .form-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.account-next .btn.primary { min-height: 52px; font-size: 1.05rem; text-align: center; }
@media (max-width: 480px) {
  .account-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .account-steps li { padding: 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
  .account-next .btn.primary { width: 100%; }
}
.admin-members { display: grid; gap: 10px; margin-bottom: 28px; }
.admin-members-title { margin: 0; font-size: 1.3rem; }
.admin-members .fieldset-lead { margin: 0; }
.admin-members-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.admin-members-list a { display: flex; align-items: baseline; gap: 10px; color: var(--fg); text-decoration: none; padding: 6px 0; border-bottom: var(--rule) solid var(--fg); }
.admin-members-list a:hover { background: var(--fg); color: var(--bg); }
.admin-members-list b { font-family: var(--display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
[data-admin] [data-members][hidden] { display: none !important; }
.admin-nav { margin-left: auto; display: flex; gap: 20px; font-size: .95rem; font-weight: 500; }
.admin-nav[hidden] { display: none !important; }
.admin-nav a { color: var(--fg); padding: 4px 0; }
[data-inq] [data-signed-in] { display: grid; gap: 24px; min-width: 0; }
/* 刪除帳號申請（#26）：後台頁根容器與會員頁的區塊都要讓 [hidden] 贏過 display 規則 */
[data-deletions] [hidden], [data-deletion] [hidden], [data-deletion][hidden] { display: none !important; }
[data-deletions] [data-signed-in] { display: grid; gap: 24px; min-width: 0; }
.account-deletion ul { margin: 0; padding-left: 1.2em; }
/* 刪除帳號：最底部、預設收合，視覺上比其他區塊弱（細分隔線、次要文字色、小一點的標題） */
.account-deletion { border-top: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); padding-top: 18px; color: color-mix(in oklab, var(--fg) 75%, var(--bg)); }
.account-deletion .deletion-details { display: grid; gap: 14px; }
.account-deletion .deletion-details[open] > summary { margin-bottom: 14px; }
.account-deletion summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.account-deletion summary::-webkit-details-marker { display: none; }
.account-deletion summary::before { content: "+"; font-weight: 600; width: 1em; }
.account-deletion .deletion-details[open] > summary::before { content: "\2212"; }
.account-deletion summary h2 { font-size: 1rem; font-weight: 500; color: inherit; }
.account-deletion .deletion-details > * { min-width: 0; }
/* 家長資料：緊急聯絡人手機與家長相同時的確認區塊（只提醒不阻擋） */
.account-confirm { display: grid; gap: 12px; padding: 14px 16px; border: var(--rule) solid var(--fg); }
.account-confirm p { margin: 0; font-weight: 500; }
.account-confirm .form-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
[data-admin] [data-signed-in] { display: grid; gap: clamp(32px, 5vw, 56px); min-width: 0; }
[data-admin] [data-signed-in]:focus { outline: none; }
.admin-home, .admin-detail, [data-detail-body] { display: grid; gap: clamp(32px, 5vw, 56px); min-width: 0; }
.admin-detail > p { margin: 0; }
.admin-detail h3 { margin: 0; font-size: 1.3rem; }
.admin-detail h4 { margin: 8px 0 0; font-size: 1.05rem; }
.admin-table { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-top: var(--rule) solid var(--fg); }
.admin-table:focus-visible { outline: var(--rule) solid var(--fg); outline-offset: 4px; }
.admin-table table { width: 100%; min-width: max-content; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.admin-table thead th { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.admin-table td.num, .admin-table th.num { text-align: right; }
.admin-table .nowrap, .admin-table .reg-code { white-space: nowrap; }
.admin-table .reg-code { font-weight: 600; }
.admin-table a { color: inherit; font-weight: 600; }
.admin-table small, .admin-stack { display: block; }
.admin-table small { font-size: .85rem; }
.admin-table del { text-decoration: line-through; }
.admin-table ins { text-decoration: none; font-weight: 600; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.admin-filters .field { min-width: min(100%, 14rem); flex: 1 1 14rem; }
.admin-filters .form-actions { margin: 0; flex: 1 1 100%; }
.admin-table tbody th { white-space: nowrap; }
.admin-pager { display: flex; gap: 12px; }
.admin-pager a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.admin-updated { display: grid; gap: 12px; padding: 14px 16px; border: var(--rule) solid var(--fg); }
.admin-updated p { margin: 0; }
.admin-badge { display: inline-block; padding: .1em .7em; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .9rem; }
.admin-flag { margin: 0; font-weight: 600; }
.admin-consents { margin: 0; padding-left: 1.2em; }
.admin-consents li + li { margin-top: 6px; }
.account-facts small.admin-stack { font-size: .85rem; margin-top: 4px; }

/* 後台：健康資料、稽核紀錄、手動補寄（票 #22） */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0 0 12px; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.admin-nav a { color: inherit; font-weight: 600; }
.admin-nav a[aria-current="page"] { text-decoration: none; border-bottom: var(--rule) solid var(--fg); }
/* 後台頁首（#27 起有六個連結）：放不下時連結自然換到品牌下面一行，頁首高度跟著長，不壓到標題 */
.site-head .wrap:has(> .admin-nav) { height: auto; min-height: 64px; flex-wrap: wrap; row-gap: 6px; padding-block: 10px; }
.site-head .admin-nav { padding-bottom: 0; border-bottom: 0; gap: 4px 16px; }
.admin-audit { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); min-width: 0; }
[data-audit-body] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
[data-audit-body] > p { margin: 0; }
.admin-health { display: grid; gap: 12px; }
.admin-health .form-actions, .admin-health .form-status { margin: 0; }
.admin-health [data-health-view] { display: grid; gap: 8px; padding: 14px 16px; border: var(--rule) solid var(--fg); }
.admin-health [data-health-view] p { margin: 0; }
.admin-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.btn.admin-inline-btn { min-width: 0; margin-left: 8px; padding: .2em .9em; font-size: .85rem; }
.admin-resend-warning { margin-left: 8px; font-weight: 600; font-size: .85rem; }
.policy-updated { font-size: .9rem; margin: 0 0 10px; }


/* 學校組團：沿用封套曲目線條，入口直接開啟既有組團洽詢。 */
.school-group-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: var(--rule) solid var(--fg); }
.school-group-link { padding: 20px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--fg); }
.school-group-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.school-group-link:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }
.school-group-links:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 38rem; }
.trust-pending-policies { margin-top: 24px; }
.trust-pending-policies p { max-width: 65ch; }
@media (max-width: 860px) {
  /* 先呈現方案、費用與洽詢，再看照片，讓手機第一屏有可採取的行動。 */
  .hero-grid > .photo { order: 1; }
}
@media (max-width: 560px) {
  .hero-logo { padding: 20px 0 28px; }
  .hero-logo-grid { gap: 12px; }
  .hero-logo-svg { width: min(38vw, 160px); }
  .hero-wordmark { margin-top: 8px; font-size: 1.05rem; }
  .hero-logo-copy h1 { font-size: clamp(1.9rem, 8vw, 2.25rem); }
  .hero-logo-copy .eyebrow { margin-top: 8px; }
  .hero-logo-copy .lead { margin-top: 12px; font-size: 1rem; line-height: 1.6; }
  .school-group-links { grid-template-columns: minmax(0, 1fr); }
}

.trust-pending-policies ul { margin-top: 12px; padding-left: 1.2em; max-width: 65ch; }
.trust-pending-policies li + li { margin-top: 8px; }

/* 首頁品牌小標：種芽徽記使用向量遮罩；徽記與公司名都是黃色（2026-10-16 業主要求，同 hero 主按鈕的 #f6c531）。 */
.brand-emblem--approved {
  width: 28.8px;
  height: 28.8px;
  padding: 0;
  border-radius: 0;
  background: #f6c531;
  mask-image: url("/img/brand/ruhe-symbol-b-white.svg");
  mask-mode: alpha;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.brand:has(.brand-emblem--approved) { color: #f6c531; gap: 10px; }
.brand:has(.brand-emblem--approved) .brand-text b { letter-spacing: .08em; }
.brand:has(.brand-emblem--approved) .brand-text small { color: #f6c531; font-size: .66rem; letter-spacing: .11em; }
@media (max-width: 380px) {
  .brand-emblem--approved { width: 25.2px; height: 25.2px; }
  .brand:has(.brand-emblem--approved) { gap: 8px; }
  .brand:has(.brand-emblem--approved) .brand-text b { font-size: 1rem; letter-spacing: .05em; }
}

.site-head:has(.brand-emblem--approved) {
  --bg: var(--ink);
  --fg: var(--white);
  --pop: var(--white);
  --on-pop: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* 首頁以外的頁首：同一個 B 款種芽徽記，顏色跟著品牌文字（方案頁主題色底上是深藍），不再用白圓底的舊徽章。 */
.brand-emblem--mark {
  width: 28.8px;
  height: 28.8px;
  padding: 0;
  border-radius: 0;
  background: currentColor;
  mask-image: url("/img/brand/ruhe-symbol-b-white.svg");
  mask-mode: alpha;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.site-head--cta .brand-emblem--mark { width: 25.2px; height: 25.2px; }
@media (max-width: 380px) {
  .brand-emblem--mark { width: 25.2px; height: 25.2px; }
}

/* 頁尾徽記：跟頁首同一個 B 款種芽（2026-11-16 業主要求頁尾 logo 改成跟上面一樣）；首頁跟頁首一樣用黃色，其他頁跟頁尾文字同色。 */
.foot-emblem--mark {
  width: 56px;
  height: 56px;
  background: currentColor;
  mask-image: url("/img/brand/ruhe-symbol-b-white.svg");
  mask-mode: alpha;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
body:has(.brand-emblem--approved) .foot-emblem--mark { background: #f6c531; }

/* 安全承諾：退費級距條列與佐證連結 */
.safety-list { margin: 8px 0 0; padding-left: 1.2em; }
.safety-list li + li { margin-top: 2px; }
.safety-text > p + p, .safety-text > ul + p { margin-top: 8px; }
.safety-source { font-size: .85em; }
.safety-source a { text-decoration: underline; text-underline-offset: 2px; }

/* 中山醫大營「校園一覽」：中山醫學大學提供的照片，3 欄（手機 2 欄），統一 4:3 裁切 */
.campus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.campus-grid .photo { aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .campus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
/* 校門照片的校名牌在右側，方形裁切時往右偏 */
.hero .photo img[src^="/img/csmu-campus-gate"], .card .photo img[src^="/img/csmu-campus-gate"] { object-position: 78% 50%; }

/* 柬埔寨實拍：方形特色卡保留三個孩子、湖上小船與划船者，依各張主體定位。 */
.card .photo img[src^="/img/kh-school-mural"] { object-position: 75% 50%; }
.card .photo img[src^="/img/kh-dusk-pier"] { object-position: 70% 50%; }
.card .photo img[src^="/img/kh-village-house"] { object-position: 80% 50%; }
/* 實地踏查保留原始比例，校名、告示牌文字與船身不再被 4:3 框裁掉。 */
.theme-kh #field-visit .photo { aspect-ratio: auto; }
.theme-kh #field-visit .photo img { display: block; height: auto; }

/* ── 學員頁（結業紀錄 #29）：日程是一排膠囊，選到的那天實心，其他是外框 ── */
.student-home { display: grid; gap: 20px; max-width: 48em; }
.student-program { font-weight: 600; }
.student-days { display: flex; flex-wrap: wrap; gap: 8px; }
.student-days .chip { border: var(--rule) solid var(--fg); background: transparent; color: var(--fg); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.student-days .chip[aria-pressed="true"] { background: var(--pop); color: var(--on-pop); border-color: var(--pop); }
.student-note textarea { min-height: 14em; resize: vertical; }
/* 家長專區的學員連結（結業紀錄 #30）：每位學員一列，重新產生後顯示新連結與 QR code */
.student-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.student-link { display: grid; gap: 8px; padding-top: 14px; border-top: var(--rule) solid var(--fg); }
.student-link-title { font-weight: 600; }
.student-link-new { display: grid; gap: 10px; justify-items: start; }
.student-link-url { font-family: var(--text); font-size: .92rem; overflow-wrap: anywhere; user-select: all; }
.student-link-qr { background: var(--white); padding: 8px; image-rendering: pixelated; }
/* 後台出席表（結業紀錄 #32）：學員姓名是按鈕，長得像連結 */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; cursor: pointer; text-align: left; }
/* 家長的結業紀錄頁（結業紀錄 #33）：封面三個事實像曲目，每天是 tracklist，孩子的筆記是引文 */
.record-facts { list-style: none; margin: 24px 0 0; padding: 0; border-top: var(--rule) solid var(--fg); max-width: 36em; font-variant-numeric: tabular-nums; }
.record-facts li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 45%, var(--bg)); }
.record-facts .k { color: color-mix(in oklab, var(--fg) 90%, var(--bg)); font-size: .9rem; }
.record-facts .v { font-weight: 600; }
.record-section h2 { margin-bottom: 10px; }
.record-hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); gap: 0; margin: 20px 0 0; border-top: var(--rule) solid var(--fg); border-bottom: var(--rule) solid var(--fg); font-variant-numeric: tabular-nums; }
.record-hours dt { font-size: .85rem; letter-spacing: .04em; padding-top: 14px; }
.record-hours dd { margin: 0 0 14px; font-family: var(--display); font-weight: 600; font-size: 1.6rem; }
.record-tracks { list-style: none; margin: 20px 0 0; padding: 0; border-top: var(--rule) solid var(--fg); }
.record-track { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 6px 20px; padding: 18px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 45%, var(--bg)); }
.record-track.is-absent .record-day-body h3 { color: color-mix(in oklab, var(--fg) 60%, var(--bg)); }
.record-day { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.record-day small { display: block; font-family: var(--text); font-size: .72rem; font-weight: 500; letter-spacing: .06em; }
.record-day-body h3 { font-size: 1.15rem; font-weight: 500; }
.record-tag { display: inline-block; font-size: .78rem; font-weight: 500; border: 1.5px solid currentColor; border-radius: 999px; padding: 0 10px; margin-right: 8px; vertical-align: 2px; }
.record-day-meta { font-size: .85rem; color: color-mix(in oklab, var(--fg) 90%, var(--bg)); font-variant-numeric: tabular-nums; }
.record-note { margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--fg); max-width: 40em; }
.record-note cite { display: block; font-style: normal; font-size: .8rem; margin-top: 4px; }
.record-teacher { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.6; max-width: 36em; white-space: pre-line; }
.record-goals { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; border-top: var(--rule) solid var(--fg); padding-top: 18px; }
.record-goals h3 { font-size: 1.15rem; }
@media (max-width: 760px) {
  .record-track { grid-template-columns: 3.4em minmax(0, 1fr); }
}
.admin-note { white-space: pre-line; }
/* 結業證明（結業紀錄 #35）：螢幕上是白紙放在底色上；列印時只印這張紙，A4 一頁 */
.certificate { background: var(--white); color: var(--ink); max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); display: grid; gap: 18px; border-top: 12px solid var(--ground); }
.certificate-head { display: flex; gap: 14px; align-items: center; font-size: .95rem; }
.certificate-head .brand-emblem { width: 44px; height: 44px; background: var(--ink); }
.certificate-title { display: grid; gap: 2px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.certificate-title [lang="en"] { font-size: .55em; font-weight: 500; letter-spacing: .04em; }
.certificate p { max-width: 42em; }
.certificate-hours { font-weight: 600; font-variant-numeric: tabular-nums; }
.certificate-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: .92rem; font-variant-numeric: tabular-nums; }
.certificate-meta dt { color: color-mix(in oklab, var(--ink) 70%, var(--white)); }
.certificate-meta dd { margin: 0; font-weight: 600; letter-spacing: .03em; }
.certificate-foot { display: flex; gap: 16px; align-items: center; border-top: 1px solid color-mix(in oklab, var(--ink) 25%, var(--white)); padding-top: 16px; font-size: .82rem; }
.certificate-qr { flex: none; image-rendering: pixelated; }
.verify-result { margin-top: 24px; display: grid; gap: 12px; }
.verify-status { font-family: var(--display); font-weight: 600; font-size: 1.4rem; }
@media print {
  body:has(.certificate) .site-foot, body:has(.certificate) .certificate-tools { display: none !important; }
  body:has(.certificate) main > section { padding: 0; }
  .certificate { max-width: none; border-top-width: 8px; padding: 18mm 16mm; break-inside: avoid; }
}
/* AI 營學員頁的課程指南（結業紀錄 #37） */
.student-prep summary { cursor: pointer; font-weight: 600; }
.student-prep ul { display: grid; gap: 10px; padding-left: 1.2em; }
.student-course { display: grid; gap: 10px; }
.student-course h2 { font-size: 1.4rem; }
.student-course h3 { font-size: 1.05rem; margin-top: 10px; }
.student-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.student-task { display: grid; gap: 6px; padding-top: 12px; border-top: var(--rule) solid var(--fg); }
.student-task ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.student-prompt { white-space: pre-line; padding: 12px 14px; border: var(--rule) solid var(--fg); }
/* AI 營方案頁的學員指南（2026-10-15 由 /learn/ 併入）：每天一段，任務是編號清單 */
.guide-day { display: grid; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: var(--rule) solid var(--fg); max-width: 52em; }
.guide-tasks { margin: 0; padding-left: 1.4em; display: grid; gap: 16px; }
.guide-tasks h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.guide-tasks ol { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 4px; }

/* AI 營家長版：閱讀段落與兩欄學習表，沿用方案頁的顏色與字型。 */
.theme-ai .ai-parent-copy { max-width: 46rem; }
.theme-ai .ai-parent-copy p { margin-top: 18px; }
.theme-ai .ai-copy-table { width: 100%; max-width: 70ch; border-collapse: collapse; table-layout: fixed; line-height: 1.8; }
.theme-ai .ai-copy-table th, .theme-ai .ai-copy-table td { padding: 18px 16px; text-align: left; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.theme-ai .ai-copy-table th:first-child { width: 32%; }
.theme-ai .ai-copy-table thead { border-top: var(--rule) solid var(--fg); }
.theme-ai .ai-parent-note { max-width: 70ch; margin-top: 28px; }
.theme-ai .ai-parent-question { font-weight: 650; font-size: 1.2rem; }
.theme-ai .ai-takeaways { list-style: none; padding: 0; max-width: 70ch; }
.theme-ai .ai-takeaways li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px 28px; padding: 24px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.theme-ai .ai-takeaways li:first-child { border-top: var(--rule) solid var(--fg); }
.theme-ai .ai-takeaways h3 { margin: 0; }
.theme-ai .ai-takeaways p { margin: 0; }
@media (max-width: 640px) {
  .theme-ai .ai-copy-table th, .theme-ai .ai-copy-table td { padding: 14px 8px; }
  .theme-ai .ai-takeaways li { grid-template-columns: 1fr; gap: 8px; }
}

/* ── AI 營頁面：2026-11-10 使用者指定改用家長簡章修訂版 6 的視覺 ──
   米白紙底、深綠墨色、薄荷綠強調與橘色重點，內容放進粉彩圓角卡片。
   只套在 AI 營自己的頁面（body.theme-ai）；首頁的 AI 營封套與其他方案仍是唱片封套皮。
   簡章來源：/vol5/1000/4-2T/claude-out/AI營家長簡章-20261110/簡章.html */
body.theme-ai {
  --ink: #24332e; --white: #fffdf7; --ground: #fffdf7; --on-ground: #24332e;
  --ai-soft: #5b6b65; --ai-mint: #e3f4ec; --ai-mint-d: #2f8f6b; --ai-sun: #fff1c9; --ai-sun-line: #ecd28a;
  --ai-pink: #fde6ea; --ai-sky: #e4f0fb; --ai-sky-d: #2f6fb0; --ai-orange: #b8611a; --ai-line: #d9e4df;
  --ai-radius: 18px;
}
body.theme-ai h1, body.theme-ai h2, body.theme-ai h3 { font-family: var(--text); font-weight: 700; font-variation-settings: normal; letter-spacing: 0; }
body.theme-ai .hero h1 { font-weight: 800; }
body.theme-ai .sec-head h2 { color: var(--ink); }
body.theme-ai .eyebrow { color: var(--ai-mint-d); font-weight: 700; }
body.theme-ai .hero .photo img { border-radius: var(--ai-radius); background: #fff; border: 1.5px solid var(--ai-line); }
body.theme-ai .hero .credit { border-radius: 8px; }
/* 重點資訊：簡章的黃色費用框 */
body.theme-ai .key-facts { background: var(--ai-sun); border: 1.5px solid var(--ai-sun-line); border-radius: var(--ai-radius); padding: 6px 22px; }
body.theme-ai .key-facts > div { border-color: color-mix(in srgb, var(--ai-orange) 25%, transparent); }
body.theme-ai .key-facts > div:last-child { border-bottom: 0; }
body.theme-ai .key-facts dt { color: var(--ai-orange); font-weight: 800; }
body.theme-ai .key-facts [data-key-fact="price"] dd { color: #c8452a; font-weight: 700; }
body.theme-ai .facts { gap: 14px; border-top: 0; }
body.theme-ai .fact { background: var(--ai-mint); border-radius: var(--ai-radius); padding: 14px 18px; border: 0; }
body.theme-ai .fact dt { color: var(--ai-mint-d); font-weight: 700; }
/* 按鈕：橘色主按鈕、深綠框次按鈕 */
body.theme-ai .btn { border-radius: 999px; }
body.theme-ai .btn.primary { background: var(--ai-orange); color: #fff; border-color: var(--ai-orange); }
body.theme-ai .site-head :is(.cta, .cta-mobile) { border-radius: 999px; background: var(--ai-orange); color: #fff; border-color: var(--ai-orange); }
/* 段落內容卡片化 */
body.theme-ai .ai-parent-copy:not(.ai-parent-note) { background: var(--ai-sky); border-radius: var(--ai-radius); padding: 22px 26px; max-width: 52rem; }
body.theme-ai .ai-parent-copy:not(.ai-parent-note) p:first-of-type { margin-top: 10px; }
body.theme-ai .ai-copy-table { border-collapse: separate; border-spacing: 0 10px; max-width: 52rem; }
body.theme-ai .ai-copy-table thead { border-top: 0; }
body.theme-ai .ai-copy-table thead th { border-bottom: 0; color: var(--ai-soft); font-size: .95rem; padding-bottom: 0; }
body.theme-ai .ai-copy-table tbody th, body.theme-ai .ai-copy-table tbody td { border-bottom: 0; background: var(--ai-mint); }
body.theme-ai .ai-copy-table tbody th { border-radius: var(--ai-radius) 0 0 var(--ai-radius); color: var(--ai-mint-d); }
body.theme-ai .ai-copy-table tbody td { border-radius: 0 var(--ai-radius) var(--ai-radius) 0; }
body.theme-ai #learning-applications .ai-copy-table tbody :is(th, td) { background: var(--ai-sky); }
body.theme-ai #learning-applications .ai-copy-table tbody th { color: var(--ai-sky-d); }
body.theme-ai .chip { border-radius: 999px; background: var(--ai-sun); border-color: var(--ai-sun-line); color: var(--ink); }
/* 兩天課表：第一天橘、第二天藍，和簡章同色 */
body.theme-ai .day-strip { gap: 14px; border: 0; }
body.theme-ai .day-chip { border: 1.5px solid var(--ai-line) !important; border-radius: var(--ai-radius); background: #fff; }
body.theme-ai .day-chip b { color: var(--ai-orange); }
body.theme-ai .day-chip--show b { color: var(--ai-sky-d); }
body.theme-ai .days { display: grid; gap: 14px; border: 0; }
body.theme-ai .day { border: 1.5px solid var(--ai-line); border-radius: var(--ai-radius); background: #fff; overflow: hidden; }
body.theme-ai .day .day-no { color: var(--ai-orange); }
body.theme-ai .day--show .day-no { color: var(--ai-sky-d); }
/* 孩子帶回家的：淺藍卡片、綠色勾 */
body.theme-ai .ai-takeaways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 60rem; }
body.theme-ai .ai-takeaways li, body.theme-ai .ai-takeaways li:first-child { display: block; background: var(--ai-sky); border: 0; border-radius: var(--ai-radius); padding: 18px 22px; }
body.theme-ai .ai-takeaways h3 { position: relative; padding-left: 1.5em; margin-bottom: 6px; }
body.theme-ai .ai-takeaways h3::before { content: "✓"; position: absolute; left: 0; color: var(--ai-mint-d); font-weight: 900; }
body.theme-ai .ai-parent-note { background: #fff; border: 1.5px dashed var(--ai-line); border-radius: var(--ai-radius); padding: 16px 22px; }
body.theme-ai .ai-parent-question { color: var(--ai-sky-d); }
/* 學員指南、常見問題、表單 */
body.theme-ai #guide .card { background: var(--ai-mint); border: 0; border-radius: var(--ai-radius); }
body.theme-ai #guide .card-body { padding: 18px 20px 20px; }
body.theme-ai #guide .card h3 { font-size: 1.15rem; color: var(--ai-mint-d); }
body.theme-ai .guide-day { background: #fff; border: 1.5px solid var(--ai-line); border-radius: var(--ai-radius); padding: 22px 26px; margin-top: 18px; }
body.theme-ai .acc { border-top: 0; display: grid; gap: 10px; }
body.theme-ai .acc > * { background: #fff; border: 1.5px solid var(--ai-line) !important; border-radius: var(--ai-radius); padding: 0 20px; }
body.theme-ai #form .fields :is(input, select, textarea) { border-radius: 12px; }
body.theme-ai .cta-band .wrap { background: var(--ai-sun); border: 1.5px solid var(--ai-sun-line); border-radius: var(--ai-radius); padding: 28px; }
body.theme-ai ::selection { background: var(--ai-mint-d); color: #fff; }
body.theme-ai .guide-slots { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.theme-ai .guide-slots li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; background: var(--ai-sky); border-radius: 14px; padding: 14px 16px; }
body.theme-ai .guide-slots b { color: var(--ai-sky-d); font-weight: 800; }
body.theme-ai .guide-slots h4 { margin: 0 0 4px; font-size: 1.05rem; }
body.theme-ai .guide-slots p { margin: 0; font-size: .98rem; }
body.theme-ai .guide-day:has(+ .guide-day) .guide-slots li { background: var(--ai-sun); }
body.theme-ai .guide-day:has(+ .guide-day) .guide-slots b { color: var(--ai-orange); }
body.theme-ai .ai-video-title { margin-bottom: 18px; }
body.theme-ai .ai-video { max-width: 52rem; aspect-ratio: 16 / 9; border-radius: var(--ai-radius); overflow: hidden; background: var(--ai-mint); border: 1.5px solid var(--ai-line); }
body.theme-ai .ai-video iframe { width: 100%; height: 100%; border: 0; display: block; }
body.theme-ai .ai-video-credit { margin-top: 10px; font-size: .9rem; color: var(--ai-soft); }
@media (max-width: 720px) {
  body.theme-ai .guide-slots { grid-template-columns: 1fr; }
  body.theme-ai .ai-takeaways { grid-template-columns: 1fr; }
  body.theme-ai .ai-copy-table thead { display: none; }
  body.theme-ai .ai-copy-table, body.theme-ai .ai-copy-table tbody, body.theme-ai .ai-copy-table tr { display: block; }
  body.theme-ai .ai-copy-table tr { margin-bottom: 10px; }
  body.theme-ai .ai-copy-table tbody :is(th, td) { display: block; width: auto !important; padding: 12px 16px; }
  body.theme-ai .ai-copy-table tbody th { border-radius: var(--ai-radius) var(--ai-radius) 0 0; padding-bottom: 0; }
  body.theme-ai .ai-copy-table tbody td { border-radius: 0 0 var(--ai-radius) var(--ai-radius); padding-top: 4px; }
  body.theme-ai .key-facts { padding: 4px 16px; }
}
