/* ============================================================
   TAPE 交易書院 — 共用樣式
   美學方向：甜美粉紅 × 全球地圖（blush 粉系 + 點陣地球 + 城市連線）
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Noto+Serif+TC:wght@500;600;700;900&family=LXGW+WenKai+TC:wght@400;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;700;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Teacher Fan 范郁彤 個人品牌色系（logo / 貼文）
     奶油嫩粉底 + 珊瑚玫瑰粉重點 + 金色字 + 綠色 pop + 莓紫 */
  /* ===== 全域設計規範（60-30-10 · 反 Google 表單）=====
     canvas #FDF8F7 / card #FFFFFF / main #2F232B / muted #8A7A84 / border #E5DDCF
     primary #E07A7F → hover #D16268 / input 帶色底 #F5EEEC 聚焦轉白 */
  /* ===== MILK_VELVET_X_IRIDESCENT_LUXURY（牛奶絲絨 × 虹彩流光）===== */
  --bg:        #FDFCFB;   /* 牛奶絲絨白 */
  --bg-2:      #F5F1F2;   /* 絲絨淡底（輸入框） */
  --surface:   #FFFFFF;
  --surface-2: #F5F1F2;
  --line:      #F0EAEC;   /* 絲絨霧線 */
  --line-soft: #F5F0F1;
  --line-cool: #EAE3E5;

  --ink:       #26191E;   /* 深暮焙茶褐，主文字（學術厚度） */
  --ink-soft:  #6B5D62;   /* 炭焙煙粉灰，輔助色 */
  --ink-faint: #ada1a6;   /* 弱文字 */
  --serif:     'Noto Serif TC', 'Source Serif 4', serif;  /* 高級襯線體 */

  /* 品牌粉（solid 小面積）+ 流動極光漸層（CTA / 核心數據） */
  --pink:      #EA6E80;   /* 珊瑚粉 */
  --pink-deep: #DE5870;
  --iri:       linear-gradient(135deg, #FF95A0 0%, #D6B4D6 50%, #A5C8F8 100%);  /* 粉→藕→藍 流動極光 */
  --iri-gloss: linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,0) 50%);

  /* 三大學科典藏色 */
  --geo:       #52814A; --his: #B0413B; --civ: #BE882F;

  /* 牛奶絲絨毛玻璃 + 擴散柔陰影 */
  --shadow-float: 0 25px 50px -12px rgba(34,20,24,.12), 0 6px 16px -8px rgba(34,20,24,.05);
  --glass-bg:    rgba(255,255,255,.62);
  --glass-border: rgba(255,255,255,.9);
  --glass-shadow: 0 25px 50px -12px rgba(34,20,24,.12);
  --glass-inner:  inset 0 0 20px rgba(255,255,255,.8);  /* 內緣發光 · 絲絨靈魂 */

  --pink:      #EC6E7C;   /* 亮珊瑚粉，主重點 (10%) · 依設計規範 */
  --pink-deep: #DE5870;   /* 深珊瑚，強調/hover */
  --rose:      #F4C8D0;   /* 淺玫瑰（對齊規範） */
  --cream:     #E6A15C;   /* 暖琥珀（地理漸層端） */
  --coral:     #E0728F;   /* 玫瑰珊瑚（輔色 · 對齊規範） */
  /* pop（熱賣/選中/免費）統一回玫瑰系，符合規範 */
  --emerald:     #c2546f;
  --emerald-pop: #E07A7F;
  --mint:      #d8a78f;   /* 暖輔色 */
  --lav:       #b585a6;   /* 莓紫（輔色） */
  --gold:      #c9a24e;   /* 金色，星星 / 評分 */

  /* ===== 補齊規範色彩 token ===== */
  --iri-pink:  #FF95A0;   /* 虹彩三停（陰影/光暈用） */
  --iri-mauve: #D6B4D6;
  --iri-blue:  #A5C8F8;
  --line-green: #06C755;  /* LINE 品牌綠（招生 CTA） */
  /* 語意回饋色 */
  --ok-bg:  #E6FBF3; --ok-fg:  #0C9B73; --ok-line:  #B6F0DD;
  --err-bg: #FFE9EC; --err-fg: #D6336C; --err-line: #FFC9D4;
  /* 羊皮古地圖色組 */
  --vellum-1: #FCF6E9; --vellum-2: #F5EDDA; --vellum-3: #EBE0C8;
  --map-ink:  #8A6E48; --map-land: #CBA877; --map-edge: #A98A56; --map-accent: #C0883A;
  /* 語意別名（元件優先用這些） */
  --text-strong: var(--ink); --text-body: var(--ink-soft); --text-muted: var(--ink-faint);
  --text-brand: var(--pink-deep);
  --surface-page: var(--bg); --surface-card: var(--surface); --surface-input: var(--bg-2);
  --border-hair: var(--line);
  --accent: var(--pink); --accent-hover: var(--pink-deep); --on-accent: #FFFFFF;

  --radius:    24px;      /* card */
  --radius-sm: 12px;      /* input */
  --maxw:      1200px;

  /* 多層次景深陰影系統（近景銳利暗影 + 遠景柔暈 + 接觸陰影）
     讓物件「浮」在頁面上，而非貼平 */
  --shadow-xs:
    0 1px 1px rgba(101,89,93,.05),
    0 4px 10px -6px rgba(168,110,118,.28),
    0 12px 22px -16px rgba(101,89,93,.22);
  --shadow-sm:
    0 1px 1px rgba(101,89,93,.05),
    0 8px 18px -10px rgba(168,110,118,.30),
    0 22px 40px -24px rgba(101,89,93,.30);
  --shadow:
    0 1px 1px rgba(101,89,93,.06),
    0 10px 24px -12px rgba(168,110,118,.32),
    0 34px 60px -28px rgba(101,89,93,.40);
  --shadow-lift:
    0 1px 1px rgba(101,89,93,.06),
    0 18px 34px -14px rgba(168,110,118,.42),
    0 44px 78px -30px rgba(101,89,93,.46);
  /* 內緣高光：卡片上緣的一道光，做出立體邊 */
  --rim:        inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.35);
  --rim-soft:   inset 0 1px 0 rgba(255,255,255,.75);
  /* 玻璃質感底 */
  --glass:      rgba(255,253,251,.7);

  --font-display: 'Source Serif 4', 'Noto Serif TC', serif;
  --font-heading: 'Noto Sans TC', 'Plus Jakarta Sans', sans-serif;
  --font-accent:  'Source Serif 4', 'LXGW WenKai TC', 'Noto Serif TC', serif;  /* 霞鶩文楷 · Hero 大標溫暖手帳感 */
  --font-body:    'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* ===== 設計系統 token（對齊 Claude Design：spacing / radii / motion / glow）===== */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --section-y: 64px;      /* 區塊垂直留白 */
  --gap-card: 20px;       /* 卡片格線間距 */
  --wrap-pad: 24px;       /* 版面左右留白 */
  --radius-lg: 30px;      /* feature 卡 */
  --radius-pill: 999px;   /* 按鈕 / 標籤 */
  --card-edge: 0 0 0 1px rgba(140,108,74,.10);   /* 近白卡片在奶油底上的髮絲外緣 */
  --glass-blur: blur(28px) saturate(1.6);
  --glow-iri:       0 15px 35px -5px rgba(255,138,149,.30), 0 10px 25px -5px rgba(147,197,253,.30);
  --glow-iri-hover: 0 20px 42px -6px rgba(255,138,149,.40), 0 14px 30px -6px rgba(147,197,253,.34);
  --ease-soft:   cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.34,1.2,.64,1);
  --dur-fast: .14s; --dur: .28s; --dur-slow: .55s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* line icon 通用對齊：按鈕/連結內的 SVG 與文字基線對齊 */
.btn svg, .add-link svg { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
.x-btn { display: grid; place-items: center; }
.x-btn svg { width: 15px; height: 15px; }
.heart { color: var(--pink); display: inline-flex; vertical-align: -2px; }
.foot-made { display: inline-flex; align-items: center; gap: 5px; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
/* 全域牛奶絲絨虹彩柔光（粉 → 藍），低飽和大範圍漫射 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 760px at 90% -8%, rgba(255,138,149,.11), transparent 58%),
    radial-gradient(960px 720px at -8% 12%, rgba(214,180,214,.10), transparent 58%),
    radial-gradient(760px 560px at 104% 92%, rgba(147,197,253,.08), transparent 60%),
    radial-gradient(1200px 940px at 50% 116%, rgba(230,208,176,.06), transparent 60%);
}
/* 點陣（halftone）— 冷調極淡 */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .4;
  background-image:
    radial-gradient(rgba(100,116,139,.12) 1.2px, transparent 1.4px),
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 47%, transparent 64%);
  background-size: 24px 24px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.12));
          mask-image: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.12));
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--wrap-pad); position: relative; z-index: 1; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }   /* 規範：手機頁緣 24→18px */

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--pink); color: #fff; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; font-weight: 700;
  text-transform: uppercase; color: #a8366f;   /* 加深，避免粉字配粉底糊在一起 */
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 22px; height: 2.5px; background: var(--pink); border-radius: 2px; }
.mono { font-family: var(--font-mono); }
.heart { color: var(--pink); }

/* ============================================================ 導覽列 */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: linear-gradient(180deg, rgba(255,248,245,.9), rgba(255,245,248,.78));
  border-bottom: 1px solid rgba(236,216,210,.8);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -22px rgba(101,89,93,.5);
  transition: box-shadow .3s ease, background .3s ease;
}
/* 往下捲時：收薄 + 浮現陰影 */
.nav.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -10px rgba(101,89,93,.32);
  background: linear-gradient(180deg, rgba(255,249,246,.97), rgba(255,246,249,.92)); }
.nav.scrolled .nav-inner { height: 56px; }
.nav.scrolled .brand .globe.brand-logo, .nav.scrolled .brand img { width: 34px; height: 34px; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 70px; transition: height .3s ease; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .globe.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 4px 12px -4px rgba(224,114,143,.5), inset 0 0 0 1px rgba(224,114,143,.25); }
/* 單行品牌：名稱深色清楚 + 細分隔線後接副標 */
.brand .bd-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.brand .bd-sub { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--pink-deep); margin-left: 9px; padding-left: 9px; border-left: 1.5px solid var(--line); }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 600; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--pink-deep); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--pink); border-radius: 3px; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
/* 漢堡選單（手機才出現） */
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; flex-shrink: 0; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; padding: 4px 20px 12px;
  background: linear-gradient(180deg, rgba(255,249,246,.98), rgba(255,246,249,.96));
  border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.nav-mobile a { padding: 13px 4px; font-size: 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: none; }
.nav.menu-open .nav-mobile { display: flex; }
.nav-m-actions { display: flex; gap: 10px; padding: 12px 0 2px; }
.nav-m-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 620px) { .nav-toggle { display: flex; } .nav-actions { display: none; } }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink) 50%, var(--lav));
  color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center; font-family: var(--font-mono);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -2px 4px rgba(101,57,62,.3), 0 6px 14px -6px rgba(168,110,118,.6);
  border: 1px solid rgba(255,255,255,.4);
}

