/* ==========================================================================
   ISGE | International Guzheng Education Association
   Global Stylesheet — Calm International Nonprofit + Restrained Palace Palette
   --------------------------------------------------------------------------
   Compliance note: This is a Non-Member Based Organization.
   The words "membership / member / 会员" must never appear in any markup.
   ========================================================================== */

/* ---------- 0. Self-hosted fonts ----------------------------------------
   这两套拉丁字体原来是向 Google 要的：

     <link href="https://fonts.googleapis.com/css2?family=Instrument+Sans…">

   2026-10-18 改成自己托管，原因是域名而不是体积。

   那个 <link> 是 rel="stylesheet"，属于阻塞渲染资源 —— 浏览器必须把它下完
   才肯画首屏。而 fonts.googleapis.com / fonts.gstatic.com 在中国大陆连不通，
   浏览器会一直耗到连接超时才开始渲染，表现就是「打开时白屏很久，然后一下子
   全出来」。上一轮把这份字体 CSS 从 570KB 减到 5.5KB（去掉两个中文字体）只
   解决了体积，域名连不上这件事一点没变。

   现在字体文件放在 assets/fonts/，和页面同一个域名，走 Netlify 自己的 CDN。
   外面没有任何一个必须等 Google 的点。

   两份字体都是可变字体（一个文件覆盖全部字重），各切 latin 与 latin-ext
   两个子集。unicode-range 让浏览器只下真正用到的那一份：站内目前没有拉丁
   扩展字符，所以实际只下 latin（两件共约 58KB）；latin-ext 留着兜底，将来
   后台录入带重音的人名（José、Müller）时才会被取用，不占现在的带宽。

   font-display: swap 保留 —— 万一字体还是慢，文字立刻用系统字体显示，不会
   干等着留白。
   ------------------------------------------------------------------------ */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;          /* 可变字体：一个文件覆盖 400 / 500 / 600 */
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
                 U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 300 700;          /* 大标题用，站内实际取 300 / 400 */
  font-display: swap;
  src: url("../fonts/josefin-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/josefin-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
                 U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Design Tokens (Palace Traditional Colors, locked) ---------- */
:root {
  /* Base surfaces */
  --xuan-white:      #F7F4EE;  /* 宣白 — page base, 60% */
  --ink-teal:        #1F3A3D;  /* 墨青黛 — primary / nav / headings / buttons, 20% */
  --qin-wood:        #B58A54;  /* 故宫赭石琴木 — accent / borders / key modules, 10% */
  --apricot:         #E8C46A;  /* 故宫杏黄 — highlight / badges, minimal */
  --rouge:           #B54A4A;  /* 故宫胭脂 — small emphasis only, tiny area */
  --moss:            #7E9787;  /* 苔绿 — secondary tags / dividers */

  /* Text */
  --text-h1:         #1A1A1A;
  --text-body:       #333333;
  --text-sub:        #666666;
  --text-foot:       #999999;

  /* Derived surfaces */
  --surface-card:    #FFFFFF;
  --surface-alt:     #F1ECE2;
  --hairline:        rgba(31, 58, 61, 0.12);
  --hairline-strong: rgba(31, 58, 61, 0.22);

  /* Type */
  /* Buttons — language toggle: light left / deep right; CTA: deep sea blue */
  --btn-lang-light:   #EFE9E1;  /* light side — the other language (quiet） */
  --btn-lang-light-h: #E6DED3;
  --btn-lang-deep:    #8E3B45;  /* 酒红 — current language, white text */
  --btn-lang-deep-h:  #7A323B;
  --btn-donate-bg:    #5B8CA8;  /* 大海亮蓝 — primary CTA (Donate) */
  --btn-donate-hov:   #4E7D97;

  /* Body / UI type — Latin webfont + the reader's own Chinese system font.
     -------------------------------------------------------------------
     2026-10-16 改：中文不再走网络字体。原先 --font-cn 第一位是
     "Noto Sans SC"、"Noto Serif SC" 挂第二位，两个都是从 Google Fonts
     拉的。中文字库太大，Google 只能切成约 100 个分片、每片配一段
     unicode-range，于是那一份字体 CSS 从 5.5KB 涨到 570KB —— 而它是
     <link rel="stylesheet">，阻塞渲染，浏览器必须整份下完才画首屏。
     实测同一台机器上首页 load 从 17.4s 涨到 62.2s（约 3 倍）。更糟的是
     fonts.googleapis.com 在境内访问不稳，时快时慢 —— 这正是「网站突然
     变慢了」的体感来源。

     而这一切几乎没有换来任何东西：中文设备系统里本来就自带中文字体。
     按平台顺序排下来，反而是各平台自己那套渲染得更清楚 ——
     苹方在 macOS / iOS、雅黑在 Windows、Noto Sans CJK 在安卓 / Linux，
     HarmonyOS Sans 在华为设备。拉丁部分仍用网络字体，它只有 5.5KB。 */
  --font-en: "Instrument Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC",
             "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
             "WenQuanYi Micro Hei", sans-serif;
  --font-base: var(--font-en), var(--font-cn);

  /* Display type — large headings only. NEVER use for nav / buttons.
     宋体一侧同样交给系统：macOS / iOS 的 Songti SC、Windows 的 SimSun、
     以及思源宋体（若本机装了）。 */
  --font-en-display: "Josefin Sans", "Instrument Sans", sans-serif;
  --font-cn-display: "Songti SC", "STSong", "SimSun", "Source Han Serif SC",
                     "Noto Serif CJK SC", serif;
  --font-serif: "Songti SC", "STSong", "SimSun", Georgia, serif;

  /* Rhythm
     --wrap is the content width. It was a hard 1320px, which is comfortable
     on a 1440 laptop but on a 2560-wide display left 620px of dead space on
     each side — the page looked like it had shrunk rather than like the
     screen had grown. Let it track the viewport instead, and cap it so lines
     of body text stay short enough to read on very wide monitors (a 1920
     screen gets ~1766px, a 2560 one stops at 1840px). Screens up to ~1434px
     keep the original 1320px, so nothing changes on a normal laptop. */
  --wrap: clamp(1320px, 92vw, 1840px);
  --gap: 32px;
  --radius: 4px;
  --radius-lg: 6px;

  /* Motion — extremely light, per spec */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 360ms;

  --shadow-soft: 0 1px 2px rgba(26, 26, 26, 0.04),
                 0 8px 24px rgba(31, 58, 61, 0.06);
  --shadow-lift: 0 2px 4px rgba(26, 26, 26, 0.05),
                 0 16px 40px rgba(31, 58, 61, 0.10);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor offset is handled per-target by scroll-margin-top below — the
     two must never both be set, or the offsets stack (92+96=188px of dead
     space above the heading). */
}
/* The homepage hero is full-bleed, so the native scrollbar would sit on top of
   the artwork — hide it there only.
   Interior pages keep a normal scrollbar: they are long, text-heavy documents
   where the bar is the main cue for "there is more below" and a drag target
   for readers. Use a slim, quiet bar so it does not fight the layout.
   build.py puts data-hero="on" on the homepage <body>, and the scrollbar
   belongs to <html>, so a :has() on the root is what actually reaches it. */
html:has(body[data-hero="on"]) { scrollbar-width: none; -ms-overflow-style: none; }
html:has(body[data-hero="on"])::-webkit-scrollbar { width: 0; height: 0; display: none; }

html { scrollbar-width: thin; scrollbar-color: rgba(31, 58, 61, 0.28) transparent; }
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: rgba(31, 58, 61, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(31, 58, 61, 0.42); background-clip: content-box; }
body {
  margin: 0;
  background: var(--xuan-white);
  color: var(--text-body);
  font-family: var(--font-en), var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Was `overflow-x: hidden`, which quietly turned <body> into a scroll
     container — and a position:sticky descendant then measures against that
     box instead of the viewport, so it never sticks. `clip` crops the same
     overflow without creating a scroll container, which is what lets the
     pinned photo pair below work. (Outside water.css-era browsers that lack
     `clip`, it falls back to visible — at worst a stray scrollbar.) */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--text-h1); margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--qin-wood); color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

/* Interior pages stack several same-weight sections back to back. At 96px+96px
   the join reads as a hole rather than a breath (the complaint was a "finger
   wide" band of empty space under 协会缘起). Tighten the vertical rhythm on
   anchored interior sections only; the homepage keeps its airier spacing. */
main.has-page-hero > .section { padding: 76px 0; }

