/* ═════════════════════════════════════════════════════════════════
   財團法人素書樓文教基金會 共用樣式（行動裝置優先）
   ─────────────────────────────────────────────────────────────
   設計概念：「紙墨之間——編輯刊物式人文設計」
   · 宣紙米白 × 濃墨 × 硃砂／土金／黛青，低彩度、留白充分。
   · 字體：Noto Serif TC（中文標題）＋ Noto Sans TC（中文內文／UI）
            ＋ Cormorant Garamond（英文展示、數字）。
   · 按鈕採平整實色／描邊；章節編號收斂為 kicker 行內小字。
   · 卡片以「邊框＋色調對比＋極淡陰影」建立層次，避免厚重投影。
   · 進場動畫為漸進式 reveal（JS 注入 .js-reveal），無 JS 內容完整可見。
   · 基礎樣式＝手機版；以 min-width media query 逐步擴充。
   · 不引用 CSS/JS 框架，不依賴 Node.js。

   斷點（依內容需求，不對應特定品牌）：
     480px   訂閱輸入框與按鈕並排
     600px   錢穆入口 2 欄、合作夥伴 3 欄
     640px   頁尾 2 欄
     860px   最新消息 3 欄、成果 3 欄、旗艦計畫 2 欄、支持 2 欄
     960px   錢穆入口 4 欄、夥伴 6 欄、講堂／典藏雙欄
     1024px  主視覺左右雙欄、頁尾 4 欄
     1200px  8 項主選單＋實用功能可容於單一列，才切換常駐導覽
   ═════════════════════════════════════════════════════════════════ */

/* ─────────── 1. 設計變數 ─────────── */
:root{
  /* 紙與墨 */
  --paper:#f7f3ea;
  --paper-deep:#ede5d3;
  --paper-soft:#fbf8f1;
  --card:#fffdf8;
  --ink:#2a2722;
  --ink-soft:#57534a;
  --ink-faint:#8a8170;
  --line:rgba(42,39,34,.11);
  --line-strong:rgba(42,39,34,.30);
  /* 低彩度文化色 */
  --accent:#a33c29;              /* 硃砂 */
  --accent-deep:#7c2818;
  --accent-soft:rgba(163,60,41,.08);
  --accent-ring:rgba(163,60,41,.28);
  --gold:#997c45;                /* 土金 */
  --gold-soft:#c2a166;
  --gold-deep:#7d6332;
  --jade:#4c5c54;                /* 黛青 */
  --jade-soft:rgba(76,92,84,.06);
  --ink-band:#282420;            /* 深墨色塊 */
  --silk:#211e1a;                /* 頁尾近黑 */
  --silk-soft:#b5a88e;
  --silk-muted:#8e8270;
  --silk-bright:#efe7d2;
  /* 陰影層級（弱化，避免「塑膠感」） */
  --shadow-xs:0 1px 2px rgba(70,58,40,.04);
  --shadow-sm:0 2px 8px rgba(70,58,40,.06),0 16px 32px -20px rgba(70,58,40,.16);
  --shadow-md:0 24px 52px -26px rgba(70,58,40,.26);
  /* 圓角與動態 */
  --radius:16px;
  --radius-sm:9px;
  --radius-btn:9px;
  --radius-pill:999px;
  --ease:cubic-bezier(.22,.61,.36,1);
  /* 版面 */
  --container:1180px;
  --gutter:clamp(1rem,4vw,1.5rem);
  --header-h:64px;
  /* 字型：Google Fonts 優先，系統字型回退 */
  --font-serif:"Noto Serif TC","Songti TC","STSong","Source Han Serif TC","PMingLiU","新細明體",serif;
  --font-sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei","Source Han Sans TC","Heiti TC","黑體-繁",sans-serif;
  --font-latin:"Cormorant Garamond","Noto Serif TC",Georgia,serif;
  /* 圖片占位框圖示（內嵌 SVG，不依賴外部服務） */
  --icon-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8170' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.4' fill='%238a8170' stroke='none'/%3E%3Cpath d='M5 17l4.5-4.5 3 3L16 12l4 4'/%3E%3C/svg%3E");
  /* 紙張肌理（極淡雜訊） */
  --paper-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  /* 標題分隔符：線—◆—線（淺底用） */
  --rule-accent:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='11' viewBox='0 0 110 11'%3E%3Cline x1='0' y1='5.5' x2='45' y2='5.5' stroke='%23997c45' stroke-width='1'/%3E%3Crect x='52' y='3.2' width='5' height='5' transform='rotate(45 54.5 5.7)' fill='%23a33c29'/%3E%3Cline x1='64' y1='5.5' x2='110' y2='5.5' stroke='%23997c45' stroke-width='1'/%3E%3C/svg%3E");
  /* 標題分隔符（深色區塊用） */
  --rule-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='11' viewBox='0 0 110 11'%3E%3Cline x1='0' y1='5.5' x2='45' y2='5.5' stroke='%23c2a166' stroke-width='1'/%3E%3Crect x='52' y='3.2' width='5' height='5' transform='rotate(45 54.5 5.7)' fill='%23d9705a'/%3E%3Cline x1='64' y1='5.5' x2='110' y2='5.5' stroke='%23c2a166' stroke-width='1'/%3E%3C/svg%3E");
}

/* ─────────── 2. Reset 與基礎 ─────────── */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  overflow-x:clip;
  /* 黏性頁首不遮住錨點標題與鍵盤焦點 */
  scroll-padding-top:calc(var(--header-h) + 16px);
}
body{
  margin:0;
  font-family:var(--font-sans);
  font-weight:400;
  font-size:1rem;
  line-height:1.9;
  letter-spacing:.02em;
  color:var(--ink);
  background:
    var(--paper-noise),
    radial-gradient(140% 90% at 50% 0%, rgba(255,255,255,.6), transparent 60%),
    var(--paper);
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* 表單控制項也吃同一套字型（避免 GeneratePress 覆寫按鈕／輸入框字型） */
body,button,input,select,textarea{font-family:var(--font-sans)}
h1,h2,h3,h4{
  margin:0;line-height:1.5;text-wrap:balance;
  font-optical-sizing:auto;
}
h1,h2,h3{font-family:var(--font-serif);font-weight:600;letter-spacing:.04em}
h2{font-weight:700}
h1{letter-spacing:.02em}
h4{font-weight:500}
p{margin:0;text-wrap:pretty}
ul,ol{margin:0;padding:0}
a{color:var(--accent)}
button{font:inherit;color:inherit;cursor:pointer}
img,svg{display:block;max-width:100%;height:auto}
::selection{background:rgba(163,60,41,.16)}
:focus-visible{
  outline:2px solid transparent;
  box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--accent);
  border-radius:4px;
  outline-offset:2px;
}
/* 自訂捲軸（桌面） */
@supports (scrollbar-width: thin){
  *{scrollbar-width:thin;scrollbar-color:rgba(42,39,34,.25) transparent}
}
::-webkit-scrollbar{width:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(42,39,34,.2);border-radius:8px;border:3px solid var(--paper)}
::-webkit-scrollbar-thumb:hover{background:rgba(42,39,34,.34)}