/* ============================================================ 按鈕 */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .14s cubic-bezier(.34,1.2,.64,1), box-shadow .28s ease, background-color .28s ease, filter .22s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
/* 統一、俐落的按壓回饋（快、不拖泥帶水，按下去像實體下沉） */
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .06s; filter: brightness(.99); }
/* CTA：實心乾燥玫瑰粉藥丸鈕（規範 10% 行動色） */
.btn-primary {
  color: #fff; border-color: transparent;
  background: var(--iri-gloss), var(--iri);
  box-shadow: 0 15px 35px -5px rgba(255,138,149,.3), 0 10px 25px -5px rgba(147,197,253,.3);
}
.btn-primary:hover {
  transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: 0 20px 42px -6px rgba(255,138,149,.4), 0 14px 30px -6px rgba(147,197,253,.34);
}
.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  box-shadow: 0 1px 2px rgba(47,35,43,.04);
}
.btn-ghost:hover {
  border-color: var(--pink); color: var(--pink-deep); background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px rgba(224,122,127,.35);
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
/* LINE 綠變體（招生 CTA · 規範 line variant） */
.btn-line { background: var(--line-green); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(6,199,85,.5); }
.btn-line:hover { background: #05b54c; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(6,199,85,.55); }
/* 停用狀態（規範 disabled state） */
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }
/* 水晶毛玻璃次按鈕 */
.btn-glass {
  color: var(--ink);
  background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255,240,241,.7);
  box-shadow: 0 8px 24px -12px rgba(43,26,32,.12), inset 0 1px 1px 0 rgba(255,255,255,.6);
}
.btn-glass:hover {
  background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.95); color: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(43,26,32,.18), inset 0 1px 1px 0 rgba(255,255,255,.7);
}

/* ============================================================ 首頁 Hero（全幅沉浸式 · 立體光影） */
.hero {
  position: relative; overflow: hidden; min-height: clamp(600px, 84vh, 900px);
  display: flex; align-items: center; padding: 60px 0 90px;
  /* 牛奶絲絨象牙畫布 + 虹彩柔光（粉 → 藍）大範圍漫射 */
  background:
    radial-gradient(60% 58% at 82% 4%, rgba(255,138,149,.18), transparent 62%),
    radial-gradient(56% 60% at 2% 26%, rgba(147,197,253,.15), transparent 62%),
    radial-gradient(46% 50% at 96% 96%, rgba(224,166,186,.16), transparent 64%),
    var(--bg);
}
/* 方格紙紋（學術感、極淡） */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 80%);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 80%); }
/* 真實動畫世界地圖背景 — 降透明度當「氛圍縱深」，偏右側，不再吃掉左側文字區
   開場：3D 傾斜立體 → 3.6 秒內逐漸攤平成平面並淡入背景，凸顯標題文字 */
.hero-mapbg {
  position: absolute; inset: -3% -5%; z-index: 0; pointer-events: none; opacity: .34;
  transform-origin: 62% 72%;
  -webkit-mask-image: radial-gradient(120% 130% at 74% 30%, #000 26%, transparent 78%);
          mask-image: radial-gradient(120% 130% at 74% 30%, #000 26%, transparent 78%);
  animation: heroFlatten 3.6s cubic-bezier(.2,.7,.15,1) forwards;
}
/* 攤平後，內層 svg 接手做極緩飄移 */
.hero-mapbg svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: heroDrift 56s ease-in-out 3.6s infinite alternate; }
.hero-mapbg .hm-lands { filter: drop-shadow(0 4px 8px rgba(140,100,90,.22)); animation: hmLandSettle 3.6s cubic-bezier(.2,.7,.15,1) forwards; }
/* 立體 → 平面：傾斜抬升的 3D 視角，旋平、後退、淡出 */
@keyframes heroFlatten {
  0%   { opacity: 0; transform: perspective(1000px) rotateX(52deg) scale(1.5) translateY(11%); filter: saturate(1.3) contrast(1.06) brightness(1.04); }
  35%  { opacity: .92; }
  70%  { opacity: .6; }
  100% { opacity: .34; transform: perspective(1000px) rotateX(0deg) scale(1.04) translateY(0); filter: saturate(.96) contrast(1) brightness(1.03); }
}
/* 開場時大陸有強烈浮起陰影（立體），攤平後收斂 */
@keyframes hmLandSettle {
  0%   { filter: drop-shadow(0 28px 26px rgba(120,80,72,.5)); }
  100% { filter: drop-shadow(0 4px 8px rgba(140,100,90,.22)); }
}
@keyframes heroDrift { from { transform: scale(1.04) translateX(-1.4%); } to { transform: scale(1.09) translateX(1.4%); } }
.hero-mapbg .hm-route { animation: hmDash 3.2s linear infinite; }
@keyframes hmDash { to { stroke-dashoffset: -24; } }
.hero-mapbg .hm-ship circle:first-child { animation: hmPulse 2.2s ease-in-out infinite; }
@keyframes hmPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
/* 光影景深層（提升立體 + 文字可讀）：左側鋪一層柔光底托住標題，下緣漸隱接頁面 */
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 64% at 20% 46%, rgba(255,255,255,.85), rgba(255,255,255,.4) 42%, transparent 70%),
    linear-gradient(90deg, rgba(255,255,255,.5) 0%, transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.3) 0%, transparent 28%, transparent 55%, rgba(248,250,252,.9) 92%, var(--bg) 100%);
}
/* 頂部一條極淡光帶，模擬畫面上方光源 */
/* Hero 深層：淡淡的點點底紋（呼應貼文塗鴉感，柔和不搶戲） */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(224,114,143,.16) 1.3px, transparent 1.6px);
  background-size: 26px 26px; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 110% at 70% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 110% at 70% 40%, #000 30%, transparent 80%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 220px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent); }
/* Hero 雙欄：左 55% 文案 / 右 45% 數據卡矩陣 */
.hero-grid2 { position: relative; z-index: 2; display: grid; grid-template-columns: 1.22fr 1fr; gap: 48px; align-items: center; }
.hero-left { min-width: 0; }
.hero-right { min-width: 0; position: relative; }
/* 毛玻璃後面墊一團彩色光暈，讓玻璃把它柔柔透/模糊出來 */
.hero-right::before { content: ''; position: absolute; z-index: 0; inset: 4% 4% 8% 4%; border-radius: 40px; pointer-events: none;
  background:
    radial-gradient(48% 48% at 22% 20%, rgba(255,138,149,.6), transparent 62%),
    radial-gradient(54% 54% at 84% 86%, rgba(147,197,253,.62), transparent 64%),
    radial-gradient(50% 50% at 58% 50%, rgba(214,180,214,.45), transparent 70%);
  filter: blur(8px); }
.hero-right > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-accent); font-weight: 700;
  font-size: clamp(34px, 4.3vw, 60px); line-height: 1.2; letter-spacing: -.01em;
  margin: 20px 0 22px; color: var(--ink);
}
.hero h1 .hl { color: var(--pink); }
.hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 50ch; margin-bottom: 34px; font-weight: 500; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* 2×2 數據卡矩陣 — 水晶毛玻璃（消滅 Google 表單感） */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255,240,241,.7); border-radius: 24px; padding: 26px 24px;
  box-shadow: 0 20px 50px -12px rgba(43,26,32,.06), inset 0 1px 1px 0 rgba(255,255,255,.6);
  transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .55s cubic-bezier(.16,1,.3,1), background .4s, border-color .4s;
}
.stat-card:hover {
  transform: translateY(-8px) scale(1.015);
  background: rgba(255,255,255,.65); border-color: rgba(255,255,255,.9);
  box-shadow: 0 30px 60px -15px rgba(43,26,32,.12), inset 0 1px 1px 0 rgba(255,255,255,.7);
}
.stat-card .n { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1; color: var(--pink); letter-spacing: -.01em; }
.stat-card .n .plus, .stat-card .n .star { font-size: 24px; }
.stat-card .l { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-top: 10px; line-height: 1.4; }

/* ===== 精品學術元件 v3（1px 霧線 + 擴散柔陰影 · 禁粗黑邊）===== */
/* 學科標籤 */
.subj-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 700;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; box-shadow: var(--shadow-float); }
.subj-tag i { width: 7px; height: 7px; background: var(--pink); border-radius: 50%; }

/* 一體化長條榜單卡 — 牛奶絲絨毛玻璃 */
.board { display: flex; margin: 26px 0 30px; background: var(--glass-bg);
  -webkit-backdrop-filter: blur(40px) saturate(1.3); backdrop-filter: blur(40px) saturate(1.3);
  border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-inner), var(--glass-shadow); overflow: hidden; }
.board-item { flex: 1; padding: 18px 16px; text-align: center; }
.board-item + .board-item { box-shadow: inset 1px 0 0 var(--line-soft); }
.board-item b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; color: var(--ink); }
.board-item:first-child b { color: #2A9462; }
.board-item b i { font-style: normal; font-size: 19px; }
.board-item span { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-top: 8px; }

/* 膠囊全圓角按鈕（柔轉場） */
.btn-solid-primary, .btn-solid-ghost { border-radius: 999px; font-weight: 600; transition: transform .14s cubic-bezier(.34,1.2,.64,1), box-shadow .28s ease, background-color .28s ease, filter .22s ease, border-color .2s ease; }
.btn-solid-primary:active, .btn-solid-ghost:active { transform: translateY(1px) scale(.985); transition-duration: .06s; }
.btn-solid-primary { color: #fff; border-color: transparent; background: var(--iri-gloss), var(--iri);
  box-shadow: 0 15px 35px -5px rgba(255,138,149,.3), 0 10px 25px -5px rgba(147,197,253,.3); }
.btn-solid-primary:hover { transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: 0 20px 42px -6px rgba(255,138,149,.4), 0 14px 30px -6px rgba(147,197,253,.34); }
.btn-solid-ghost { background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); font-weight: 700; border: 1.5px solid var(--pink); box-shadow: 0 6px 16px -8px rgba(224,122,127,.4), inset 0 1px 0 rgba(255,255,255,.8); }
.btn-solid-ghost:hover { background: #fff; color: var(--pink-deep); border-color: var(--pink-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(224,122,127,.5); }
/* 流動極光：漸層緩緩平移 */
.btn-primary, .btn-solid-primary { background-size: 100% 100%, 200% 100%; animation: iriFlow 7s ease-in-out infinite alternate; }
@keyframes iriFlow { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .btn-primary, .btn-solid-primary { animation: none; } }

/* 嚴謹下單盒 — 牛奶絲絨毛玻璃（浮起） */
.checkout-box { position: relative; z-index: 1; background: var(--glass-bg);
  -webkit-backdrop-filter: blur(40px) saturate(1.4); backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid var(--glass-border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--glass-inner), 0 40px 70px -22px rgba(34,20,24,.28), 0 16px 30px -12px rgba(34,20,24,.12);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.checkout-box:hover { transform: translateY(-4px); box-shadow: var(--glass-inner), 0 52px 84px -22px rgba(34,20,24,.32), 0 20px 36px -12px rgba(34,20,24,.14); }
.cb-head { background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; padding: 16px 20px 14px; letter-spacing: .01em; border-bottom: 1px solid var(--line); }
.cb-body { padding: 20px; }
.cb-subjects { display: flex; gap: 8px; margin-bottom: 18px; }
/* 三學科：透明毛玻璃膠囊（半透明白 + 背景模糊 + 內緣高光） */
.cb-subjects .st { flex: 1; text-align: center; color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 8px 0; border-radius: 999px;
  background: rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 12px rgba(255,255,255,.4), 0 4px 10px -6px rgba(34,20,24,.12); }
.cb-field { display: block; margin-bottom: 14px; }
.cb-field span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
.cb-field input { width: 100%; border: 1px solid rgba(255,255,255,.8); border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink);
  background: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); outline: none;
  box-shadow: inset 0 2px 4px rgba(34,20,24,.05); transition: background .2s, border-color .2s, box-shadow .2s; }