.section--alt { background: var(--surface-alt); }
.section--ink { background: var(--ink-teal); color: rgba(247,244,238,0.92); }
.section--ink h2, .section--ink h3, .section--ink h1 { color: #F7F4EE; }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.rule--strong { background: var(--hairline-strong); }

/* ---------- 4. Typography scale ---------- */
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--qin-wood);
  margin-bottom: 18px;
  display: block;
}
.section-title {
  font-family: var(--font-en-display), var(--font-cn-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.section-title .cn { font-family: var(--font-cn-display); font-weight: 300; }
.section-lead {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 62ch;
  margin-bottom: 0;
}
.section-head { margin-bottom: 52px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* 【2026-10-16 删除】这里原是站内「中英双语并排显示」那套布局的残留：
   .bi-en / .bi-cn 两个配对类，以及一条把英文版里的中文行压到 32% 透明度的
   body[data-lang="en"] .cn 规则。中英分离成两套独立页面以后（本站现在是
   / 与 /en/ 各一套 HTML），全站 HTML 里 .bi-en / .bi-cn / .cn / .p-zh
   的出现次数实测都是 0 —— 四个选择器一条都没命中，纯死代码。连带把 opacity
   那条删掉，因为一个从未命中的规则留在里面，只会让人下次改动时误以为
   「英文版里还有会变淡的中文行」。 */

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--ink-teal); color: #F7F4EE; }
.btn--primary:hover { background: #16302F; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink-teal); border-color: var(--hairline-strong); }
.btn--ghost:hover { border-color: var(--ink-teal); background: rgba(31,58,61,0.04); }
.btn--accent { background: var(--qin-wood); color: #fff; }
.btn--accent:hover { background: #a1794a; transform: translateY(-1px); }
.btn--onink { background: var(--qin-wood); color: #fff; }
.btn--onink:hover { background: #c39a63; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 6. Header / Navigation ----------
   On the homepage the header is a transparent overlay so the full-bleed
   hero runs edge-to-edge behind it (no seam, no gap). Interior pages keep
   the translucent warm-white bar with a hairline. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Same ink-teal as the footer, so the page is framed top and bottom in one
     colour instead of starting light and ending dark. The bar has to carry
     light type now, which is also what it already does while it floats over
     the homepage banner — the two states agree instead of flipping. */
  background: var(--ink-teal);
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
}

/* Anchor targets: offset the scroll so the sticky header never covers the
   heading the nav just jumped to. Keep this EXACTLY equal to the header
   height (76px desktop / 64px below 920px) and never combine it with
   scroll-padding-top — the two would add up into a large empty gap.
   Covers section targets plus the card-level jumps the nav links to
   (e.g. 捐赠 → donate.html#donate-cta, whose target is a .card and would
   otherwise stop at y=0 and lose its top 76px under the header).
   Kept off a bare [id]: that would also hit tab buttons, panel wrappers
   and inline SVG gradient defs. */
section[id], .section[id], .event-cat-block[id], .card[id] { scroll-margin-top: 76px; }
body[data-hero="on"] .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
/* Over the dark artwork the wordmark must read light. */
body[data-hero="on"] .brand__name { color: #F7F4EE; transition: color var(--dur) var(--ease); }
body[data-hero="on"] .brand__sub--full { color: rgba(247,244,238,.88); transition: color var(--dur) var(--ease); }
body[data-hero="on"] .nav__link { color: rgba(247,244,238,.96); }
body[data-hero="on"] .nav__link:hover { color: #F7F4EE; background: rgba(247,244,238,.12); }
body[data-hero="on"] .nav__link.is-active { color: #F7F4EE; }
body[data-hero="on"] .nav__link .cn { color: rgba(247,244,238,.78); }
body[data-hero="on"] .lang {
  background: rgba(247,244,238,.14);
  border-color: rgba(247,244,238,.34);
  backdrop-filter: blur(6px);
}
body[data-hero="on"] .lang a { background: transparent; color: rgba(247,244,238,1); }
body[data-hero="on"] .lang a:hover { background: rgba(247,244,238,.18); color: #fff; }
body[data-hero="on"] .lang .is-on {
  background: var(--btn-lang-deep); color: #FFFFFF;
}
body[data-hero="on"] .nav__caret svg { stroke: rgba(247,244,238,.90); }
body[data-hero="on"] .nav__toggle span { background: #F7F4EE; }
body[data-hero="on"] .brand__mark svg,
body[data-hero="on"] .brand__mark--img img { filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }

/* Once scrolled past the banner the bar becomes solid. It used to turn light
   here — the only place on the site with a light bar sitting on a light page —
   so the whole header flipped hue mid-scroll. It now stays the same ink-teal
   as the resting state and only gains a backdrop and a hairline; the one
   remaining difference is the language chip, which is translucent while it
   floats over the photo and opaque once there is a solid bar behind it. */
body[data-hero="on"].is-scrolled .site-header {
  background: var(--ink-teal);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: rgba(247, 244, 238, 0.12);
  box-shadow: 0 6px 24px rgba(15, 30, 32, 0.18);
}
body[data-hero="on"].is-scrolled .lang {
  background: var(--btn-lang-light); border-color: rgba(247,244,238,0.30);
  backdrop-filter: none;
}
/* 滚过横幅后，语言键的底板从「压在照片上的半透明」变成实色浅底，
   而上面那条 hero 规则把字刷成了米白 —— 浅底配白字，等于隐形。
   这里把字色换回墨青，跟内页那颗键完全一样。 */
body[data-hero="on"].is-scrolled .lang a { color: var(--ink-teal); }
body[data-hero="on"].is-scrolled .lang a:hover {
  background: var(--btn-lang-light-h); color: var(--ink-teal);
}
body[data-hero="on"].is-scrolled .brand__mark--img img { filter: none; }
body[data-hero="on"].is-scrolled .nav__caret svg { stroke: currentColor; }
.nav {
  display: flex; align-items: center; gap: 40px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark { width: 50px; height: auto; flex: 0 0 auto; }
.brand__mark svg { width: 100%; height: auto; display: block; }

/* ---------- 机构标志（透明底 PNG，通用骨架）----------
   标志从 2026-10 起一直是透明底 PNG（自带 alpha 通道），所以这几条是骨架，
   不管换到第几版图都成立：

   · 不做圆形取景框。早先那版原图是白底，才用圆把白方块收起来、再用混合
     模式糊掉白边；现在底本身就是透明的，标志直接浮在墨青黛的导航栏上，
     怎么裁都多余（客户原话「不是把它画成圆」）。

   · 不做任何背景色、不做 mix-blend-mode。画布之外一律透明，露出来的就是
     导航栏自己的墨青黛 —— 这才是「背景保持一致」的做法。

   · 高度定 60px、宽度自动，不再强行塞进一个方块里，让它按自己的形状排。
     当前这版：横版 607×148（比 4.104），单枚徽标 320×243（比 1.3175）。
     60px 是 2026-10-14 从 50px 提上来的：白色笔画加粗之后，横版排到约
     246px 宽 —— 实测 1440 视口导航栏还剩 363px 余量，吃得下。

   · img 上写了图的固有尺寸，浏览器在图片到位前就能算出位置，不会跳版；
     实际显示仍由下面的 height 决定。

   · display 用 inline-block。写成 block 它是块级盒，宽度自动撑满父容器：
     导航栏里父元素是 flex 看不出来，页脚里就会撑成整列宽（实测撑到
     360px，图本身才 70px，左边空一大片）。

   · 首页悬浮态（透明栏压在大图上）不加白底：透明 PNG 配 drop-shadow 就够
     读；加回白底反而是把已经解决的问题又请回来。 */
.brand__mark--img {
  display: inline-block;
  height: 68px;
  width: auto;
  vertical-align: middle;
}
.brand__mark--img img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
/* <picture> wraps the logo <img> only to offer a WebP source; it must not
   become a layout box of its own. <picture> is inline by default, and an
   inline box has no height — so the img's `height: 100%` above would resolve
   against nothing and fall back to the image's intrinsic height (320px),
   blowing the navbar apart. inline-block makes it shrink-wrap the img and
   passes the height through, which is exactly what the span did before. */
.brand__mark--img picture { display: inline-block; height: 100%; }

/* ---------- 页眉横版标志（圆徽标 + 右侧英文全称）----------
   2026-10-14 第三版：原图本身是一条横版，左边圆徽标（x252–1263），右边一整
   块英文全称（x1312–3396，y411–878）。既然图里已经写着全称，旁边那行活字
   就撤掉了 —— 留着就是把同一串英文印两遍。

   · 宽高比 4.104（607×148，写在 img 的 width/height 上）。高度定 60px、宽度
     自己跟：排出来约 246px 宽。原来「徽标 65px + 11px 空隙 + 文字约 85px」
     合计 161px，现在 246px，多出来的 85px 在 1320 容器里吃得下（≤1280 那档
     照旧把高度降到 54px、宽约 221px，跟着导航一起收）。

   · 窄屏（≤560px）和页脚只用那枚圆徽标，右侧英文去掉。不是另画一张，而是
     同一次抠图里从徽标与文字之间那段 98px 空白的中点（x=1263）一刀切开，
     所以两处的徽标是同一块像素，形状、颜色完全对得上。窄屏 46px 高 / 61px
     宽，页脚 64px 高 / 84px 宽。

   · 颜色全部平涂，只有三个纯色，没有一处渐变：白 #FFFFFF（字与线，12.1:1）、
     青蓝 #68CCD6（中间那条蓝带，6.5:1）、金 #E3CF8E（圆环，7.9:1）。客户要
     「蓝带还是蓝的、字是白的」，所以蓝带压成平涂的青蓝、字压成纯白。成品
     实测：内部像素 100% 落在这三个色上，8 级量化只剩 30 种颜色（都是描边
     抗锯齿的过渡）。

   · 上一版还多一个「深青 #033339」，是把原图的暗部单独成族，结果那些暗部
     以碎斑点的形式散在白区、蓝带、金弧里 —— 客户看到的「蓝带上的黑点」「白头
     不通透」「下面的弧度还有白的」全是这么来的。实测那些暗部一共 1570 块、
     中位只有 3px，最大也不过 2066px，没有一块是设计元素。这一版改成**按形状
     定色**而不是按像素定色：暗部（明度 < 0.42）不算颜色、由周围主色接管，
     同色连通块小于 800px 的一律并入邻色 —— 金弧里的白斑最大才 651px，而文字
     笔画中位 5402px、最小也远大于 800px，所以只杀噪点不伤笔画。改完徽标的
     连通块从 540/4492/749 降到 1/4/3。

   · 顺带补了 alpha：那些暗部本身就是半透明的（17.9% 的像素 alpha < 0.8），
     并进白区后会把「白」变成「半透明的白」、在深底上照样发灰。用中值滤波只提
     不降地填坑，再按块把内部补到该块的实心水平。补完白色区 alpha<0.8 的像素
     从 4.73% 降到 2.22%，且剩下的全部贴在离边缘 1px 的位置（中位 1.0px、
     最大 1px），深埋内部的低 alpha 为 0 —— 色块内部彻底实心。

   · 无障碍：品牌链接上本来就有 aria-label 写着机构全称，文字撤掉不影响读屏。
     页脚那两行全称文字也照旧印着，站上并不是只有图片里才有这串字。 */
/* 基础高度 64px：横版宽高比 4.58，64px 排出来约 293px 宽。这一档管的是
   >1280 的宽屏；≤1280 / ≤920 两档在下面的 media query 里再往下收。
   （2026-10-16 第九版：见 tools/make_logo_v9_text.py。徽标原样保留，右侧
   两行机构名重排了一遍 —— 原来的字是按 504×148 的画布画的，27px 的字落到
   64px 的显示高度上只剩 11.7px，加上行距只有 1.7px，两行糊在一起。这一版
   顺手把画布从 148 压到 120：浏览器是按 height 显示的，画布压扁不改变徽标
   的屏幕尺寸，却让同样的字号占比更大 —— 34px 的字落到屏幕上就有 18.1px。
   宽度从 218px 涨到 293px，实测 1440 视口下标志右侧到菜单仍有 153px 余量。） */
.brand__mark--lock { width: auto; height: 64px; }
/* 两张图同处一个 span，宽的这张默认收起来 —— 只有窄屏那条 media query 会
   把它放出来、同时收掉横版。 */
.brand__mark--lock .brand__img--mark { display: none; }
/* The mark and the two lines are one block; the English strapline is pulled
   back under the logo mark (negative margin cancels the icon+gap width) so
   the whole wordmark reads as a single left-aligned unit. */
.brand__text {
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1.15; min-width: 0;
}
.brand__name {
  font-family: var(--font-en); font-weight: 500; font-size: 22px;
  letter-spacing: 0.08em; color: #F7F4EE; line-height: 1;
}
.brand__sub {
  font-family: var(--font-en); font-weight: 400; font-size: 9px;
  color: rgba(247, 244, 238, 0.66); letter-spacing: 0.035em; margin-top: 5px;
  white-space: nowrap;
}
/* Full English org name sits under the wordmark in both languages, so the
   nav row can reclaim the width the old stacked title used to eat.

   2026-10-10：导航左上角的 "ISFGE" 字母已经去掉了 —— 新标志里本来就写着
   ISFGE，旁边再排一遍是重复（客户原话「这里面已经有过了」）。于是这一行
   英文全称成了标志旁边唯一的文字，那条把它拽到图标下方的负边距也就跟着
   取消（那是为「字标在第二行」准备的构图），改成正常排在标志右侧。
   字号从 9px 提到 10.5px：原来是给第二行的小注留的尺寸，现在它是唯一的
   一行，9px 在 76px 高的导航里显得太轻，和 50px 的标志也压不住。 */
.brand__sub--full {
  font-size: 10.5px; letter-spacing: 0.045em; line-height: 1.35;
  margin-top: 0;
  margin-left: 0;
  max-width: 15ch; white-space: normal;
}
.brand__sub--cn { font-family: var(--font-cn); font-weight: 500; }
.brand__sub--en {
  font-family: var(--font-en); font-weight: 500; font-size: 9.5px;
  letter-spacing: 0.055em; white-space: nowrap;
}

.nav__links {
  display: flex; align-items: center; gap: 6px;
}
.nav__item { padding: 0 2px; }
.nav__link {
  font-family: var(--font-en), var(--font-cn);
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  /* 2026-10-14 从 0.88 提到 0.96：客户要求「整体要亮，一眼看到你是谁」。
     对墨青黛底的对比度 11.05 → 12.02。不是纯白，是给 hover 的 #FFFFFF 留出
     一层台阶 —— 提到 1 就没有 hover 反馈了。 */
  color: rgba(247, 244, 238, 0.96);
  padding: 9px 12px; border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative; white-space: nowrap; text-align: center;
}
.nav__link:hover { color: #FFFFFF; background: rgba(247,244,238,0.12); }
.nav__link.is-active { color: #FFFFFF; font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--qin-wood); border-radius: 1px;
}
.nav__link .en { display: block; font-family: var(--font-en); font-size: 14px; }
/* 副行中文 0.62 → 0.78：这一行原本几乎化进底色里（对比度才 5.6），
   在深色导航条上是最先「看不见」的一档。 */
.nav__link .cn { display: block; font-family: var(--font-cn); font-size: 11.5px; color: rgba(247,244,238,0.78); }

.nav__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* Desktop only: spread the three blocks across the whole bar
   (logo | menu | actions). The container grew with the screen (see --wrap)
   but its blocks did not, so the bar sat left-heavy — 722px of dead space on
   the right at 1920, 784px at 2560 — and the language switch ended up
   mid-bar where nobody looks for it. With the blocks spread, the menu sits
   near the centre and the actions against the right edge.
   Scoped above 921px on purpose: below that the menu becomes a fixed
   drop-down panel and leaves the flow, and this breakpoint already pins
   .nav__actions right with its own margin-left:auto. */
@media (min-width: 921px) {
  .nav { justify-content: space-between; }
}

/* Language toggle */
/* On the dark bar this is the same light chip that used to appear only once
   the homepage was scrolled, so those two states no longer differ. */
.lang {
  display: inline-flex; align-items: stretch; border: 1px solid rgba(247,244,238,0.30);
  border-radius: 999px; overflow: hidden; background: var(--btn-lang-light);
}
.lang a, .lang span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 7px 13px; font-family: var(--font-en);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em;
  text-decoration: none; transition: background var(--dur) var(--ease);
}
/* the "other" language — clickable, quiet light background */
.lang a { background: var(--btn-lang-light); color: var(--ink-teal); }
.lang a:hover { background: var(--btn-lang-light-h); }
/* current language — deep accent, white text (active state) */
.lang .is-on { background: var(--btn-lang-deep); color: #FFFFFF; font-weight: 600; }

/* Donate CTA in nav */
.nav__donate {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 88px;                 /* same width as the En/中 toggle */
  box-sizing: border-box;
  background: var(--btn-donate-bg); color: #fff; font-weight: 600;
  font-family: var(--font-en), var(--font-cn);
  font-size: 13px; letter-spacing: 0.04em;
  padding: 7px 18px; border-radius: 6px;   /* rectangle, small radius */
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav__donate:hover { background: var(--btn-donate-hov); }
/* Over the dark banner the blue needs a ring + shadow to hold its edge. */
body[data-hero="on"] .nav__donate {
  box-shadow: 0 2px 14px rgba(0,0,0,.30), 0 0 0 1px rgba(247,244,238,.28);
}
body[data-hero="on"].is-scrolled .nav__donate { box-shadow: none; }

/* Mobile nav */
.nav__toggle {
  display: none; background: transparent; border: 1px solid rgba(247,244,238,0.34);
  border-radius: var(--radius); width: 42px; height: 40px; align-items: center;
  justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: #F7F4EE; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--xuan-white);
  padding: 108px 0 96px;
  border-bottom: 1px solid var(--hairline);
}
.hero__line-art {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
}
.hero__line-art svg { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); height: 118%; width: auto; }
.hero__inner { position: relative; max-width: 780px; }
.hero h1 {
  font-family: var(--font-en-display), var(--font-cn-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: 0.015em; line-height: 1.2; margin-bottom: 22px;
}
.hero h1 .cn { font-family: var(--font-cn-display); font-weight: 300; }
.hero__slogan-cn {
  font-family: var(--font-en-display), var(--font-cn-display);
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-teal); font-weight: 300; letter-spacing: 0.03em;
  margin-bottom: 30px;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Compliance chip row */
.legal-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-teal);
  background: rgba(31,58,61,0.05); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 6px 14px; letter-spacing: 0.02em;
}
.legal-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--qin-wood); }

/* ---------- 8. Cards & grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--hairline-strong); }
.card__num {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--qin-wood); margin-bottom: 16px; display: block;
}
.card__icon { display: block; width: 44px; height: 44px; margin-bottom: 20px; color: var(--ink-teal); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card h3 .cn { font-family: var(--font-cn); }
.card p { font-size: 14.5px; color: var(--text-sub); margin-bottom: 0; }

/* Accent-bordered feature card */
.card--accent { border-top: 3px solid var(--qin-wood); }

/* Person / advisor card */
.person {
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.person:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.person__photo {
  aspect-ratio: 4 / 3; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--moss); border-bottom: 1px solid var(--hairline);
}
.person__photo svg { width: 62px; height: 62px; opacity: 0.5; }
.person__body { padding: 22px 22px 26px; }
.person__name { font-size: 16.5px; font-weight: 600; color: var(--text-h1); }
.person__role { font-size: 12.5px; color: var(--qin-wood); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 4px 0 10px; }
.person__desc { font-size: 13.5px; color: var(--text-sub); margin: 0; }

/* ---------- 9. Lists / definition blocks ---------- */
.checklist { display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: var(--text-body);
}
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px;
  border-radius: 50%; background: rgba(181,138,84,0.16);
  box-shadow: inset 0 0 0 1.5px var(--qin-wood);
  background-image: linear-gradient(var(--qin-wood), var(--qin-wood));
  background-size: 8px 1.5px; background-position: center; background-repeat: no-repeat;
}

.deflist { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.deflist__row {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--hairline);
}
.deflist__k { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-teal); text-transform: uppercase; }
.deflist__v { font-size: 15px; color: var(--text-body); }

/* ---------- 10. Tags ---------- */
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--hairline-strong); color: var(--text-sub);
}
.tag--moss { color: var(--moss); border-color: rgba(126,151,135,0.5); background: rgba(126,151,135,0.08); }
.tag--wood { color: var(--qin-wood); border-color: rgba(181,138,84,0.45); background: rgba(181,138,84,0.08); }
.tag--apricot { color: #8a6a1e; border-color: rgba(232,196,106,0.6); background: rgba(232,196,106,0.16); }
.tag--rouge { color: var(--rouge); border-color: rgba(181,74,74,0.4); background: rgba(181,74,74,0.07); }

/* ---------- 11. Notice / callout ---------- */
.notice {
  border-left: 3px solid var(--qin-wood);
  background: rgba(181,138,84,0.06);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px; color: var(--text-body);
}
.notice--rouge { border-left-color: var(--rouge); background: rgba(181,74,74,0.05); }
.notice strong { color: var(--text-h1); }

/* ---------- 12. Page hero (interior pages) ---------- */
.page-hero {
  padding: 14px 0 34px; border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(181,138,84,0.05), transparent);
}
.breadcrumb { font-size: 12.5px; color: var(--text-foot); margin-bottom: 12px; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--ink-teal); }
.page-hero h1 {
  font-family: var(--font-en-display), var(--font-cn-display);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: 0.015em; margin-bottom: 16px;
}
.page-hero h1 .cn { font-family: var(--font-cn-display); }

/* ---------- 12b. Page hero — banner variant ----------
   Interior pages open on a full-bleed photograph with the title reversed out
   of it. This is the framing the reference organisations use on every section
   landing page: a large image, the title in white over it, nothing else.
   The photograph comes in through --hero-img so the markup stays a plain
   class swap; the gradient exists only to hold contrast for the white type. */
.page-hero--banner {
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 44px;
  border-bottom: 0;
  background: var(--ink-teal);
  isolation: isolate;
  overflow: hidden;
}
.page-hero--banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img, none);
  /* --hero-pos lets one banner override the focal point: a photo whose
     headline sits near its top (e.g. the master-workshop shot) needs to be
     anchored higher than the default so cover-cropping does not eat it. */
  background-size: cover;
  background-position: var(--hero-pos, 50% 42%);
}
/* Scrim: darker at the bottom where the title sits, lighter at the top so the
   photograph still reads near the header bar. */
.page-hero--banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(15,30,32,0.30) 0%,
    rgba(15,30,32,0.48) 55%,
    rgba(15,30,32,0.74) 100%);
}
.page-hero--banner .breadcrumb,
.page-hero--banner .breadcrumb a { color: rgba(247,244,238,0.72); }
.page-hero--banner .breadcrumb a:hover { color: #FFFFFF; }
.page-hero--banner .eyebrow { color: rgba(247,244,238,0.80); }
.page-hero--banner h1 {
  color: #FFFFFF;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 400;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(15,30,32,0.34);
}
.page-hero--banner .section-lead { color: rgba(247,244,238,0.88); }

/* Photographs and flat artwork need different scrims. A photo is busy but
   tonally calm, so the standard gradient is enough to hold white type; a
   flat-colour illustration is bright and high-chroma, and white type sinks
   into it. This modifier darkens the whole field and flattens the top end of
   the gradient, so the picture stays legible without the title losing
   contrast. Opt in per page via the `tone` argument of ph(). */
.page-hero--banner.page-hero--dark::after {
  background: linear-gradient(180deg,
    rgba(15,30,32,0.52) 0%,
    rgba(15,30,32,0.60) 55%,
    rgba(15,30,32,0.80) 100%);
}

/* A third case: light artwork (the world-map guzheng on the origin page is
   pale cream with soft mid-tones). The standard scrim turned it into a dim
   grey field — the client asked for it to stay bright. So the veil goes
   almost invisible and the type flips to ink instead of white: contrast now
   comes from the dark text, not from darkening the picture. Keyed off the
   same `tone` argument, so the CMS switch is unchanged. */
.page-hero--banner.page-hero--light::after {
  background: linear-gradient(180deg,
    rgba(247,244,238,0.06) 0%,
    rgba(247,244,238,0.14) 55%,
    rgba(247,244,238,0.30) 100%);
}
.page-hero--banner.page-hero--light .breadcrumb,
.page-hero--banner.page-hero--light .breadcrumb a { color: rgba(27,45,47,0.66); }
.page-hero--banner.page-hero--light .breadcrumb a:hover { color: #16292B; }
.page-hero--banner.page-hero--light .eyebrow { color: rgba(27,45,47,0.62); }
.page-hero--banner.page-hero--light h1 {
  color: #16292B;
  /* Over pale artwork the title crosses continents and oceans, which carry
     different local tones; a warm halo keeps it readable at both the olive
     and the cream end without putting a box around it. */
  text-shadow: 0 1px 0 rgba(252,250,245,0.92), 0 2px 20px rgba(252,250,245,0.88);
}
.page-hero--banner.page-hero--light .breadcrumb,
.page-hero--banner.page-hero--light .section-lead {
  /* These sit across the map's busiest band; without a halo the thin strokes
     dissolve into the continents. */
  text-shadow: 0 1px 0 rgba(252,250,245,0.9), 0 1px 12px rgba(252,250,245,0.85);
}
.page-hero--banner.page-hero--light .eyebrow {
  text-shadow: 0 1px 0 rgba(252,250,245,0.9), 0 1px 12px rgba(252,250,245,0.85);
}
.page-hero--banner.page-hero--light .section-lead { color: rgba(27,45,47,0.82); }
.page-hero--banner.page-hero--dark h1 {
  text-shadow: 0 2px 22px rgba(9,20,22,0.55);
}
.page-hero--banner.page-hero--dark .eyebrow { color: rgba(247,244,238,0.88); }

/* ---------- 13. Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-h1); letter-spacing: 0.02em; }
.field label .req { color: var(--rouge); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14.5px; color: var(--text-body);
  background: var(--surface-card); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); padding: 12px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--qin-wood);
  box-shadow: 0 0 0 3px rgba(181,138,84,0.14);
}
.field textarea { resize: vertical; min-height: 116px; }
.field__hint { font-size: 12px; color: var(--text-foot); }
.form__note { font-size: 12.5px; color: var(--text-sub); }
/* Honeypot field for Netlify Forms — must stay in the DOM for bots to fill it,
   but never visible or reachable for real users. */
.form__hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; margin: 0; padding: 0;
}
button[type="submit"][disabled] { cursor: progress; }

/* ---------- 14. Footer ----------
   One footer for the whole site: four columns over the ink-teal ground, then
   a full-bleed bar for the legal line. Flat by design — the header is the
   same solid ink-teal, so the two ends of the page agree. */
.site-footer { background: var(--ink-teal); color: rgba(247,244,238,0.78); padding: 64px 0 0; }
/* Same problem, and the previous fix never worked: the dark band is the last
   section inside <main> while the footer sits outside it, so the two are not
   siblings and `.section--ink + .site-footer` matched nothing on any page.
   The builder now marks the footer itself when a page closes on that band
   (see _closing_seam), which always applies. */
.site-footer--seam {
  border-top: 1px solid rgba(247, 244, 238, 0.3);
  padding-top: 78px;
}
.site-footer h4 { color: #F7F4EE; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 18px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.footer__col--brand { max-width: 360px; }
/* 页脚里的机构标记。原本是「浅色 SVG + 旁边一个 ISFGE 字母」，换新版标志
   后字母一并去掉 —— 标志里已经写着了，页脚和导航现在用同一张图、同一套
   圆形白底，上下一致。64px 比导航的 60px 略大：页脚空间松，而且它下面就是
   机构全称那两行小字，放太小吃不住重量。（2026-10-14 和导航一起放大：
   标志里的白色笔画加粗之后，页脚这枚也能跟着吃到大尺寸的好处 —— 徽标
   64px 高时白笔画约 2.6px，原先 56px 只有 1.8px。） */
.brand__mark--foot { height: 72px; }
/* 页脚这行就是机构全称 —— 客户说的「logo 旁边这个全称」指的正是它（导航里
   的全称是画在 logo 图里的，没有活字）。0.85 → 0.98、14px → 15px、加 500
   字重：让它扛得住「一眼看到你是谁」这件事。 */
.footer__orgname {
  margin: 16px 0 0; font-size: 15px; line-height: 1.6; font-weight: 500;
  color: rgba(247,244,238,0.98); letter-spacing: 0.02em;
}
.footer__blurb { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: rgba(247,244,238,0.60); }

.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__list a {
  color: rgba(247,244,238,0.78); text-decoration: none; font-size: 13.5px;
  transition: color var(--dur) var(--ease);
}
.footer__list a:hover { color: var(--apricot); }

.footer__contactline { margin: 14px 0 0; font-size: 12.5px; color: rgba(247,244,238,0.60); line-height: 1.75; }

/* Full-width legal bar, separated by a hairline that spans the viewport so it
   reads as the bottom edge of the page rather than of the column grid. */
.footer__bar {
  margin-top: 56px;
  border-top: 1px solid rgba(247,244,238,0.14);
  padding: 22px 0 26px;
}
.footer__bar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer__rights { margin: 0; font-size: 12.5px; color: rgba(247,244,238,0.62); }
.footer__linksrow { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; }
.footer__linksrow a { color: rgba(247,244,238,0.85); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer__linksrow a:hover { color: var(--apricot); }

/* ---------- 15. Reveal-on-scroll (fade-in only, ultra light) ----------
   Hidden state applies ONLY when JS is available (html.js), so content
   is never lost for no-JS visitors or crawlers. */
/* Scroll reveal disabled per user request: content is static for smooth
   scrolling (the .reveal classes remain in the markup but carry no styles). */

/* ---------- 16. Responsive ----------
   The container is 1320px, so the nav-shrink breakpoints sit just above it:
   a 1320–1440px viewport keeps the full desktop row, and below 1280px the
   six items + lang toggle + Donate cluster start to feel tight. */

/* English menu labels are longer than the Chinese ones, so the header needs
   more room before it can shrink the nav gap. */

/* 【已删除】这里原有一条 body[data-lang="en"] .brand__sub--full，
   写着 font-size: 7.6px 和 margin-left: -57px —— 那是「英文全称排在标志下方」
   那版构图的遗留（用负边距把第二行拽回图标左端对齐）。2026-10-10 去掉
   ISFGE 字标时，基础规则 .brand__sub--full 已经把 margin-left 归零（见上面
   那条注释），英文专属这条却漏改了，于是英文站这一行被硬拽回去 57px，
   正好压在 62px 宽的标志上；字号也被压到 7.6px，比中文站的 9.5px 小一圈。

   两个版本的左侧文字是同一串英文（中英文两套 HTML 的 .brand__sub--full 内容
   完全一致），所以英文版根本不需要任何专属补偿 —— 整条删掉。 */

/* ≤1440px — still a full row, just a touch less air between the clusters. */
@media (max-width: 1440px) {
  .nav { gap: 30px; }
}
/* ≤1360px — the container starts to be the binding constraint. */
@media (max-width: 1360px) {
  .nav { gap: 22px; }
  .nav__link { padding: 9px 8px; }
}
/* ≤1280px — narrow desktop / tablet landscape: trim spacing and type so the
   row reads as comfortable rather than crammed, keeping Donate on screen. */
@media (max-width: 1280px) {
  .nav { gap: 15px; }
  .brand__sub { font-size: 8.5px; letter-spacing: 0.02em; }
  /* 这里和上面一样只给 height、不给 width —— 有了 img 上的固有宽高比，宽度
     自己跟得上，不会把标志拉扁或拉长。（早先的规则给过正方形 50×50，那时
     是靠父容器裁圆，现在图本身透明，不需要了。） */
  .brand__mark--img { height: 60px; }
  /* 页脚那枚不跟着缩。它下面就压着机构全称两行字，缩到 54 会显得比块注还小；
     而且它排在和导航不同的上下文里，上下不必同尺寸。写在后面是为了压过
     上面那条同特异性的规则。 */
  .brand__mark--foot { height: 72px; }
  .brand__sub--full { font-size: 9.5px; max-width: 13ch; }
  .nav__links { gap: 0; }
  .nav__link { font-size: 13px; padding: 9px 5px; }
  .nav__actions { gap: 9px; }
  .nav__donate { min-width: 70px; padding: 7px 11px; }
  /* 同上一档，只是这一档导航条更矮。宽高比 4.58，56px 高排出来约 256px 宽；
     实测 1024 视口下标志右侧到菜单仍有 81px 余量。 */
  .brand__mark--lock { height: 56px; }
}

@media (max-width: 920px) {
  /* header shrinks to 64px — keep the anchor offset in step with it */
  section[id], .section[id], .event-cat-block[id], .card[id] { scroll-margin-top: 64px; }
  .nav { gap: 14px; height: 64px; }
  /* 这一档导航条收到 64px，标志跟着收到 48px —— 上下各留 8px，不至于顶到
     条子边缘。比 ≤1280 那档的 54px 再小一档，是因为这里菜单已经折进抽屉、
     右侧只剩语言键和汉堡键，横向其实很松，纵向才是约束。 */
  .brand__mark--img { height: 54px; }
  /* 同上：宽高比 4.58，48px 排到约 220px 宽。这一档菜单已折进抽屉，横向
     不是约束；字在屏幕上约 13.6px，比宽屏那档小，但这一档本来就是手机
     和平板的窄屏，导航只留标志本身作识别，全称在页脚另有文字。 */
  .brand__mark--lock { height: 48px; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; background: var(--xuan-white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
    border-bottom: 1px solid var(--hairline); display: none;
    box-shadow: var(--shadow-soft); max-height: calc(100vh - 64px); overflow-y: auto;
    margin: 0;                 /* the desktop logo offset must not apply here */
  }
  .nav__links.is-open { display: flex; }
  .nav__item { border-bottom: 1px solid var(--hairline); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__row { width: 100%; justify-content: space-between; }
  /* The panel is a light sheet dropped out of a dark bar, so everything
     inside it goes back to the dark-on-light palette — the bar's light type
     stops at the panel's top edge. */
  .nav__link { flex: 1; padding: 14px 8px; text-align: left; white-space: normal; color: var(--text-body); }
  .nav__link:hover { color: var(--ink-teal); background: rgba(31,58,61,0.05); }
  .nav__link.is-active { color: var(--ink-teal); }
  .nav__link .cn { color: var(--text-sub); }
  /* 提一档特异性（.nav__links .nav__caret）。文件后面「Desktop dropdown」那段
     用同特异性的 .nav__caret 把箭头设成了浅色 —— 那是给深色导航条用的，但
     它排在后面，会把上面这条盖掉，于是白面板上的箭头变成白箭头（实测对比度
     1.00，等于没有）。子菜单展开按钮看不见，用户就不知道这几项还能点开。 */
  .nav__links .nav__caret { color: var(--text-sub); }
  .nav__links .nav__caret:hover { color: var(--ink-teal); background: rgba(31,58,61,0.06); }
  .nav__link.is-active::after { display: none; }
  .nav__sub a { padding: 10px 4px 10px 14px; border-radius: 0; font-size: 13.5px; }
  /* 抽屉是「从深色导航条里落下来的一张宣白薄板」，所以上面几条把面板里的字
     改回深字。但首页（data-hero="on"）为了压在深色大图上，把 .nav__link
     设成了浅色 —— 而媒体查询不提升特异性，那几条浅色会一路赢到这里，于是
     白板上落白字：点开菜单只见一片空白（实测对比度 1.00，等于隐形）。滚动
     之后导航条变实底、字色恢复，才看得见 —— 这就是「第一次开是空的、点第二
     次就好了」的来龙去脉。这里用同等的 body[data-hero="on"] 选择器再压一遍，
     is-scrolled 那两条一并写上，免得滚动后又冒出另一套颜色。 */
  body[data-hero="on"] .nav__link,
  body[data-hero="on"].is-scrolled .nav__link { color: var(--text-body); }
  body[data-hero="on"] .nav__link:hover,
  body[data-hero="on"].is-scrolled .nav__link:hover { color: var(--ink-teal); background: rgba(31,58,61,0.05); }
  body[data-hero="on"] .nav__link.is-active,
  body[data-hero="on"].is-scrolled .nav__link.is-active { color: var(--ink-teal); }
  body[data-hero="on"] .nav__link .cn { color: var(--text-sub); }
  /* 箭头的 stroke 是 currentColor，跟着上面的 .nav__caret 走。 */
  body[data-hero="on"] .nav__links .nav__caret svg,
  body[data-hero="on"].is-scrolled .nav__links .nav__caret svg { stroke: currentColor; }
  .nav__actions { margin-left: auto; gap: 8px; }
  .nav__donate { padding: 9px 14px; font-size: 12.5px; }
  .lang button { padding: 6px 9px; }
  .nav__toggle { display: flex; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .section, main.has-page-hero > .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .deflist__row { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding: 72px 0 64px; }
  .hero__line-art { display: none; }
  /* ≤680px：导航只留标志本身。全称在这一行挤不下，硬留会把菜单推歪 ——
     去掉 ISFGE 字母之后，标志自身就是完整的机构识别，不必再补文字。 */
  .brand__sub { display: none; }
  .brand__name { font-size: 16px; }
  .brand__sub--full { display: none; }
}

/* ---------- ≤560px：页眉标志换回单枚徽标 ----------
   横版标志（宽高比 4.58）在 52px 高时是 238px 宽，加上右侧「语言键 + 捐赠 +
   菜单」那组 220px，在 560 以下就排不下了 —— 实测 390px 视口下那组被顶到
   x=459，右半截（捐赠按钮和汉堡键）直接掉出屏幕。硬缩横版不行：要压到 116px
   宽就得降到 25px 高，徽标只剩指甲盖大。

   所以这一档换成单枚徽标（46px 高 / 61px 宽），把英文那半让出去。46px 比
   宽屏的 54px 略小：这一档导航条高 64px，logo 太高会和两侧的键互相压。
   徽标本身就是完整识别，英文全称在页脚照样印着文字。

   46px 是 2026-10-14 从 40px 提上来的：徽标在这档要缩到原图的 1/6，白笔画
   只剩 0.66px，加粗到 10px 之后再配 46px 显示高度，落屏约 1.9px —— 原先
   40px 时只有 1.6px，且那一档笔画还没加粗，实际才 0.66px。 */
@media (max-width: 560px) {
  .brand__mark--lock { height: 52px; }
  .brand__mark--lock .brand__img--lockup { display: none; }
  .brand__mark--lock .brand__img--mark { display: block; }
}

/* ---------- 17. Print ---------- */
@media print {
  .site-header, .site-footer, .nav__donate, .hero__line-art { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   v2 — Carousel hero  +  6-item navigation  +  monolingual pages
   ========================================================================== */

/* ---------- Carousel (home banner) ---------- */
.carousel {
  position: relative; background: #FFFFFF;
  border-bottom: 1px solid var(--hairline); overflow: hidden;
}
.carousel__track { position: relative; }
.slide {
  display: none; grid-template-columns: 1.05fr 1fr; gap: 0;
  align-items: stretch; min-height: 440px;
}
.slide.is-active { display: grid; animation: slideFade 520ms var(--ease); }
@keyframes slideFade { from { opacity: 0; } to { opacity: 1; } }

.slide__media {
  background:
    linear-gradient(135deg, rgba(78,107,99,0.06), rgba(212,180,131,0.10)),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(31,58,61,0.05) 46px 47px);
  border-right: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.slide__media-hint {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--moss); border: 1px dashed rgba(126,151,135,.6);
  padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.6);
}
.slide__body {
  padding: 64px 52px; display: flex; flex-direction: column; justify-content: center;
}
.slide__body h1 {
  font-size: clamp(24px, 2.7vw, 36px); line-height: 1.22;
  letter-spacing: -0.01em; margin-bottom: 18px; max-width: 18ch;
}
.slide__body p { font-size: 16px; color: var(--text-sub); margin-bottom: 28px; max-width: 46ch; }
.slide__body .btn { align-self: flex-start; }

/* arrows */
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-teal); cursor: pointer; z-index: 3;
  transition: all var(--dur) var(--ease);
}
.carousel__nav:hover { background: var(--ink-teal); color: #fff; border-color: var(--ink-teal); }
.carousel__nav svg { width: 20px; height: 20px; }
.carousel__nav--prev { left: 20px; }
.carousel__nav--next { right: 20px; }

/* dots */
.carousel__dots {
  position: absolute; bottom: 22px; left: 52px; display: flex; gap: 9px; z-index: 3;
}
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  border: 1px solid var(--qin-wood); background: transparent;
  transition: all var(--dur) var(--ease);
}
.carousel__dot.is-on { background: var(--qin-wood); width: 24px; border-radius: 4px; }

/* compliance chips strip under carousel */
.carousel__chips { background: var(--xuan-white); border-top: 1px solid var(--hairline); padding: 16px 0; }
.carousel__chips .legal-chips { justify-content: center; }

@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide__media { min-height: 176px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .slide__body { padding: 34px 24px 52px; }
  .slide__body h1 { max-width: none; }
  .carousel__nav { width: 34px; height: 34px; top: 108px; opacity: 0.85; }
  .carousel__nav--prev { left: 8px; }
  .carousel__nav--next { right: 8px; }
  .carousel__dots { left: 24px; bottom: 18px; }
}

/* ---------- Language toggle (now links, not buttons) ---------- */
.lang { display: inline-flex; align-items: stretch; border: 1px solid rgba(31,58,61,0.12); border-radius: 999px; overflow: hidden; background: var(--btn-lang-light); }
.lang a, .lang span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 7px 13px; font-family: var(--font-en);
  font-size: 12.5px; font-weight: 500; letter-spacing: .06em;
  text-decoration: none; transition: background var(--dur) var(--ease);
}
.lang a { background: var(--btn-lang-light); color: var(--ink-teal); }
.lang a:hover { background: var(--btn-lang-light-h); }
.lang .is-on { background: var(--btn-lang-deep); color: #FFFFFF; font-weight: 600; }

/* (The old "6-item nav fits comfortably" @1180px block was removed: it
   duplicated — and, being later in source order, silently overrode — the
   responsive rules in section 16. Nav sizing now lives in one place.) */

/* ==========================================================================
   v3 — Full-bleed hero banner  (the banner IS the entire first screen)
   ========================================================================== */
.hero-banner {
  position: relative;
  height: 100vh;                 /* fill the whole screen — header overlays it */
  min-height: 560px;
  max-height: none;
  background: var(--ink-teal);
  overflow: hidden;
  isolation: isolate;
}
/* keep the 76px fixed header from covering the top of the artwork */
body[data-hero="on"] { padding-top: 0; }

.hero-banner__track { position: absolute; inset: 0; }

/* Each slide is a full-screen layer. All slides are stacked; only the
   active one is visible, so swapping is a pure cross-fade. */
.slide--full {
  position: absolute; inset: 0;
  display: block; min-height: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 800ms var(--ease), visibility 800ms var(--ease);
}
.slide--full.is-active { opacity: 1; visibility: visible; }
.slide--full.is-active .slide__content { animation: bannerRise 900ms var(--ease) both; }
@keyframes bannerRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* <picture> is only a source-picking shell around the <img> (WebP first,
   original JPEG as the fallback for the <2% of browsers without WebP). It
   takes over the absolute positioning the <img> used to do against .slide,
   so the image layer lands in exactly the same place as before. Without this
   the wrapper would be an inline box and the img's `inset: 0` would resolve
   against something else. */
.slide__pic { position: absolute; inset: 0; display: block; }

/* Image layer — real <img> so the browser can preload and paint it early
   (no flash of empty background). The veil keeps all text legible. */
.slide__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: linear-gradient(150deg, #23474A 0%, #1F3A3D 46%, #16292C 100%);
  transform: scale(1.02);
  will-change: transform;
}
/* Per-slide focal point. The banner is 100vw x 100vh (≈1.6 at 1440x900) but
   the photos are 1.27–1.44, so `cover` crops the sides — and on a portrait
   phone (≈0.46) it crops almost everything but a centre strip. Some frames
   put their subject off-centre; that slide can declare where the important
   part is (see `slide_pos` in build.py) so the crop follows the people
   instead of the geometric middle. 50% 50% is the default when unset. */
.slide__img[data-pos] { object-position: var(--pos-x, 50%) var(--pos-y, 50%); }
.slide--full.is-active .slide__img { animation: bannerDrift 16s var(--ease) both; }
@keyframes bannerDrift { from { transform: scale(1.09); } to { transform: scale(1.02); } }

/* veil: guarantees WCAG contrast for overlaid text on any photograph.
   Values measured, not guessed — see tools/veil_check.py. These numbers let
   ~55% of the photo's own brightness through (the old ones managed ~44%)
   while the worst frame still holds 5.56:1 on body copy and 6.16:1 on the
   headline, against floors of 4.5 and 3.0. The remaining headroom is
   deliberate: banners are swapped from the CMS, and a brighter replacement
   photo should not push the page under AA. */
.slide__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,26,28,0.46) 0%, rgba(14,26,28,0.30) 46%, rgba(14,26,28,0.13) 100%),
    linear-gradient(180deg, rgba(14,26,28,0.26) 0%, rgba(14,26,28,0.06) 38%, rgba(14,26,28,0.40) 100%);
}

.slide__content {
  position: relative; z-index: 2;
  height: 100%;
  max-width: var(--wrap);
  padding: 86px 32px 118px;      /* clears the fixed header (76px) + a little air */
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
/* Slides after the first are <h2> so the page keeps a single h1; they have to
   look identical to it, hence both tags in every selector below. */
.hero-banner .slide__content h1,
.slide__content h1,
.hero-banner .slide__content h2,
.slide__content h2 {
  font-family: var(--font-en-display), var(--font-cn-display);
  font-weight: 300;
  color: #F7F4EE;
  /* Cap the size against the viewport height as well as its width. The
     banner is 100vh tall and the copy is vertically centred, so on a wide
     but shallow window (a 1920x900 laptop) 4.2vw alone grows the headline
     until it wraps to two lines and reaches across the photograph behind it.
     The vh term keeps the block short enough to sit in the left column. */
  font-size: clamp(30px, min(3.6vw, 6.2vh), 50px);
  line-height: 1.2;
  letter-spacing: 0.015em;
  /* The Chinese headlines run to 12–14 characters and break at the
     interpunct, so give them a little more room than the 20ch tuned for the
     English ones — 20ch split 「以琴为桥 · 连接世界 · 共育未来」 across two
     lines and the second line landed on top of the performers. */
  max-width: 26ch;
  margin-bottom: 20px;
  text-shadow: 0 1px 24px rgba(0,0,0,.30);
}
.slide__content p {
  color: rgba(247,244,238,.86);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 30px;
}
/* Short viewports (e.g. laptops with browser chrome): shrink type so the
   headline, CTA, chips, and dots never collide inside the banner. */
@media (max-height: 720px) {
  .slide__content { padding: 78px 32px 92px; }
  .slide__content h1,
  .slide__content h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
  .slide__content p { font-size: 15px; margin-bottom: 22px; }
  .btn--onimage { padding: 12px 26px; }
  .hero-banner { min-height: 480px; }
}

/* Button that reads on top of an image (light fill, ink text) */
.btn--onimage {
  background: #F7F4EE; color: var(--ink-teal);
  border-color: rgba(247,244,238,.9);
  padding: 14px 30px;
}
.btn--onimage:hover {
  background: var(--qin-wood); color: #fff; border-color: var(--qin-wood);
  transform: translateY(-1px);
}

/* Skip link — the only moment it surfaces is keyboard focus, so it does
   not add visual chrome to the picture. */
.hero-skip {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -140%);
  z-index: 6; padding: 9px 20px;
  background: #F7F4EE; color: var(--ink-teal);
  font-size: 12.5px; letter-spacing: .08em; border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 180ms var(--ease);
}
.hero-skip:focus { transform: translate(-50%, 0); }
.hero-banner__scroll { display: none; }

.hero-banner__chips {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3;
}
.hero-banner__chips .legal-chips { justify-content: flex-start; }
.hero-banner__chips .legal-chip {
  background: rgba(247,244,238,.10);
  border-color: rgba(247,244,238,.26);
  color: rgba(247,244,238,.9);
  backdrop-filter: blur(6px);
}
.hero-banner__chips .legal-chip .dot { background: var(--apricot); }

/* Dots — bottom-right so they never collide with the chips */
.hero-banner__dots { bottom: 34px; left: auto; right: 32px; }
.hero-banner .carousel__dot { border-color: rgba(247,244,238,.7); }
.hero-banner .carousel__dot.is-on { background: var(--apricot); border-color: var(--apricot); }

/* Arrows on image */
.hero-banner .carousel__nav {
  background: rgba(247,244,238,.14);
  border-color: rgba(247,244,238,.34);
  color: #F7F4EE;
  backdrop-filter: blur(6px);
}
.hero-banner .carousel__nav:hover {
  background: var(--qin-wood); border-color: var(--qin-wood); color: #fff;
}

/* Legacy scroll-cue rules keep the keyframes alive for the skip link;
   the visible cue itself is switched off (see .hero-skip). */
.hero-banner__scroll:hover { color: #F7F4EE; }
.hero-banner__scroll svg { width: 18px; height: 18px; animation: scrollNudge 2.4s var(--ease) infinite; }
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(5px); opacity: 1; }
}

@media (max-width: 920px) {
  .hero-banner { height: 100vh; min-height: 560px; max-height: none; }
  .slide__content { padding: 92px 24px 118px; }
  .slide__content h1,
  .slide__content h2 { max-width: none; }
  .hero-banner__dots { right: 24px; bottom: 96px; }
  .hero-banner .carousel__nav { top: auto; bottom: 92px; transform: none; width: 38px; height: 38px; }
  .hero-banner .carousel__nav--prev { left: 20px; }
  .hero-banner .carousel__nav--next { left: 68px; right: auto; }
  }
@media (max-width: 680px) {
  .hero-banner { height: 100vh; min-height: 560px; max-height: none; }
  .slide__content { padding: 84px 20px 128px; }
  .hero-banner__chips { bottom: 22px; }
  .hero-banner__chips .legal-chips { gap: 7px; }
  .hero-banner__chips .legal-chip { font-size: 11px; padding: 5px 11px; }
  }
@media (prefers-reduced-motion: reduce) {
  .slide--full, .slide--full.is-active .slide__img, .slide--full.is-active .slide__content,
  .hero-banner__scroll svg { animation: none; }
}

/* ==========================================================================
   v3 — Repertoire cards (乐曲欣赏)
   ========================================================================== */
.repertoire-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.repertoire {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 22px 26px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.repertoire:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--hairline-strong); }
.repertoire__cover {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background:
    radial-gradient(100% 80% at 74% 22%, rgba(181,138,84,0.28), transparent 60%),
    linear-gradient(150deg, #E9E3D7, #DED6C6);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; overflow: hidden;
}
.repertoire__placeholder {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-foot);
  border: 1px dashed rgba(126,151,135,.6); border-radius: 999px; padding: 6px 14px;
  background: rgba(255,255,255,.55);
}
.repertoire__play {
  position: absolute; inset: auto auto 14px 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(31,58,61,.86); color: #F7F4EE;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.repertoire__play svg { width: 17px; height: 17px; margin-left: 2px; }
.repertoire:hover .repertoire__play { background: var(--qin-wood); transform: scale(1.05); }
.repertoire__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.repertoire__dur { font-size: 12px; color: var(--text-foot); letter-spacing: .03em; }
.repertoire h3 { font-size: 19px; margin-bottom: 10px; }
.repertoire p { font-size: 14.5px; color: var(--text-sub); line-height: 1.8; }
.repertoire__hint {
  margin: 14px 0 0; font-size: 12.5px; color: var(--text-foot);
  padding-top: 12px; border-top: 1px dashed rgba(31,58,61,.14);
}
@media (max-width: 920px) { .repertoire-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .repertoire-grid { grid-template-columns: 1fr; } }
/* 课程回顾卡片栏：和乐曲库同一套卡片，但条数由后台决定。
   硬套 .repertoire-grid 的三等分，在只有两条实录时右边会空出一格，看着像
   漏了东西。改成 auto-fit —— 有几条就分几列，整栏居中；三条以上自动加列，
   不会留空槽。min(100%, 300px) 是窄屏护栏：手机上容器不到 300px 时按
   100% 算，卡片不会撑出屏幕。 */
.recordings-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 900px; margin-inline: auto;
}