/* ─────────── 3. 無障礙輔助 ─────────── */
.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--ink);color:var(--paper);
  padding:.7rem 1.2rem;text-decoration:none;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0}

/* ─────────── 4. 版面容器、章節與進場動畫 ─────────── */
.container{
  width:min(100% - 2*var(--gutter), var(--container));
  margin-inline:auto;
}
.section{padding:clamp(3.5rem,9vw,6.5rem) 0}
.section--alt{
  background:
    linear-gradient(180deg, rgba(255,255,255,.26), transparent 40%),
    var(--paper-deep);
  border-block:1px solid var(--line);
}
.section-head{max-width:46rem;margin:0 auto clamp(2.25rem,5.5vw,3.25rem);text-align:center}
.section-kicker{
  display:inline-flex;align-items:center;gap:.65rem;
  font-size:.72rem;font-weight:500;letter-spacing:.34em;padding-left:.34em;
  color:var(--gold);margin-bottom:.75rem;
}
.section-kicker::before,.section-kicker::after{content:"";height:1px;width:clamp(1.6rem,6vw,2.8rem);opacity:.6}
.section-kicker::before{background:linear-gradient(90deg,transparent,var(--gold))}
.section-kicker::after{background:linear-gradient(90deg,var(--gold),transparent)}
/* 章節編號：kicker 行內的小型襯線字，低調點綴 */
.section-index{
  font-family:var(--font-serif);font-size:1rem;font-weight:600;
  letter-spacing:.02em;color:var(--accent);
}
.section-title{font-size:clamp(1.55rem,4vw,2.15rem);line-height:1.4}
.section-title::after{
  content:"";display:block;width:110px;height:11px;
  margin:.9rem auto 0;
  background:var(--rule-accent) center/contain no-repeat;
}
.section-note{color:var(--ink-soft);font-size:.95rem;max-width:34em;margin-inline:auto;margin-top:.9rem}
.section-foot{display:flex;justify-content:center;margin-top:clamp(1.6rem,4vw,2.4rem)}

/* 進場動畫（JS 漸進注入；無 JS 或減少動態時不套用，內容完整可見） */
.js-reveal{opacity:0}
.js-reveal.is-in{opacity:1;animation:reveal-up .72s var(--ease) backwards}
@keyframes reveal-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
/* 網格內子項錯落（延遲極小，保持克制） */
.news-grid .js-reveal:nth-child(2),
.program-grid .js-reveal:nth-child(2),
.archive-grid .js-reveal:nth-child(2),
.video-list .js-reveal:nth-child(2),
.support-grid .js-reveal:nth-child(2){animation-delay:.09s}
.news-grid .js-reveal:nth-child(3),
.archive-grid .js-reveal:nth-child(3),
.video-list .js-reveal:nth-child(3){animation-delay:.18s}
.entry-grid .js-reveal:nth-child(2){animation-delay:.07s}
.entry-grid .js-reveal:nth-child(3){animation-delay:.14s}
.entry-grid .js-reveal:nth-child(4){animation-delay:.21s}
.archive-list .js-reveal:nth-child(2){animation-delay:.06s}
.archive-list .js-reveal:nth-child(3){animation-delay:.12s}
.archive-list .js-reveal:nth-child(4){animation-delay:.18s}
.stats .js-reveal:nth-child(2){animation-delay:.08s}
.stats .js-reveal:nth-child(3){animation-delay:.16s}
.partner-grid .js-reveal:nth-child(2){animation-delay:.05s}
.partner-grid .js-reveal:nth-child(3){animation-delay:.10s}
.partner-grid .js-reveal:nth-child(4){animation-delay:.15s}
.partner-grid .js-reveal:nth-child(5){animation-delay:.20s}
.partner-grid .js-reveal:nth-child(6){animation-delay:.25s}