.cb-field input::placeholder { color: var(--ink-faint); }
.cb-field input:focus { background: rgba(255,255,255,.7); border-color: #A5C8F8; box-shadow: inset 0 2px 4px rgba(34,20,24,.04), 0 0 0 3px rgba(165,200,248,.2); }
.cb-field select, .cb-field textarea { width: 100%; border: 1px solid rgba(255,255,255,.8); border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink); background: rgba(255,255,255,.45); resize: none; }
.cb-field textarea::placeholder { color: var(--ink-faint); }
.cb-field select:focus, .cb-field textarea:focus { background: rgba(255,255,255,.7); border-color: #A5C8F8; box-shadow: inset 0 2px 4px rgba(34,20,24,.04), 0 0 0 3px rgba(165,200,248,.2); outline: none; }
/* 許願開課 band */
.wish-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,250,251,.5)); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: 24px; padding: 34px 38px; box-shadow: var(--rim-soft), var(--card-edge), var(--shadow-sm); }
.wish-text { max-width: 560px; }
.wish-text h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.25; color: var(--ink); margin: 6px 0 8px; }
.wish-text h2 em { font-style: italic; color: var(--pink-deep); }
.wish-text p { color: var(--ink-soft); font-weight: 500; line-height: 1.6; }
@media (max-width: 620px) { .wish-band { padding: 24px 20px; } .wish-band .btn { width: 100%; justify-content: center; } }
.cb-price { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.cb-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.cb-row.total { font-size: 16px; color: var(--ink); font-weight: 700; }
.cb-row.total b { font-family: var(--serif); font-size: 27px; color: var(--ink); }
.cb-body .btn-block { margin-top: 16px; }
.cb-note { text-align: center; font-size: 11.5px; color: var(--ink-faint); margin-top: 11px; font-weight: 600; }
@media (max-width: 980px) { .board { margin: 20px 0 22px; } }

.spin-slow { animation: spin 60s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-dot { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .hero-mapbg, .hero-mapbg .hm-route, .hero-mapbg .hm-ship, .spin-slow, .pulse-dot { animation: none !important; } }

/* ============================================================ 區塊標題 */
.section { padding: 64px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-family: 'Noto Sans TC', var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.005em; line-height: 1.18; color: var(--ink); }
.section-head h2 em { font-style: normal; font-weight: 900; color: var(--pink-deep);
  background: linear-gradient(180deg, transparent 62%, rgba(242,163,184,.5) 62%, rgba(242,163,184,.5) 92%, transparent 92%); padding: 0 .06em; }
.section-head p { color: var(--ink-soft); max-width: 50ch; margin-top: 8px; font-weight: 500; }

/* ============================================================ 主理老師專區 */
.teacher-sec { padding-top: 18px; }
.teacher-band {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 0; align-items: stretch;
  background: linear-gradient(180deg, #ffffff, var(--surface) 40%, #F5EFEF);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-float);
}
.tb-photo { position: relative; min-height: 420px; background: linear-gradient(150deg, #e7d8d4, #d4bfc0); }
.tb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tb-photo::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 60%, rgba(253,250,249,.92) 99%),
    linear-gradient(180deg, transparent 60%, rgba(43,26,32,.28)); }
/* 名字改成照片最底的字幕條，不蓋到臉 */
.tb-badge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  padding: 30px 18px 13px; background: linear-gradient(180deg, transparent, rgba(74,46,52,.62)); }
.tb-badge b { font-family: 'Noto Sans TC', var(--font-display); font-size: 20px; font-weight: 900; color: #fff; line-height: 1.1; text-shadow: 0 1px 4px rgba(40,20,30,.5); }
.tb-badge span { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(40,20,30,.5); }
/* 主理老師照片上的真實圓形 logo 徽章 */
.tb-logo-badge { position: absolute; right: 18px; top: 18px; z-index: 2; width: 78px; height: 78px; border-radius: 50%;
  background: #fff; padding: 4px; box-shadow: 0 10px 24px -8px rgba(224,114,143,.55), inset 0 0 0 1px rgba(224,114,143,.2); }
.tb-logo-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (max-width: 860px) { .tb-logo-badge { width: 62px; height: 62px; right: 14px; top: 14px; } }
.tb-body { padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.tb-body h2 { font-family: 'Noto Sans TC', var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 900; line-height: 1.22; letter-spacing: -.005em; color: var(--ink); }
.tb-body h2 em { font-style: normal; font-weight: 900; color: var(--pink-deep);
  background: linear-gradient(180deg, transparent 62%, rgba(242,163,184,.5) 62%, rgba(242,163,184,.5) 92%, transparent 92%); padding: 0 .06em; }
.tb-body p { color: var(--ink-soft); font-weight: 500; font-size: 15.5px; line-height: 1.65; max-width: 56ch; }
.tb-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tb-creds .cred { font-size: 12.5px; font-weight: 600; color: var(--pink-deep);
  background: linear-gradient(180deg, #fff, var(--surface-2)); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; box-shadow: var(--rim-soft); }
.tb-stats { display: flex; gap: 30px; margin: 8px 0 6px; }
.tb-stats .ts b { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); display: block; line-height: 1; }
.tb-stats .ts b i { font-style: normal; color: var(--gold); font-size: 22px; }
.tb-stats .ts span { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.tb-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 860px) {
  .teacher-band { grid-template-columns: 1fr; }
  .tb-photo { min-height: 280px; }
  .tb-photo::after { background: linear-gradient(180deg, transparent 55%, rgba(252,236,248,.5)), linear-gradient(180deg, transparent 60%, rgba(95,85,96,.3)); }
  .tb-body { padding: 28px 24px; }
  .tb-stats { gap: 22px; }
}

/* ============================================================ 全球市場帶（中世紀古地圖 / portolan 航海圖） */
.world-band {
  position: relative; border-radius: 22px; overflow: hidden; padding: 48px 44px;
  /* 奶油嫩粉底（呼應海報上半藍地圖、下半奶粉） */
  background:
    radial-gradient(120% 130% at 82% 0%, #c4e9ee, transparent 55%),
    radial-gradient(120% 120% at 0% 100%, #fbe1e3, transparent 55%),
    linear-gradient(135deg, #fdf1ec, #f9d3da);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 110px rgba(242,163,184,.12);
}
/* 點點塗鴉底紋（極淡） */
.world-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: radial-gradient(rgba(224,114,143,.18) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
}
.world-band .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 46%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 46%); }
.world-band .hm-route { animation: hmDash 3.4s linear infinite; }
/* 會跳的小旅伴地標（金字塔/長城/人面獅身/泰姬）— 親切感，可放進任何區塊 */
.lmk-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.world-band .lmk-layer { z-index: 2; }
.lmk-layer .lmk { position: absolute; display: block; pointer-events: auto;
  filter: drop-shadow(0 0 2px rgba(255,253,248,.95)) drop-shadow(0 4px 6px rgba(91,67,39,.35)); transform-origin: 50% 100%;
  animation: lmkHop 4.6s ease-in-out infinite; will-change: transform; }
.lmk-layer .lmk svg { width: 100%; height: auto; aspect-ratio: 60 / 44; display: block; transition: transform .25s var(--ease-spring), filter .25s; }
.lmk-layer .lmk:hover svg { transform: scale(1.2) translateY(-7px) rotate(-3deg); filter: drop-shadow(0 7px 9px rgba(192,136,58,.4)); }
@keyframes lmkHop {
  0%, 60%, 100% { transform: translateY(0) scaleY(1); }
  18% { transform: translateY(-14px) scaleY(1.05); }
  36% { transform: translateY(0) scaleY(.9); }
  46% { transform: translateY(-5px) scaleY(1.01); }
}
/* 地圖上的地標：加深主輪廓，讓它在牛皮地圖上跳出來（保留細節淡線與獅身眼睛）*/
.world-band .lmk-layer .lmk svg path:not([opacity]):not([fill]), .world-band .lmk-layer .lmk svg circle:not([opacity]),
.feature-band .lmk-layer .lmk svg path:not([opacity]):not([fill]), .feature-band .lmk-layer .lmk svg circle:not([opacity]),
.teacher-band .lmk-layer .lmk svg path:not([opacity]):not([fill]), .teacher-band .lmk-layer .lmk svg circle:not([opacity]) { stroke: #4a3013; }
.world-band .lmk-layer .lmk svg g[fill="#6f5436"], .feature-band .lmk-layer .lmk svg g[fill="#6f5436"], .teacher-band .lmk-layer .lmk svg g[fill="#6f5436"] { fill: #4a3013; }
/* 試聽：底部留一條乾淨帶給地標站（避免被卡片蓋住或被圓角裁切）*/
.feature-band { padding-bottom: 74px; }
.feature-band .lmk-layer, .teacher-band .lmk-layer { z-index: 5; }
.feature-band .lmk-layer .lmk { bottom: 16px; }
/* 試聽 / 師資的地標：本就在角落，加一點旋轉讓它不死板 */
.feature-band .lmk-layer .lmk:nth-child(1) svg { transform: rotate(-3deg); }
.feature-band .lmk-layer .lmk:nth-child(2) svg { transform: rotate(4deg); }
.feature-band .lmk-layer .lmk:nth-child(3) svg { transform: rotate(-5deg); }
.teacher-band .lmk-layer .lmk:nth-child(1) svg { transform: rotate(3deg); }
.teacher-band .lmk-layer .lmk:nth-child(2) svg { transform: rotate(-4deg); }
.teacher-band .lmk-layer .lmk:nth-child(3) svg { transform: rotate(5deg); }
/* 手機：地圖區把小旅伴高低錯落散在底部；試聽/師資縮小留角落各 2 隻 */
@media (max-width: 720px) {
  .world-band { padding-bottom: 92px; }
  .feature-band .lmk-layer .lmk, .teacher-band .lmk-layer .lmk { width: 40px !important; opacity: .4 !important; }
  .feature-band .lmk-layer .lmk:nth-child(n+3), .teacher-band .lmk-layer .lmk:nth-child(n+3) { display: none; }
  .world-band .lmk-layer .lmk { top: auto !important; opacity: .92 !important; }
  /* 吉薩組合（小金字塔+大金字塔+獅身）擠在右側、長城在左 */
  .world-band .lmk-layer .lmk:nth-child(1) { right: 8% !important;  bottom: 40px !important; width: 46px !important; }
  .world-band .lmk-layer .lmk:nth-child(2) { right: 12% !important; bottom: 13px !important; width: 92px !important; }
  .world-band .lmk-layer .lmk:nth-child(3) { right: 7% !important;  bottom: 8px !important;  width: 72px !important; }
  .world-band .lmk-layer .lmk:nth-child(4) { right: 54% !important; bottom: 14px !important; width: 78px !important; }
  .world-band .lmk-layer .lmk:nth-child(n+5) { display: none; }
  .world-band .lmk-layer .lmk:nth-child(4) svg { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .lmk-layer .lmk { animation: none !important; } }
.world-band .wb-content { position: relative; z-index: 2; max-width: 52%; }
.world-band .eyebrow { color: var(--pink-deep); }
.world-band .eyebrow::before { background: var(--pink); }
.world-band h2 { font-family: 'Noto Sans TC', var(--font-display); font-style: normal; font-size: clamp(24px,2.8vw,34px); font-weight: 900; line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.world-band p { color: var(--ink-soft); font-weight: 500; }
.city-pins { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.city-pins .pin { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--pink-deep); background: rgba(255,250,247,.85); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-xs); }
.city-pins .pin::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald-pop); flex-shrink: 0; }

/* 大陸上的圓形人物頭像節點動畫（輕微浮動） */
.hm-node { animation: nodeFloat 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hm-node:nth-child(odd) { animation-delay: 1.4s; }
@keyframes nodeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .hm-node { animation: none !important; } }

/* 世界地標插畫一排（金字塔/長城/泰姬瑪哈陵/自由女神/鐵塔） */
.landmark-strip { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px,4vw,52px); flex-wrap: nowrap;
  margin-top: 26px; padding: 22px 16px 6px; }
.landmark-strip .lmk { flex: 0 1 auto; width: clamp(40px, 13vw, 78px); min-width: 0; filter: drop-shadow(0 3px 5px rgba(111,84,54,.18));
  animation: lmkFloat 5.6s ease-in-out infinite; will-change: transform; }
.landmark-strip .lmk svg { width: 100%; height: auto; display: block; transition: transform .3s var(--ease-spring), filter .3s; }
.landmark-strip .lmk:hover svg { transform: scale(1.1) translateY(-4px) rotate(-2deg); filter: drop-shadow(0 6px 10px rgba(192,136,58,.35)); }
/* 地標各自用不同節奏、相位漂浮，像一排會呼吸的小旅伴（暖、不卡通）*/
@keyframes lmkFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-1.4deg); } }
.landmark-strip .lmk:nth-child(2) { animation-duration: 6.3s; animation-delay: -.9s; }
.landmark-strip .lmk:nth-child(3) { animation-duration: 5.1s; animation-delay: -1.7s; }
.landmark-strip .lmk:nth-child(4) { animation-duration: 6.7s; animation-delay: -.4s; }
.landmark-strip .lmk:nth-child(5) { animation-duration: 5.4s; animation-delay: -2.3s; }
.landmark-strip .lmk:nth-child(6) { animation-duration: 6.1s; animation-delay: -1.2s; }
.landmark-strip .lmk:nth-child(7) { animation-duration: 5.9s; animation-delay: -.6s; }
.landmark-strip .lmk:nth-child(8) { animation-duration: 6.5s; animation-delay: -2s; }
.landmark-strip .lmk:nth-child(9) { animation-duration: 5.7s; animation-delay: -1.5s; }
@media (prefers-reduced-motion: reduce) { .landmark-strip .lmk { animation: none !important; } }

/* ============================================================ 篩選列 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
/* 後台自訂分類膠囊 */
.cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 13px; padding: 5px 6px 5px 12px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px -5px rgba(0,0,0,.3); }
.cat-pill button { background: rgba(255,255,255,.32); border: none; color: #fff; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; display: grid; place-items: center; }
.cat-pill button:hover { background: rgba(255,255,255,.5); }
/* ===== 學習旅程軸線：做舊牛皮紙古地圖（哥倫布航海圖氛圍）＝台灣→中國→世界 ===== */
.course-grid.journey { display: block; position: relative; padding: 38px 38px 22px; border-radius: 18px; }
/* 牛皮紙 + 海上迷霧溶邊（feTurbulence 位移＋柔化，邊緣像霧散開，不是硬撕） */
.course-grid.journey::before { content: ''; position: absolute; inset: -2px; z-index: 0; border-radius: 18px;
  background:
    linear-gradient(rgba(255,253,248,.62), rgba(255,253,248,.62)),
    radial-gradient(150% 90% at 50% -12%, rgba(255,255,252,.7), transparent 56%),
    radial-gradient(55% 50% at 2% 2%, rgba(175,146,102,.05), transparent 55%),
    radial-gradient(55% 55% at 98% 98%, rgba(175,146,102,.06), transparent 55%),
    repeating-linear-gradient(0deg, rgba(150,120,80,.03) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(90deg, rgba(150,120,80,.03) 0 1px, transparent 1px 84px),
    url('../parchment.jpg') center / cover,
    linear-gradient(160deg, #fcf6e9, #f5edda);
  -webkit-mask-image: radial-gradient(118% 126% at 50% 48%, #000 64%, rgba(0,0,0,.5) 84%, transparent 100%);
          mask-image: radial-gradient(118% 126% at 50% 48%, #000 64%, rgba(0,0,0,.5) 84%, transparent 100%);
  filter: drop-shadow(0 16px 24px rgba(80,58,38,.3)) drop-shadow(0 0 26px rgba(226,200,150,.4));
  box-shadow: inset 0 0 55px rgba(120,84,48,.18); }
/* 內側地圖細框 */
.course-grid.journey::after { content: ''; position: absolute; inset: 18px; z-index: 1; border: 1px solid rgba(111,84,54,.3); border-radius: 12px;
  box-shadow: inset 0 0 0 4px rgba(111,84,54,.1); pointer-events: none; }
/* 世界地圖輪廓底層（海岸線/經緯）— 讓牛皮紙真的像一張海圖 */
.journey-map-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: 18px; }
.journey-map-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-compass { position: absolute; top: 18px; right: 22px; width: 78px; height: 78px; opacity: .5; pointer-events: none; z-index: 1; }
/* 地圖散佈裝飾（地標/島/船/飛機）— 浮在整張地圖上層，像古地圖插圖層；加深線條提高對比 */
.journey-decor { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.journey-decor .decor { position: absolute; }
.journey-decor .decor svg { width: 100%; height: auto; display: block; }
.journey-decor svg path, .journey-decor svg circle, .journey-decor svg line, .journey-decor svg text { stroke: var(--map-ink); }
.journey-decor svg [fill]:not([fill="none"]) { fill: var(--map-ink); }
/* 柔光暈：淡墨線在淡羊皮上看得見，但不搶不亂 */
.journey-decor .decor svg { filter: drop-shadow(0 0 1.5px rgba(255,253,248,.6)); }
/* 手機：藏掉笨重的地標/帆船/飛機，只留小島淡淡點綴長版面 */
@media (max-width: 760px) {
  .journey-decor .lmk { display: none; }
  .journey-decor .isle { opacity: .26 !important; }
}
.journey-axis { display: flex; align-items: center; gap: 9px; font-family: 'Noto Serif TC', var(--font-display); font-size: 13.5px; font-weight: 700; letter-spacing: .05em; color: #6f5436; margin: 0 0 24px; position: relative; z-index: 3; }
.journey-axis .map-ship { width: 34px; height: auto; flex-shrink: 0; }
.lane { z-index: 3; }
.course-grid.journey .lane::before { border-left-color: #6f5436; opacity: .42; }
.course-grid.journey .lane-title b { color: #3b2a1b; }
.course-grid.journey .lane-hint { color: #8a6f4d; }
@media (max-width: 620px) { .course-grid.journey { padding: 22px 16px 10px; } .journey-compass { width: 54px; height: 54px; top: 12px; right: 12px; } }
.lane { position: relative; margin-bottom: 30px; padding-left: 60px; }
/* 古地圖航線：虛線路徑串起各階段 */
.lane::before { content: ''; position: absolute; left: 22px; top: 10px; bottom: 16px; width: 0;
  border-left: 1.6px dashed var(--stage, #b9a890); opacity: .45; }
.lane-head { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
/* 印章式圓徽（雙環 + 地域剪影），文化/版畫感 */
.lane-mark { position: absolute; left: 0; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0;
  background: var(--stage-bg, rgba(0,0,0,.05)); color: var(--stage, var(--ink-soft));
  box-shadow: inset 0 0 0 1.6px var(--stage), inset 0 0 0 4px rgba(255,255,255,.92), 0 5px 12px -6px rgba(111,84,54,.5); }
.lane-mark .rmark { width: 25px; height: 25px; }
.lane-mark .rmark path, .lane-mark .rmark circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lane-mark svg.ic-svg { color: var(--stage, var(--pink-deep)); }
.lane-title { display: flex; flex-direction: column; line-height: 1.12; }
.lane-title b { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.lane-title span { font-size: 12.5px; font-weight: 700; color: var(--stage, var(--ink-faint)); letter-spacing: .02em; }
.lane-hint { font-size: 12.5px; color: var(--ink-faint); margin-left: auto; font-weight: 600; }
.lane-track { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%); }
/* 開始往左滑（scrollLeft>0）才讓左側輕微柔邊 */
.lane-track.scrolled { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.lane-track::-webkit-scrollbar { height: 6px; }
.lane-track::-webkit-scrollbar-thumb { background: var(--line-cool, #eae3e5); border-radius: 3px; }
.lane-track > .card { flex: 0 0 270px; width: 270px; scroll-snap-align: start; }
.lane-track .reveal { opacity: 1; transform: none; }   /* 走廊內的卡片永遠顯示（不靠捲動浮現） */
.stage-tw    { --stage: #52814A; --stage-bg: rgba(82,129,74,.12); }
.stage-cn    { --stage: #B0413B; --stage-bg: rgba(176,65,59,.12); }
.stage-world { --stage: #3B5998; --stage-bg: rgba(59,89,152,.12); }
.lane-cram   { --stage: var(--pink-deep); --stage-bg: rgba(224,122,127,.14); }
.lane-travel { --stage: #2E7D6B; --stage-bg: rgba(46,125,107,.13); }
@media (max-width: 620px) {
  .lane { padding-left: 48px; }
  .lane-mark { width: 38px; height: 38px; }
  .lane-hint { display: none; }
  .lane-track > .card { flex-basis: 232px; width: 232px; }
}
/* 分類晶片：霧面玻璃（半透明 + 背景模糊） */
.chip {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 9px 17px; border-radius: 999px; border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  color: var(--ink-soft); cursor: pointer; transition: all .18s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 10px -6px rgba(120,90,90,.35);
}
.chip:hover { border-color: rgba(242,163,184,.8); color: var(--pink-deep); transform: translateY(-2px);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px -8px rgba(224,114,143,.4); }
/* 選中：她的綠色霧面玻璃（仍清楚標示選取） */
.chip.active {
  color: #fff; border-color: rgba(255,255,255,.45); font-weight: 700;
  background: linear-gradient(180deg, rgba(60,177,137,.92), rgba(47,158,120,.92));
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px -7px rgba(47,158,120,.6);
}
.search-box { margin-left: auto; position: relative; }
.search-box input {
  background: var(--bg-2); border: 1px solid transparent; color: var(--ink);
  padding: 11px 16px 11px 38px; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 14px; width: 240px;
  outline: none; transition: background .3s ease-in-out, border-color .3s ease-in-out, width .25s, box-shadow .3s;
}
.search-box input::placeholder { color: var(--ink-faint); }
.search-box input:focus { background: #fff; border-color: var(--pink); width: 280px; box-shadow: 0 0 0 4px rgba(212,106,112,.15); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }

/* ============================================================ 課程卡片網格 */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, #fffefc 0%, var(--surface) 40%, #fdf6f1 100%);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column; position: relative;
  box-shadow: var(--rim-soft), var(--shadow-xs);
}
.card:hover {
  transform: translateY(-9px) rotate(-.5deg) scale(1.012);
  border-color: var(--rose);
  box-shadow: var(--rim-soft), var(--shadow-lift);
}
/* ---- 封面：品牌插畫（科目色滿版 + 點陣紋理 + 大主題圖標），取代外部照片 ---- */
.card-cover { aspect-ratio: 16/10; position: relative; overflow: hidden; background: #2a2024; }
.card-cover .grad { position: absolute; inset: 0; z-index: 1; }     /* 科目色滿版 */
/* 紋理 + 主題圖標層 */
.cover-art { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cover-art::before { content: ''; position: absolute; inset: -12%;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.1px, transparent 1.5px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(130deg, #000, transparent 82%);
          mask-image: linear-gradient(130deg, #000, transparent 82%); }
.cover-art::after { content: ''; position: absolute; left: -34px; top: -30px; width: 96px; height: 96px;
  border: 1.5px solid rgba(255,255,255,.16); border-radius: 50%; }
.cover-motif { position: absolute; right: -12px; bottom: -16px; color: #fff; opacity: .22;
  transform: rotate(-7deg); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.cover-motif svg { width: 116px; height: 116px; }
.card:hover .cover-motif { transform: rotate(-7deg) scale(1.07); }
/* 封面光影：頂部微反光 + 底部暗角，讓徽章/文字可讀並做出曲面感 */
.card-cover::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 90% at 18% 6%, rgba(255,255,255,.22), transparent 44%); }
.card-cover::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 26%, transparent 50%, rgba(28,16,22,.5)),
    radial-gradient(140% 110% at 50% 122%, rgba(20,10,16,.4), transparent 56%); }
.cat-chip {
  position: absolute; right: 13px; bottom: 12px; z-index: 4;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.14));
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); color: #fff;
  padding: 5px 11px 5px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 14px -4px rgba(0,0,0,.35); text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.cat-chip .cc-ic { display: inline-flex; }
.cat-chip .cc-ic svg { width: 14px; height: 14px; }
.card-cover .lvl {
  position: absolute; right: 13px; top: 13px; z-index: 4;
  font-size: 11px; font-weight: 700; background: linear-gradient(180deg, rgba(74,32,42,.5), rgba(50,22,30,.42));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 10px -4px rgba(0,0,0,.3);
}
/* 卡片 hover 才浮現的前往箭頭（取代整寬按鈕，讓卡片更乾淨精緻） */
.card-cover .card-go { position: absolute; left: 13px; bottom: 12px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.card:hover .card-go { opacity: 1; transform: none; }
.card-body { padding: 17px 18px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
/* 梯次 / 開課資訊（招生感） */
.card-batch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: -1px; }
.cb-tag { font-size: 11px; font-weight: 800; color: var(--pink-deep); background: rgba(224,122,127,.12); border: 1px solid rgba(224,122,127,.28); padding: 2px 9px; border-radius: 999px; letter-spacing: .02em; }
.cb-open { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }
.cb-open svg { opacity: .65; }
.card-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.22; letter-spacing: -.01em; color: var(--ink); }
.card-body .desc { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; margin-top: auto; padding-top: 10px; flex-wrap: nowrap; }
.card-meta .rate { color: var(--gold); font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.card-meta > span:last-child { flex-shrink: 0; white-space: nowrap; }   /* 人數不換行 */
.card-author { display: flex; align-items: center; gap: 7px; min-width: 0; }   /* 作者可縮、過長截斷 */
.card-author .a-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card-author .a-dot { flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--lav)); display: grid; place-items: center; font-size: 11px; font-family: var(--font-mono); color: #fff; font-weight: 700; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px 16px; border-top: 1px dashed var(--line); margin-top: 4px;
  background: linear-gradient(180deg, rgba(250,240,234,.3), rgba(250,240,234,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.price { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--ink); }
.price.free { color: var(--emerald-pop); }
.price .strike { color: var(--ink-faint); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-right: 6px; }
.card-foot .btn { padding: 8px 16px; font-size: 13.5px; }

/* ---- 編輯精選大卡（橫向 · 打破方陣） ---- */
.card-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: linear-gradient(180deg, #fffefc, var(--surface) 40%, #fdf6f1);
  border: 1px solid var(--line-soft); border-radius: calc(var(--radius) + 6px);
  overflow: hidden; cursor: pointer; position: relative; margin-bottom: 6px;
  box-shadow: var(--rim-soft), var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.card-featured:hover { transform: translateY(-5px); box-shadow: var(--rim-soft), var(--shadow-lift); }
.cf-cover { position: relative; overflow: hidden; min-height: 350px; background: #2a2024; }
.cf-cover .grad { position: absolute; inset: 0; z-index: 1; }
.cf-cover .cover-motif { right: -22px; bottom: -28px; }
.cf-cover .cover-motif svg { width: 210px; height: 210px; }
.card-featured:hover .cover-photo { transform: scale(1.05); }
.cf-cover::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 58%, #fffdfb 99%),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 26%, rgba(28,16,22,.34)); }
.cf-ribbon { position: absolute; left: 16px; top: 16px; z-index: 3;
  font-family: var(--font-body); font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--pink), var(--pink-deep)); padding: 6px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 6px 16px -5px rgba(192,79,112,.7); }
.cf-ribbon svg { width: 13px; height: 13px; }
.cf-body { padding: 32px 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; position: relative; z-index: 2; }
.cf-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--pink-deep); display: inline-flex; align-items: center; gap: 7px; }
.cf-cat svg { width: 15px; height: 15px; }
.cf-body h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 37px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.cf-sub { font-size: 15.5px; color: var(--ink-soft); font-weight: 500; line-height: 1.5; }
.cf-learn { display: grid; gap: 7px; margin: 4px 0; }
.cf-learn li { list-style: none; display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.cf-learn li svg { color: var(--emerald-pop); flex-shrink: 0; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.cf-author { display: flex; align-items: center; gap: 11px; }
.cf-author .avatar { width: 44px; height: 44px; font-size: 16px; }
.cf-author b { display: block; font-size: 15px; color: var(--ink); }
.cf-author > div span { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.cf-buy { display: flex; align-items: center; gap: 14px; }
.cf-buy .price { font-size: 22px; }
@media (max-width: 820px) {
  .card-featured { grid-template-columns: 1fr; }
  .cf-cover { min-height: 190px; }
  .cf-cover::after { background: linear-gradient(180deg, rgba(255,255,255,.1), transparent 40%, rgba(28,16,22,.4)); }
  .cf-body { padding: 22px 20px; }
}

/* 空狀態 */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-faint); border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); }
.empty .emoji { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--pink); box-shadow: var(--rim-soft), var(--shadow-xs); }
.empty .emoji svg { width: 30px; height: 30px; }
.empty h3 { font-family: var(--font-display); color: var(--ink-soft); font-size: 23px; margin-bottom: 8px; }

/* ============================================================ 書院藏書（書架） */
.bookshelf {
  display: flex; align-items: flex-end; justify-content: center; gap: 7px;
  width: fit-content; max-width: 100%; margin: 0 auto;
  padding: 46px 34px 20px; position: relative; border-radius: 18px 18px 6px 6px;
  /* 書櫃壁龕：上方暗、底部有層板陰影 */
  background: linear-gradient(180deg, #f3e2f0 0%, #f9ecf6 55%);
  box-shadow: inset 0 26px 44px -34px rgba(110,70,110,.55), inset 0 -2px 0 rgba(255,255,255,.4);
}
/* 實木層板 */
.bookshelf::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 17px;
  background: linear-gradient(180deg, #d9b9c6 0%, #c69cb1 55%, #b78aa3 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 24px -12px rgba(110,70,100,.55), inset 0 1px 0 rgba(255,255,255,.5);
}
/* 啞光平裝紙書（比照海報那套印刷紙封系列）：扁平紙封 + 細紙纖維紋 + 薄紙頁緣；
   每本以 --w 厚度 / --grain 紙質粗糙 / 泛黃 不同，避免複製感（非精裝、無書背硬殼） */
.book {
  position: relative; width: var(--w, 64px); border-radius: 2px; cursor: default; z-index: 1;
  background: linear-gradient(162deg, var(--c1), var(--c2));
  box-shadow:
    0 9px 15px -12px rgba(80,60,55,.4),       /* 柔和落地陰影 */
    0 1px 2px rgba(80,60,55,.15),
    inset 0 1px 0 rgba(255,255,255,.32);       /* 頂部極淡亮邊 */
  transition: transform .26s cubic-bezier(.2,.7,.2,1), box-shadow .26s;
}
/* 紙張纖維紋（霧面紙觸感）— --grain 控制粗糙：塗布紙低、再生紙高 */
.book::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  opacity: var(--grain, .5); mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(110,85,70,.045) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(110,85,70,.035) 0 1px, transparent 1px 3px);
}
/* 右側薄薄一條紙頁緣（紙感、非精裝厚書邊） */
.book::after {
  content: ''; position: absolute; top: 3px; bottom: 3px; right: -2px; width: 3px;
  border-radius: 0 1px 1px 0;
  background: repeating-linear-gradient(90deg, #f6eedb 0 1px, #e6d9bf 1px 2px);
  box-shadow: 1px 1px 2px -1px rgba(80,60,55,.26);
}
/* 年度小紙標 */
.book .book-n {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  min-width: 21px; height: 17px; padding: 0 4px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center; z-index: 3;
  background: var(--band); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 9px; letter-spacing: .5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 3px -1px rgba(58,40,34,.4);
}
.book .book-t {
  position: absolute; top: 34px; bottom: 30px; left: 0; right: 0;
  writing-mode: vertical-rl; text-orientation: upright; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 1px;
  color: color-mix(in srgb, var(--band) 68%, #33222a);   /* 每本＝自己的主色加深，色彩不同 */
  white-space: nowrap;
}
.book .book-t::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 1.5px; border-radius: 2px; background: var(--band); opacity: .5;
}
.book .book-a {
  writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 8px; letter-spacing: 1px;
  color: rgba(65,54,58,.5); position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 3;
}
/* —— 使用感與紙頁色調（每本不同） —— */
.book.b-worn { filter: saturate(.82) brightness(1.02) contrast(.97); }
.book.b-worn::after { background: repeating-linear-gradient(90deg, #ece0c4 0 1px, #d6c4a0 1px 2px); }
.book.pg-white::after { background: repeating-linear-gradient(90deg, #ffffff 0 1px, #ececec 1px 2px); }
.book:hover { transform: translateY(-11px);
  box-shadow: 0 18px 26px -14px rgba(80,60,55,.38), 0 2px 4px rgba(80,60,55,.2), inset 0 1px 0 rgba(255,255,255,.4); }
@media (max-width: 620px) {
  .bookshelf { gap: 6px; padding: 34px 12px 18px; }
  .book { width: calc(var(--w, 64px) * .72); }
  .book .book-n { min-width: 17px; height: 14px; font-size: 7.5px; top: 8px; }
  .book .book-t { font-size: 12px; top: 28px; }
}

/* ============================================================ 學員見證 */
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice { background: linear-gradient(165deg, #fffefc, var(--surface) 45%, #fbf3ee); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--rim-soft), var(--shadow-xs); position: relative; transition: transform .26s cubic-bezier(.2,.7,.2,1), box-shadow .26s; overflow: hidden; }
.voice::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(216,179,183,.16), transparent 50%); }
.voice:hover { transform: translateY(-6px); box-shadow: var(--rim-soft), var(--shadow-sm); }
.voice::before { content: '\201C'; position: absolute; top: 2px; right: 22px; font-family: var(--font-display); font-size: 90px; color: var(--rose); opacity: .35; line-height: 1; z-index: 0; }
.voice > * { position: relative; z-index: 1; }
.voice .stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 9px; }
.voice blockquote { font-family: var(--font-display); font-size: 15.5px; line-height: 1.5; color: var(--ink); font-weight: 500; margin-bottom: 15px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.voice figcaption { display: flex; align-items: center; gap: 10px; }
.voice .v-dot { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--coral)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: 'Noto Sans TC', sans-serif; flex-shrink: 0; }
.voice figcaption b { font-weight: 700; font-size: 14px; color: var(--ink); display: block; line-height: 1.25; white-space: nowrap; }
.voice figcaption span:not(.v-dot) { font-size: 12px; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }

/* 熱賣標籤 */
.bestseller {
  position: absolute; left: 13px; top: 13px; z-index: 3;
  font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .03em;
  background: linear-gradient(180deg, var(--emerald-pop), var(--emerald));
  color: #fff; padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px -5px rgba(15,138,114,.7);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ============================================================ 領取/招募帶（深色絲絨毛玻璃） */
.feature-band { border: 1px solid var(--glass-border); border-radius: 24px;
  background:
    radial-gradient(120% 130% at 88% 6%, rgba(214,180,214,.16), transparent 56%),
    radial-gradient(120% 130% at 6% 100%, rgba(255,149,160,.12), transparent 56%),
    var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  padding: 46px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; position: relative; overflow: hidden;
  box-shadow: var(--glass-inner), var(--glass-shadow); }
.feature-band::after { content: ''; position: absolute; right: -40px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(212,106,112,.22), transparent 62%); }
.feature-band::before { content: ''; position: absolute; left: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(214,180,214,.18), transparent 64%); pointer-events: none; }
.feature-band .fb-text h2 { font-family: 'Noto Sans TC', var(--font-display); font-size: clamp(26px,3vw,36px); font-weight: 900; line-height: 1.22; margin-bottom: 12px; color: var(--ink); }
.feature-band .fb-text p { color: var(--ink-soft); font-weight: 600; margin-bottom: 22px; }
.feature-band .fb-text .eyebrow { color: var(--pink-deep); }
.feature-band .fb-text .eyebrow::before { background: var(--pink); }
/* 試聽 CTA 沿用全站統一的虹彩 primary（不再覆寫成扁平粉，陰影一致）*/
.feat-list { display: grid; gap: 14px; position: relative; z-index: 2; }
.feat-item { display: flex; gap: 13px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.5));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 16px; border-radius: 14px; border: 1px solid var(--glass-border);
  box-shadow: var(--rim-soft), var(--card-edge), var(--shadow-xs); transition: transform .2s; }
.feat-item:hover { transform: translateX(4px); }
.feat-item .ic { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(180deg, #fff, #fbeee6); display: grid; place-items: center; color: var(--pink-deep); flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 10px -4px rgba(80,40,50,.4); }
.feat-item .ic svg { width: 20px; height: 20px; }
.feat-item b { font-weight: 700; display: block; font-size: 15.5px; color: var(--ink); }
.feat-item span { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ============================================================ 頁尾 */
.footer { border-top: 2px dotted var(--line); margin-top: 50px; padding: 50px 0 40px; background: linear-gradient(180deg, transparent, var(--bg-2)); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 12px; }
.footer p { color: var(--ink-soft); font-size: 14px; max-width: 38ch; font-weight: 500; }
.footer-cols { display: flex; gap: 64px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 5px 0; font-weight: 600; transition: color .2s; }
.footer-col a:hover { color: var(--pink-deep); }
.footer-base { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 13px; flex-wrap: wrap; gap: 10px; font-weight: 600; }
.disclaimer { color: var(--ink-faint); font-size: 12.5px; max-width: 72ch; margin-top: 12px; line-height: 1.55; font-weight: 500; }

/* ============================================================ 課程詳情頁 */
.detail-hero { padding: 36px 0 24px; }
.crumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 22px; font-weight: 700; }
.crumb a:hover { color: var(--pink-deep); }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 46px; align-items: start; }
.detail-main h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -.01em; margin: 14px 0 16px; color: var(--ink); }
.detail-main .sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 22px; font-weight: 500; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--pink-deep);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--rim-soft), 0 3px 8px -6px rgba(168,110,118,.4); }
.detail-meta-row { display: flex; gap: 30px; flex-wrap: wrap; padding: 20px 0; border-top: 2px dotted var(--line); border-bottom: 2px dotted var(--line); margin-bottom: 30px; }
.detail-meta-row .m .v { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.detail-meta-row .m .v.gold { color: var(--gold); }
.detail-meta-row .m .k { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.detail-section { margin-bottom: 36px; }
.detail-section h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.detail-section p { color: var(--ink-soft); margin-bottom: 12px; font-weight: 500; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.learn-grid li { list-style: none; display: flex; gap: 10px; color: var(--ink-soft); font-size: 15px; font-weight: 500; padding: 5px 0; }
.learn-grid li svg { color: var(--pink); flex-shrink: 0; margin-top: 3px; }

/* 課程章節 */
.curriculum { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #fffefc, var(--surface)); box-shadow: var(--rim-soft), var(--shadow-sm); }
.chapter { border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; transition: background .2s; }
.chapter-head:hover { background: var(--surface-2); }
.chapter-head .ch-n { font-family: var(--font-mono); color: var(--pink); font-size: 13px; font-weight: 700; }
.chapter-head b { font-weight: 700; font-size: 16px; flex: 1; color: var(--ink); }
.chapter-head .ch-c { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.chapter-head .caret { transition: transform .25s; color: var(--ink-faint); }
.chapter.open .caret { transform: rotate(90deg); color: var(--pink-deep); }
.lessons { max-height: 0; overflow: hidden; transition: max-height .35s ease; background: var(--surface-2); }
.chapter.open .lessons { max-height: 600px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 13px 20px 13px 48px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; border-top: 1px solid var(--line-soft); }
.lesson svg { color: var(--ink-faint); }
.lesson .dur { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.lesson.free .dur::after { content: ' · 試看'; color: var(--pink-deep); font-weight: 700; }

/* 購買側欄 */
.buy-card { background: linear-gradient(180deg, #fffefc, var(--surface) 50%, #fdf6f1); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; box-shadow: var(--rim-soft), var(--shadow-lift); }
.buy-cover { aspect-ratio: 16/10; position: relative; overflow: hidden; background: #2a2024; }
.buy-cover::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 18% 6%, rgba(255,255,255,.2), transparent 44%); }
.buy-cover::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 30%, transparent 54%, rgba(28,16,22,.46)); }
.buy-cover .grad { position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply; opacity: .72; }
.buy-cover .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
.buy-cover .play span { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(180deg, #fff, #fbeee9); border: 1px solid rgba(255,255,255,.7); display: grid; place-items: center; color: var(--pink-deep); transition: transform .2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px -8px rgba(101,89,93,.6); }
.buy-cover:hover .play span { transform: scale(1.12); }
.buy-body { padding: 22px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.buy-price .now { font-family: var(--font-display); font-weight: 600; font-size: 38px; color: var(--ink); }
.buy-price .was { color: var(--ink-faint); text-decoration: line-through; font-family: var(--font-mono); }
.buy-price .off { font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(180deg, var(--emerald-pop), var(--emerald)); padding: 4px 9px; border-radius: 999px; margin-left: auto; }
.buy-list { margin: 20px 0; display: grid; gap: 12px; }
.buy-list li { list-style: none; display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 500; align-items: center; }
.buy-list li svg { color: var(--pink); flex-shrink: 0; }
.buy-author { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-top: 1px dashed var(--line); }
.buy-author .avatar { width: 46px; height: 46px; font-size: 17px; }
.buy-author .name { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.buy-author .role { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }

/* ============================================================ 驗證 / 表單 */
.form-page { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 50px 20px; position: relative; }
.form-page::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 28% 22%, rgba(195,144,150,.26), transparent 62%),
    radial-gradient(560px 440px at 78% 84%, rgba(169,184,196,.22), transparent 62%),
    radial-gradient(420px 360px at 60% 12%, rgba(224,185,106,.12), transparent 64%); }
.form-card { width: 100%; max-width: 460px; background: linear-gradient(180deg, #fffefc, var(--surface) 50%, #fdf6f1); border: 1px solid var(--line-soft); border-radius: 26px; padding: 38px; box-shadow: var(--rim), var(--shadow-lift); position: relative; z-index: 1; }
.form-card.wide { max-width: 780px; }
.form-card .auth-emoji { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #fffaf6, var(--surface-2)); border: 1px solid var(--line); color: var(--pink-deep);
  box-shadow: var(--rim-soft), var(--shadow-xs); }
.form-card .auth-emoji svg { width: 26px; height: 26px; }
.form-card h1 { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-card .hint { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 24px; font-weight: 500; }
.tabs { display: flex; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 5px; margin-bottom: 26px; box-shadow: inset 0 2px 5px rgba(168,110,118,.14); }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-soft); font-family: var(--font-body); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: all .2s; }
.tabs button.active { background: linear-gradient(180deg, #c98a92, var(--pink-deep) 60%, #9c636b); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px -8px rgba(168,110,118,.7); }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 7px; font-weight: 700; }
.field label .req { color: var(--pink-deep); }
/* 反 Google 表單：帶色底 + 透明邊，聚焦轉白 + 玫瑰邊 + 暈開 */
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid transparent; color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: 600; font-size: 15px; outline: none;
  transition: background .3s ease-in-out, border-color .3s ease-in-out, box-shadow .3s ease-in-out;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); font-weight: 500; }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(212,106,112,.15); }
.field .small { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 20px; font-weight: 600; }
.form-foot a { color: var(--pink-deep); font-weight: 700; }
.msg { font-size: 13.5px; font-weight: 600; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; display: none; }
.msg.show { display: block; }
.msg.err { background: #ffe9ec; color: #d6336c; border: 1px solid #ffc9d4; }
.msg.ok { background: #e6fbf3; color: #0c9b73; border: 1px solid #b6f0dd; }

/* 封面色選擇 */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 46px; height: 46px; border-radius: 12px; cursor: pointer; border: 3px solid transparent; transition: transform .15s; }
.swatch:hover { transform: scale(1.1) rotate(-3deg); }
.swatch.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--pink-deep); }

/* ============================================================ 會員後台 */
.dash-head { padding: 44px 0 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; color: var(--ink); }
.dash-head h1 em { font-style: italic; color: var(--pink-deep); }
.dash-head .greet { color: var(--ink-soft); margin-top: 4px; font-weight: 500; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 40px; }
.dash-stat { background: linear-gradient(180deg, #fffefc, var(--surface) 55%, #fdf6f1); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--rim-soft), var(--shadow-xs); position: relative; overflow: hidden; transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s; }
.dash-stat::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(195,144,150,.12), transparent 52%); }
.dash-stat:hover { transform: translateY(-4px); box-shadow: var(--rim-soft), var(--shadow-sm); }
.dash-stat .ds-ic { position: absolute; right: 14px; top: 14px; color: var(--pink); opacity: .55; }
.dash-stat .ds-ic svg { width: 22px; height: 22px; }
.dash-stat .n { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--ink); }
.dash-stat .n.acid { color: var(--pink-deep); }
.dash-stat .l { font-size: 13px; color: var(--ink-faint); margin-top: 2px; font-weight: 600; }
.dash-tabs { display: flex; gap: 28px; border-bottom: 2px dotted var(--line); margin-bottom: 30px; }
.dash-tabs button { display: inline-flex; align-items: center; gap: 7px; background: 0; border: 0; border-bottom: 3px solid transparent; color: var(--ink-soft); font-family: var(--font-body); font-weight: 700; font-size: 15.5px; padding: 0 0 14px; cursor: pointer; transition: color .2s, border-color .2s; margin-bottom: -2px; }
.dash-tabs button svg { opacity: .85; }
.dash-tabs button.active { color: var(--pink-deep); border-color: var(--pink); }

/* 我的課程列表 */
.my-course { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: center; padding: 16px; background: linear-gradient(180deg, #fffefc, var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 14px; transition: border-color .24s, transform .24s, box-shadow .24s; box-shadow: var(--rim-soft), var(--shadow-xs); }
.my-course:hover { border-color: var(--rose); transform: translateX(4px); box-shadow: var(--rim-soft), var(--shadow-sm); }
.my-course .mc-cover { aspect-ratio: 16/10; border-radius: 11px; position: relative; overflow: hidden; background: #2a2024; box-shadow: 0 6px 14px -8px rgba(101,89,93,.5); }
.my-course .mc-cover .grad { position: absolute; inset: 0; z-index: 1; }
.my-course .mc-cover .cover-motif svg { width: 78px; height: 78px; }
.my-course .mc-cover::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.1), transparent 38%, rgba(28,16,22,.34)); }
.my-course h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.my-course .mc-meta { font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); display: flex; gap: 14px; flex-wrap: wrap; }
.status-badge { font-size: 11.5px; font-family: var(--font-mono); padding: 5px 11px; border-radius: 999px; letter-spacing: .03em; font-weight: 700; }
.status-badge.live { background: #e6fbf3; color: #0c9b73; border: 1px solid #b6f0dd; }
.status-badge.draft { background: var(--bg-2); color: var(--ink-soft); border: 1px solid var(--line); }
.mc-actions { display: flex; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.icon-btn:hover { color: var(--pink-deep); border-color: var(--pink); }
.icon-btn.danger:hover { color: #d6336c; border-color: #ffc9d4; background: #ffe9ec; }

/* 課程管理工具列：狀態篩選 + 關鍵字搜尋 */
.mc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.mc-filters { display: inline-flex; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.mc-fpill { display: inline-flex; align-items: center; gap: 6px; border: 0; background: 0; color: var(--ink-soft); font-family: var(--font-body); font-weight: 700; font-size: 14px; padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.mc-fpill i { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.mc-fpill.active { background: var(--surface); color: var(--pink-deep); box-shadow: var(--rim-soft), var(--shadow-xs); }
.mc-fpill.active i { color: var(--pink); }
.mc-search { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; max-width: 320px; background: var(--surface-input); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 15px; color: var(--ink-faint); transition: border-color .2s, background .2s; }
.mc-search:focus-within { border-color: var(--pink); background: var(--surface); }
.mc-search input { flex: 1; border: 0; background: 0; outline: 0; padding: 11px 0; font-family: var(--font-body); font-size: 14.5px; color: var(--ink); }
@media (max-width: 620px) { .mc-toolbar { gap: 10px; } .mc-search { max-width: none; order: -1; width: 100%; } }

/* ============================================================ 老師後台（規範 ui_kits/admin 介面：側欄 + 表格 + 抽屜 + 確認彈窗） */
body[data-page="dashboard"] #nav-mount { display: none; }
body[data-page="dashboard"] #dash-root { padding: 0 !important; }
.admin-wrap { display: flex; align-items: stretch; min-height: 100vh; }
/* 側欄 */
.admin-side { width: 244px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; text-decoration: none; }
.admin-brand .brand-logo { border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 12px -4px rgba(224,114,143,.5); }
.admin-brand .ab-tx { line-height: 1.2; }
.admin-brand .ab-tx b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); }
.admin-brand .ab-tx i { font-family: var(--font-mono); font-style: normal; font-weight: 700; font-size: 10.5px; color: var(--pink-deep); letter-spacing: .06em; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.admin-nav button { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 14.5px; text-align: left; color: var(--ink-soft); background: transparent; transition: all .18s; }
.admin-nav button:hover { color: var(--ink); background: var(--bg-2); }
.admin-nav button.active { color: var(--pink-deep); background: linear-gradient(180deg, rgba(236,110,124,.12), rgba(236,110,124,.07)); box-shadow: inset 0 0 0 1px rgba(236,110,124,.2); }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; }
.admin-back:hover { color: var(--pink-deep); background: var(--bg-2); }
.admin-logout { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-family: var(--font-body); font-weight: 700; font-size: 13.5px; padding: 9px; border-radius: 10px; cursor: pointer; transition: all .18s; }
.admin-logout:hover { color: var(--pink-deep); border-color: var(--pink); }
/* 主區 */
.admin-main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.admin-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-pagehead h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); color: var(--ink); }
.admin-pagehead p { color: var(--ink-soft); font-weight: 500; font-size: 14.5px; margin-top: 4px; }
/* 數據總覽 */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--card-edge); }
.admin-stat .as-ic { display: inline-flex; margin-bottom: 10px; }
.admin-stat .as-n { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink); }
.admin-stat .as-l { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; margin-top: 6px; }
/* 工具列 */
.admin-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-bar .mc-search { flex: 1; }
/* 表格 */
.admin-table { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-thead, .admin-row { display: grid; grid-template-columns: 1fr 110px 92px 110px 120px; align-items: center; gap: 14px; padding: 14px 18px; }
.admin-thead { padding: 12px 18px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); background: var(--bg-2); }
.admin-thead .ta-r { justify-self: end; }
.admin-row { border-top: 1px solid var(--line-soft); }
.admin-row:hover { background: #fffdfb; }
.ar-course { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ar-cover { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.ar-cover svg { width: 22px; height: 22px; }
.ar-info { min-width: 0; }
.ar-title { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.ar-meta .ar-star { color: var(--gold); font-family: var(--font-mono); }
.ar-price { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ar-price.free { color: var(--emerald-pop); }
.ar-stu { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.admin-row .status-badge { justify-self: start; cursor: pointer; }
.ar-actions { display: flex; gap: 7px; justify-self: end; }
.ar-actions .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
.admin-empty { padding: 54px 20px; text-align: center; color: var(--ink-faint); font-weight: 600; }
.admin-empty button { color: var(--pink-deep); font-weight: 700; background: none; border: 0; cursor: pointer; }
/* 占位頁 */
.admin-placeholder { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 64px 24px; text-align: center; }
.admin-placeholder .ap-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--bg-2); color: var(--pink-deep); margin-bottom: 16px; }
.admin-placeholder h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.admin-placeholder p { color: var(--ink-soft); font-weight: 500; font-size: 14.5px; max-width: 40ch; margin: 0 auto; }
/* 右側編輯抽屜 */
.admin-drawer-bg { position: fixed; inset: 0; z-index: 100; background: rgba(38,25,30,.42); display: flex; justify-content: flex-end; animation: fadeIn .2s ease; }
.admin-drawer { width: min(480px, 100%); height: 100%; background: var(--surface); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(38,25,30,.4); animation: slideInRight .28s var(--ease-soft); }
.adw-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.adw-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); flex: 1; }
.adw-x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.adw-x:hover { color: var(--pink-deep); border-color: var(--pink); }
.adw-form { padding: 22px; overflow-y: auto; flex: 1; }
/* 編輯抽屜內的即時卡片預覽 */
.adw-preview-wrap { background: linear-gradient(180deg, #faf6f7, var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 18px; margin-bottom: 20px; }
.adw-preview-lbl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 12px; }
.adw-preview { pointer-events: none; max-width: 280px; margin: 0 auto; }
.adw-preview .card { cursor: default; }
.adw-preview .reveal { opacity: 1 !important; transform: none !important; }
.adw-foot { display: flex; gap: 10px; margin-top: 22px; }
.adw-foot-fixed { margin-top: 0; padding: 16px 22px; border-top: 1px solid var(--line); }
/* 雲端連線狀態列 */
.cloud-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.cloud-bar.on { border-color: var(--ok-line); background: var(--ok-bg); }
.cloud-bar.off { border-color: var(--err-line); background: var(--err-bg); }
.cloud-bar.warn { border-color: var(--civ); background: #fdf6e7; }
.cloud-bar.warn .cb-dot { background: var(--civ); box-shadow: 0 0 0 4px rgba(190,136,47,.16); }
.cloud-bar .cb-secret { flex-shrink: 0; width: 150px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: var(--font-body); outline: none; }
.cloud-bar .cb-secret:focus { border-color: var(--pink); }
.cloud-bar .cb-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cloud-bar.on .cb-dot { background: var(--ok-fg); box-shadow: 0 0 0 4px rgba(12,155,115,.18); }
.cloud-bar.off .cb-dot { background: var(--err-fg); box-shadow: 0 0 0 4px rgba(214,51,108,.16); }
.cloud-bar .cb-tx { flex: 1; min-width: 160px; line-height: 1.35; }
.cloud-bar .cb-tx b { display: block; font-size: 14px; color: var(--ink); }
.cloud-bar .cb-tx span { font-size: 12px; color: var(--ink-soft); }
.cloud-bar .btn { flex-shrink: 0; }
/* 設定頁分頁籤：一次只看一個區塊 */
.set-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.set-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-family: var(--font-body); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .18s; }
.set-tab:hover { border-color: var(--pink); color: var(--pink-deep); }
.set-tab.active { background: linear-gradient(180deg, rgba(236,110,124,.14), rgba(236,110,124,.07)); color: var(--pink-deep); border-color: transparent; box-shadow: inset 0 0 0 1px rgba(236,110,124,.25); }
/* 首頁版面：順序 + 顯示/隱藏 */
.layout-list { display: flex; flex-direction: column; gap: 8px; }
.layout-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: opacity .2s; }
.layout-row.off { opacity: .5; background: var(--bg-2); }
.layout-row .lr-move { display: flex; gap: 4px; }
.layout-row .lr-move .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.layout-row .lr-move .icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.layout-row .lr-name { flex: 1; font-weight: 700; font-size: 14.5px; color: var(--ink); min-width: 0; }
.layout-row .lr-name i { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-faint); margin-top: 2px; }
.layout-row .lr-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; cursor: pointer; flex-shrink: 0; }
.layout-row .lr-toggle input { width: 16px; height: 16px; accent-color: var(--pink); }
/* 固定區（Hero / Footer）參考列：標明位置、不可動 */
.layout-row.fixed { background: var(--bg-2); border-style: dashed; }
.layout-row .lr-fixed { flex-shrink: 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-faint); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.layout-row .lr-lock { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--ink-faint); }
/* 設定頁的區塊標頭：一眼看出正在改哪一塊首頁區域 */
.set-head { display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.set-head .set-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--pink-deep); background: linear-gradient(180deg, rgba(236,110,124,.12), rgba(236,110,124,.06)); box-shadow: inset 0 0 0 1px rgba(236,110,124,.18); }
.set-head .set-tx b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.set-head .set-tx span { font-size: 12.5px; color: var(--ink-faint); font-weight: 500; }
/* 後台 CMS（見證 / 文章）共用 */
.cms-intro { display: flex; gap: 9px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-soft); font-weight: 500; line-height: 1.55; margin-bottom: 18px; }
.cms-intro svg { flex-shrink: 0; color: var(--pink-deep); margin-top: 1px; }
.cms-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; box-shadow: var(--card-edge); }
.cms-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cms-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-faint); }
.cms-tools { display: flex; gap: 6px; }
.cms-tools .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.cms-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.cms-actions .btn-primary { margin-left: auto; }
.cms-img { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cms-thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-faint); }
.cms-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 見證牆上的 LINE 截圖 */
.voice .voice-shot { display: block; margin: 0 0 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.voice .voice-shot img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
/* 師資照片設定 */
.tch-photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tch-thumb { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.tch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tch-photo-act { display: flex; gap: 8px; flex-wrap: wrap; }
/* 首頁區塊開關 */
.sec-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sec-toggle { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); transition: border-color .18s, background .18s; }
.sec-toggle:has(input:checked) { border-color: var(--pink); background: rgba(236,110,124,.06); }
.sec-toggle input { width: 17px; height: 17px; accent-color: var(--pink); }
/* 課程卡封面照片 */
.card-cover .cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes slideInRight { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* 刪除確認彈窗 */
.admin-modal-bg { position: fixed; inset: 0; z-index: 110; background: rgba(38,25,30,.42); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease; }
.admin-modal { width: 100%; max-width: 380px; background: var(--surface); border-radius: 20px; padding: 28px; text-align: center; box-shadow: var(--shadow-lift); }
.admin-modal .am-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--err-bg); color: var(--err-fg); margin-bottom: 14px; }
.admin-modal h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.admin-modal p { color: var(--ink-soft); font-weight: 500; font-size: 14px; margin-bottom: 22px; }
.admin-modal .am-act { display: flex; gap: 10px; }
/* 後台響應式：側欄 → 頂列；表格 → 卡片 */
@media (max-width: 860px) {
  .admin-wrap { flex-direction: column; }
  .admin-side { width: auto; height: auto; position: sticky; top: 0; z-index: 30; flex-direction: row; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); gap: 10px; }
  .admin-brand { padding: 0; }
  .admin-nav { flex-direction: row; margin: 0 0 0 auto; gap: 2px; overflow-x: auto; }
  .admin-nav button span { display: none; }
  .admin-nav button { padding: 10px; }
  .admin-side-foot { flex-direction: row; margin: 0; padding: 0; border-top: 0; }
  .admin-back span, .admin-back { font-size: 0; }
  .admin-main { padding: 20px 16px 50px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .admin-thead { display: none; }
  .admin-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; }
  .ar-course { grid-column: 1 / -1; }
  .ar-price::before { content: attr(data-label) '：'; color: var(--ink-faint); font-family: var(--font-body); font-weight: 600; }
  .ar-stu::before { content: attr(data-label) '：'; color: var(--ink-faint); font-family: var(--font-body); font-weight: 600; }
  .admin-row .status-badge { justify-self: end; }
  .ar-actions { grid-column: 1 / -1; justify-self: stretch; justify-content: flex-end; }
  .admin-drawer { width: 100%; }
}

/* 上架表單動態章節 */
.builder-chapter { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 17px; margin-bottom: 12px; }
.builder-chapter .bc-head { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.builder-chapter .bc-head .ch-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--pink-deep); white-space: nowrap; }
.builder-chapter .bc-head input { flex: 1; }
.builder-lesson { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.builder-lesson input.l-title { flex: 1; }
.builder-lesson input.l-dur { width: 100px; }
.add-link { color: var(--pink-deep); font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; }
.add-link:hover { text-decoration: underline; }
.x-btn { width: 32px; height: 32px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-faint); cursor: pointer; flex-shrink: 0; transition: all .2s; }
.x-btn:hover { color: #d6336c; border-color: #ffc9d4; }

/* 上架預覽卡 */
.preview-note { background: var(--surface-2); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.preview-note .pn-ic { display: inline-flex; color: var(--pink-deep); flex-shrink: 0; }
.preview-note .pn-ic svg { width: 18px; height: 18px; }

/* ============================================================ Toast */
.toast-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); border: 1.5px solid var(--pink); color: var(--ink);
  padding: 14px 19px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 11px;
  animation: toastIn .35s cubic-bezier(.2,.8,.2,1); min-width: 250px;
}
.toast .t-emoji { display: inline-flex; color: var(--pink-deep); flex-shrink: 0; }
.toast .t-emoji svg { width: 18px; height: 18px; }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================ 入場動畫 */
/* 捲動進場：預設隱藏，進入視窗時由 JS 加 .in 觸發（含防呆/減動偏好 fallback） */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .05s; } .d2 { transition-delay: .12s; } .d3 { transition-delay: .19s; }
.d4 { transition-delay: .26s; } .d5 { transition-delay: .33s; } .d6 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* 歷史時間軸角落裝飾（會動的標記點），低調襯在區塊角落 */
.corner-deco { position: absolute; z-index: 0; opacity: .5; pointer-events: none; }
.corner-deco .tl-deco { width: clamp(140px, 17vw, 210px); height: auto; display: block; }
.corner-tr { top: 22px; right: 24px; }
.corner-br { bottom: 22px; right: 24px; }
.section > .wrap { position: relative; z-index: 1; }   /* 內容永遠在裝飾之上 */
@media (max-width: 760px) { .corner-deco { display: none; } }

/* 會考情報 / 學習文章卡 */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }
.art-card { background: linear-gradient(165deg, #fffefc, var(--surface) 45%, #fbf3ee); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 20px; box-shadow: var(--shadow-xs); cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), box-shadow .26s; }
.art-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.art-top { display: flex; align-items: center; justify-content: space-between; }
.art-tag { font-size: 11.5px; font-weight: 800; color: var(--pink-deep); background: rgba(224,122,127,.1); padding: 3px 10px; border-radius: 999px; }
.art-date { font-size: 12px; font-family: var(--font-mono); color: var(--ink-faint); }
.art-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.art-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-more { font-size: 13px; font-weight: 700; color: var(--pink-deep); }

/* 宣傳影片區（後台貼連結即顯示，16:9 響應式） */
.video-frame { position: relative; width: 100%; max-width: 940px; margin: 6px auto 0; aspect-ratio: 16 / 9;
  border-radius: 22px; overflow: hidden; background: #1c1118;
  box-shadow: 0 30px 60px -20px rgba(43,26,32,.4), 0 0 0 1px rgba(255,255,255,.5) inset; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-frame video { object-fit: cover; }
.video-desc { max-width: 640px; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 620px) { .video-frame { border-radius: 16px; } }

/* 浮動「加 LINE」按鈕（各頁皆有，行動版轉為圓形圖示） */
.fab-line { position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--line-green); color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(6,199,85,.5), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .3s, box-shadow .25s, background .25s, opacity .3s; }
.fab-line:hover { background: #05b54c; transform: translateY(-3px); box-shadow: 0 16px 30px -6px rgba(6,199,85,.6); }
/* 捲到頁尾時讓位，不擋 footer 連結 */
.fab-line.fab-hide { opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; }
.fab-line svg { width: 20px; height: 20px; }
.fab-line .fab-tx { white-space: nowrap; }
@media (max-width: 620px) { .fab-line { right: 14px; bottom: 14px; padding: 13px; } .fab-line .fab-tx { display: none; } }

/* ===== 觸控／手機使用優化（hover 在手機是死的，改用 :active；修 iOS 聚焦放大） ===== */
@media (hover: none) {
  /* iOS 聚焦輸入框不自動放大：font-size 需 ≥16px */
  .cb-field input, .search-box input, .field input, .field textarea, .field select { font-size: 16px; }
  /* 卡片「前往」箭頭常駐顯示（觸控沒有 hover 可觸發） */
  .card-cover .card-go { opacity: 1; transform: none; }
  /* 觸控按壓回饋：點下去有實體下沉感 */
  .card:active { transform: translateY(1px) scale(.992); transition: transform .08s ease; }
  .chip:active, .cat-chip:active, .voice:active, .my-course:active { transform: scale(.97); transition: transform .08s ease; }
  /* 移除點擊時的灰藍閃爍（已自帶 :active 回饋） */
  a, button, .card, .chip, .btn { -webkit-tap-highlight-color: transparent; }
}

/* ============================================================ 響應式 */
@media (max-width: 1080px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .hero-grid, .hero-grid2, .detail-grid, .feature-band, .field-row { grid-template-columns: 1fr; }
  .hero-grid2 { gap: 28px; }
  .hero-visual { display: none; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .learn-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .world-band .wb-content { max-width: 100%; }
  .world-band .map-svg { opacity: .35; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  /* 手機：一行 2 張精簡卡，一次看到更多課程 */
  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 11px 12px 8px; gap: 6px; }
  .card-body h3 { font-size: 15px; line-height: 1.22; }
  .card-body .desc { display: none; }
  .card-meta { font-size: 11px; gap: 7px; }
  .card-meta .card-author { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card-foot { padding: 8px 12px 11px; }
  .card-foot .btn { display: none; }       /* 整張卡可點，行動版省掉按鈕 */
  .price { font-size: 15px; }
  .cat-chip { font-size: 10px; padding: 4px 8px; }
  .card-cover .lvl { font-size: 10px; padding: 4px 8px; }
  /* Hero 手機優化：高度封頂、標題縮小、數據 2×2 不出血 */
  .hero { min-height: clamp(440px, 64vh, 580px); padding: 54px 0 36px; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .1em; }
  .hero h1 { font-size: 33px; line-height: 1.15; margin: 14px 0 14px; }
  .hero p.lede { font-size: 15px; margin-bottom: 22px; max-width: 100%; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 12px 18px; font-size: 15px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 26px; max-width: 320px; }
  .hero-stats .stat { padding: 0; }
  .hero-stats .stat::after { display: none !important; }
  .hero-stats .stat .n { font-size: 27px; }
  .hero-stats .stat .l { font-size: 12px; }
  /* 導覽列精簡：行動版收掉「社會科教室」副標、縮小品牌字、避免與按鈕重疊 */
  .nav-inner { gap: 8px; height: 60px; }
  .brand { font-size: 16px; gap: 7px; min-width: 0; }
  .brand .globe, .brand img { width: 26px; height: 26px; }
  .brand .bd-name { font-size: 17px; }
  .brand .bd-sub { font-size: 11px; margin-left: 6px; padding-left: 6px; }
  .nav-spacer { flex: 1; }
  .nav-actions { gap: 7px; flex-shrink: 0; }
  .nav-actions .btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .my-course { grid-template-columns: 1fr; }
  .my-course .mc-cover { width: 140px; }
  .search-box input { width: 150px; }
  .search-box input:focus { width: 170px; }
  .feature-band { padding: 32px 24px; }
}
/* ===== 後台行動版：直覺 + 好操作（觸控） ===== */
@media (max-width: 620px) {
  .dash-head { padding: 26px 0 4px; }
  .dash-head h1 { font-size: 28px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 22px; }
  .dash-stat { padding: 15px; }
  .dash-stat .n { font-size: 25px; }
  /* 分頁：可橫向滑、不換行、加大好點按 */
  .dash-tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom-width: 1px; }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tabs button { flex: 0 0 auto; font-size: 14.5px; padding: 6px 16px 12px; white-space: nowrap; }
  /* 課程列：封面+標題並排，操作鈕獨立一行右對齊、好點 */
  .my-course { grid-template-columns: 78px 1fr; gap: 13px; padding: 12px; align-items: center; }
  .my-course .mc-cover { width: auto; }
  .my-course h4 { font-size: 16px; margin-bottom: 4px; }
  .my-course .mc-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 2px; }
  .icon-btn { width: 44px; height: 44px; }
  /* 表單卡：縮邊 + 全寬主鈕 + 欄位單欄 */
  .form-card { padding: 22px 16px; border-radius: 20px; }
  .form-card.wide { max-width: 100%; }
  .form-card .btn-lg { width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .builder-lesson { flex-wrap: wrap; }
  .builder-lesson input.l-dur { width: 130px; }
}
/* 更窄的小手機（<380）仍維持 2 欄但再緊一點 */
@media (max-width: 380px) {
  .course-grid { gap: 9px; }
  .card-body h3 { font-size: 14px; }
}

/* ============================================================ 毛玻璃強化（frosted glass）
   讓浮在地圖/紋理上的面板有真正的霧面玻璃質感 */
.world-band .wb-content {
  background: linear-gradient(155deg, rgba(255,252,247,.66), rgba(255,248,242,.4));
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
          backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.65); border-radius: 20px; padding: 28px 30px;
  box-shadow: var(--rim-soft), var(--shadow-sm);
}
.voice {
  background: linear-gradient(165deg, rgba(255,253,251,.74), rgba(255,247,243,.48)) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
          backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.6) !important;
}
.buy-card, .form-card {
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
          backdrop-filter: blur(8px) saturate(1.15);
}
/* 篩選列玻璃托盤 */
.filters {
  background: linear-gradient(180deg, rgba(255,253,251,.5), rgba(255,248,243,.28));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: 10px 14px; box-shadow: var(--rim-soft), var(--shadow-xs);
}