/* Video-capable cards (videos collection: 乐曲库 / 课程回顾) ----------------
   Same visual language as the repertoire card; with a Bilibili/YouTube link
   the cover becomes a real <button>, shows a platform badge, and opens the
   in-site player overlay (.vplayer). Without a link the card stays in the
   original "coming soon" state. */
button.repertoire__cover {
  appearance: none; -webkit-appearance: none;
  border: 0; padding: 0; margin: 0 0 18px; width: 100%;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
button.repertoire__cover:focus-visible { outline: 2px solid var(--qin-wood); outline-offset: 3px; }
.repertoire__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card__plat {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .06em;
  color: #F7F4EE; background: rgba(31,58,61,.78);
  padding: 4px 10px; border-radius: 999px;
}
.video-card--soon .repertoire__play { opacity: .5; }
.video-card .repertoire__cover img + .repertoire__placeholder { display: none; }

/* 协会缘起 —— 照片栏与正文同宽比，跟随容器自适应。
   （原先左列锁死 260px 并配 0.62fr/1.38fr 不对称比例，宽屏下正文被挤窄、
   左列矮于右列，造成"内容不满、下方留白"的观感。）
   加一个 360px 的柔上限，避免窄视口下照片被拉成整屏宽而失衡。 */
.story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
.story-grid > div { min-width: 0; }
.story-grid img { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 920px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid img { max-width: 300px; }
}

/* 机构宗旨上方的黑白古筝通栏图。
   桌面按原比例 2.6:1 铺满容器（1261×486）。但同一条比例搬到手机上，
   350px 宽只剩 136px 高 —— 薄得像一条带子，撑不起"引题图"的分量。
   所以窄屏裁成 2:1：高度回到 175px。图的主体本来就落在画面正中，
   裁掉的是左右两头，不影响。 */
@media (max-width: 760px) {
  .mission-figure img { aspect-ratio: 2 / 1; object-fit: cover; }
}

/* ---------- 18. Nav labels (single language, no hover swap) ---------- */
/* The menu sits in the space between the wordmark (left) and the Donate
   cluster (right). A modest fixed offset keeps clear air beside the logo,
   then margin-right:auto lets the Donate cluster sit flush at the far edge
   of the (now wider) container. */
.nav__links {
  list-style: none; padding: 0;
  margin-left: clamp(40px, 4.5vw, 104px);
  margin-right: auto;
}
/* The offset above is a desktop-row concern only — the mobile drawer is a
   full-width fixed overlay, so it must start flush at x=0. */
@media (max-width: 920px) {
  .nav__links { margin-left: 0; margin-right: 0; }
}

/* ---------- 19. Desktop dropdown ---------- */
.nav__item { position: relative; }
.nav__row { display: flex; align-items: center; gap: 1px; }
.nav__caret {
  width: 24px; height: 24px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer; padding: 0; border-radius: 5px;
  color: rgba(247,244,238,0.76); transition: color var(--dur) var(--ease);
}
/* The caret sits on the dark bar, but the panel it opens is a white float —
   so the hover tint belongs to the bar (light) while the panel links keep
   their own dark-on-white treatment below. */
.nav__caret:hover { color: #FFFFFF; background: rgba(247,244,238,0.14); }
.nav__caret svg { width: 14px; height: 14px; transition: transform 260ms var(--ease); }
.nav__item:hover .nav__caret svg,
.nav__item:focus-within .nav__caret svg,
.nav__item.is-open .nav__caret svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 300px; list-style: none; margin: 0; padding: 10px;
  background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(31,58,61,0.14); z-index: 70;
  opacity: 0; visibility: hidden;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* hover bridge: keeps the panel open across the gap below the row */
.nav__item.has-sub::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; display: none;
}
.nav__item:hover.has-sub::before,
.nav__item:focus-within.has-sub::before { display: block; }
.nav__sub a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; font-family: var(--font-en); color: var(--ink-teal);
  text-decoration: none; line-height: 1.4; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__sub a:hover { background: rgba(181,138,84,0.1); color: var(--qin-wood); }
.nav__sub a { font-family: var(--font-en), var(--font-cn); letter-spacing: 0.02em; }
/* Sub-item that opens a floating panel instead of navigating: it has to look
   exactly like its sibling links, hence the shared declarations. */
.nav__subBtn {
  display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; font-family: var(--font-en), var(--font-cn); letter-spacing: 0.02em;
  color: var(--ink-teal); background: none; border: 0; cursor: pointer;
  line-height: 1.4; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__subBtn:hover { background: rgba(181,138,84,0.1); color: var(--qin-wood); }

/* ---------- 20b. Floating portal panel ----------
   The secure faculty portal is an entry point rather than a destination, so it
   surfaces as a small floating panel over whatever page you are on instead of
   taking you to a landing page of its own. */
.portalsheet { position: fixed; inset: 0; z-index: 200; display: none; }
.portalsheet.is-open { display: block; }
.portalsheet__scrim {
  position: absolute; inset: 0; background: rgba(15,30,32,0.54);
  opacity: 0; transition: opacity 220ms var(--ease);
}
.portalsheet.is-open .portalsheet__scrim { opacity: 1; }
.portalsheet__box {
  position: absolute; left: 50%; top: 50%;
  width: min(470px, calc(100vw - 40px));
  transform: translate(-50%, -46%);
  background: var(--surface-card); border-radius: 14px;
  padding: 28px 30px 26px;
  box-shadow: 0 26px 70px rgba(15,30,32,0.30);
  opacity: 0; transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.portalsheet.is-open .portalsheet__box { opacity: 1; transform: translate(-50%, -50%); }
.portalsheet__close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31,58,61,0.06); border: 0; border-radius: 50%;
  color: var(--ink-teal); font-size: 17px; line-height: 1; cursor: pointer;
}
.portalsheet__close:hover { background: rgba(31,58,61,0.12); }
.portalsheet__rows { margin: 18px 0 20px; }

/* ---------- 20. Events ---------- */
/* The three upcoming-event cards on the home page are links in their own
   right — each one goes to the listing page for that strand (大师班 / 筝团 /
   沙龙). They were <article> for a long while, which read fine but did
   nothing when clicked; only the button underneath worked. Made them <a>
   instead so the whole card is the target, and given the usual affordances
   (no underline, a lift on hover, a visible focus ring) so it is obvious that
   they are clickable rather than just decoration. */
.event {
  display: flex; gap: 18px; align-items: flex-start;
  background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 14px;
  padding: 18px; box-shadow: 0 6px 18px rgba(31,58,61,0.05);
  min-width: 0;                  /* never let a long headline widen the grid */
  text-decoration: none; color: inherit;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
              border-color 260ms var(--ease);
}
a.event:hover, a.event:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(181,138,84,0.45);
  box-shadow: 0 12px 26px rgba(31,58,61,0.11);
}
a.event:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }
.event h3, .event h4 {
  margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--ink-teal);
  overflow-wrap: break-word; word-break: break-word; min-width: 0;
}
.event__date {
  flex: 0 0 84px; text-align: center;
  background: rgba(181,138,84,0.08); border: 1px solid rgba(181,138,84,0.28);
  border-radius: 10px; padding: 12px 6px;
}
.event__date .m {
  display: block; font-family: var(--font-en); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--qin-wood);
}
.event__date .d {
  display: block; font-family: var(--font-en); font-size: 21px; font-weight: 600;
  color: var(--ink-teal); margin-top: 3px; letter-spacing: 0.02em;
}
.event__body { flex: 1; min-width: 0; }
.event__body h4 { margin: 0 0 6px; font-size: 16.5px; color: var(--ink-teal); }
.event__body p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-sub); line-height: 1.7; }
.event__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.event__meta .tag { font-size: 11px; padding: 3px 9px; }
.event__body .btn { margin-top: 2px; }
.event--onink {
  background: rgba(247,244,238,0.06); border-color: rgba(247,244,238,0.16); box-shadow: none;
}
/* 标题和正文两条不能只认 .event__body：首页「近期活动预告」那三张卡是直接
   把 <h3> 和 <p> 放在 <a class="event"> 里的，没有 .event__body 包一层。只写
   .event__body h4 的话，那三张的标题会留在 --ink-teal 深墨青上 —— 深字压在
   墨青黛底上等于没有字（实测对比度 1.15）。h3 / p 一起兜住。 */