/* ─────────── 5. 按鈕、待建標記、留位連結 ─────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:46px;padding:.62rem 1.4rem;border-radius:var(--radius-btn);
  border:1px solid var(--line-strong);background:var(--card);color:var(--ink);
  text-decoration:none;font-size:.92rem;font-weight:500;letter-spacing:.08em;
  box-shadow:var(--shadow-xs);
  transition:background-color .22s var(--ease),color .22s var(--ease),
             border-color .22s var(--ease),transform .22s var(--ease),
             box-shadow .22s var(--ease);
}
.btn:hover{transform:translateY(-1px);border-color:var(--accent);color:var(--accent-deep);box-shadow:var(--shadow-sm)}
.btn:active{transform:translateY(0)}
/* 主要按鈕：平整實色，不做光澤漸層 */
.btn--primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn--primary:hover{background:var(--accent-deep);border-color:var(--accent-deep);color:#fff;box-shadow:0 10px 22px -14px rgba(163,60,41,.55)}
.btn--ghost{background:transparent}
.btn.is-pending{cursor:help;border-style:dashed;color:var(--ink-faint);background:transparent;box-shadow:none}
.btn.btn--primary.is-pending{
  background:transparent;border:1px dashed var(--line-strong);color:var(--ink-faint);box-shadow:none;
}
.tag-pending{
  display:inline-flex;align-items:center;font-size:.62rem;letter-spacing:.12em;
  color:inherit;border:1px dashed currentColor;border-radius:var(--radius-pill);
  padding:.1rem .5rem;white-space:nowrap;
}
.entry-cta{
  display:inline-flex;align-items:center;gap:.5rem;min-height:44px;
  font-size:.9rem;font-weight:500;letter-spacing:.06em;color:var(--accent);text-decoration:none;
}
/* 真實連結（非待建）顯示箭頭；待建 span 不顯示 */
.entry-cta[href]::after{content:"→";transition:transform .25s var(--ease)}
.entry-cta[href]:hover::after{transform:translateX(3px)}
.entry-cta.is-pending{color:var(--ink-faint);cursor:help}

/* ─────────── 6. 頁首與導覽 ─────────── */
.site-header{
  background:rgba(247,243,234,.9);
  border-bottom:1px solid var(--line);
  transition:background-color .3s var(--ease),box-shadow .3s var(--ease);
}
/* 黏性吸附僅在有 JS（選單可收合、頁首高度固定）時啟用，
   避免無 JS 時展開式導覽變高後遮住錨點內容。 */
html.js .site-header{
  position:sticky;top:0;z-index:100;
  -webkit-backdrop-filter:blur(14px) saturate(1.05);
  backdrop-filter:blur(14px) saturate(1.05);
  box-shadow:0 1px 0 var(--line),0 14px 34px -26px rgba(70,58,40,.35);
}
/* 滾動後頁首更實、更有存在感（JS 加入 .is-scrolled） */
html.js .site-header.is-scrolled{
  background:rgba(247,243,234,.97);
  box-shadow:0 1px 0 var(--line),0 18px 40px -28px rgba(70,58,40,.4);
}
.header-inner{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:.5rem 1rem;min-height:var(--header-h);padding:.6rem 0;
}
.brand{display:inline-flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink);min-height:44px}
.logo-slot{
  width:44px;height:44px;flex:0 0 auto;
  border:1.5px dashed var(--line-strong);border-radius:var(--radius-sm);
  display:grid;place-items:center;background:rgba(255,253,248,.7);
  color:var(--ink-faint);font-size:.6rem;letter-spacing:.12em;
}
.brand-logo-img{width:44px;height:44px;object-fit:contain;flex:0 0 auto}
.brand-text{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.brand-name{font-family:var(--font-serif);font-size:clamp(.94rem,3vw,1.12rem);font-weight:700;letter-spacing:.1em}
.brand-sub{
  font-family:var(--font-latin);font-size:.68rem;font-weight:500;
  letter-spacing:.18em;color:var(--ink-faint);
}

/* 選單按鈕：預設隱藏；html.js 且 <1200px 時才顯示 */
.menu-toggle{display:none}

/* 手機版導覽（無 JS 時：保持展開、可完整取用） */
.site-nav{display:block;width:100%}
.nav-list{list-style:none;display:grid;gap:.15rem;padding:.7rem 0}
.nav-link{
  display:flex;align-items:center;gap:.45rem;min-height:44px;padding:.4rem .6rem;
  color:var(--ink-soft);text-decoration:none;font-size:.95rem;letter-spacing:.06em;
  border-radius:var(--radius-sm);
}
.nav-link:hover{background:var(--accent-soft);color:var(--accent-deep)}
.nav-link.is-pending{color:var(--ink-faint);cursor:help}
.nav-link.is-pending::after{
  content:"待建";font-size:.6rem;letter-spacing:.1em;color:var(--ink-faint);
  border:1px dashed currentColor;border-radius:var(--radius-pill);padding:.05rem .4rem;
}
/* 真實導覽連結的底線動畫與當前區塊高亮 */
a.nav-link{position:relative}
a.nav-link::after{
  content:"";position:absolute;left:.6rem;right:.6rem;bottom:.22rem;height:2px;
  background:var(--accent);transform:scaleX(0);transform-origin:left;
  transition:transform .3s var(--ease);
}
a.nav-link:hover::after,a.nav-link.is-active::after{transform:scaleX(1)}
a.nav-link.is-active{color:var(--accent)}
.nav-utils{
  display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .9rem;
  padding:1rem 0 .2rem;border-top:1px solid var(--line);
}
.util-link{
  display:inline-flex;align-items:center;min-height:44px;padding:.3rem .55rem;
  color:var(--ink-soft);text-decoration:none;font-size:.88rem;letter-spacing:.05em;
  border-radius:var(--radius-sm);
}
.util-link:hover{color:var(--accent-deep);background:var(--accent-soft)}
.util-link.is-pending{color:var(--ink-faint);cursor:help;border-bottom:1px dashed currentColor}
.util-lang{display:inline-flex;align-items:center;gap:.15rem}
.lang-item{
  display:inline-flex;align-items:center;min-height:44px;padding:.3rem .45rem;
  font-size:.82rem;color:var(--ink-soft);
}
.lang-item.is-current{color:var(--accent);font-weight:700}
.lang-item.is-pending{color:var(--ink-faint);cursor:help;border-bottom:1px dashed currentColor}

/* 手機／平板（html.js）：導覽收合為下拉面板。
   以 max-width 包住「收合行為」，是這個例外狀態的刻意寫法，
   其餘版面仍一律以 min-width 擴充。 */
@media (max-width:1199.98px){
  html.js .menu-toggle{
    display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
    min-height:44px;min-width:44px;padding:.4rem .6rem;
    background:transparent;border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  }
  html.js .site-nav{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--paper);border-bottom:1px solid var(--line);
    box-shadow:var(--shadow-md);
    max-height:calc(100vh - var(--header-h));overflow-y:auto;
    padding:.4rem var(--gutter) 1.2rem;
  }
  html.js .site-nav.is-open{display:block}
}
.menu-icon{position:relative;width:20px;height:14px;display:inline-block}
.menu-icon > span{
  position:absolute;left:0;width:100%;height:2px;background:currentColor;
  border-radius:1px;transition:transform .25s var(--ease),top .25s var(--ease),opacity .2s;
}
.menu-icon > span:nth-child(1){top:0}
.menu-icon > span:nth-child(2){top:6px}
.menu-icon > span:nth-child(3){top:12px}
.menu-toggle[aria-expanded="true"] .menu-icon > span:nth-child(1){top:6px;transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] .menu-icon > span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] .menu-icon > span:nth-child(3){top:6px;transform:rotate(-45deg)}

/* 桌面版導覽：上排實用功能、下排主選單，穩定容納 8 欄目＋實用功能 */
@media (min-width:1200px){
  :root{--header-h:120px}
  .menu-toggle{display:none}
  .site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1.25rem;width:auto;flex:1;margin-left:1.5rem;min-width:0}
  .nav-utils{order:1;width:100%;justify-content:flex-end;margin-left:0;padding:.3rem 0 .25rem;border-top:0;border-bottom:1px solid var(--line);gap:.4rem 1rem}
  .nav-list{order:2;width:100%;display:flex;flex-wrap:wrap;gap:.15rem .95rem;padding:0}
  .nav-link{min-height:44px;padding:.4rem .2rem;font-size:.9rem;letter-spacing:.03em}
  .nav-link:hover{background:none;color:var(--accent)}
  a.nav-link::after{left:.2rem;right:.2rem}
  .util-link,.lang-item{font-size:.82rem}
}