.event--onink h3,
.event--onink .event__body h4 { color: #F7F4EE; }
.event--onink p { color: rgba(247,244,238,0.72); }
.event--onink .event__date { background: rgba(247,244,238,0.08); border-color: rgba(247,244,238,0.2); }
.event--onink .event__date .m { color: var(--apricot); }
.event--onink .event__date .d { color: #F7F4EE; }
.event--onink .btn--ghost { color: #F7F4EE; border-color: rgba(247,244,238,0.35); }
.event--onink .btn--ghost:hover { border-color: var(--apricot); color: var(--apricot); background: rgba(247,244,238,0.06); }
.event-cat {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--qin-wood);
  margin: 36px 0 16px;
}
.event-cat::after { content: ""; height: 1px; flex: 1; background: var(--hairline); }
.section--ink .event-cat { color: var(--apricot); }
.section--ink .event-cat::after { background: rgba(247,244,238,0.14); }

/* ---------- 21. Past-events archive ---------- */
.archive {
  background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.archive:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,58,61,0.1); }
.archive__cover {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(181,138,84,0.16), rgba(126,151,135,0.18));
  color: var(--qin-wood); font-size: 12px; letter-spacing: 0.16em;
  overflow: hidden;   /* the photo, once there is one, is clipped to the card */
}
/* The cards read "图片占位" until the archive had photographs to put in them.
   Now that it does, the cover is the picture and the gradient only shows
   through while it loads. */