/* ─────────── 7. 主視覺 ─────────── */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(120% 140% at 88% -12%, rgba(163,60,41,.055), transparent 55%),
    radial-gradient(100% 130% at 0% 115%, rgba(76,92,84,.05), transparent 50%),
    linear-gradient(180deg,#faf6ec,#efe8d6);
  border-bottom:1px solid var(--line);
}
.hero::before{content:"";position:absolute;inset:0;background-image:var(--paper-noise);opacity:.6;pointer-events:none}
/* 桌面版背景浮現極淡 SUSHULOU 字樣（手機版不顯示） */
.hero::after{display:none}
@media (min-width:1024px){
  .hero::after{
    display:block;content:"SUSHULOU";position:absolute;top:1rem;left:50%;transform:translateX(-50%);
    font-family:var(--font-latin);font-weight:600;font-size:clamp(4.5rem,10vw,8rem);
    letter-spacing:.16em;color:rgba(42,39,34,.04);white-space:nowrap;
    pointer-events:none;user-select:none;
  }
}
.hero-inner{
  position:relative;z-index:1;
  display:grid;gap:clamp(1.5rem,4vw,2.5rem);align-items:center;
  padding:clamp(2.5rem,6vw,3.75rem) 0 clamp(3rem,7vw,4.5rem);
}
.hero-copy{max-width:36rem;min-width:0}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.76rem;font-weight:500;letter-spacing:.3em;color:var(--gold);margin-bottom:.8rem;
}
.hero-eyebrow::before{content:"";width:6px;height:6px;background:var(--accent);transform:rotate(45deg);flex:0 0 auto}
.hero-title{font-size:clamp(1.95rem,6vw,3.05rem);line-height:1.32;letter-spacing:.02em;margin-bottom:1.15rem}
.hero-lead{color:var(--ink-soft);font-size:clamp(1rem,2.4vw,1.13rem);font-weight:300;line-height:2;max-width:34em;margin-bottom:1.7rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem}
.hero-note{
  margin-top:1.4rem;padding-left:1rem;font-size:.84rem;color:var(--ink-faint);
  border-left:2px solid rgba(163,60,41,.35);
}
.hero-media{position:relative;min-width:0}
/* 金線偏移裱框：托在主視覺圖片後方 */
.hero-media::before{
  content:"";position:absolute;inset:0;margin:-12px -12px 12px 12px;
  border:1px solid rgba(153,124,69,.42);border-radius:var(--radius);pointer-events:none;
}
.hero-media .asset-slot{position:relative;z-index:1}
@media (min-width:1024px){
  .hero-inner{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
}

/* ─────────── 8. 素材占位框 ─────────── */
.asset-slot{
  position:relative;display:grid;place-items:center;align-content:center;gap:.45rem;
  padding:1.25rem;background:rgba(255,253,248,.55);
  border:1.5px dashed var(--line-strong);border-radius:var(--radius);
  color:var(--ink-faint);text-align:center;
}
/* 內框細線，標出正式素材應放入的範圍 */
.asset-slot::after{
  content:"";position:absolute;inset:10px;pointer-events:none;
  border:1px solid rgba(138,129,112,.22);border-radius:calc(var(--radius) - 7px);
}
.asset-slot::before{content:"";width:30px;height:30px;background:var(--icon-image) center/contain no-repeat;opacity:.7}
.asset-slot__label{font-size:.8rem;letter-spacing:.2em}
.asset-slot__meta{font-size:.66rem;letter-spacing:.08em;opacity:.85}
.asset-slot--hero{aspect-ratio:16/9;min-height:150px}
.asset-slot--video{aspect-ratio:16/9}
.asset-slot--video::before{display:none}
.asset-slot--video .asset-slot__label{position:absolute;left:0;right:0;bottom:.9rem}
.asset-slot--partner{aspect-ratio:4/3;padding:.75rem}
.asset-slot--partner::before{display:none}
.play-badge{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:52px;height:52px;border-radius:50%;background:rgba(42,39,34,.62);
  display:grid;place-items:center;
  box-shadow:0 0 0 6px rgba(255,253,248,.5);
  transition:transform .25s var(--ease),background-color .25s var(--ease);
}
.play-badge::after{
  content:"";width:0;height:0;margin-left:3px;
  border-left:12px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent;
}
@media (hover:hover){
  .asset-slot--video:hover .play-badge{transform:translate(-50%,-50%) scale(1.06);background:rgba(163,60,41,.85)}
}

/* ─────────── 9. 卡片基礎 ─────────── */
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
}
@media (hover:hover){
  .card{transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s var(--ease);box-shadow:var(--shadow-xs)}
  .card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:var(--line-strong)}
}

/* ─────────── 10. 最新消息 ─────────── */
.news-grid{display:grid;gap:1.1rem}
@media (min-width:860px){.news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.news-card{display:grid;gap:.75rem;padding:1.35rem 1.4rem}
.news-card__top{display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:center}
.news-date{
  font-family:var(--font-latin);font-size:.88rem;font-weight:600;
  color:var(--ink-faint);font-variant-numeric:tabular-nums;letter-spacing:.04em;
}
.news-badge{
  font-size:.7rem;letter-spacing:.08em;color:var(--accent);
  border:1px solid rgba(163,60,41,.4);border-radius:var(--radius-pill);padding:.1rem .65rem;
  background:var(--accent-soft);
}
.news-title{font-size:1.12rem;line-height:1.5}
.news-excerpt{color:var(--ink-soft);font-size:.95rem}
.news-card .entry-cta{margin-top:.1rem}

/* ─────────── 11. 旗艦計畫 ─────────── */
.program-grid{display:grid;gap:1.35rem}
@media (min-width:860px){.program-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.program-card{
  display:flex;flex-direction:column;gap:.9rem;
  padding:clamp(1.5rem,4vw,2.1rem);border-top:2px solid var(--accent);
}
.program-badge{
  display:inline-flex;align-items:center;gap:.35rem;align-self:flex-start;
  font-size:.75rem;letter-spacing:.12em;color:var(--accent);
  border:1px solid rgba(163,60,41,.4);border-radius:var(--radius-pill);padding:.15rem .7rem;
}
.program-badge::before{content:"";width:6px;height:6px;background:var(--accent);transform:rotate(45deg)}
.program-title{font-size:clamp(1.28rem,3.5vw,1.6rem);line-height:1.4}
.program-meta{display:flex;flex-wrap:wrap;gap:.4rem .6rem;font-size:.85rem;color:var(--ink-soft)}
.program-meta span + span::before{content:"・";color:var(--ink-faint);margin-right:.6rem}
.program-desc{color:var(--ink-soft)}
.program-actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:.6rem}

/* ─────────── 12. 錢穆專區入口 ─────────── */
.entry-grid{display:grid;gap:1.1rem}
@media (min-width:600px){.entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px){.entry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.entry-card{
  position:relative;display:flex;flex-direction:column;gap:.55rem;
  padding:1.6rem 1.4rem 1.4rem;overflow:hidden;
}
.entry-card::before{
  content:"";position:absolute;top:0;left:0;width:2.5rem;height:2px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
}
.entry-title{font-size:1.1rem}
.entry-desc{color:var(--ink-soft);font-size:.9rem}
.entry-card .entry-cta{margin-top:auto}

/* ─────────── 13. 歷屆交流與成果 ─────────── */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}
.stat{
  position:relative;text-align:center;padding:1.4rem .5rem;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius);
}
/* 數據之間的細分隔線 */
.stat + .stat::before{
  content:"";position:absolute;left:-.7rem;top:22%;bottom:22%;width:1px;
  background:var(--line);
}
.stat__num{
  display:block;font-family:var(--font-latin);font-size:clamp(1.5rem,5vw,2.1rem);
  font-weight:700;color:var(--accent);letter-spacing:.06em;line-height:1.2;
  font-variant-numeric:tabular-nums;
}
.stat__label{font-size:.82rem;color:var(--ink-soft);letter-spacing:.16em;margin-top:.3rem}
.archive-grid{display:grid;gap:1.1rem;margin-top:1.8rem}
@media (min-width:860px){.archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.archive-card{display:grid;gap:.55rem;padding:1.3rem}
.archive-title{font-size:1.08rem}
.archive-meta{font-size:.8rem;color:var(--ink-faint)}
.archive-desc{font-size:.9rem;color:var(--ink-soft)}

/* ─────────── 14. 數位講堂與典藏精選 ─────────── */
.classroom-grid{display:grid;gap:2rem}
@media (min-width:960px){.classroom-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}}
.block-title{
  display:flex;align-items:center;gap:.6rem;
  font-family:var(--font-serif);font-weight:700;
  font-size:1.12rem;letter-spacing:.14em;margin-bottom:1.1rem;
}
.block-title::before{content:"";width:7px;height:7px;background:var(--accent);transform:rotate(45deg)}
.video-list{display:grid;gap:1.3rem}
.video-thumb{margin-bottom:.65rem}
.video-title{font-size:1rem}
.video-meta{font-size:.82rem;color:var(--ink-faint)}
.archive-list{list-style:none;display:grid;gap:.75rem}
.archive-mini{
  display:flex;gap:.85rem;align-items:flex-start;padding:1rem 1.05rem;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  transition:border-color .25s var(--ease),transform .25s var(--ease);
}
@media (hover:hover){.archive-mini:hover{border-color:var(--line-strong);transform:translateY(-1px)}}
.archive-mini__type{
  flex:0 0 auto;font-size:.72rem;letter-spacing:.14em;color:var(--accent);
  border:1px solid rgba(163,60,41,.4);border-radius:var(--radius-pill);padding:.15rem .65rem;margin-top:.15rem;
}
.archive-mini__title{font-size:.95rem;font-family:var(--font-serif);font-weight:700;letter-spacing:.04em}
.archive-mini__desc{font-size:.82rem;color:var(--ink-soft)}