.archive__cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.archive__date {
  align-self: flex-start; margin: 16px 18px 0; font-size: 11px; letter-spacing: 0.1em;
  color: var(--moss); border: 1px solid rgba(126,151,135,0.4); border-radius: 99px; padding: 2px 10px;
}
.archive h3 { margin: 10px 18px 6px; font-size: 16.5px; color: var(--ink-teal); }
.archive p { margin: 0 18px 18px; font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* ---------- 22. Misc: card more-link & form status ---------- */
.card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--qin-wood); text-decoration: none;
}
.card__more::after { content: "\2192"; transition: transform 200ms var(--ease); }
.card__more:hover::after { transform: translateX(3px); }
.form__status {
  display: none; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.6; background: rgba(181,74,74,0.06); color: var(--rouge);
  border: 1px solid rgba(181,74,74,0.22);
}
.form__status.is-visible { display: block; }

/* ---------- 23. Responsive additions ---------- */
@media (max-width: 1080px) {
  .nav__sub { min-width: 260px; }
  /* three event cards side by side get too narrow below ~1080px */
  .grid--3:has(.event) { grid-template-columns: repeat(2, 1fr); }
  .grid--3:has(.event) > .event:last-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .grid--3:has(.event) { grid-template-columns: 1fr; }
  .grid--3:has(.event) > .event:last-child { grid-column: auto; }
}
@media (max-width: 920px) {
  .nav__caret { display: flex; }
}
@media (max-width: 680px) {
  .event { flex-direction: column; gap: 12px; }
  .event__date { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; }
  .event__date .d { margin-top: 0; font-size: 17px; }
  .archive__cover { aspect-ratio: 16 / 10; }
}

/* ---------- 24. Mobile nav overrides (must come after desktop dropdown) ---------- */
@media (max-width: 920px) {
  /* 抽屉的内边距在 §22 里写过（12px 24px 24px），但 §18 那条
     .nav__links { padding: 0 } 不在任何媒体查询里、特异性相同而位置更靠后，
     把抽屉的 padding 一起归零了 —— 于是菜单文字贴着屏幕左右两边。
     这里重设一次；本段整体排在 §18、§19 之后，改得动。 */
  .nav__links { padding: 12px 24px 24px; }

  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
    max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease);
    width: auto;
  }
  .nav__item.is-open .nav__sub { max-height: 720px; }
  /* 面板被推到屏幕外去了 —— 不是字色问题。
     上面这条 .nav__sub { transform: none } 只有 0,1,0，压不住 §19 的
     .nav__item:hover > .nav__sub / :focus-within > .nav__sub（0,3,0）：
     手机上点箭头，按钮拿到焦点，focus-within 成立，面板又被套回桌面的
     translate(-50%, 0)，整体左移自身一半宽度。实测 390 宽的屏上面板
     x = -191，三条二级文字全跑到视口外面，「展开就是一片空白」。
     用同等特异性（0,3,0）在这里再压一遍，放在后面，赢的是这一条。 */
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub { transform: none; }
}

/* ---------- 25. Interior page-hero on tablet / phone ----------
   Desktop keeps the original 72px top padding. On tablets and phones the
   hero sits directly under the 64px sticky header, so the desktop value
   leaves a large empty band and pushes the title too low. Tighten the top
   padding, keep it above the header height (64px) so text is never covered.
   NOTE: interior pages only — the home page hero image is untouched.
   First tier starts at 1360px: tablet landscape viewports (typically
   1156–1280px CSS px) were still hitting the desktop 72px value. */
@media (max-width: 1360px) {
  .page-hero { padding: 12px 0 28px; }
}
@media (max-width: 1024px) {
  .page-hero { padding: 10px 0 24px; }
}
@media (max-width: 920px) {
  .page-hero { padding: 10px 0 22px; }
  .breadcrumb { margin-bottom: 10px; }
  .page-hero h1 { margin-bottom: 12px; }
}
@media (max-width: 680px) {
  .page-hero { padding: 8px 0 18px; }
  .breadcrumb { font-size: 12px; margin-bottom: 9px; }
}
@media (max-width: 420px) {
  .page-hero { padding: 8px 0 16px; }
}

/* ---------- 26. Sheet music tabs (basic / advanced) ---------- */

/* Tabs ------------------------------------------------------------------ */
.tabs { margin-top: 8px; }
.tabs__bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline); margin-bottom: 34px;
}
.tabs__btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-cn); font-size: 15px; font-weight: 500;
  color: var(--text-sub); letter-spacing: 0.04em;
  padding: 12px 4px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tabs__btn:hover { color: var(--ink-teal); }
.tabs__btn.is-on { color: var(--ink-teal); border-bottom-color: var(--qin-wood); }
.tabs__btn:focus-visible { outline: 2px solid var(--qin-wood); outline-offset: 3px; border-radius: 2px; }
.tabs__btn + .tabs__btn { margin-left: 22px; }
body[data-lang="en"] .tabs__btn { font-family: var(--font-en); letter-spacing: 0.02em; }

.tabs__panel[hidden] { display: none; }

/* Sheet cards -----------------------------------------------------------
   Three across instead of two: with the pages shrunk to thumbnails, a
   two-column grid stretched each card to ~640px of mostly empty surface.
   Three columns let the cards sit closer to the size of their content. */
.sheet-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 1180px) { .sheet-grid { grid-template-columns: repeat(2, 1fr); } }
.sheet {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 12px); padding: 20px 18px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sheet:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow, 0 10px 30px rgba(31,58,61,0.07)); }
.sheet__pages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; justify-items: center; }
.sheet__page {
  display: block; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--hairline);
  background: #fff; cursor: zoom-in;
  /* Thumbnails, not previews. At full column width the two pages filled the
     card and the score became the whole card — heavy, and the notation was
     still too small to read at that size anyway. Keep them compact and let
     the lightbox do the reading: the whole point is that a tap enlarges.
     The aspect ratio is pinned to A4 (210/297) rather than 3/4 so the page
     outline is true and `cover` has nothing to crop. */
  width: 100%;
  max-width: 210px;
  aspect-ratio: 210 / 297;
}
.sheet__page img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
  transition: transform 400ms var(--ease);
}
.sheet__page:hover img { transform: scale(1.03); }
.sheet__page:focus-visible { outline: 2px solid var(--qin-wood); outline-offset: 2px; }
.sheet__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sheet__spec {
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.05em;
  color: var(--text-foot);
}
.sheet h3 {
  font-family: var(--font-cn-display); font-weight: 400; font-size: 21px;
  color: var(--text-h1); line-height: 1.35; margin: 0;
}
body[data-lang="en"] .sheet h3 { font-family: var(--font-en-display); }
.sheet p { font-size: 14px; line-height: 1.75; color: var(--text-body); margin: 0; }
.sheet .btn { align-self: flex-start; margin-top: 2px; }
.sheet__tip { font-size: 12.5px; color: var(--text-foot); margin: 22px 0 0; letter-spacing: 0.02em; }

/* 谱卡里的两件英文版专供元素（2026-10-16 加）
   两件都不是装饰，是给看英文的读者补的信息层级。中文版一条都不渲染 ——
   build.py 里 level_hint 在 cn 分支是空串、audio 字段没填则整块跳过，
   所以这里的样式不会在中文版留下任何空元素或空白。

   · __level —— 「这谱适不适合我家孩子」。放在元信息行下面、标题上面，
     因为它是读者决定要不要继续看这条的第一道关口，比标题更早起作用。
   · __audio —— 十几秒的示范。术语读写对不对、音色对不对，听见才算数，
     所以给了完整的原生播放器，不藏在按钮后面。

   注：谱名一律保留 Gou Tuo 这样的拼音，不加 Hook / Lift 之类英文解释。
   英文版的实际读者是海外华人老师，她们手上的教材和口传术语就是拼音，
   换成英文词反而对不上。曾有 __gloss 一行，2026-10-16 按客户意见撤销。 */
.sheet__level {
  margin: -6px 0 0;                     /* 吃掉 .sheet 的 14px gap 里的一半 */
  font-family: var(--font-en);
  font-size: 12.5px; line-height: 1.5;
  color: var(--text-sub); letter-spacing: 0.005em;
}
.sheet__audio { margin: -2px 0 0; }
.sheet__audio audio {
  display: block; width: 100%; height: 38px;
  /* 原生播放器自带一圈浅灰边框，压在卡片白底上边界不清；套一圈柔和的
     圆角容器，让「这是可以点的一段声音」在读谱的视线里自成一块。 */
  border-radius: 999px;
}
.sheet__audio-note {
  display: block; margin-top: 6px;
  font-family: var(--font-en); font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--text-foot);
}

/* Event sign-up card ----------------------------------------------------- */
.signup {
  background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 14px;
  border-top: 3px solid var(--rouge);
  padding: 32px 36px 30px;
}
.signup__title { font-size: 25px; margin: 8px 0 14px; }
.signup__row {
  display: flex; gap: 16px; padding: 10px 2px; font-size: 15px;
  border-bottom: 1px dashed var(--hairline);
}
.signup__row:last-of-type { border-bottom: 0; }
.signup__k { color: var(--text-sub); flex: 0 0 96px; }
.signup__v { font-weight: 600; }
.signup__note { font-size: 14.5px; color: var(--text-sub); margin: 14px 0 0; }
.signup__steps {
  list-style: none; padding: 0; margin: 18px 0 24px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 14px; color: var(--text-sub);
}
.signup__pay { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.signup__soon {
  margin: 0; padding: 13px 16px; border-radius: 10px;
  background: rgba(181, 74, 74, 0.07); color: var(--text-sub);
  font-size: 14px; text-align: center;
}
@media (max-width: 680px) {
  .signup { padding: 22px 18px; }
  .signup__row { flex-direction: column; gap: 2px; padding: 8px 0; }
  .signup__k { flex-basis: auto; }
  .signup__steps { gap: 6px 16px; }
}

/* Lightbox -------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 30, 32, 0.9);
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 220ms var(--ease), visibility 220ms;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox:not(.is-open) { pointer-events: none; }
.lightbox__img {
  max-width: min(92vw, 900px); max-height: 88vh;
  width: auto; height: auto;
  border-radius: 6px; background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  display: block;
  transition: transform 170ms var(--ease);
  will-change: transform;
  -webkit-user-drag: none;
}
.lightbox__img.no-anim { transition: none; }
.lightbox__img.is-zoomed { cursor: grab; }
.lightbox__img.is-zoomed:active { cursor: grabbing; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.08em;
  color: rgba(247,244,238,0.85); padding: 8px 10px;
}
.lightbox__close:hover { color: #F7F4EE; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  appearance: none; border: 1px solid rgba(247,244,238,0.3); background: rgba(247,244,238,0.08);
  color: #F7F4EE; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav:hover { background: rgba(247,244,238,0.16); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox.is-single .lightbox__nav { display: none; }
.lightbox__count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; letter-spacing: 0.06em;
  color: rgba(247,244,238,0.85);
  max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lightbox__tools { position: absolute; right: 20px; bottom: 16px; display: flex; gap: 8px; }
.lightbox__tool {
  appearance: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(247,244,238,0.3); background: rgba(247,244,238,0.08);
  color: #F7F4EE; font-family: var(--font-en); font-size: 15px; line-height: 1;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__tool:hover { background: rgba(247,244,238,0.16); }

/* Video player overlay ----------------------------------------------------
   In-site lightbox for Bilibili / YouTube embeds. The iframe is created on
   open and removed on close, so playback and sound stop immediately. */
.vplayer {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: rgba(18,30,32,.93); padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 220ms var(--ease), visibility 220ms;
}
.vplayer.is-open { opacity: 1; visibility: visible; }
.vplayer:not(.is-open) { pointer-events: none; }
.vplayer__close {
  position: absolute; top: 18px; right: 22px;
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.08em;
  color: rgba(247,244,238,0.85); padding: 8px 10px;
}
.vplayer__close:hover { color: #F7F4EE; }
.vplayer__box {
  /* Same note as .reel: a 1024px player nearly filled a 1440 screen.
     Two thirds reads as "a video on the page" instead of a takeover. */
  width: min(88vw, 900px); margin: 0;
}
.vplayer__frame {
  aspect-ratio: 16 / 9; width: 100%; border-radius: 8px; overflow: hidden;
  background: #0C1416; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.vplayer__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vplayer__cap {
  font-size: 13px; letter-spacing: .05em; color: rgba(247,244,238,.9);
  text-align: center; max-width: min(80vw, 720px);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 10px;
}
.vplayer__cap > span { color: rgba(247,244,238,.5); }
.vplayer__cap > :first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
/* Fallback link, shown when the platform refuses to play in an embed. */
.vplayer__ext {
  color: rgba(247,244,238,.72); text-decoration: none;
  border-bottom: 1px solid rgba(247,244,238,.32);
  padding-bottom: 1px; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.vplayer__ext:hover { color: #E8C46A; border-bottom-color: #E8C46A; }
@media (max-width: 680px) {
  .vplayer { padding: 14px; }
  .vplayer__cap { max-width: 88vw; font-size: 12.5px; }
}

/* Sheet music responsive ------------------------------------------------ */
@media (max-width: 920px) {
  .sheet-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 680px) {
  .tabs__bar { margin-bottom: 26px; }
  .tabs__btn { font-size: 14px; padding: 11px 2px; }
  .tabs__btn + .tabs__btn { margin-left: 18px; }
  .sheet { padding: 14px; gap: 12px; }
  .sheet h3 { font-size: 19px; }
  .lightbox { padding: 14px; }
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__count { top: 16px; bottom: auto; max-width: 72vw; }
  .lightbox__tools { right: 12px; bottom: 12px; }
  .lightbox__tool { width: 34px; height: 34px; font-size: 14px; }
}

/* ---------- 27. Events: photo cards + detail page ---------- */

/* Listing rows: photo left, summary right ------------------------------- */
.evlist { display: flex; flex-direction: column; gap: 22px; }

.evcard {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.evcard:hover {
  border-color: var(--hairline-strong);
  box-shadow: 0 14px 34px rgba(31,58,61,0.09);
  transform: translateY(-2px);
}
.evcard:focus-visible { outline: 2px solid var(--qin-wood); outline-offset: 3px; }

.evcard__photo { position: relative; overflow: hidden; background: var(--ink-teal); }
.evcard__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 600ms var(--ease);
}
.evcard:hover .evcard__photo img { transform: scale(1.04); }
/* The picture is not a rectangle pasted next to a paragraph. Two things fix
   that: a shallow wash of the house teal, which pulls photographs shot in
   different halls towards the same colour so a column of them reads as a set
   rather than as a scrapbook; and a fade into the card's white along the edge
   that meets the text, so the two halves join instead of butting. */
.evcard__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* A soft edge only. Fading from further left washed out half the picture
       — the photograph has to survive this, not dissolve into the card. */
    linear-gradient(90deg, rgba(255,255,255,0) 78%, rgba(255,255,255,0.92) 100%),
    linear-gradient(180deg, rgba(31,58,61,0.06) 0%, rgba(31,58,61,0.20) 100%);
}
/* Stacked, the text sits *below* the photo, so the fade has to run downwards
   instead of across. */
@media (max-width: 920px) {
  .evcard__photo::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,0) 76%, rgba(255,255,255,0.92) 100%),
      linear-gradient(180deg, rgba(31,58,61,0.06) 0%, rgba(31,58,61,0.20) 100%);
  }
}
.evcard__stamp {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-cn); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; padding: 5px 11px; border-radius: 2px;
  background: rgba(252, 250, 245, 0.95); color: var(--ink-teal);
  box-shadow: 0 2px 12px rgba(12, 20, 22, 0.20);
}
body[data-lang="en"] .evcard__stamp { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.06em; }

.evcard__body { padding: 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.evcard__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.evcard__date {
  font-family: var(--font-cn); font-size: 12.5px; font-weight: 500;
  color: var(--qin-wood); letter-spacing: 0.04em;
}
body[data-lang="en"] .evcard__date { font-family: var(--font-en); }
.evcard__place { font-size: 12.5px; color: var(--text-foot); }
.evcard__place::before { content: "· "; color: var(--text-foot); }
.evcard__body h3 {
  margin: 0; font-family: var(--font-cn-display); font-weight: 400;
  font-size: 21px; line-height: 1.4; color: var(--text-h1);
}
body[data-lang="en"] .evcard__body h3 { font-family: var(--font-en-display); }
.evcard__body p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-sub); }
.evcard__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.evcard__tags .tag { font-size: 11px; padding: 3px 9px; }
.evcard__more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ink-teal);
  letter-spacing: 0.02em;
}
.evcard__more svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.evcard:hover .evcard__more svg { transform: translateX(4px); }

/* Detail page ----------------------------------------------------------- */
.evdetail__hero {
  position: relative; width: 100%;
  aspect-ratio: 21 / 9; min-height: 300px; max-height: 500px;
  background: var(--ink-teal); overflow: hidden;
}
.evdetail__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.evdetail__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.evdetail__date {
  font-family: var(--font-cn); font-size: 13px; font-weight: 500;
  color: var(--qin-wood);
}
body[data-lang="en"] .evdetail__date { font-family: var(--font-en); }
.evdetail__place { font-size: 13px; color: var(--text-foot); }
.evdetail__title {
  font-family: var(--font-cn-display); font-weight: 300;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3;
  letter-spacing: 0.01em; color: var(--text-h1); margin: 0 0 16px;
}
body[data-lang="en"] .evdetail__title { font-family: var(--font-en-display); }
.evdetail__lead {
  font-size: 16.5px; line-height: 1.85; color: var(--text-sub);
  margin: 0 0 34px; padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}
.evdetail__body { font-size: 15.5px; line-height: 1.95; color: var(--text-body); }
/* 正文与照片组之间不再需要任何层叠或底衬 —— 照片组现在只是正文里的一格
   配图，不再有谁压在谁上面这回事。之前为实现「文字从照片上穿过」加的这一
   整套（提层、半透明纸底、背后虚化、行内盒子、列表特例）随穿越一并撤掉：
   客户明确要的是取消穿越，而且那层白底把照片盖住了，本来也不该留。 */

.evdetail__body p { margin: 0 0 18px; }
.evdetail__sub {
  font-family: var(--font-cn-display); font-weight: 500;
  font-size: 18px; color: var(--ink-teal);
  margin: 34px 0 14px; letter-spacing: 0.02em;
}
body[data-lang="en"] .evdetail__sub { font-family: var(--font-en-display); }
.evdetail__body .checklist { margin: 0 0 18px; }
.evdetail__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }

/* Events responsive ----------------------------------------------------- */
@media (max-width: 920px) {
  .evcard { grid-template-columns: 1fr; }
  .evcard__photo { aspect-ratio: 16 / 9; position: relative; }
  .evcard__photo img { position: absolute; }
  .evcard__body { padding: 22px 24px; }
  .evdetail__hero { aspect-ratio: 16 / 9; min-height: 220px; }
}
@media (max-width: 680px) {
  .evlist { gap: 18px; }
  .evcard__body { padding: 18px 20px; gap: 8px; }
  .evcard__body h3 { font-size: 19px; }
  .evcard__body p { font-size: 13.5px; }
  .evdetail__hero { aspect-ratio: 3 / 2; min-height: 190px; }
  .evdetail__lead { font-size: 15px; margin-bottom: 26px; padding-bottom: 22px; }
  .evdetail__body { font-size: 15px; }
  .evdetail__cta { margin-top: 34px; }
  .evdetail__cta .btn { flex: 1 1 auto; justify-content: center; }
}


/* ==========================================================================
   v4 — Program colour blocks (项目页 色块拼贴)
   --------------------------------------------------------------------------
   The three program lines are meant to read as Chinese-colour fields with
   strong contrast: big flat areas of saturated colour, uneven in size, with
   the label sitting inside the block. This replaces the uniform card grid,
   where all three lines looked identical and the page gave no visual signal
   of where one program ended and the next began.

   Palette rules the client set:
     · strong contrast, not pastel — each block is a solid, saturated field;
     · no colour repeats across the nine blocks (three per line, plus the
       2-block line 2), except where the same hue is deliberately revisited
       in the red/yellow/blue family.
   The nine colour values live on the block elements as inline custom
   properties (--blk) written by build.py, so the pairing of block to colour
   stays visible next to the block's text instead of being buried here.
   ========================================================================== */
.blocks {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* The two right-hand blocks are sized by their content plus a fixed band of
     colour, not by an equal share of the column. With `1fr 1fr` on a 420px
     grid they each grew to ~205px and the label sat alone at the bottom of a
     near-empty field. Row 1 is the tall showcase block; row 2 only needs to
     hold one line of text, so it stays short and the space above it goes to
     the first block — which is also what makes the collage read as uneven. */
  /* Row 2 now has to hold the name *and* the summary that used to live behind
     the tap, so its floor is set by the text, not by the layout: two lines of
     13.5px copy plus the heading, plus padding. */
  grid-template-rows: minmax(0, 1fr) minmax(190px, 0.78fr);
  min-height: 470px;
}
/* The hero block takes the whole left column; the remaining blocks stack down
   the right. This is the asymmetry in the reference layout — a large field
   beside two small ones. */
.blocks > :first-child { grid-row: span 2; }
/* Two-block lines: with only two blocks there is nothing to fill the lower
   right cell, so the pair stands side by side at equal height instead of
   leaving a hole in the grid. */
.blocks--two { grid-template-rows: minmax(200px, 1fr); min-height: 200px; }
.blocks--two > :first-child { grid-row: span 1; }

.blk {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 8px;
  padding: 26px 26px 24px;
  background: var(--blk, var(--ink-teal));
  color: var(--blk-fg, #FFFFFF);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
/* A faint vertical wash keeps a flat field from looking like a broken image
   at large sizes, and darkens the bottom enough for the text. */
.blk::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.22) 100%);
}

/* ---------- Photographic block ----------
   Some blocks carry a photograph instead of a flat field. The block's colour
   is kept, but demoted to a wash over the picture: the collage still reads as
   blocks of colour (which is the point of the section) while the tint tells
   you at a glance how many photos there are.

   The picture itself is darkened slightly before the wash goes on. Several of
   these photographs were shot under hall lighting and sit bright; thickening
   the colour veil enough to hold white type over them would bury the picture
   and take the block back to being a flat field. Dimming the photo once, up
   front, keeps both. */
.blk--photo { background: var(--blk); }
.blk--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--blk-img, none);
  background-size: cover;
  background-position: 50% 46%;
  opacity: 0.88;
  filter: brightness(0.84) saturate(0.94);
}
.blk--photo::after {
  background:
    linear-gradient(180deg,
      var(--blk) 0%,
      color-mix(in srgb, var(--blk) 62%, transparent) 34%,
      color-mix(in srgb, var(--blk) 30%, transparent) 62%,
      rgba(12,20,22,0.66) 100%);
}
/* Dark type over a photograph is the one case the rule above gets backwards:
   dimming the picture under the label also dims the label. Invert the veil —
   pale at the foot, the block's own colour holding the top — so 鹅黄 keeps
   ink type and still carries a picture. */
.blk--photo.blk--ink::after {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--blk) 76%, transparent) 0%,
      color-mix(in srgb, var(--blk) 58%, transparent) 36%,
      color-mix(in srgb, var(--blk) 34%, #FCFAF5) 64%,
      rgba(252,250,245,0.80) 100%);
}
/* ...and the photo underneath it is left at full strength, for the same
   reason in reverse: a dimmed picture under an already-pale veil turns grey. */
.blk--photo.blk--ink::before { filter: brightness(1.08) saturate(0.96); }
/* Hover lifts the picture slightly instead of the field — the same "this is
   openable" cue the flat blocks give with a brightness change. */
/* The picture still responds to a pointer, even though the block is no longer
   a control — it tells you the block is a picture of something real rather
   than a painted field, which is the only thing hovering now has to do. */
.blk--photo::before { transition: transform 600ms var(--ease); }
.blk--photo:hover::before { transform: scale(1.03); }

.blk__name {
  font-family: var(--font-cn-display); font-weight: 600;
  font-size: clamp(21px, 1.8vw, 30px);
  line-height: 1.36; letter-spacing: 0.015em;
  margin: 0; color: inherit;
}
/* The one-line summary, printed in the block. Sits below the name in the
   reading order and at the foot of the block, which is also where the scrim
   is deepest — the text lands on the darkest part of the picture.
   `inherit` rather than a fixed grey: on 鹅黄 the whole block runs ink type
   and a neutral grey would sit nowhere. */
.blk__desc {
  font-family: var(--font-cn); font-size: 13.5px; line-height: 1.74;
  margin: 0; color: inherit; opacity: 0.88;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
body[data-lang="en"] .blk__desc { font-family: var(--font-en); font-size: 13px; line-height: 1.68; }
/* Ink type gets the opposite shadow — the same halo the pale heroes use, so
   dark text stays off a lightened picture instead of greying into it. */
.blk--ink .blk__desc, .blk--ink .blk__name {
  text-shadow: 0 1px 0 rgba(252, 250, 245, 0.55);
}
.blk__num {
  position: absolute; top: 20px; left: 26px;
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; opacity: 0.62;
}
/* English headings run longer than the Chinese ones, so they are set smaller
   to stay on two or three lines instead of overflowing the block. */
body[data-lang="en"] .blk__name { font-family: var(--font-en-display); font-weight: 500; font-size: clamp(18px, 1.45vw, 24px); }

@media (max-width: 920px) {
  /* Stack: every block full width, hero first. Uneven block sizes read as a
     mistake once they are stacked in a single column. */
  .blocks { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .blocks > :first-child { grid-row: auto; }
  /* Stacked, the block is as wide as the screen, so the summary runs to two
     or three lines instead of one: the old 150px floor left the copy touching
     the padding. */
  .blk { padding: 22px 22px 20px; min-height: 172px; }
  .blk__num { top: 17px; left: 22px; }
}
@media (max-width: 680px) {
  .blk { min-height: 172px; padding: 20px 20px 18px; }
}

/* ==========================================================================
   v4 — Reel (大师班课程回顾 轮播)
   --------------------------------------------------------------------------
   A magazine-style feature: one large photo at a time, a headline overlaid
   bottom-left, dots to page through, and a "see all" pill. Photos advance on
   their own and the block pauses while the pointer is over it, so it reads as
   a highlight reel rather than something you have to operate.

   Reuses the homepage carousel's plumbing — the JS keys off .slide /
   .carousel__dot, so the show()/next()/autoplay loop is shared and there is
   only one carousel behaviour to maintain.

   Slides that are not active keep `loading="lazy"`, so a slide nobody has
   reached yet has not been fetched — that is by design (off-screen photos
   should not cost bytes). Only the first slide is eager.
   ========================================================================== */
.reel {
  position: relative; background: var(--ink-teal); border-radius: 4px; overflow: hidden;
  /* Client feedback: at full container width the block swallowed the whole
     screen — "缩一半儿都行". Capped and centred, so the section still
     breathes around it. */
  width: min(100%, 620px);
  margin-inline: auto;
}
/* 620px at 16:5 gives a 194px band, which is a strip rather than a feature —
   the caption alone is three lines. 3:2 lands it at 413px: still well under
   the 480px that the client read as "太大" on a laptop, but tall enough to
   hold a real photograph. max-height keeps very wide monitors (where --wrap
   runs to 1840px) from growing it back. */
.reel__viewport {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 240px;
  max-height: 460px;
}
.reel__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}
.reel__slide.is-active { opacity: 1; visibility: visible; }
.reel__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  /* The placeholder art is a centred curve; a slow drift keeps it from
     looking frozen without drawing attention. */
  transform: scale(1.02);
  transition: transform 9000ms linear;
}
.reel__slide.is-active img { transform: scale(1.09); }
/* The veil has to reach far enough left to carry white type, but a strong
   left-to-right wash turned the whole photo into a dark smear — at 16:9 the
   frame is wide, and 74% at x=0 covered a third of it. Fade the corner rather
   than the half: opaque only in the first ~10%, then fall away fast. */
.reel__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,24,26,0.74) 0%, rgba(13,24,26,0.40) 26%, rgba(13,24,26,0.12) 48%, rgba(13,24,26,0) 70%),
              linear-gradient(0deg, rgba(13,24,26,0.62) 0%, rgba(13,24,26,0.24) 24%, rgba(13,24,26,0) 54%);
}
/* Caption pinned to the bottom-left corner, and deliberately narrow: it is a
   third of the frame, not a full-width bar, so the photo still reads as the
   subject. (Reference layout.) */
.reel__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  max-width: min(70%, 520px);
  padding: 0 30px 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 11px;
}
.reel__eyebrow {
  font-family: var(--font-en); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--apricot);
}
.reel__title {
  font-family: var(--font-cn-display); font-weight: 400; color: #F7F4EE;
  font-size: clamp(23px, 2.1vw, 32px); line-height: 1.32; margin: 0;
  /* One line per title. The Chinese frames run 9–10 characters, so 22ch
     holds them at every width the caption column allows; 15ch was breaking
     「大师班实录 · 第一期」after the interpunct and leaving 「期」 alone. */
  max-width: 22ch; text-shadow: 0 1px 22px rgba(0,0,0,.34);
}
.reel__text {
  color: rgba(247,244,238,.82); font-size: 14.5px; line-height: 1.7;
  margin: 0; max-width: 34ch;
}
.reel__cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 24px; border-radius: 999px;
  background: rgba(247,244,238,.94); color: var(--ink-teal);
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reel__cta:hover { background: #fff; transform: translateY(-1px); }
.reel__cta:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
/* Dots sit at the bottom-right, level with the CTA pill at bottom-left —
   the reference layout. The base .carousel__dots rule pins them bottom-LEFT
   (that default was written for the homepage banner, whose caption is also
   left-aligned there), so right/bottom/left all have to be restated here or
   the dots land on top of the button. */
.reel .carousel__dots {
  position: absolute; left: auto; right: 30px; bottom: 32px; z-index: 4;
}
.reel .carousel__dot { border-color: rgba(247,244,238,.65); }
.reel .carousel__dot.is-on { background: #F7F4EE; border-color: #F7F4EE; }
/* Arrows. The reel shares the homepage carousel's JS, which already binds
   [data-prev] / [data-next]; until now the markup simply had no buttons, so
   the only way through the three frames was the dots. Same 20px inset as the
   hero would put them over the caption text — the reel is only 620px wide, so
   they sit tighter to the edge and stay inboard of it. */
/* The buttons carry the shared direction classes, not reel-specific ones —
   an earlier pass keyed these rules off `.reel__nav--next`, which no element
   has, so the left:14px above applied to *both* buttons and the pair stacked
   on the left edge. Each edge is now stated in full (auto on the opposite
   side) so neither rule depends on source order to win. */
.reel .carousel__nav--prev { left: 14px; right: auto; }
.reel .carousel__nav--next { left: auto; right: 14px; }
.reel .reel__nav {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.6);
  opacity: .9;
}
.reel .reel__nav:hover { opacity: 1; background: var(--ink-teal); color: #fff; }
.reel .reel__nav svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  /* On a phone the reel is the full column width and the caption runs right
     across it; small arrows keep clear of the text at either side. */
  .reel .reel__nav { width: 32px; height: 32px; opacity: .92; }
  .reel .reel__nav svg { width: 15px; height: 15px; }
}
@media (max-width: 560px) {
  /* Below ~560px the frame is short enough that the caption occupies the
     whole lower half, so vertically centred arrows would sit on top of the
     title (measured: the left arrow overlapped the first line at 390px).
     They move up to the top-left as a pair — the dots already sit at the
     top-right there, so nothing overlaps. */
  .reel .reel__nav { top: 14px; transform: none; }
  .reel .carousel__nav--prev { left: 14px; right: auto; }
  .reel .carousel__nav--next { left: 58px; right: auto; }
}
/* The CTA shares the caption column rather than being absolutely placed, so
   a long title pushes it down instead of it landing on top of the text. */
.reel .reel__cta { align-self: flex-start; }
@media (max-width: 920px) {
  /* Same reduction as the desktop rule: 4:3 gave a 320px-tall block on a
     390px phone, 16:9 brings it to ~219px. 8:3 would be 146px — too thin to
     put a heading on. */
  .reel__viewport { aspect-ratio: 16 / 9; min-height: 215px; max-height: none; }
  .reel__cap {
    max-width: none; padding: 0 22px 20px; gap: 9px;
  }
  .reel__title { font-size: 22px; max-width: 18ch; }
  .reel .reel__cta { padding: 10px 20px; }
  /* The dots default to the bottom-right corner of the whole reel, where on
     a narrow screen they would sit inside the caption's second line. Lift
     them clear of the text instead. */
  .reel .carousel__dots { right: 20px; bottom: auto; top: 20px; }
  .reel__text { display: none; }   /* keep the caption to two lines on phones */
}
@media (prefers-reduced-motion: reduce) {
  .reel__slide img, .reel__slide.is-active img { transform: none; transition: none; }
}

/* ---------- Footer responsive ----------
   4 columns → 2 → 1. The brand column keeps the full width at every size
   because its org name is long; the three link columns share what is left. */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer__col--brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bar { margin-top: 40px; }
  .footer__bar-in { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Cross-link strip (.sibling) ----------
   The cards that point at sibling standalone pages — appended to every
   resource page, each event-category page, and 协会缘起, so no page is a
   dead end. Three across, stepping down to one on phones. */
.sibling-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.sibling {
  display: flex; flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--qin-wood);
  border-radius: var(--radius-lg);
  color: inherit; text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-top-color var(--dur) var(--ease);
}
.sibling:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(31,58,61,0.10);
  border-top-color: var(--ink-teal);
}
.sibling__icon { display: block; width: 30px; height: 30px; color: var(--qin-wood); }
.sibling__icon svg { width: 100%; height: 100%; display: block; }
.sibling h3 { margin: 18px 0 8px; font-size: 18px; color: var(--ink-teal); line-height: 1.4; }
.sibling p { margin: 0 0 20px; font-size: 13.5px; color: var(--text-sub); line-height: 1.75; }
.sibling__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--qin-wood);
}
.sibling__more svg { width: 15px; height: 15px; }

/* ---------- 资源入口卡顶部照片 ----------
   .sibling 的内边距是 30px/28px，比首页那批卡片大，负边距要跟着给到 28px
   才能让照片左右顶到卡边。顶上那条 3px 的琴木色边是卡的 border-top，照片
   从它内侧开始，所以上边距写 0 而不是负值 —— 写成负值会把照片推到边框上、
   把那条色边盖掉。圆角取卡圆角减 3px，正好贴着边框内侧转过去。 */
.sibling--photo { padding-top: 0; }
.sibling--photo .sibling__photo {
  display: block; margin: 0 -28px 18px;
  border-radius: 3px 3px 0 0; overflow: hidden;
  background: rgba(31, 58, 61, .06);
}
.sibling--photo .sibling__photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s var(--ease);
}
.sibling--photo:hover .sibling__photo img { transform: scale(1.035); }
/* 照片顶掉之后，图标不用再靠 18px 的外边距跟标题分开 */
.sibling--photo .sibling__icon { margin-top: 2px; }