/* ─────────── 15. 合作夥伴 ─────────── */
.partner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.95rem}
@media (min-width:600px){.partner-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:960px){.partner-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
.asset-slot--partner .asset-slot__label{font-size:.72rem}

/* ─────────── 16. 支持與訂閱（深墨色區塊） ─────────── */
.support-grid{display:grid;gap:1.35rem}
@media (min-width:860px){.support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.support-card{display:flex;flex-direction:column;gap:1rem;padding:clamp(1.6rem,4vw,2.1rem)}
.support-title{font-size:1.22rem}
.support-desc{color:var(--ink-soft)}
.support-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.subscribe-form{display:flex;flex-wrap:wrap;gap:.6rem}
.subscribe-form input[type=email]{
  flex:1 1 100%;min-height:46px;padding:.55rem .95rem;
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  background:var(--card);color:var(--ink);font:inherit;
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.subscribe-form input[type=email]::placeholder{color:var(--ink-faint);opacity:1}
.subscribe-form input[type=email]:focus{
  outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring);
}
@media (min-width:480px){.subscribe-form input[type=email]{flex:1 1 220px}}
.form-status{font-size:.85rem;min-height:1.2em}
.form-status.is-error{color:var(--accent-deep)}
.form-status.is-note{color:var(--ink-soft)}

/* 深墨色區塊（section--ink）整體配色覆寫 */
.section--ink{
  position:relative;overflow:hidden;
  background:
    radial-gradient(120% 130% at 85% -10%, rgba(163,60,41,.15), transparent 55%),
    radial-gradient(110% 120% at 0% 110%, rgba(76,92,84,.13), transparent 50%),
    var(--ink-band);
  border-block:1px solid rgba(255,255,255,.07);
}
.section--ink .section-kicker{color:var(--gold-soft)}
.section--ink .section-kicker::before{background:linear-gradient(90deg,transparent,var(--gold-soft))}
.section--ink .section-kicker::after{background:linear-gradient(90deg,var(--gold-soft),transparent)}
.section--ink .section-index{color:#d9705a}
.section--ink .section-title{color:#f4eddb}
.section--ink .section-title::after{background-image:var(--rule-light)}
.section--ink .section-note{color:rgba(244,237,219,.72)}
.section--ink .card{
  background:rgba(255,253,248,.05);
  border-color:rgba(244,237,219,.14);
  box-shadow:none;
}
.section--ink .support-title{color:#f4eddb}
.section--ink .support-desc{color:rgba(244,237,219,.72)}
.section--ink .btn{background:transparent;border-color:rgba(244,237,219,.38);color:#f4eddb}
.section--ink .btn:hover{border-color:#f4eddb;color:#fff}
.section--ink .btn.btn--primary{
  background:var(--accent);border-color:var(--accent);color:#fff;
}
.section--ink .btn.btn--primary:hover{background:var(--accent-deep);border-color:var(--accent-deep)}
.section--ink .btn.is-pending{color:rgba(244,237,219,.5);border-color:rgba(244,237,219,.22)}
.section--ink .btn.btn--primary.is-pending{
  background:transparent;border:1px dashed rgba(244,237,219,.3);color:rgba(244,237,219,.5);
}
.section--ink .subscribe-form input[type=email]{
  background:rgba(255,253,248,.08);border-color:rgba(244,237,219,.26);color:#f4eddb;
}
.section--ink .subscribe-form input[type=email]::placeholder{color:rgba(244,237,219,.45)}
.section--ink .subscribe-form input[type=email]:focus{border-color:var(--gold-soft);box-shadow:0 0 0 3px rgba(194,161,102,.2)}
.section--ink .form-status.is-note{color:rgba(244,237,219,.7)}
.section--ink .form-status.is-error{color:#f0a693}
.section--ink .tag-pending{color:inherit}

/* ─────────── 17. 頁尾與回到頁首 ─────────── */
.site-footer{
  position:relative;overflow:hidden;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(76,92,84,.16), transparent 55%),
    var(--silk);
  color:var(--silk-soft);
  border-top:2px solid var(--accent);
}
/* 巨大品牌浮水印（低存在感） */
.site-footer::after{
  content:"素書樓";position:absolute;right:1rem;top:1.5rem;
  font-family:var(--font-serif);font-weight:700;line-height:1;
  font-size:clamp(6rem,18vw,11rem);letter-spacing:.12em;
  color:rgba(236,228,208,.03);
  pointer-events:none;user-select:none;
}
.footer-inner{position:relative;z-index:1;display:grid;gap:2rem;padding:3.2rem 0 2.2rem}
@media (min-width:640px){.footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){.footer-inner{grid-template-columns:1.25fr 1fr 1fr 1fr}}
.footer-brand{display:grid;gap:.75rem;justify-items:start;align-content:start}
.logo-slot--footer{width:56px;height:56px}
.footer-name{font-family:var(--font-serif);font-size:1.18rem;font-weight:700;letter-spacing:.14em;color:var(--silk-bright)}
.footer-quote{font-size:.9rem;color:var(--silk-soft)}
.footer-heading{
  font-size:1rem;font-weight:700;letter-spacing:.16em;color:var(--silk-bright);margin-bottom:1.05rem;
}
.footer-heading::after{content:"";display:block;width:1.4rem;height:2px;background:var(--accent);margin-top:.5rem}
.footer-list{list-style:none;display:grid;gap:.1rem}
.footer-link{
  display:inline-flex;align-items:center;min-height:44px;
  color:var(--silk-soft);text-decoration:none;font-size:.9rem;letter-spacing:.05em;
  transition:color .2s var(--ease);
}
.footer-link:hover{color:var(--silk-bright)}
.footer-link.is-pending{color:var(--silk-muted);cursor:help;border-bottom:1px dashed currentColor}
.footer-note{font-size:.8rem;color:var(--silk-muted)}
.footer-lang{display:inline-flex;align-items:center;gap:.15rem;margin-top:.8rem}
.site-footer .lang-item{color:var(--silk-soft)}
.site-footer .lang-item.is-current{color:var(--silk-bright)}
.site-footer .lang-item.is-pending{color:var(--silk-muted)}
.footer-bottom{
  grid-column:1/-1;border-top:1px solid rgba(236,228,208,.14);
  padding-top:1.5rem;margin-top:.5rem;display:grid;gap:.6rem;
  justify-items:center;text-align:center;
}
.footer-copy{font-size:.84rem;letter-spacing:.1em;color:var(--silk-muted)}

.to-top{
  position:fixed;right:1rem;bottom:1rem;z-index:80;
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:var(--card);border:1px solid var(--line-strong);color:var(--accent);
  text-decoration:none;box-shadow:var(--shadow-md);
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .25s var(--ease),transform .25s var(--ease),visibility .25s;
}
.to-top.is-visible{opacity:1;visibility:visible;transform:none}
.to-top:hover{transform:translateY(-2px);border-color:var(--accent);color:var(--accent-deep)}

/* ─────────── 18. 減少動態效果與列印 ─────────── */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
  .js-reveal{opacity:1}
}
@media print{
  .site-header,.to-top,.skip-link{display:none !important}
  body{background:#fff;color:#000}
  .section{padding:1.5rem 0}
  .js-reveal{opacity:1 !important}
}

/* ═════════════════════════════════════════════════════════════════
   19. 2.0 編輯式視覺精修
   保留既有 DOM、錨點與 JS selectors；將重複的置中卡片節奏改為更具
   文化機構感的左對齊章節、非對稱網格、細線分區與低圓角表面。
   ═════════════════════════════════════════════════════════════════ */
:root{
  --paper:#f4f0e7;
  --paper-deep:#eae3d6;
  --paper-soft:#faf7f0;
  --card:#fdfbf6;
  --ink:#242521;
  --ink-soft:#55564f;
  --ink-faint:#7a776d;
  --line:rgba(36,37,33,.14);
  --line-strong:rgba(36,37,33,.34);
  --accent:#913b2f;
  --accent-deep:#6f2c23;
  --accent-soft:rgba(145,59,47,.075);
  --accent-ring:rgba(145,59,47,.27);
  --gold:#8b7148;
  --gold-soft:#c3a46d;
  --gold-deep:#6e5836;
  --jade:#40574f;
  --jade-soft:rgba(64,87,79,.07);
  --ink-band:#252824;
  --silk:#1d211e;
  --radius:6px;
  --radius-sm:4px;
  --radius-btn:3px;
  --container:1240px;
  --gutter:clamp(1.125rem,4vw,2.5rem);
  --space-section:clamp(4.5rem,9vw,8rem);
  --shadow-sm:0 16px 36px -28px rgba(34,31,25,.5);
  --shadow-md:0 28px 60px -34px rgba(34,31,25,.55);
}

body{font-size:clamp(.98rem,.3vw + .9rem,1.0625rem);line-height:1.9;letter-spacing:.012em}
h1,h2,h3{letter-spacing:.025em}
p{max-width:70ch}
.section{padding:var(--space-section) 0}
.section--alt{background:linear-gradient(115deg,rgba(255,255,255,.32),transparent 45%),var(--paper-deep)}

.section-head{max-width:none;margin:0 0 clamp(2.5rem,6vw,4.5rem);text-align:left}
.section-kicker{padding-left:0;letter-spacing:.24em;margin-bottom:.9rem}
.section-kicker::before{display:none}
.section-kicker::after{width:clamp(2.25rem,6vw,4rem);background:linear-gradient(90deg,var(--gold),transparent)}
.section-title{font-size:clamp(1.85rem,4.2vw,3.25rem);line-height:1.3;max-width:12em}
.section-title::after{width:4.5rem;height:1px;margin:1.2rem 0 0;background:linear-gradient(90deg,var(--accent),var(--gold),transparent)}
.section-note{max-width:38em;margin:1.15rem 0 0;font-size:1rem;line-height:1.95}
.section-foot{justify-content:flex-start;margin-top:clamp(2rem,5vw,3.25rem)}

@media (min-width:820px){
  .section-head{display:grid;grid-template-columns:minmax(15rem,.82fr) minmax(22rem,1.18fr);column-gap:clamp(3rem,8vw,8rem);align-items:end}
  .section-kicker{grid-column:1/-1}
  .section-title{grid-column:1;grid-row:2;margin:0}
  .section-note{grid-column:2;grid-row:2;margin:0 0 .35rem;padding-left:clamp(1.25rem,3vw,2.5rem);border-left:1px solid var(--line)}
}

.btn{min-height:48px;padding:.7rem 1.45rem;border-radius:var(--radius-btn);font-size:.88rem;font-weight:600;letter-spacing:.09em;box-shadow:none}
.btn::after{transition:transform .22s var(--ease)}
a.btn:not(.btn--ghost)::after{content:"↗";font-family:var(--font-sans);font-size:.85em}
a.btn[href^="#"]::after{content:"↓"}
.btn:hover{box-shadow:none;transform:translateY(-2px)}
.btn--primary{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.card{border-radius:var(--radius);box-shadow:none}
@media (hover:hover){.card{box-shadow:none}.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-sm)}}

.site-header{background:rgba(244,240,231,.88)}
html.js .site-header{backdrop-filter:blur(18px) saturate(.9)}
html.js .site-header.is-scrolled{background:rgba(244,240,231,.97)}
.brand{gap:.85rem}
.logo-slot{border-radius:2px;background:transparent}
.brand-name{letter-spacing:.12em}
.brand-sub{letter-spacing:.14em}
.menu-toggle{border-radius:2px!important}
.nav-link,.util-link{border-radius:2px}

@media (min-width:1200px){
  :root{--header-h:112px}
  .header-inner{min-height:var(--header-h);padding:.55rem 0}
  .site-nav{margin-left:clamp(1.5rem,4vw,4.5rem)}
  .nav-list{justify-content:flex-end;gap:.1rem clamp(.55rem,1vw,1.15rem)}
  .nav-utils{padding:.15rem 0 .15rem}
}

.hero{min-height:min(780px,calc(100svh - var(--header-h)));display:grid;align-items:center;background:linear-gradient(108deg,#f8f4eb 0%,#f1eadc 58%,#e5ddce 100%)}
.hero::after{letter-spacing:.22em!important;color:rgba(36,37,33,.035)!important}
.hero-inner{gap:clamp(2.5rem,6vw,6rem);padding:clamp(4rem,9vw,7.5rem) 0}
.hero-copy{max-width:39rem}
.hero-eyebrow{letter-spacing:.24em;margin-bottom:1.25rem}
.hero-title{font-size:clamp(2.5rem,7vw,5.1rem);line-height:1.18;letter-spacing:.015em;margin-bottom:1.5rem}
.hero-lead{max-width:30em;font-size:clamp(1.05rem,1.7vw,1.25rem);line-height:2.05;margin-bottom:2rem}
.hero-note{margin-top:1.8rem;max-width:32em}
.hero-media::before{margin:-16px -16px 16px 16px;border-radius:0;border-color:rgba(139,113,72,.5)}
.hero-media::after{content:"";position:absolute;z-index:2;width:4.5rem;height:4.5rem;right:-.7rem;bottom:-.7rem;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);pointer-events:none}
.hero-media .asset-slot{border-radius:0;box-shadow:var(--shadow-md)}
@media (min-width:1024px){.hero-inner{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}.hero-media{transform:translateY(1.5rem)}}

.asset-slot{border-radius:2px;background:linear-gradient(135deg,rgba(255,255,255,.45),rgba(64,87,79,.045))}
.asset-slot::after{border-radius:0}

.news-grid{gap:1px;background:var(--line);border:1px solid var(--line)}
.news-card{border:0;border-radius:0;padding:clamp(1.4rem,3vw,2.25rem);background:var(--card)}
.news-title{font-size:clamp(1.12rem,2vw,1.45rem)}
.news-excerpt{line-height:1.85}
@media (min-width:860px){
  .news-grid{grid-template-columns:minmax(0,1.2fr) minmax(17rem,.8fr);grid-template-rows:repeat(2,minmax(0,1fr))}
  .news-card:first-child{grid-row:1/3;padding:clamp(2.5rem,5vw,4.5rem);justify-content:center}
  .news-card:first-child .news-title{font-size:clamp(1.65rem,3vw,2.35rem);max-width:13em}
  .news-card:first-child .news-excerpt{font-size:1.03rem;max-width:34em}
}

.program-grid{gap:clamp(1rem,3vw,2rem)}
.program-card{position:relative;border:1px solid var(--line);border-top:0;border-radius:0;padding:clamp(1.75rem,4vw,3.25rem);overflow:hidden}
.program-card::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,var(--accent) 0 22%,var(--gold) 22% 35%,var(--line) 35%)}
.program-title{font-size:clamp(1.4rem,3vw,2rem);max-width:18em}
.program-badge{border-radius:1px;background:transparent}

.entry-grid{gap:0;border-block:1px solid var(--line)}
.entry-card{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:clamp(1.5rem,3vw,2.5rem);background:transparent;min-height:13rem}
.entry-card::before{top:auto;bottom:0;height:1px;width:0;transition:width .35s var(--ease)}
.entry-card:hover::before{width:100%}
.entry-title{font-size:clamp(1.15rem,2vw,1.45rem)}
@media (min-width:600px){.entry-card:nth-child(odd){border-right:1px solid var(--line)}}
@media (min-width:960px){.entry-card{border-bottom:0;border-right:1px solid var(--line)!important}.entry-card:last-child{border-right:0!important}}

.stats{gap:0;border:1px solid var(--line);background:var(--card)}
.stat{border:0;border-radius:0;background:transparent;padding:clamp(1.5rem,4vw,3rem) .5rem}
.stat__num{font-size:clamp(1.6rem,5vw,3rem)}
.archive-grid{gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.archive-card{border:0;border-radius:0;border-bottom:1px solid var(--line);padding:clamp(1.4rem,3vw,2rem)}
@media (min-width:860px){.archive-card{border-bottom:0;border-right:1px solid var(--line)}.archive-card:last-child{border-right:0}}

.classroom-grid{gap:clamp(3rem,8vw,7rem)}
.block-title{font-size:clamp(1.2rem,2.4vw,1.65rem);border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1.5rem}
.block-title::before{width:9px;height:9px}
.video-list{gap:1rem}
.video-item{min-width:0}
.video-thumb{overflow:hidden;border-style:solid}
.video-title{font-size:1.05rem;margin-top:.75rem}
.archive-mini{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:1.15rem 0}
.archive-mini:first-child{border-top:1px solid var(--line)}
.archive-mini__type{border-radius:1px}
@media (min-width:720px) and (max-width:959px){.video-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1100px){
  .classroom-grid{grid-template-columns:minmax(0,1.35fr) minmax(18rem,.65fr)}
  .video-list{grid-template-columns:minmax(0,1.35fr) minmax(12rem,.65fr);align-items:start}
  .video-item:first-child{grid-row:1/3}
  .video-item:not(:first-child) .asset-slot__label{display:none}
}

.partner-grid{gap:1px;border:1px solid var(--line);background:var(--line)}
.asset-slot--partner{border:0;border-radius:0;background:var(--card);filter:grayscale(1);transition:filter .25s var(--ease),background-color .25s var(--ease)}
.asset-slot--partner:hover{filter:none;background:var(--paper-soft)}

.section--ink{background:linear-gradient(120deg,rgba(145,59,47,.12),transparent 42%),linear-gradient(300deg,rgba(64,87,79,.14),transparent 48%),var(--ink-band)}
.section--ink .section-head{border-bottom:1px solid rgba(244,240,231,.16);padding-bottom:clamp(2rem,4vw,3rem)}
.section--ink .section-note{border-left-color:rgba(244,240,231,.18)}
.support-grid{gap:1px;background:rgba(244,240,231,.16);border:1px solid rgba(244,240,231,.16)}
.support-card{border:0;border-radius:0;padding:clamp(1.75rem,5vw,3.5rem)}
.subscribe-form input[type=email]{border-radius:2px;min-height:48px}

.site-footer{border-top:3px solid var(--accent)}
.footer-inner{padding:clamp(3.5rem,7vw,6rem) 0 2.25rem}
.footer-name{letter-spacing:.1em}
.footer-heading::after{height:1px;width:2.5rem}
.to-top{border-radius:2px}

html.menu-open{overflow:hidden}
@media (max-width:599px){
  .brand-sub{display:none}
  .hero-actions .btn{width:100%}
  .stats{grid-template-columns:1fr}
  .stat + .stat::before{left:12%;right:12%;top:0;bottom:auto;width:auto;height:1px}
  .footer-bottom{justify-items:start;text-align:left}
}
@media (max-width:1199.98px){
  html.js .site-nav{background:rgba(244,240,231,.985);padding:1rem var(--gutter) 1.5rem}
  html.js .site-nav.is-open{animation:nav-open .22s var(--ease) both}
  @keyframes nav-open{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
}
@media (forced-colors:active){
  .btn,.card,.asset-slot,.site-header{forced-color-adjust:auto}
  a.nav-link::after,.section-title::after{background:CanvasText}
}
/* ═════════════════════════════════════════════════════════════════
   Compact Mobile Menu Toggle
   漢堡選單按鈕修正：
   1. 隱藏視覺文字，只保留螢幕閱讀器可讀的「選單／關閉選單」
   2. 明確指定初始文字色、線條色與背景色
   3. 將按鈕固定為精簡方形，避免佔用過多橫向空間
   4. 保留 hover、focus-visible、expanded 與 reduced-motion 狀態
   ═════════════════════════════════════════════════════════════════ */

/* 預設仍然隱藏，只有 JS 啟用且低於桌面斷點時顯示。 */
.menu-toggle{
  display:none;
}

/* 將可見文字隱藏，但保留給螢幕閱讀器讀取。
   main.js 仍可正常更新「選單／關閉選單」文字。 */
.menu-toggle__label{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

/* 漢堡圖示容器 */
.menu-icon{
  position:relative;
  display:block;
  width:21px;
  height:16px;
  flex:0 0 21px;
  color:inherit;
  pointer-events:none;
}

/* 三條線：明確使用 currentColor，避免被父主題反白樣式吃掉。 */
.menu-icon > span{
  position:absolute;
  left:0;
  display:block;
  width:100%;
  height:2px;
  margin:0;
  padding:0;
  background-color:currentColor;
  border:0;
  border-radius:1px;
  opacity:1;
  transform-origin:center;
  transition:
    top .22s var(--ease),
    transform .22s var(--ease),
    opacity .16s var(--ease);
}

.menu-icon > span:nth-child(1){
  top:0;
}

.menu-icon > span:nth-child(2){
  top:7px;
}

.menu-icon > span:nth-child(3){
  top:14px;
}

/* 展開時由漢堡圖示轉為關閉符號。 */
.menu-toggle[aria-expanded="true"] .menu-icon > span:nth-child(1){
  top:7px;
  transform:rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon > span:nth-child(2){
  opacity:0;
  transform:scaleX(.4);
}

.menu-toggle[aria-expanded="true"] .menu-icon > span:nth-child(3){
  top:7px;
  transform:rotate(-45deg);
}

/* PC 視窗摺疊、平板及手機狀態 */
@media (max-width:1199.98px){

  /* 防止品牌名稱把漢堡按鈕擠到下一列。 */
  .header-inner{
    flex-wrap:nowrap;
    gap:.75rem;
  }

  .brand{
    flex:1 1 auto;
    min-width:0;
  }

  .brand-text{
    min-width:0;
  }

  /* 精簡為固定 42 × 42px 的圖示按鈕。
     取消父佈景可能加入的白色文字、實色背景及額外 padding。 */
  html.js .site-header .menu-toggle{
    -webkit-appearance:none;
    appearance:none;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;
    min-width:42px;
    min-height:42px;
    flex:0 0 42px;

    margin:0;
    padding:0;

    font:inherit;
    line-height:1;

    color:var(--ink);
    background-color:rgba(255,253,248,.72);
    background-image:none;

    border:1px solid var(--line-strong);
    border-radius:3px;
    box-shadow:none;

    cursor:pointer;
    isolation:isolate;

    transition:
      color .2s var(--ease),
      background-color .2s var(--ease),
      border-color .2s var(--ease),
      box-shadow .2s var(--ease),
      transform .2s var(--ease);
  }

  /* 修正瀏覽器或父佈景主題套用反白文字的問題。 */
  html.js .site-header .menu-toggle,
  html.js .site-header .menu-toggle:link,
  html.js .site-header .menu-toggle:visited{
    color:var(--ink);
  }

  /* 滑鼠裝置的 Hover 狀態。 */
  html.js .site-header .menu-toggle:hover{
    color:var(--accent-deep);
    background-color:var(--accent-soft);
    border-color:var(--accent);
    box-shadow:none;
    transform:translateY(-1px);
  }

  /* 鍵盤焦點狀態。 */
  html.js .site-header .menu-toggle:focus{
    color:var(--ink);
    background-color:var(--paper-soft);
    border-color:var(--accent);
    outline:none;
  }

  html.js .site-header .menu-toggle:focus-visible{
    color:var(--ink);
    background-color:var(--paper-soft);
    border-color:var(--accent);
    outline:2px solid var(--accent);
    outline-offset:3px;
    box-shadow:none;
  }

  /* 選單展開狀態：使用深墨底色，但線條保持清楚可見。 */
  html.js .site-header .menu-toggle[aria-expanded="true"]{
    color:var(--paper-soft);
    background-color:var(--ink);
    border-color:var(--ink);
    box-shadow:none;
    transform:none;
  }

  html.js .site-header .menu-toggle[aria-expanded="true"]:hover{
    color:#fff;
    background-color:var(--accent-deep);
    border-color:var(--accent-deep);
  }

  html.js .site-header .menu-toggle[aria-expanded="true"]:focus-visible{
    color:var(--paper-soft);
    background-color:var(--ink);
    border-color:var(--ink);
    outline-color:var(--accent);
  }
}

/* 小尺寸手機縮短品牌區域，確保按鈕不被擠出畫面。 */
@media (max-width:479.98px){

  .header-inner{
    gap:.625rem;
    padding-block:.5rem;
  }

  .brand{
    gap:.6rem;
  }

  .brand-sub{
    display:none;
  }

  .brand-name{
    display:block;
    overflow:hidden;
    font-size:clamp(.86rem, 3.8vw, 1rem);
    letter-spacing:.06em;
    line-height:1.45;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .logo-slot,
  .brand-logo-img{
    width:40px;
    height:40px;
  }

  html.js .site-header .menu-toggle{
    width:40px;
    height:40px;
    min-width:40px;
    min-height:40px;
    flex-basis:40px;
  }
}

/* 1200px 以上恢復常駐桌面導覽，不顯示漢堡按鈕。 */
@media (min-width:1200px){

  html.js .site-header .menu-toggle,
  .menu-toggle{
    display:none;
  }
}

/* 使用者要求減少動態時，不播放圖示與按鈕轉場。 */
@media (prefers-reduced-motion:reduce){

  .menu-toggle,
  .menu-icon > span{
    transition:none;
  }
}