@media (max-width: 1024px) { .sibling-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .sibling-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Photographs inside an event write-up ----------
   Real documentation of a past event, captioned.

   These used to run the full width of the prose column, which made each one
   796px wide and up to 531px tall on a laptop — bigger than the paragraphs
   around it, and with the rounded corners and drop shadow reading as a card
   dropped into the page rather than a photograph the article is talking
   about. Pulled back to about two thirds of the column and centred: the
   white space either side is what makes it a figure *in* the article. */
.evdetail__fig {
  margin: 34px auto 38px;
  max-width: 62%;
}
.evdetail__fig img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(26,26,26,0.08);
  /* A wash of the house teal plus a hairline. These photographs were taken in
     different rooms under different light; without something pulling them
     together, a run of them reads as a pile of snapshots. The tint is faint
     enough to leave the picture alone and strong enough that the figures
     belong to the same document. */
  border: 1px solid var(--hairline);
}
.evdetail__fig::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(31,58,61,0.05) 0%, rgba(31,58,61,0.13) 100%);
  pointer-events: none;
}
.evdetail__fig { position: relative; }
/* Narrow screens have no room to give away — full width but for the gutters. */
@media (max-width: 920px) {
  .evdetail__fig { max-width: 100%; margin: 28px 0 32px; }
}
.evdetail__fig figcaption {
  margin-top: 10px;
  font-size: 12.5px; line-height: 1.7; letter-spacing: .04em;
  color: var(--text-sub);
  text-align: center;
}

/* --------------------------------------------------------------------------
   照片组合 · 两张横向并列，各自滚动 (evpair)
   --------------------------------------------------------------------------
   客户要求活动页放「两个照片的组合，横向并列，每个都是滚动」。做法是给每
   张照片一个比它矮的窗口（56% 视口高度），图片在窗口里缓慢上下平移，两张
   用 9 秒的相位差错开，所以任何时候看过去两张都不在同一个位置。

   纯 CSS 动画：关了 JS 照常动，而且尊重 prefers-reduced-motion —— 系统设
   「减少动态效果」时两张都静止居中，只是普通的两张并排照片。

   平移幅度只有 12%，速度 18 秒一个来回：能让页面有呼吸感，但不会喧宾夺主
   变成幻灯片。
   -------------------------------------------------------------------------- */
/* Held in the middle of the screen (置中) — see _photo_pair for the markup.
   As this wrapper scrolls past, the pair stays put at the centre of the
   screen while everything else carries on moving: the text *above* it slides
   up out of view and the text *below* it rises into view and then slides up
   behind it (z-index below), so the photographs remain readable the whole way
   through. Pure CSS; nothing leaves the flow, so where sticky is switched off
   (further below) the pair simply sits in the text where it always did.

   Two things worth knowing, both learned the hard way:

   · The travel has to be real height on the wrapper, not padding. Sticky can
     only move inside its parent's *content* box, and padding is outside it —
     with `padding-bottom` the pair had nowhere to go and never budged.

   · It pins with `top`, and where that line sits decides where on the screen
     the pair hangs. `top: calc(100vh - var(--pair-h))` parks it on the bottom
     edge (the earlier 置底); `top: calc((100vh - var(--pair-h)) / 2)` parks it
     dead centre, which is what is wanted now.

   · The travel costs visible space. Whatever room the pin does not use shows
     as this wrapper's gradient above the pair. Kept short it reads as
     deliberate space around the photographs; longer and the reader watches a
     blank screen scroll past — measured at 52vh it was a dead white block
     480px tall. The faint gradient keeps what is left looking intended.
  · The pin's travel is tied to the text, not to the screen. It needs to be
    exactly long enough for the write-up below to rise from under the pair
    to above it — one screenful was a convenient guess and it overshot: on a
    page whose article is shorter than the viewport the pair unpinned with
    509px still left to scroll, and that stretch showed nothing but the
    wrapper's gradient (the "空白" that replaced the old 34vh problem with a
    new one).

  上面这些只作记录：钉住和穿越都已经取消了，见下面那条。 */

/* 钉住 + 文字穿越：试过两轮，最终取消（客户 2026-10-10 决定）。
   过程记在这里，免得有人再走一遍。

   第一轮以为「钉住 + 给足行程」文字就会穿过去。实测重叠恒为 0px：
   sticky 解除的瞬间，后一段文字恰好停在照片组的下边缘，此后两者一起
   随页面移动，相对位置再不会变 —— 行程只买时间，不买高度。

   第二轮用负下外边距把后文拉进照片组的行程区，文字确实升上去了
   （实测重叠 88px），但只能升到「后文总高度」那么多。活动详情页照片
   之后的正文往往只有一两百字，抽到头就停，照片刚过到一半就不动了 ——
   客户看到的「过一半就停那了」正是这个。要让它整张穿过去，得保证每页
   照片后面都有大半屏正文，等于拿内容去迁就动效。

   所以取消。照片组回到正文中间原本的位置，和手机端一直以来的表现一致
   （手机端从来没开过钉住）。安静、稳定，也不用再维护那两个由 JS 量出来
   的数字。 */

.evpair-block {
  /* 没有钉住，就没有行程、没有抽取、没有渐变垫底 —— 只剩上下两段正常的
     段间距，照片组安静地待在正文中间。 */
  margin: 38px 0 42px;
}
.evpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0;
  /* Each window takes the height of the photograph showing in it, and the two
     columns will not usually agree — a 3:2 shot next to a 16:9 one differs by
     a sixth of its height. `align-items: start` keeps each column to its own
     size; without it the grid stretches both to the row's height and the
     shorter frame is quietly padded back out to match, which puts the
     letterboxing right back in through the side door. */
  align-items: start;
}
.evpair__item { margin: 0; }
.evpair__win {
  position: relative; display: block; overflow: hidden;
  /* 同一组照片共用一个画框比例 —— build.py 按这一组里最宽与最窄的那两张取
     几何中项算出来（2026-10-12 改）。

     改之前是「窗口跟着当前那张照片走」：每格都等于展示中照片自己的形状，
     一张不裁。代价是两格高度天然不等（这次四张是 1.42 / 1.5 / 1.5 / 1.78，
     排出来左边 387×272、右边 387×217，差 25%），客户看到的就是「一大一小
     一大一小」。现在改成全组一个比例，四张一样大。

     代价是外层会有裁切。为了尽量少裁：比例取几何中项，是让裁得最多的那张
     留得最多的取法（这次最多只裁一侧 10.6%，四张面积保留 89%–94%）；焦点
     由 tools/photo_focus.py 用人脸识别算出来写死，检测到的人脸一张都没出框。

     aspect-ratio 的过渡留着：只有一格的时候、或者将来某组只有一张照片，
     比例不会变，这条不起作用；变了的时候仍然平滑。

     历史留档（为什么不能回头）：更早试过两种「全局锁死比例」都不行 —— 锁
     3:2 会把全景图两侧的人裁掉；锁 16:9 加 contain，非 16:9 的图会在格子
     中间缩成一条。客户两次反馈「截完没有人」，根因都是比例与照片无关地
     锁死；现在的比例是从这组照片自己算出来的，偏离最小。 */
  aspect-ratio: var(--win-ar, 1.5);
  transition: aspect-ratio 620ms var(--ease);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: 0 2px 10px rgba(26,26,26,0.08);
  background: var(--xuan-white);
}
/* Each window holds two or more pictures that cross-fade in place. The
   alternation is driven by the site's shared carousel script on .slide /
   .is-active — no second carousel implementation. */
.evpair__slide.evpair__slide {
  position: absolute; inset: 0;
  /* cover + 每张自己的焦点（写在 style 里的 --focus）：
     窗口已经被锁成整组统一的比例了，用 contain 就会让比例不合的那张在框里
     留白边 —— 看着还是「大小不一」，只是换成留白的形式。cover 填满整个框，
     四张完全一样大；损失的那点边（本次最多一侧 10.6%）用 --focus 控制留哪边，
     人脸检测算出来的焦点保证人不被裁掉。
     规则本身在下面 .evpair--even 那一条 —— 只有 build.py 判定「这组照片比例
     够接近」时才套上；差得远的组合保留上面那个 contain，一张不裁。

     The picture carries the site's shared .slide class so the shared
     carousel script drives it, and that class is written for the home-page
     banner — `display: grid; min-height: 440px`. Both have to be undone
     here: the min-height alone forced every frame to 440px tall inside a
     218px window, and the picture came out as a thin strip along the bottom
     edge. `inset: 0` plus an explicit 100% is what actually pins it to the
     window.

     The class is doubled in the selector because .slide.is-active is two
     classes and the plain single-class rule loses to it — same specificity
     game the rest of this sheet plays. */
  display: block;
  width: 100%; height: 100%;
  min-height: 0;
  /* 默认是 contain：比例差得多的那组照片（见 build.py 的 EVEN_SPREAD）走的
     还是这一条 —— 窗口跟着每张照片自己的形状，一张不裁。下面那条才是统一
     画框的配套。 */
  object-fit: contain;
  opacity: 0; visibility: hidden;
  transition: opacity 800ms var(--ease), visibility 800ms var(--ease);
}
/* 这一组的照片比例差不多，build.py 给它们一个统一画框（class evpair--even），
   于是每张都填满画框 —— 四张一样大，不再是「一大一小」。
   裁掉的那点边由 --focus 决定留哪头，数值是人脸识别算出来的（见 build.py
   里 _SLIDE_FOCUS 的注释），没有记录的照片默认居中。 */
.evpair--even .evpair__slide {
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.evpair__slide.evpair__slide.is-active {
  display: block; opacity: 1; visibility: visible;
}
/* 与正文单张照片 (.evdetail__fig) 同一层淡青水洗，让并排这两格和文章里的
   单张看起来是同一组照片。在 .evpair__win 上而非 slide 上，否则每张图片各
   洗一道，切换时深浅会跳。 */
.evpair__win::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(31,58,61,0.05) 0%, rgba(31,58,61,0.13) 100%);
}
@media (prefers-reduced-motion: reduce) {
  /* 还是两栏、还是各两张，只是不淡入淡出，改成立刻切换 —— 要求「别动」的人
     什么都不会看到动。 */
  .evpair__slide { transition: none; }
  /* 换图时窗口的高度变化也得一起停：对要求静止的人来说，窗口在眼前长高变矮
     本身就是动。形状照旧跟着照片走，只是瞬间换过去。 */
  .evpair__win { transition: none; }
}
@media (max-width: 760px), (max-height: 620px) {
  /* 手机上两栏并排会把照片压得太小，改成上下堆叠，各自仍是自己的形状。
     （原来这里还有一条「关掉钉住」的规则，钉住取消后一并删了。） */
  .evpair { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================================
   Chinese-colour wash on the plain white cards
   --------------------------------------------------------------------------
   首页下方的栏目块（四大核心宗旨、三大项目方向）以及各页底部的「其他…」索引
   卡原先一律纯白，整片看下去发闷。现在每张卡覆一层极淡的中国色。

   客户最初要的是「上部（含标题和序号）留白，下面着色，透明度要高」，看样稿后
   改口：标题一并染进来，只留序号在上面 —— 「不然它有点低，但不超过那个序号」。
   再往后一步（2026-10-12）：左上这块结构说不清的卡，统一按「留三分之一白」算。

   于是每一格卡的白区这样定：
     有序号的卡       124px —— 序号优先，色不许压到数字上（序号底边实测 122）
     有图标、无序号   33%
     无图标、无序号   33%
     底部索引卡       33%
   也就是说：除了「有序号」那一种要让着序号，其余一律留三分之一白。

   图标那一头是权衡过的：首页教学资源卡高 192，三分之一是 64px，而图标的
   墨迹实测一直到第 75 行 —— 严格三分之一会让图标下缘约三分之一起在淡彩里。
   2026-10-12 给客户看过两个方案的实测数字后，客户选了严格三分之一（「改」），
   所以这里不再为图标让路。会沾到色的是图标最下面一截线条，不是文字。

   有序号那类的 124px 与 33% 本来就接近（卡高 256 时 124 约占 48%，略多于
   三分之一），所以放一起看不打架。

   为什么用固定像素而不是百分比定位那条分界线：
   卡片上部是高定的结构（内边距 + 图标 [+ 序号] + 标题）。英文标题在个别视口会
   折成两行（实测 1024 与 360 等处），但折行只往下长，标题顶边不动；卡片总高
   倒是从 194px 到 294px 不等，若用百分比，同一条线在矮卡和高卡上会相差
   40px，必然有一边压到序号或图标上去。所以按像素定。

   为啥要用 :has() 区分而不是直接给卡片加个类名：同名造型在有序号和无序号的
   页面上共用一套 HTML 字符串（build.py 里二十来处），改类名要动二十多处生成
   代码。而 :has() 只有一行，且降级安全 —— 老浏览器认不出 :has() 就沿用上面
   --wash-top 的兜底值（128px，正是改动前的老位置），看到的是改动前的样子，
   不会错位。

   上色区（标题那一截往下）平均约 14%，正是客户从样稿里挑的那档。

   五色按卡片在网格里的次序轮转，同一区块里不会撞色。杏黄与景泰蓝本就是
   本站色板里的 --apricot 与 --btn-donate-bg，藕粉是 --rouge 的浅化版，
   算不上新引入颜色。
   ========================================================================== */
:root {
  /* RGB 通道值，好塞进 rgba() 里单独调透明度 */
  --cn-huang: 232, 196, 106;   /* 杏黄 */
  --cn-fen:   223, 167, 174;   /* 藕粉 */
  --cn-qing:  143, 179, 166;   /* 竹青 */
  --cn-lan:    91, 140, 168;   /* 景泰蓝 */
  --cn-bai:   217, 230, 230;   /* 月白 */
}

.card, .sibling {
  /* 默认走杏黄，网格里的卡由下面的轮转规则覆盖 */
  --card-tint: var(--cn-huang);
  --card-edge: #826E3B;
  /* 兜底值：认不出 :has() 的浏览器停在标题下面，也就是改动前的老样子 */
  --wash-top: 128px;
  background-color: var(--surface-card);
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0)                      0,
      rgba(255, 255, 255, 0)          var(--wash-top),
      rgba(var(--card-tint), 0.10)    calc(var(--wash-top) + 14px),
      rgba(var(--card-tint), 0.20)               100%);
}
/* 白区收到哪儿，看标题前面最后一个元素是什么。
   渐变只留 14px 的过渡段：几乎每像素只差 0.2 个色阶，肉眼看不出那条边，
   又能让颜色在开始染的第一行文字上刚好走满。
    兜底值上面给了，老浏览器到这里为止。 */
/* 除了要让着序号的那一种，其余一律三分之一。 */
.card:has(.card__num)                        { --wash-top: 124px; }
.card:not(:has(.card__num))                  { --wash-top: 33%; }
.sibling                                     { --wash-top: 33%; }

/* 五色轮转 —— 只认网格里的直接子项，网格外的单张卡沿用上面的杏黄 */
.grid > .card:nth-child(5n + 1),
.sibling-grid > .sibling:nth-child(5n + 1) { --card-tint: var(--cn-huang); --card-edge: #826E3B; }
.grid > .card:nth-child(5n + 2),
.sibling-grid > .sibling:nth-child(5n + 2) { --card-tint: var(--cn-fen);   --card-edge: #88666A; }
.grid > .card:nth-child(5n + 3),
.sibling-grid > .sibling:nth-child(5n + 3) { --card-tint: var(--cn-qing);  --card-edge: #5D746C; }
.grid > .card:nth-child(5n + 4),
.sibling-grid > .sibling:nth-child(5n + 4) { --card-tint: var(--cn-lan);   --card-edge: #4A7188; }
.grid > .card:nth-child(5n + 5),
.sibling-grid > .sibling:nth-child(5n + 5) { --card-tint: var(--cn-bai);   --card-edge: #6F7575; }

/* 顶部 3px 色条与序号跟着卡片走同一色 —— 原来一律琴木赭石，换了底色之后
   再统一赭石就认不出哪张是哪色了。
   用 .card.card--accent 而不是 .card--accent：后者特异性 (0,1,0) 会被
   .card:hover 的 border-color 简写压掉，鼠标一悬停色条就变灰。 */
.card.card--accent { border-top-color: var(--card-edge); }
.sibling           { border-top-color: var(--card-edge); }
.card__num         { color: var(--card-edge); }

/* ---------- 首页栏目卡的两种形态 ----------
   四处栏目卡原本共用同一个模子：白卡 + 图标 + 标题 + 一句话 + 底下淡彩。
   连着三屏读下来是一个节奏，滚动时没有起伏。这里只动其中两处的「形态」，
   配色与淡彩一律沿用上面那套五色轮转，不另调色 —— 免得刚定下来的颜色
   又要重看一遍。
     一、「我们做什么」：四项宗旨是固定分类，不链接、也不该看着像能点。
        所以整块撤掉方框，改成上方一条起伏的曲线，四个圆点错落骑在曲线上
        （01→04 依次往前跃），标题与说明落在圆点下方的同一条基线上。
     二、「教学资源中心」：四列拆成 2×2 的横条。图标在左、文字在右，
        底下横一条弦，鼠标划过时弦亮起、图标轻颤，像被拨了一下。
        四张都是真链接，右端再补一个箭头。 */

/* 一、曲线上的四个圆点 */
.pillarflow { position: relative; }
/* 曲线：横向拉满、纵向按 120px 定高。preserveAspectRatio="none" 只拉横轴，
   所以路径上每个点的 y 就是最终像素值；四个圆点所在 x 取四等分列的中心
   （1/8、3/8、5/8、7/8），故列表用 column-gap:0 + 内边距，列宽才正好四等分。 */
.pillarflow__arc {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%; height: 120px; overflow: visible; pointer-events: none;
}
.pillarflow__arc path {
  fill: none; stroke: var(--qin-wood); stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pillarflow__halo { stroke-width: 7; opacity: .10; }
.pillarflow__line { stroke-width: 1.5; opacity: .42; }

.pillarflow__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 0; row-gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.pillarflow__item { padding: 0 14px; text-align: center; }
/* 圆点所在的这条「杆」与曲线同高，圆点在杆里垂直居中后再按 --lift 上下挪，
   挪完正好落在曲线上：杆高 120，中心 60，曲线在这四列的 y 分别是
   74.4 / 40.8 / 67.2 / 48，减 60 即 14 / -19 / 7 / -12。 */
.pillarflow__stem { display: block; position: relative; height: 120px; }
.pillarflow__node {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin-left: -36px; margin-top: -36px;
  border-radius: 50%;
  background-color: var(--surface-card);
  background-image: linear-gradient(to bottom, rgba(255,255,255,.72), rgba(var(--card-tint), .34));
  border: 1px solid rgba(var(--card-tint), .70);
  box-shadow: 0 2px 5px rgba(26,26,26,.05), 0 12px 22px -12px rgba(var(--card-tint), .75);
  transform: translateY(var(--lift, 0px));
  display: flex; align-items: center; justify-content: center;
}
.pillarflow__node .card__icon {
  width: 32px; height: 32px; margin: 0; color: var(--card-edge);
}
/* 序号：贴在圆点右上角的小圆牌 */
.pillarflow__num {
  position: absolute; top: -5px; right: -7px;
  min-width: 25px; height: 25px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--card-edge); color: var(--card-edge);
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; line-height: 1;
}
.pillarflow__item h3 {
  font-size: 18px; margin: 0 0 8px;
}
.pillarflow__item p {
  font-size: 14.5px; color: var(--text-sub); margin: 0 auto; max-width: 260px;
}
/* 五色轮转跟着上面的卡片走同一套色 */
.pillarflow__item { --card-tint: var(--cn-huang); --card-edge: #826E3B; }
.pillarflow__item:nth-child(5n + 2) { --card-tint: var(--cn-fen);  --card-edge: #88666A; }
.pillarflow__item:nth-child(5n + 3) { --card-tint: var(--cn-qing); --card-edge: #5D746C; }
.pillarflow__item:nth-child(5n + 4) { --card-tint: var(--cn-lan);  --card-edge: #4A7188; }
.pillarflow__item:nth-child(5n + 5) { --card-tint: var(--cn-bai);  --card-edge: #6F7575; }
/* 两列以下时曲线对不上圆点，收掉曲线、圆点回到杆中线 */
@media (max-width: 900px) {
  .pillarflow__arc { display: none; }
  .pillarflow__list { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .pillarflow__node { transform: none; }
}
@media (max-width: 560px) {
  .pillarflow__list { grid-template-columns: 1fr; }
  .pillarflow__stem { height: 88px; }
}

/* 二、琴弦横条 */
.grid--chord { grid-template-columns: repeat(2, 1fr); }
.grid--chord > .card {
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: 52px 1fr 22px;
  column-gap: 20px; row-gap: 6px;
  align-items: center;
  padding: 24px 28px 32px;
  text-decoration: none; color: inherit;
}
.grid--chord .card__icon {
  grid-row: 1 / 3; grid-column: 1; margin: 0;
  transition: transform .45s var(--ease);
}
.grid--chord .card h3 { grid-column: 2; grid-row: 1; margin: 0; }
.grid--chord .card p  { grid-column: 2; grid-row: 2; margin: 0; }
/* 右端的箭头：整张卡都是链接，箭头只是把这件事挑明 */
.card__go {
  grid-row: 1 / 3; grid-column: 3;
  justify-self: end; align-self: center;
  font-size: 17px; line-height: 1; color: var(--card-edge);
  opacity: .5; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.grid--chord > .card:hover .card__go { opacity: 1; transform: translateX(4px); }
/* 弦 */
.grid--chord > .card::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 14px;
  height: 1px; background: var(--card-edge); opacity: .3;
  transition: opacity .45s var(--ease), transform .5s var(--ease);
}
.grid--chord > .card:hover::after { opacity: 1; transform: scaleY(2.5); }
.grid--chord > .card:hover .card__icon { transform: translateX(3px); }

/* 三、浮起来的「合作方式」
   这一块不再跟着 hover 上下弹：它本来就不是跳转入口，动来动去反而像按钮。
   改成静态抬高 + 底下压一团散开的投影，读起来是「托在页面上」而不是「等着被点」。 */
/* 「与我们同行」右栏的「合作方式」。
   原先是整块抬起来 12px、压三层阴影、底下再画一团投影 —— 客户说这样「一凸起
   显得都块块的不好看」。现在改成平铺：与左栏文字同一基线，只留一道细边框和
   一点极轻的阴影，让它读起来是同一段内容的一部分，而不是另一块浮起来的板。 */
.card--float {
  position: relative;
  border-color: var(--hairline-strong);
  background-color: var(--surface-card);
  box-shadow: 0 1px 2px rgba(26,26,26,.04);
}
/* 不跟着 .card:hover 往上跳，保持与左栏齐平 */
.card--float:hover {
  transform: none;
  border-color: var(--hairline-strong);
  box-shadow: 0 1px 2px rgba(26,26,26,.04);
}
/* 既已平铺，落在页面上的那团影子和顶沿高光边都不要了 */
.card--float::after,
.card--float::before { content: none; display: none; }
@media (max-width: 760px) {
  .card--float { margin-bottom: 0; }
}
/* 上面那条 2 列会盖过通用的单列断点，窄屏要自己退回来 */
@media (max-width: 680px) {
  .grid--chord { grid-template-columns: 1fr; }
}

/* ============================================================
   首页：合并介绍区块 + 整体收紧
   ------------------------------------------------------------
   客户反馈首页「栏目有点多」。原结构里「我们做什么」（四项宗旨，带一条 120px
   高的弧线动画）和「三大项目方向」（三张卡）是两个各自带大标题的整屏区块，
   各占 96px 上下留白 —— 加起来近一屏半，但其实都只是介绍。

   先做过一版：合成一个 `#what-we-do`，四宗旨压成一排小格、项目方向用小卡紧随。
   客户 2026-10-15 看后说「宗旨就不要了，重复了也没有用」—— 四项宗旨与「三大
   项目方向」讲的是同一件事，programs 页上还有完整版。所以整个区块连同
   .pillars 一族样式一并删除：项目方向的三张卡交给 programs 页承担，首页留
   活动预告与「音乐多元」两块。

   同时首页整体收紧：区块留白 96 → 58px，标题与卡片同步缩小。用
   body[data-hero="on"] 锁定，只影响首页，内页保持原节奏。
   ============================================================ */

/* ---- 首页整体收紧 ---- */
body[data-hero="on"] main > .section { padding: 58px 0; }
body[data-hero="on"] main > .section--tight { padding: 46px 0; }
body[data-hero="on"] .section-head { margin-bottom: 32px; }
body[data-hero="on"] .section-title { font-size: clamp(22px, 2.6vw, 31px); margin-bottom: 11px; }
body[data-hero="on"] .section-lead { font-size: 15.5px; max-width: 58ch; }
body[data-hero="on"] .eyebrow { margin-bottom: 13px; }
body[data-hero="on"] .card { padding: 26px 22px; }
body[data-hero="on"] .card__icon { width: 34px; height: 34px; margin-bottom: 13px; }
body[data-hero="on"] .card--sm { padding: 22px 20px; }
body[data-hero="on"] .card--sm .card__icon { width: 30px; height: 30px; margin-bottom: 10px; }
body[data-hero="on"] .card--sm h3 { font-size: 15.5px; margin-bottom: 7px; }
body[data-hero="on"] .card--sm p { font-size: 13.5px; line-height: 1.7; }

/* 首页「音乐多元」的对照图：宽屏只占内容区 70%（客户要求压缩），
   窄屏满宽 —— 否则 390px 下只剩 245px，五线谱上的字就看不清了。 */
.music-fig { margin: 0 auto; width: 70%; }
@media (max-width: 680px) {
  .music-fig { width: 100%; }
}

/* ==========================================================================
   2026-10-15 · 首页照片化：把客户发来的实拍照片接进空白区块
   ==========================================================================
   客户第一批 5 张原片（全部 3:2 横版 2400×1600）经 tools/photo_style.py
   统一处理：饱和度 ×0.82、色温往 5400K 暖白偏、柔光比，压成 webp
   （单张 61~97KB）。下面几条是它们在版面上的落位规则。

   分配（按内容语义配对，不是随便塞）：
     p1 五人齐奏   → 三大项目方向 · 文化交流与公益演出
     p3 教室课堂   → 三大项目方向 · 师资教育与培训
     p5 独奏侧影   → 三大项目方向 · 古筝美育与社区推广
     p2 三角梅与筝 → 关于我们 · 通栏氛围图
     p4 绿衣演唱   → 与我们同行 · 形象图
   Hero 那三张大图按客户要求**不动**。
   ------------------------------------------------------------------------ */

/* ---------- 卡片顶部照片（三大项目方向）----------
   卡本身有 22px/20px 内边距，要让照片铺满卡顶就得用负边距把左右和顶边
   吃回去，只留下方 16px 与文字隔开。图用 aspect-ratio 锁 3:2，不管卡被
   拉多宽都不会变形；再叠 object-fit:cover 兜底。 */
.card--photo { padding-top: 0; }
.card--sm.card--photo { padding-top: 22px; }
.card--photo .card__photo {
  display: block; margin: -22px -20px 16px;
  border-radius: 8px 8px 0 0; overflow: hidden;
  background: rgba(31, 58, 61, .06);
}
.card--photo .card__photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
}
/* 上面的负边距是按首页那批卡片写的：首页有 hero，.card--sm 会把内边距压到
   22px/20px。捐赠页这类没有 hero 的页面，.card--sm 不生效，卡用的还是
   .card 默认的 34px/30px —— 再套 -22px/-20px 的话照片左右会各留 10px 白边，
   上边还会溢出卡外。所以按实际内边距另给一组。 */
.card--photo:not(.card--sm) .card__photo { margin: 0 -30px 18px; }

/* 照片已经承担了视觉重量，图标退到次要位置、不再抢戏 */
.card--photo .card__icon { margin-top: 2px; opacity: .9; }
/* 悬停时照片轻微放大，给出「可点」的暗示 */
.card--photo .card__photo img { transition: transform .5s var(--ease); }
.card--photo:hover .card__photo img { transform: scale(1.035); }

/* ---------- 关于我们 · 通栏氛围图 ----------
   比例 2.6:1 的横条，压在左右两栏文字下面，把这一整块「关于我们」收住。
   原片是 3:2，裁上下取得这条横幅 —— 花与筝的静物构图裁掉上下后主体仍在。 */
.about-band { margin: 44px 0 0; }
.about-band img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--hairline);
}

/* ---------- 与我们同行 · 形象图 ---------- */
.partner-fig { margin: 0 0 24px; }
.partner-fig img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--hairline);
}
/* 「与我们同行」的小圆头像：客户要求照片换成小图标尺寸，不起大图 */
.partner-fig--avatar { margin: 0 0 20px; }
.partner-fig--avatar img {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin: 0 0 6px; border: 2px solid var(--hairline);
}

/* ---------- 近期活动预告 · 卡片顶部照片 ----------
   活动卡原本是「日期块 + 文字」的横向 flex，加了照片后要改成竖向堆叠：
   照片在顶、日期与文字依次往下。所以除了把 flex 掰成 column，还得把
   原本 flex:0 0 84px 的日期块改回自适应宽度 —— 不然它会一直占着 84px
   把整张卡撑歪。负边距同样是为了让照片吃到卡的内边距、铺满卡顶。 */
.event--photo { flex-direction: column; gap: 14px; }
.event--photo .event__photo {
  display: block; margin: -18px -18px 0;
  border-radius: 14px 14px 0 0; overflow: hidden;
  background: rgba(247, 244, 238, .06);
}
.event--photo .event__photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s var(--ease);
}
.event--photo:hover .event__photo img { transform: scale(1.035); }
.event--photo .event__date { flex: 0 0 auto; align-self: flex-start; }
.event--photo h3, .event--photo p { width: 100%; }

/* 窄屏：通栏图与形象图的圆角收一点，免得在满宽下显得厚重 */
@media (max-width: 680px) {
  .about-band { margin-top: 30px; }
  .about-band img, .partner-fig img { border-radius: 8px; }
  .card--photo .card__photo { margin: -22px -20px 14px; }
  .event--photo .event__photo { margin: -18px -18px 0; }
}

/* =========================================================================
   37. English-page typography — /en/ 的阅读调整
   -------------------------------------------------------------------------
   看 /en/ 的主要是海外华人古筝老师：她们中文讲得流利、「勾托」一开口就
   顺，但正身处英语环境 —— 在海外随手把这一页转给同事、校方或学生家长看，
   需要用英文把这套教材的体系和分级讲清楚。所以 /en/ 的活儿是把同一套内容
   用适合拉丁字母的排版重新交付一遍，而不是把术语翻译成英文 —— 谱名因此
   一律保留 Gou Tuo 拼音，理由写在谱卡那一节里。

   这一节不改任何布局：同样的栅格、同样的图、同样的栏宽容器。
   改的只有「拉丁字母需要、方块字不需要」的那几件事。每条都写了为什么。

   ① 行距往下调，不往上调。body 上的 1.75 是为汉字准备的：一行方块字
      是密排的方格阵，行间没有空气就会糊成一片实心。拉丁字母自带
      ascender / descender，上下参差已经把行的边界做出来了；到了 1.75，
      英文段落会松成一条条互不相干的条纹，反而丢掉「这一段是一个块」
      的整体感。1.62 是英文正文握得住的位置。

   ② 字号往上补一点。方块字几乎填满整个 em 方框，而小写拉丁字母只占
      x-height —— 大约七成。所以同一个 16px，英文看起来就是比中文小一号。
      下面把卡片级的小字补上半个像素，为的不是「放大」，而是让两个语种
      的视觉密度持平，免得 /en/ 看起来像缩印版。给美国长大的孩子读，
      这一档尤其重要：13px 的拉丁字对她们已经是勉强的字号了。

   ③ 允许断词。汉字两个字之间处处可断，所以这站从来不需要关心这件事。
      英文不行 —— "Fundamentals"、一串 URL，都是不可断的整体，窄栏里它会
      直接把卡片捅破。`hyphens: auto` 需要 <html lang="en"> 才能取到正确的
      断词词典，/en/ 的每个页面都有，所以这里才敢开。

   ④ 行长封到 ~66 字符。英文是按「词的形状」读的，栏太宽，每次换行回扫
      都会丢位置。汉字按字追踪，能容忍更宽。

   ⑤ 标题开 text-wrap: balance。英文标题长短悬殊，两行折行时经常出现
      「第一行满、第二行剩三个词」的尴尬；balance 让浏览器自己把两行拉平。
      中文标题很少折行，开了也没用，所以只给 /en/。
   ========================================================================= */

/* ① 全局行距：英文正文收紧到 1.62，覆盖掉为汉字设的 1.75 ---------- */
body[data-lang="en"] { line-height: 1.62; }
body[data-lang="en"] p { line-height: 1.62; text-wrap: pretty; }

/* ① 下面这些都有单独写的行高值（源码在前、权重与 `p` 相等或更高），
   一条通用的 `p` 规则压不住，只能逐个点名。 */
body[data-lang="en"] .sheet p,
body[data-lang="en"] .evcard__body p,
body[data-lang="en"] .evdetail__body,
body[data-lang="en"] .evdetail__lead,
body[data-lang="en"] .event__body p,
body[data-lang="en"] .archive p,
body[data-lang="en"] .repertoire p,
body[data-lang="en"] .sibling p,
body[data-lang="en"] .section-lead,
body[data-lang="en"] .footer__blurb,
body[data-lang="en"] .footer__contactline,
body[data-lang="en"] .blk__desc { line-height: 1.62; }
/* 这一条选择器的权重更高（body[attr] + class + 元素），必须单独点名 */
body[data-lang="en"][data-hero="on"] .card--sm p { line-height: 1.62; }

/* ② 卡片小字的字号补偿：英文看着比中文小一号，补半档 --------------- */
body[data-lang="en"] .sheet p,
body[data-lang="en"] .evcard__body p,
body[data-lang="en"] .event__body p,
body[data-lang="en"] .archive p,
body[data-lang="en"] .sibling p,
body[data-lang="en"] .blk__desc { font-size: 14px; }
body[data-lang="en"] .card--sm p { font-size: 14px; }
body[data-lang="en"] .sheet__level { font-size: 13px; }

/* ③ 长英文词允许断行 / 断词，不许捅破容器 ------------------------- */
body[data-lang="en"] p,
body[data-lang="en"] li,
body[data-lang="en"] dd,
body[data-lang="en"] dt,
body[data-lang="en"] figcaption,
body[data-lang="en"] blockquote,
body[data-lang="en"] h1,
body[data-lang="en"] h2,
body[data-lang="en"] h3,
body[data-lang="en"] h4,
body[data-lang="en"] h5,
body[data-lang="en"] .tabs__btn,
body[data-lang="en"] .btn,
body[data-lang="en"] .tag,
body[data-lang="en"] .sheet__spec {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ④ 长文栏封到 ~66 字符（中文版不封：汉字按字追踪，能容忍更宽） --- */
body[data-lang="en"] .evdetail__body,
body[data-lang="en"] .evdetail__lead,
body[data-lang="en"] .section-lead { max-width: 66ch; }

/* ⑤ 标题折行拉平 ---------------------------------------------------- */
body[data-lang="en"] h1,
body[data-lang="en"] h2,
body[data-lang="en"] h3 { text-wrap: balance; }
