/* ==========================================================================
   Meta Mega Community · metamegacommunity.com
   Shared stylesheet — 五行属金 / metal theme
   ========================================================================== */

/* --- 1. Design tokens --------------------------------------------------- */
/*
   五行属金 —— 这不是换个色号那么简单，它决定了全站的色、形、质：

   色：金为主，土为副。金的正色是白，其次金、银 —— 所以主角是金属色阶
       与近白底色。土生金，土是金的来处，所以中性色走温暖的砂米调
       （不是冷灰），让金属坐在土上，而不是浮在冷底上。
       橙红属火，火克金，全站不出现。土的暖和火的暖不是一回事：
       土是砂、赭、米，低饱和；火是橙、朱，高饱和。分界线就在饱和度。
   形：金曰「从革」，其形为圆。所以用圆、环、弧，
       不用尖芒、三角（那是火的形）。
   质：真金属的光泽来自明暗交替 —— 高光→亮面→本色→暗面→再高光。
       所以金属渐变是「亮—暗—亮」，而不是「黄—橙」。
       这一点是整套视觉高级感的来源，改色时请守住。
*/
:root {
  /* 金 · 金属色阶 / Metal ramp */
  --gold-50:  #FBF9F3;
  --gold-100: #F5EFE0;
  --gold-200: #E9DDBC;
  --gold-300: #D9C793;   /* 香槟金 champagne */
  --gold-400: #C9A961;   /* 标准金 signature */
  --gold-500: #B08F3C;   /* 亮金 */
  --gold-600: #8F7229;   /* 沉金 burnished */
  --gold-700: #6B551C;   /* 古金 antique */

  /* 金属高光与暗部 / Specular + shadow */
  --metal-hi: #FFF8E4;   /* 镜面高光 */
  --metal-sh: #6A5119;   /* 金属暗部 —— 有暗部才像金属 */
  /* 铂银 #C6CAD2 只在首页 canvas 里用到（约四分之一的微尘走冷色），
     写在 assets/js/hero.js 里，这里不再重复定义一个没人 var() 的变量。 */

  /* Ink ramp — 石墨灰，比原来的暖黑更冷，衬得出金属 */
  --ink-900: #101216;
  --ink-850: #15181E;
  --ink-800: #1B1F27;
  --ink-700: #252A35;
  --ink-600: #333947;
  --ink-500: #454C5E;

  /* Neutrals — 土为副：砂米调，低饱和，是金属的底座 */
  --cream:   #FAF7F0;   /* 米白 */
  --paper:   #FFFFFF;
  --sand:    #F3EDE0;   /* 砂 */
  --line:    #E6DECB;   /* 暖发丝线 */
  --body:    #3C3B38;
  --muted:   #6E6B64;
  --muted-d: #9E9A92;

  /* Semantic */
  --bg:        var(--cream);
  --fg:        var(--ink-900);
  --accent:    var(--gold-600);
  --accent-on-dark: var(--gold-300);

  /* Type */
  --font-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
               'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --nav-h: 72px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(16, 18, 26, .06), 0 2px 8px rgba(16, 18, 26, .04);
  --sh-md: 0 4px 12px rgba(16, 18, 26, .07), 0 12px 32px rgba(16, 18, 26, .07);
  --sh-lg: 0 8px 24px rgba(16, 18, 26, .09), 0 24px 64px rgba(16, 18, 26, .10);
  --sh-gold: 0 10px 30px rgba(176, 143, 60, .24);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 顶栏是 fixed 的，锚点跳过去时标题会正好躲在它后面（文章目录、
   /join.html#license 这类跨页链接都会踩到）。给锚点目标留出顶栏的高度。
   多留的那 2.4rem 不只是呼吸感：.reveal 的入场动画会把元素往上收 26px，
   跳转按动画前的位置算，留窄了落点又会被顶栏吃掉一截。 */
:target { scroll-margin-top: calc(var(--nav-h) + 2.4rem); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.12rem; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
strong { color: var(--ink-800); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

/* --- 3. Bilingual switching -------------------------------------------- */
html[data-lang="zh"] [lang="en"],
html[data-lang="en"] [lang="zh"] { display: none !important; }
/* Before JS sets data-lang, avoid a flash of both languages. */
html:not([data-lang]) [lang="en"] { display: none !important; }

/* --- 4. Layout helpers -------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--ink-900); color: #C9CEDC; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #FFF; }
.section--dark strong { color: var(--gold-200); }
/* page-hero 和 section--dark 一样是深底，但漏了这条覆盖，于是 hero 里的
   <strong> 拿着 ink-800 的深色字印在深色渐变上，几乎看不见 —— 本来是想强调的
   那半句反而是整段里最难读的。沿用 section--dark 的同一个金色。 */
.page-hero strong { color: var(--gold-200); }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
/* 固定列数。grid-2 / grid-3 是 auto-fit，会按可用宽度尽量多排，于是卡片数
   和列数对不上时，最后一行就剩下孤儿卡——四张卡在宽屏上排成 3+1 最难看。
   这两个类按卡片数把列数定死，让每一行都排满。
   不要改写成 :has() 通用规则：feature-row 窄栏里的 grid-2 本来就该是一列，
   而通用规则看不见容器宽度，会把那些照片挤成两列。 */
.grid--2up { grid-template-columns: repeat(2, 1fr); }
.grid--3up { grid-template-columns: repeat(3, 1fr); }
.grid--4up { grid-template-columns: repeat(4, 1fr); }
.grid--5up { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
  .grid--4up, .grid--5up { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid--2up { grid-template-columns: 1fr; }
  .grid--3up { grid-template-columns: repeat(2, 1fr); }
  /* 正好三张时不走两列，否则孤儿卡只是从宽屏挪到了平板上。
     这里用 :has() 是安全的：它挂在显式的 grid--3up 上，只作用在
     我们确认过是宽容器的那几个网格，不会波及 feature-row 里的窄栏。 */
  .grid--3up:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--3up, .grid--4up, .grid--5up { grid-template-columns: 1fr; }
}
.center { text-align: center; }
.stack-sm > * + * { margin-top: .6rem; }

/* --- 5. Section headers ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
}
.section--dark .eyebrow { color: var(--gold-300); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-head p { color: var(--muted-d); }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink-700); }
.section--dark .lead { color: #D6DAE6; }

/* --- 6. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: .97rem; font-weight: 650;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 38%,
              var(--gold-500) 62%, var(--gold-300) 88%, var(--gold-400) 100%);
  color: #1A1305; box-shadow: var(--sh-gold);
  /* .btn 上那 1px 透明边框是给 .btn-ghost 占位用的，两种按钮才一样大。
     但背景默认按 border-box 铺，渐变会一直画到边框那一圈底下，在圆角边缘
     留下一道明显比按钮本身和背景都暗的描边（实测 rgb(182,151,72)，
     而按钮内部是 rgb(204,174,106)）。改成只铺到 padding-box 就没有了，
     同时边框还在，尺寸不受影响。 */
  background-clip: padding-box;
}
.btn-primary:hover { color: #241902; box-shadow: 0 14px 38px rgba(176, 143, 60, .34); }
.btn-ghost { border-color: rgba(176, 143, 60, .45); color: var(--gold-700); background: transparent; }
.btn-ghost:hover { background: rgba(176, 143, 60, .09); color: var(--gold-700); }
.section--dark .btn-ghost,
.hero .btn-ghost,
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .3); color: #FFF; }
.section--dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #FFF; }
/* CTA 底部有一团亮光，白字按钮叠一层浅暗底，免得字被光吃掉 */
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .55); background: rgba(17, 19, 24, .22); }
.btn-sm { padding: .58rem 1.2rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* --- 7. Site header ----------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header__inner {
  width: min(100% - 2.5rem, 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem;
}
.site-header.is-solid {
  background: rgba(250, 247, 240, .92);   /* = --cream，rgba 用不了变量所以写死，改色时记得同步 */
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 24px rgba(0, 0, 0, .05);
}

.brand { display: flex; align-items: center; gap: .68rem; margin-right: auto; flex-shrink: 0; }

/* 品牌标记 —— 内联 SVG，形与质见 assets/js/site.js 里的注释。
   这里只管三件事：尺寸、那道扫过的高光、以及 hover 时的反应。 */
.brand-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* 深色底上「会发光」：一圈香槟金的柔光（近的那层）加一层压暗的投影托住轮廓。
   只用 drop-shadow，不用 SVG filter —— 页头页脚共用一组 defs，filter 区域还会把高光裁掉。 */
.brand__mark {
  width: 36px; height: 36px; flex-shrink: 0; overflow: visible;
  filter: drop-shadow(0 0 4px rgba(243, 221, 160, .55)) drop-shadow(0 1px 5px rgba(107, 85, 28, .35));
  transition: filter .5s var(--ease);
}
/* 注意：这些 .mark-* 选择器一律要挂在 .brand__mark 下面。
   brandDefs() 里的遮罩用的是同一组形状、同一组 class 的白色副本，
   写成全局规则会把遮罩也一起改掉，高光扫过时就不对了。 */

/* 高光每 7 秒扫过一次，其中只有约 1.4 秒在动，其余时间是静止的。
   停顿远长于动作 —— 这是这个标记"贵"而不"闹"的关键，别把间隔调短。 */
.brand__sheen { animation: mark-sheen 7s var(--ease) infinite; }
@keyframes mark-sheen {
  0%          { transform: translateX(0); }
  20%, 100%   { transform: translateX(132px); }
}

/* 鼠标移上去：光再亮一档。 */
.brand:hover .brand__mark { filter: drop-shadow(0 0 9px rgba(243, 221, 160, .8)) drop-shadow(0 1px 5px rgba(107, 85, 28, .35)); }

/* 页头滚动后变成米白实色，这时必须换成压暗的那套渐变。
   原来的高光档 #FFF8E4 压在 rgba(250,247,240,.92) 上几乎看不见 ——
   这就是"浅色背景 logo 不清楚"的原因。
   CSS 的 fill/stroke 属性优先级高于 SVG 里的同名 presentation attribute，
   所以这里能直接覆盖掉标记自带的 url(#tr-metal)。 */
.site-header.is-solid .mark-frame,
.site-header.on-light .mark-frame { stroke: url(#tr-metal-deep); }
.site-header.is-solid .mark-m,
.site-header.on-light .mark-m { fill: url(#tr-metal-deep); }
/* 白色高光扫过米白底等于没有，关掉省一份合成开销 */
.site-header.is-solid .brand__sheen,
.site-header.on-light .brand__sheen { display: none; }
.site-header.is-solid .brand__mark,
.site-header.on-light .brand__mark { filter: drop-shadow(0 1px 3px rgba(107, 85, 28, .22)); }

/* 两行一起居中。只给副标 text-align 是不够的：副标带 .24em 字距，画出来比
   「Meta Mega Community」还宽，撑开容器的是副标而不是主标 —— 主标左对齐就会偏左一截。
   实测那一版两行的墨迹中心差 3.9px，肉眼看得出来。 */
.brand__text { display: flex; flex-direction: column; line-height: 1.1; text-align: center; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem;
  color: var(--ink-900); letter-spacing: -.01em;
}
/* 副标居中压在「Meta Mega Community」下面。两处要一起做，少一处就还是歪的：

   1. 居中要给 .brand__text（见上），不能只给这一行 —— 副标带字距，画出来
      比主标宽，撑开容器的是副标，主标留在左边就对不上。
   2. letter-spacing 会在最后一个字母后面也留一格，这一格算进行宽、却没有墨迹，
      居中时整行的墨迹因此偏左约半格。补一个同样大小的 text-indent 推回来
      —— 居中行里 text-indent 只生效一半，正好抵掉这半格。

   校准方式是量画出来的像素、不是量盒子：盒子两行一样宽，看不出任何问题。
   按墨迹量，改之前两行中心差 3.9px，现在是 0.1px。 */
.brand__tag {
  font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 700;
  text-align: center; text-indent: .24em;   /* = 末尾那一格字距 */
}
/* 手机上页头只剩约 110px 给名字，「Meta Mega Community」一行放不下，
   会把语言切换和菜单按钮挤出屏幕。所以窄屏拆成两行（Meta Mega / Community），
   副标收起，两行高度和原来「名字 + 副标」差不多。宽屏保持一行 + 副标。 */
@media (max-width: 560px) {
  .site-header .brand__name { font-size: 1.02rem; line-height: 1.05; }
  .site-header .brand__name-l2 { display: block; }
  .site-header .brand__tag { display: none; }
}
.site-header:not(.is-solid) .brand__name { color: #FFF; }
.site-header:not(.is-solid) .brand__tag { color: var(--gold-300); }
.site-header.on-light .brand__name { color: var(--ink-900); }
.site-header.on-light .brand__tag { color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .78rem; border-radius: 999px;
  font-size: .93rem; font-weight: 550; color: var(--ink-700);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: rgba(176, 143, 60, .12); color: var(--gold-700); }
.nav__link.is-active { color: var(--gold-700); background: rgba(176, 143, 60, .13); }
.site-header:not(.is-solid):not(.on-light) .nav__link { color: rgba(255, 255, 255, .88); }
.site-header:not(.is-solid):not(.on-light) .nav__link:hover,
.site-header:not(.is-solid):not(.on-light) .nav__link.is-active {
  background: rgba(255, 255, 255, .15); color: #FFF;
}
.nav__caret { width: 9px; height: 9px; opacity: .6; transition: transform .25s; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 254px; padding: .5rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s var(--ease), visibility .22s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  display: block; padding: .52rem .7rem; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--ink-700); line-height: 1.45;
}
.nav__menu a:hover { background: var(--gold-50); color: var(--gold-700); }
.nav__menu a small { display: block; font-size: .76rem; color: var(--muted); }

/* 产品中心 24 项：竖着排要滚好几屏，改成四列并排。
   菜单宽过 .nav__item 本身，所以定位改挂在 .nav 上（组项设 static），
   以整条导航为中心展开，不会从某一侧冲出屏幕。 */
.nav { position: relative; }
.nav__item--mega { position: static; }
.nav__menu--mega {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem .6rem;
  width: min(980px, calc(100vw - 2.5rem)); padding: .9rem;
  max-height: calc(100vh - var(--nav-h) - 1.5rem); overflow-y: auto;
}
.nav__col { min-width: 0; }
/* 团队建设三组（系统 / 销售 / 专题课）：三列，菜单也相应收窄。 */
.nav__menu--mega3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(860px, calc(100vw - 2.5rem)); }
/* 只在抽屉里出现的导航项（桌面上页头右上角已有同一个按钮）。 */
@media (min-width: 1100px) { .nav__item--drawer { display: none; } }
.nav__heading {
  margin: 0 0 .25rem; padding: .2rem .7rem .45rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-600); border-bottom: 1px solid var(--line);
}

/* 锁标记跟在标题文字后面。§1 的 reset 里 svg 是 display:block，不把它拉回行内，
   它就会从标题后面掉到下一行去 —— 下拉菜单和页脚都中招过。
   顶栏那一级（.nav__link）是 flex 容器，svg 在那里是 flex item、会被块化，
   inline-block 写不写都一样，那边本来就是对的。 */
.lock { display: inline-block; vertical-align: -.09em; }

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(120, 120, 130, .13); border: 1px solid transparent;
}
.site-header:not(.is-solid):not(.on-light) .lang-toggle { background: rgba(255, 255, 255, .16); }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: .3rem .64rem; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--muted); transition: background .2s, color .2s;
}
.site-header:not(.is-solid):not(.on-light) .lang-toggle button { color: rgba(255, 255, 255, .75); }
/* The selected language must stay gold-on-white in every header state. The
   dark-header rule above is more specific than a bare [aria-pressed] selector,
   so match its specificity here. */
.lang-toggle button[aria-pressed="true"],
.site-header:not(.is-solid):not(.on-light) .lang-toggle button[aria-pressed="true"] {
  background: var(--paper); color: var(--gold-700); box-shadow: var(--sh-sm);
}

/* 页头多了一个放大镜，1280–1440 宽的笔记本上导航就挤得换行了（「首页」被拆成两行）。
   这一档把导航项的间距和内边距收一点，腾出放大镜那 40 多像素。
   1100 以下改走抽屉（见下面 1099.98 那条），这里不用再管更窄的宽度。 */
@media (min-width: 1100px) and (max-width: 1439px) {
  .site-header__inner { gap: 1rem; }
  .nav { gap: .1rem; }
  .nav__link { padding-inline: .64rem; }
  .header-actions { gap: .45rem; }
}

/* 页头的放大镜。颜色跟着页头三种状态走：深色开场上是白的，
   滚动后变实色、或浅色页面上是墨色；抽屉打开时页头是米白底，也用墨色。 */
.search-btn {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ink-700); transition: background .2s, color .2s;
}
.search-btn svg { width: 19px; height: 19px; }
.search-btn:hover { background: rgba(176, 143, 60, .12); color: var(--gold-700); }
.site-header:not(.is-solid):not(.on-light) .search-btn { color: rgba(255, 255, 255, .9); }
.site-header:not(.is-solid):not(.on-light) .search-btn:hover { background: rgba(255, 255, 255, .15); color: #FFF; }
body.nav-open .site-header .search-btn { color: var(--ink-800); }

/* 搜索浮层。挂在 body 上，不在页头里 —— 页头滚动后带 backdrop-filter，
   会成为 fixed 子元素的包含块（抽屉那边踩过同一个坑），浮层就只剩 72px 高。 */
.search[hidden] { display: none; }
.search { position: fixed; inset: 0; z-index: 200; }
.search__backdrop { position: absolute; inset: 0; background: rgba(16, 18, 26, .42); animation: search-fade .18s ease; }
.search__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(680px, calc(100vw - 2rem)); max-height: min(78vh, 720px);
  margin: min(10vh, 96px) auto 0; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); animation: search-rise .2s var(--ease);
}
@keyframes search-fade { from { opacity: 0; } }
@keyframes search-rise { from { opacity: 0; transform: translateY(-8px); } }
.search__bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem .85rem 1.15rem; border-bottom: 1px solid var(--line);
}
.search__icon { width: 20px; height: 20px; color: var(--gold-600); flex-shrink: 0; }
.search__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.05rem; color: var(--ink-900); padding: .35rem 0;
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__close {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: .85rem;
  color: var(--muted); padding: .35rem .5rem; border-radius: var(--r-sm);
}
.search__close:hover { background: var(--gold-50); color: var(--gold-700); }
.search__status { margin: 0; padding: .6rem 1.2rem 0; font-size: .82rem; color: var(--muted); }
.search__status:empty { display: none; }
.search__results { list-style: none; margin: 0; padding: .5rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.search__results a {
  display: block; padding: .7rem .8rem; border-radius: var(--r-sm); color: var(--ink-700);
}
.search__results a:hover, .search__results li.is-active a { background: var(--gold-50); }
.search__title { display: block; font-weight: 600; color: var(--ink-900); line-height: 1.45; }
.search__head { display: block; font-size: .82rem; color: var(--gold-700); margin-top: .1rem; }
.search__snip {
  display: block; margin-top: .25rem; font-size: .86rem; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.search mark { background: rgba(212, 175, 55, .28); color: inherit; border-radius: 2px; padding: 0 1px; }
body.search-open { overflow: hidden; }
@media (max-width: 620px) {
  .search__panel { width: 100%; max-height: none; height: 100%; margin: 0; border-radius: 0; border: 0; }
  .search__input { font-size: 16px; }   /* iOS 小于 16px 会自动放大页面 */
}

.nav-burger {
  display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  border-radius: 50%; align-items: center; justify-content: center;
}
.nav-burger span {
  display: block; position: relative; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-800); transition: background .2s;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px;
  background: inherit; transition: transform .28s var(--ease);
}
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.site-header:not(.is-solid):not(.on-light) .nav-burger span { background: #FFF; }
body.nav-open .nav-burger span { background: transparent !important; }
body.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); background: var(--ink-800); }
body.nav-open .nav-burger span::after  { transform: translateY(-6px) rotate(-45deg); background: var(--ink-800); }

/* 抽屉断点是 1100，不是常见的 1024。桌面顶栏六项加右上角按钮，排成一行
   实测要约 1025px（中文）/ 1060px（英文），1100 给英文留约 40px 余量。
   顶栏再加项之前先量一遍：放不下时导航会折成两三行（以前在 1025–1279 出过）。
   写成 1099.98 而不是 1099：分数视口宽度（缩放时的 1099.5px）下
   两边都不命中，页头就既没有抽屉也没有桌面布局。
   改这里要同步改 assets/js/site.js 的 isDrawer() 和上面 .nav__item--drawer 那条。 */
@media (max-width: 1099.98px) {
  .nav-burger { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.2rem 1.5rem 3rem; overflow-y: auto;
    background: var(--cream);
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  /* 抽屉打开时必须把页头的 backdrop-filter 关掉。
     原因不是好看不好看 —— 带 backdrop-filter（或 filter、transform）的元素
     会成为其内部 position:fixed 子元素的**包含块**。抽屉 .nav 就在页头里面，
     一旦页头滚动后加上 .is-solid 带了 backdrop-filter，抽屉的
     inset: var(--nav-h) 0 0 0 就不再相对视口，而是相对那个 72px 高的页头，
     算出来的高度只剩 67px —— 手机上滚动一段再点菜单，就只能看到「首页」一条。
     transition 一起关掉：backdrop-filter 从 blur 到 none 不能平滑插值，
     留着过渡会让抽屉在最初那 0.35 秒里仍然是塌的。 */
  body.nav-open .site-header {
    background: var(--cream); box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: none;
  }
  /* 抽屉打开时页头是米白底，深色开场那套白字（品牌名、放大镜、语言切换）
     全都要换回墨色，logo 也换压暗的渐变 —— 和 .on-light 一个样。
     选择器带 :not(.is-solid) 是为了压过上面那几条深色规则的优先级。 */
  body.nav-open .site-header:not(.is-solid) .brand__name { color: var(--ink-900); }
  body.nav-open .site-header:not(.is-solid) .brand__tag { color: var(--gold-600); }
  body.nav-open .site-header:not(.is-solid) .search-btn { color: var(--ink-800); }
  body.nav-open .site-header:not(.is-solid) .lang-toggle { background: rgba(120, 120, 130, .13); }
  body.nav-open .site-header:not(.is-solid) .lang-toggle button { color: var(--muted); }
  body.nav-open .site-header .brand__mark .mark-frame { stroke: url(#tr-metal-deep); }
  body.nav-open .site-header .brand__mark .mark-m { fill: url(#tr-metal-deep); }
  body.nav-open .site-header .brand__sheen { display: none; }
  body.nav-open .site-header .brand__mark { filter: drop-shadow(0 1px 3px rgba(107, 85, 28, .22)); }
  .nav__link {
    color: var(--ink-800) !important; font-size: 1.05rem; padding: .85rem .6rem;
    border-radius: var(--r-sm);
  }

  /* 手机上的抽屉是手风琴，不是一张全展开的目录。
     八组底下一共 44 个子项，原来在手机上一次全铺开，抽屉要滚 2908px
     —— 等于把整站地图摊在一块 390px 宽的屏幕上，谁也找不到东西。
     现在默认全部收起（八行，一屏放得下），点一组展开一组，同时收起其他组；
     打开抽屉时当前页所在的那组自动展开，人一眼知道自己在哪。
     展开/收起写在 assets/js/site.js 的 wireDrawer() 里（CSP 不许内联脚本）。 */
  .nav__menu {
    display: none;
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: .1rem 0 .7rem .7rem; padding: 0 0 0 .6rem; min-width: 0;
    transition: none;
  }
  /* 点一下组标题，那个 <a> 会拿到焦点，于是桌面端的
     `.nav__item:focus-within .nav__menu`（0,2,0）就命中了，
     把 translateX(-50%) 又加了回来 —— 子菜单整块飘到屏幕左边、被切掉一半。
     手机上这几个位移一律清掉，位置由文档流决定。 */
  .nav__menu,
  .nav__item:hover .nav__menu,
  .nav__item:focus-within .nav__menu { transform: none; }
  .nav__item.is-open > .nav__menu { display: block; animation: nav-reveal .2s var(--ease); }
  /* 抽屉里四列退回一列，组标题保留当分隔；副标题收掉，
     不然展开这一组又是一千多像素长。 */
  .nav__menu--mega { width: auto; max-height: none; overflow: visible; padding: 0 0 0 .6rem; }
  .nav__item.is-open > .nav__menu--mega { display: block; }
  .nav__menu--mega small { display: none !important; }
  .nav__heading { padding: .7rem .7rem .3rem; border-bottom: 0; }
  .nav__col:first-child .nav__heading { padding-top: .3rem; }
  @keyframes nav-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
  /* 收起的时候箭头朝下，展开朝上。桌面端那条 :hover 规则在这里用不上
     （手机没有 hover），所以状态挂在 .is-open 上。 */
  /* 箭头靠右，锁标记跟在标题后面 —— 不要用 justify-content: space-between，
     那会把锁也推到中间去，看起来像是飘着的。 */
  .nav__caret { display: block; opacity: .55; margin-left: auto; }
  .nav__item.is-open > .nav__link .nav__caret { transform: rotate(180deg); }
  /* 组标题在手机上是开关不是链接（点了展开，不跳转），
     所以给它一个「可点但不是链接」的指针，并去掉长按时的蓝色高亮。 */
  .nav__item--group > .nav__link { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .header-actions .btn { display: none; }
}

/* --- 8. Hero ------------------------------------------------------------ */
/* 垂直居中用 auto 外边距，不用 align-items:center。
   空间够的时候两者效果完全一样；空间不够时 align-items:center 会让内容
   同时溢出上下两边再被 overflow:hidden 切掉，auto 外边距则自动归零、
   容器跟着长高。属于防御性写法：目前的内容高度还不会触发，
   但以后往开场加内容时不会突然被切字。 */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-start;
  overflow: hidden; background: var(--ink-900); isolation: isolate;
}
/*
  首页开场 —— 这里原来是「太阳圆盘 + 尖芒 + 山形剪影」层层堆叠，
  看起来就是一堆图形拼在一起，而且尖芒属火、山形属土，跟金相冲。
  现在只剩四件事，每一件都有明确的职责，没有一件是装饰：

    hero__photo   真实影像打底（金属色调）
    hero__sky     石墨 → 香槟的天光渐变，不含一点橙
    hero__rings   同心细圆环 —— 金的形，也是唯一的主体动作
    hero__sheen   一道极慢的斜向高光，像光扫过金属表面

  高级感来自克制：底色安静、动作只有一个、线是发丝级的细。
  想再加层的时候，先问它替代了哪一层。
*/
/* 天光层现在是「底色」，垫在影像下面（z-index 比 photo 更低）。
   这一点跟旧版正好相反：旧版的天空是橙色日出，是画面主体，所以压在影像上；
   现在主体是那张金属影像，天空只负责在影像透不到的地方托一层石墨。
   如果把它调回影像上方，整屏会重新变成一块黑板 —— 这正是改版前踩过的坑。 */
.hero__sky {
  position: absolute; inset: 0; z-index: -6;
  background:
    radial-gradient(135% 85% at 50% 110%,
      #2E2F31 0%, #24262B 26%, #1B1E24 52%, #15181D 76%, var(--ink-900) 100%);
}

/* 云海流动。
   底图里的云是静止像素，想让它动有三条路：整张图平移（山也会跟着走，不行）、
   把云抠出来单独动（接缝很难藏）、或者叠一层雾气。这里走第三条。
   真实云海看上去的运动主要是明暗在缓慢流过，所以用的是几团极大极柔的亮斑，
   分两层、不同速度，同向飘 —— 同向不同速才是视差，反向会看起来在打架。

   无缝循环的关键：元素宽 200%，背景按 50% 平铺，位移正好走一个平铺单位
   （translateX(-50%) = 一个 tile），所以回到原点时图案完全重合，看不出跳帧。
   改宽度或 background-size 时这三个数必须一起改，否则每圈都会闪一下。

   只动 transform，不动 background-position —— 前者能交给合成器，后者每帧重绘。 */
.hero__mist {
  position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none;
}
.hero__mist::before,
.hero__mist::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 200%;
  background-repeat: repeat-x; background-size: 50% 100%;
  /* 只在底图里云海所在的那条带上显示，上下都淡出，免得糊到天空和页脚 */
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 50%, #000 84%, transparent 97%);
  mask-image: linear-gradient(180deg, transparent 30%, #000 50%, #000 84%, transparent 97%);
  will-change: transform;
}
.hero__mist::before {
  background-image:
    radial-gradient(34% 20% at 18% 64%, rgba(255, 248, 228, .2), transparent 70%),
    radial-gradient(26% 16% at 52% 73%, rgba(255, 248, 228, .16), transparent 72%),
    radial-gradient(38% 22% at 84% 62%, rgba(255, 248, 228, .18), transparent 70%);
  animation: mist-drift 72s linear infinite;
}
.hero__mist::after {
  background-image:
    radial-gradient(44% 24% at 34% 71%, rgba(226, 232, 240, .13), transparent 72%),
    radial-gradient(30% 18% at 72% 66%, rgba(255, 248, 228, .12), transparent 74%);
  animation: mist-drift 118s linear infinite;
}

/* 同心圆环：金曰从革，其形为圆。发丝级的细线，
   靠 mask 从中心向外淡出，慢慢地呼吸。 */
.hero__rings {
  position: absolute; left: 68%; bottom: -34vmin; z-index: -4;
  width: 148vmin; aspect-ratio: 1; transform: translateX(-50%);
  background: repeating-radial-gradient(circle,
    transparent 0 3.55%,
    rgba(217, 199, 147, .16) 3.55% 3.72%,
    transparent 3.72% 7.3%);
  mask-image: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .5) 33%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .5) 33%, transparent 66%);
  animation: rings-breathe 26s ease-in-out infinite;
}

/* 斜向高光：14 秒扫一趟，几乎察觉不到在动，
   但它是整屏"金属感"的来源。透明度别往上调。 */
.hero__sheen {
  position: absolute; inset: -25% -45%; z-index: -3; pointer-events: none;
  background: linear-gradient(104deg,
    transparent 40%, rgba(255, 248, 228, .05) 47%, rgba(255, 248, 228, .1) 50%,
    rgba(255, 248, 228, .05) 53%, transparent 60%);
  animation: hero-sheen 14s linear infinite;
}

#hero-canvas { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
/* 底部压暗层。注意它收在 --ink-900（开场自身的底色），不是收到米白 ——
   原来渐变到米白，结果统计数字下面那行说明文字正好落在这段淡出里，
   白字压在近乎米白的背景上，直接看不见了。
   现在开场与下一屏之间是一条干净的硬边，这在"金"的语境里也更对：
   金主肃杀分明，边界清楚比糊成一片更合适。 */
.hero__horizon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 26vh; min-height: 140px;
  background: linear-gradient(180deg, transparent, rgba(16, 18, 22, .55) 52%, var(--ink-900) 100%);
}

.hero__inner {
  position: relative; padding: calc(var(--nav-h) + 4rem) 0 6rem; width: 100%;
  margin-block: auto;   /* 见上方 .hero 的说明 */
}
.hero__content { max-width: 840px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .42rem 1rem;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FFF0CC;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300);
  box-shadow: 0 0 0 0 rgba(217, 199, 147, .7); animation: pulse 2.4s infinite;
}
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem); line-height: 1.04; color: #FFF;
  margin: 1.4rem 0 .5rem; letter-spacing: -.025em; text-wrap: balance;
}
/* 中文是全角方块字，同一个 font-size 下，视觉体量明显压过上面那行拉丁字的
   「Rise and Shine」。所以标语这一行单独收一档，让开场的两行回到同一个重量。
   英文标语不动 —— 它本来就比中文小一圈，再收就撑不住这个位置了。 */
.hero h1 [lang="zh"] { font-size: .88em; }
/* 「Rise and Shine」走抛光金属：亮—暗—亮交替才像金，
   单纯的黄→橙只会像塑料。暗部用 --gold-700 而不是黑，
   保证在深色背景上依然是金属而不是脏。 */
.hero__shine {
  background: linear-gradient(100deg,
    var(--gold-400) 4%, var(--gold-200) 14%, var(--metal-hi) 24%,
    var(--gold-300) 34%, var(--gold-700) 46%, var(--gold-300) 58%,
    var(--metal-hi) 70%, var(--gold-200) 80%, var(--gold-400) 92%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 7s linear infinite;
}
.hero__sub {
  font-size: clamp(1.02rem, 2.1vw, 1.32rem); line-height: 1.68; color: rgba(255, 255, 255, .84);
  max-width: 620px; margin: 0 0 2.2rem; text-wrap: pretty;
}
.hero .btn-row { margin-bottom: 3.2rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1rem 1.6rem; max-width: 760px;
  padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .18);
  /* The rising sun sits directly behind this row — keep the text readable
     against the brightest part of the gradient. */
  text-shadow: 0 1px 12px rgba(10, 12, 17, .75), 0 1px 3px rgba(10, 12, 17, .6);
}
.hero__stat b {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.3vw, 2.25rem);
  font-weight: 800; color: var(--gold-200); line-height: 1.1;
  white-space: nowrap;
}
/* Spans *inside* <b> are part of the number and must inherit its size — only
   direct children of .hero__stat are captions. */
.hero__stat > span { font-size: .83rem; color: rgba(255, 255, 255, .66); line-height: 1.45; display: block; }
.hero__stat b span { font-size: inherit; color: inherit; }
.hero__stat b sup { font-size: .55em; }

.hero__scroll {
  position: absolute; right: 2.5rem; bottom: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.hero__scroll i {
  display: block; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.7));
  animation: scrollHint 2.2s ease-in-out infinite;
}
@media (max-width: 720px) {
  .hero__scroll { display: none; }
  .hero__inner { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + 4.5rem) 0 3.6rem;
  /* 石墨收进沉金 —— 跟首页开场、口令门同一套。
     原来是「墨 → 紫 → 褐 → 橙」的日落斜坡，后两档属火。
     165° 让沉金落在右下角：光源在左上角，暖色顺着对角线往右下淌，
     一进一出是同一束光。（光源在左下角那一版曾镜像成 195°，现在不需要了。） */
  background: linear-gradient(165deg, var(--ink-900) 0%, #1C2027 46%, #3B372B 82%, var(--gold-700) 100%);
  overflow: hidden; isolation: isolate;
}
/* 光源落在左上角。两个方向都是拿核心的位置对齐的，不是拿方框对齐的：
   横向 —— breathe 的关键帧自带 translateX(-50%)，所以 left 给多少核心就落在多少；
   纵向 —— 渐变的圆心在方框 40% 高处，top 取 -0.54×直径，核心因此落在顶边**上方**
           约 0.14×直径处，整个亮心被 overflow 裁在画外，屏幕上只剩往右下淌的那半圈。

   为什么核心要留在画外：页眉在未滚动时是透明的，「Meta Mega Community」四个白字就直接压在
   这一带。核心贴着顶边（-0.4）时实测标识对比度掉到 2.08，移到画外并把峰值收一档
   之后回到 3.01 —— 和光效在右下角的旧版（3.10）基本持平，而正文反而比旧版更好读。
   要调亮，先跑一遍对比度，别只看截图。 */
.page-hero::after {
  content: ""; position: absolute; z-index: -1;
  --glow-d: min(85vw, 820px);
  left: 4%; top: calc(var(--glow-d) * -.54);
  width: var(--glow-d); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 248, 228, .62) 0%,
              rgba(201, 169, 97, .34) 28%, rgba(217, 199, 147, .15) 52%, transparent 74%);
  filter: blur(8px); animation: breathe 11s ease-in-out infinite;
}
.page-hero h1 { color: #FFF; margin-bottom: .7rem; max-width: 900px; text-wrap: balance; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 680px; font-size: 1.08rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero .btn-row { margin-top: 1.8rem; }

.crumbs { font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.3rem; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span { margin: 0 .45rem; opacity: .5; }

/* --- 9. Cards ----------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.8rem; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300) 55%, var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
a.card:hover, .card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--gold-200); }
a.card:hover::before, .card--hover:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.15rem;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, var(--gold-100), var(--gold-200));
  color: var(--gold-700); font-size: 1.35rem;
}
.card__meta {
  margin-top: auto; padding-top: 1.2rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 650; color: var(--gold-600);
}
.card__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
  line-height: 1; color: var(--gold-200); margin-bottom: .7rem;
}
.card--dark {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-color: rgba(255, 255, 255, .09); color: #B9BFD0;
}
.card--dark h3 { color: #FFF; } .card--dark p { color: var(--muted-d); }
.card--flat { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card--flat::before { display: none; }

.tag {
  display: inline-block; padding: .22rem .68rem; border-radius: 999px;
  font-size: .73rem; font-weight: 700; letter-spacing: .05em;
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
  margin-bottom: .9rem; align-self: flex-start;
}
.tag--lock { background: #F2F3F7; color: var(--ink-600); border-color: #DFE2EA; }

/* 一张卡上挂不止一个标签时用它排成一行。
   .tag 自己带 margin-bottom 和 align-self，两个标签直接做兄弟会各占一行
   （.card 是 flex 纵列），所以间距统一收到这个容器上来管。 */
.tag-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin-bottom: .9rem; align-self: flex-start;
}
.tag-row .tag { margin-bottom: 0; }

/* 承保公司文章里的「产品线」网格是两列。条数是奇数时最后一张会孤零零占半行，
   让它横跨两列收尾。（F&G 去掉 IUL 之后就剩三条；Corebridge、Foresters 是
   四条，:nth-child(odd) 匹配不到，不受影响。） */
.wrap-narrow .grid-2 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* --- 10. Stats / numbers ------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.4rem; }
.stat {
  padding: 1.7rem 1.4rem; border-radius: var(--r-lg); text-align: center;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.section--dark .stat { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .1); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1;
  background: linear-gradient(135deg, var(--gold-700), var(--gold-500) 52%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}
.section--dark .stat b { background: linear-gradient(135deg, var(--gold-200), var(--metal-hi) 46%, var(--gold-300)); -webkit-background-clip: text; background-clip: text; }
.stat span { font-size: .87rem; color: var(--muted); line-height: 1.5; }
.section--dark .stat span { color: var(--muted-d); }

/* --- 11. Timeline ------------------------------------------------------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600), transparent);
}
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -2.2rem; top: .45rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--gold-400);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, .16);
}
.section--dark .timeline__item::before { background: var(--ink-900); }
.timeline__year {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--gold-600); display: block; margin-bottom: .2rem;
}
.section--dark .timeline__year { color: var(--gold-300); }
.timeline__item h4 { margin-bottom: .3rem; }
.timeline__item p { margin-bottom: 0; font-size: .95rem; color: var(--muted); }
.section--dark .timeline__item p { color: var(--muted-d); }

/* --- 12. Tables --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--sh-sm); margin: 0 0 1.6rem;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
thead th {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  color: var(--gold-700); font-weight: 700; text-align: left;
  padding: .85rem 1rem; white-space: nowrap; border-bottom: 1px solid var(--gold-200);
}
tbody td { padding: .82rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--gold-50); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 宽屏放得下就不该横向滚动：长表头（产品全名等）允许折行。手机上照旧不折、横向滑 */
@media (min-width: 721px) {
  thead th, thead th.num { white-space: normal; }
  /* 表头一折行，中文的首列就会被挤成一字一行；给它留个最小宽度 */
  .table-wrap:not(.form-table) tbody td:first-child { min-width: 7em; }
}
/* 平板竖屏宽度：列多的表把单元格左右留白收一点，九列的体检表才放得下 */
@media (min-width: 721px) and (max-width: 900px) {
  .table-wrap:not(.form-table) th, .table-wrap:not(.form-table) td { padding-left: .65rem; padding-right: .65rem; }
}
.t-hl { color: var(--gold-700); font-weight: 700; }

/* --- 13. Article -------------------------------------------------------- */
.article { padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.article__body { font-size: 1.06rem; line-height: 1.85; }
.article__body h2 {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
}
.article__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article__body h3 { margin-top: 2rem; color: var(--ink-800); }
.article__body ul { padding-left: 1.2em; }
.article__body li::marker { color: var(--gold-500); }
.article__body img { border-radius: var(--r-md); margin: 1.6rem 0; }

/* 文章里内嵌的培训视频（YouTube 用 youtube-nocookie.com，_headers 的 frame-src 只放行它）。
   Embedded training video; _headers' frame-src allows youtube-nocookie.com only. */
.video-embed {
  position: relative; aspect-ratio: 16 / 9; margin: 1.6rem 0 1.4rem;
  border-radius: var(--r-md); overflow: hidden; background: var(--ink-800);
  border: 1px solid var(--line);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 表格下面那一行小字：数据出处、口径、「这是假设不是事实」。
   之前每次都写成 style="font-size:.92rem;color:var(--muted)" 内联抄一遍，
   讲座那几页一页要用五六次，抄错一次就跟别处不一样了。给它一个名字。 */
.article__body .source {
  margin-top: -.9rem; font-size: .92rem; line-height: 1.7; color: var(--muted);
}
.article__body .source + .source { margin-top: -.6rem; }
/* 负的上边距是给表格、段落准备的 —— 它们自带下边距，往上收一点刚好贴着。
   步骤卡片 .steps 和卡片网格 .grid 没有下边距，同样往上收就会钻到卡片底下，
   字被卡片盖住半行。第二条管英文那一行：中文那行隐藏了，
   但 `.source + .source` 仍然按 DOM 顺序命中它。 */
.article__body :is(.steps, .grid) + .source,
.article__body :is(.steps, .grid) + .source + .source { margin-top: 1rem; }

.callout {
  position: relative; padding: 1.3rem 1.5rem 1.3rem 1.65rem; margin: 1.8rem 0;
  border-radius: var(--r-md); background: var(--gold-50);
  border: 1px solid var(--gold-200); border-left: 4px solid var(--gold-400);
  font-size: .98rem; line-height: 1.72;
}
.callout > *:last-child { margin-bottom: 0; }
.callout__title {
  display: flex; align-items: center; gap: .5rem; font-weight: 700;
  color: var(--gold-700); margin-bottom: .5rem; font-size: .95rem;
}
.callout--note { background: #F4F6FA; border-color: #DEE3EC; border-left-color: #9AA6BE; }
.callout--note .callout__title { color: var(--ink-600); }
.callout--warn { background: #F2F4F7; border-color: #DDE1E8; border-left-color: #5B6473; }
.callout--warn .callout__title { color: #434C5C; }

.keyline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin: 1.8rem 0;
}
.keyline > div {
  padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
}
.keyline b { display: block; color: var(--gold-700); font-size: 1.28rem; font-family: var(--font-display); margin-bottom: .2rem; }
.keyline span { font-size: .87rem; color: var(--muted); line-height: 1.5; }

.pro-con { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.pro-con > div { padding: 1.3rem 1.45rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
.pro-con h4 { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font-size: 1rem; }
.pro-con ul { margin-bottom: 0; padding-left: 1.15em; font-size: .94rem; }
.pro-con .pros { border-left: 4px solid #2F7D57; }
.pro-con .pros h4 { color: #276848; }
.pro-con .cons { border-left: 4px solid #5B6473; }
.pro-con .cons h4 { color: #434C5C; }

.toc {
  padding: 1.35rem 1.5rem; border-radius: var(--r-md);
  background: var(--sand); border: 1px solid var(--line); margin-bottom: 2.4rem;
}
.toc strong { display: block; margin-bottom: .6rem; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--ink-700); } .toc a:hover { color: var(--gold-700); }

.article-nav {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.article-nav a { display: flex; flex-direction: column; gap: .15rem; font-size: .95rem; max-width: 46%; }
.article-nav a span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .article-nav a { max-width: 100%; } }

.disclaimer {
  margin-top: 3rem; padding: 1.2rem 1.4rem; border-radius: var(--r-md);
  background: #F4F5F8; border: 1px solid #E3E6EC;
  font-size: .82rem; line-height: 1.68; color: var(--muted);
}
.disclaimer > *:last-child { margin-bottom: 0; }

/* --- 13.1 浮动目录 / floating table of contents ------------------------- */
/* 设计沿用 raymondfp.com 上那一套，按本站的色板与双语机制改写。
   长文一屏只看得见一节，读者容易不知道自己在整篇的哪个位置、后面还有什么。
   宽屏在正文右侧常驻一份随页面浮动的目录；窄屏没有那条空白，收进右下角的
   药丸按钮里点开。

   整块由 assets/js/site.js 的 buildDocToc() 从正文的 h2 现生成，HTML 里
   一个字都不用写 —— 每页各维护一份的话，改一个小标题就得记着同步改目录，
   漏掉的那几页不会报错，只会指向一个不存在的锚点。
   脚本没跑起来时文章照常完整可读，只是右边少了这块东西。

   注意类名是 .doc-toc 不是 .toc：.toc 已经被正文开头那个「本文目录」方框
   占着了（十二个页面在用），两者不是一回事，别合并。

   两个断点写成 1199.98 / 1200 而不是 1199 / 1200：整数写法在缩放或分数
   视口宽度（1199.5px）下两条规则都不匹配，目录会整个消失。
   目录只是辅助，宁可两边各让半像素，也不能出现「某个缩放级别下没有目录」。 */
.doc-toc {
  position: fixed; z-index: 40; box-sizing: border-box;
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}
.doc-toc__h {
  margin: 0; padding: .85rem 1rem .7rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-700); border-bottom: 1px solid var(--line);
}
/* 滚动条放在列表上而不是整块上：标题行要一直留在顶上。
   左边那条细线画在滚动容器上，条目滚动时它保持满高，成为一条连续的轨。 */
.doc-toc__list {
  flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; list-style: none;
  margin: .65rem 0 .75rem 1rem; padding: 0 .9rem 0 0;
  border-left: 1px solid var(--line);
}
.doc-toc__list li { padding: 0; margin: 0; }
.doc-toc__link {
  display: block; font-size: .82rem; line-height: 1.5; color: var(--muted);
  padding: .38rem 0 .38rem .8rem; margin-left: -1px;
  border-left: 2px solid transparent;
  transition: color .16s, border-color .16s;
}
.doc-toc__link:hover { color: var(--gold-700); }
.doc-toc__link.is-active {
  color: var(--gold-700); font-weight: 600; border-left-color: var(--gold-500);
}
.doc-toc__list::-webkit-scrollbar { width: 3px; }
.doc-toc__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* 窄屏的入口。做成药丸而不是纯图标圆钮：里面那个「3/14」是手机上最有用的
   一条信息 —— 不点开就知道读到哪了，很多时候看一眼就够。没进到任何一节时
   这段是空的，:empty 把它收掉，药丸缩回成一个圆钮。
   高 44px 是触控目标的下限，再小拇指点不准。 */
.doc-toc__fab {
  position: fixed; z-index: 41;
  right: 1rem; bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  min-width: 44px; height: 44px; border-radius: 999px; padding: 0 .82rem;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--paper); border: 1px solid var(--line); color: var(--gold-700);
  box-shadow: 0 8px 22px rgba(16, 18, 26, .18);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: opacity .22s ease, visibility .22s ease;
}
.doc-toc__fab svg { width: 20px; height: 20px; flex: none; }
.doc-toc__pos {
  font-size: .8rem; font-weight: 700; line-height: 1; color: var(--ink-700);
  font-variant-numeric: lining-nums tabular-nums;
}
.doc-toc__pos:empty { display: none; }
/* 读者已经翻过正文、到了文末导航和页脚时收起：浮在页脚上没有意义，只挡内容 */
.doc-toc__fab.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
/* 往下读的时候整个淡出（JS 加的 is-idle），正文一个像素都不挡。
   这里只熄灭不 visibility:hidden —— 元素留在无障碍树和 Tab 顺序里，
   键盘走到它时下面那条把它点回来；对读屏和键盘用户来说它一直在。 */
.doc-toc__fab.is-idle { opacity: 0; pointer-events: none; }
.doc-toc__fab.is-idle:focus-visible { opacity: 1; pointer-events: auto; }

/* 窄屏：面板贴着按钮从右下角弹出，默认收起 */
@media (max-width: 1199.98px) {
  .doc-toc {
    right: 1rem; bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px));
    width: min(304px, calc(100vw - 2rem)); max-height: min(56vh, 420px);
    box-shadow: var(--sh-lg);
  }
  .doc-toc:not(.is-open) {
    opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none;
  }
}

/* 面板展开时压在正文上的一层：点哪儿都是收起，也把「现在是一层浮层」说清楚。
   z-index 压在页头（100）和手机抽屉（99）之下，导航不被盖住也不被调暗。 */
.doc-toc__scrim {
  position: fixed; inset: 0; z-index: 39; background: rgba(16, 18, 26, .3);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.doc-toc__scrim.is-open { opacity: 1; visibility: visible; }
@media (min-width: 1200px) { .doc-toc__scrim { display: none; } }

/* 宽屏：常驻正文右侧。
   left 里的 --wrap-narrow 和 .wrap-narrow 的宽度是同一个值 —— 正文列居中，
   所以它的右沿就是 50% 加上半个列宽。宽度再按剩余空白收一次，
   1200px 时得到约 168px，够放两行中文；空白不够就自己变窄，不挤正文。 */
@media (min-width: 1200px) {
  .doc-toc {
    top: calc(var(--nav-h) + 2.1rem);
    left: calc(50% + var(--wrap-narrow) / 2 + 1.9rem);
    width: min(248px, calc(50vw - var(--wrap-narrow) / 2 - 3.25rem));
    max-height: calc(100vh - var(--nav-h) - 4.8rem);
    box-shadow: none;
  }
  /* 与上面那条 .doc-toc:not(.is-open) 同级、靠后生效：宽屏不受窄屏开合状态影响 */
  .doc-toc:not(.is-open) { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .doc-toc.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
  .doc-toc__fab { display: none; }
}

@media print { .doc-toc, .doc-toc__fab, .doc-toc__scrim { display: none !important; } }

/* --- 13.2 分享 / share -------------------------------------------------- */
/* 按钮和面板都由 assets/js/site.js 的 buildShare() 插进每篇文章，HTML 里不用写。
   两处入口：页首标题下（深底），文末「上一篇 / 下一篇」之上（浅底）。
   手机上点了走系统分享面板，这里的 .share-sheet 只在电脑上出现；
   微信内置浏览器里出现的是 .share-wx 那层「点右上角」提示。 */
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: .5rem 1.05rem; border-radius: 999px;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--gold-700);
  border: 1px solid rgba(176, 143, 60, .45);
  transition: background .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.share-btn svg { width: 17px; height: 17px; flex: none; }
.share-btn:hover { background: rgba(176, 143, 60, .09); }
.share-row { margin-top: 1.4rem; }
.share-btn--hero { color: var(--gold-200); border-color: rgba(255, 255, 255, .3); }
.share-btn--hero:hover { background: rgba(255, 255, 255, .1); color: #FFF; }

.share-end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.2rem;
  margin-top: 3rem; padding: 1.1rem 1.35rem; border-radius: var(--r-md);
  background: var(--gold-50); border: 1px solid var(--gold-200);
}
.share-end p { margin: 0; font-weight: 600; color: var(--ink-800); line-height: 1.5; }
.share-end small { display: block; margin-top: .2rem; font-weight: 400; font-size: .84rem; color: var(--muted); }
/* 紧跟着的文末导航自带 3.4rem 上边距，贴着分享条时收一点 */
.share-end + .article-nav { margin-top: 2rem; }

/* 电脑上的面板：居中小卡片；窄屏（没有系统分享的手机浏览器）从底部弹出 */
.share-sheet { position: fixed; inset: 0; z-index: 200; display: none; }
.share-sheet.is-open { display: block; }
.share-sheet__scrim { position: absolute; inset: 0; background: rgba(16, 18, 26, .45); }
.share-sheet__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 2rem)); padding: 1.4rem 1.4rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
@media (max-width: 560px) {
  .share-sheet__panel {
    top: auto; bottom: 0; transform: none; left: 0; width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
}
.share-sheet__h {
  margin: 0 0 .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-600);
}
.share-sheet__title { margin: 0 2rem 1.1rem 0; font-weight: 600; color: var(--ink-800); line-height: 1.45; }
.share-sheet__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.share-sheet__grid > * {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .8rem .3rem; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-700); font: inherit; font-size: .84rem;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.share-sheet__grid > *:hover { background: var(--gold-50); color: var(--gold-700); }
.share-sheet__grid svg { width: 24px; height: 24px; color: var(--gold-600); }
.share-sheet__note { margin: 1rem 0 0; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.share-sheet__close {
  position: absolute; top: .9rem; right: .9rem; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.share-sheet__close:hover { background: var(--gold-50); color: var(--gold-700); }
.share-sheet__close svg { width: 18px; height: 18px; }

/* 微信内置浏览器：箭头指向右上角的「···」 */
.share-wx {
  position: fixed; inset: 0; z-index: 200; display: none;
  padding: 5.5rem 1.6rem 0; text-align: right;
  background: rgba(16, 18, 26, .82); color: #FFF;
}
.share-wx.is-open { display: block; }
.share-wx__arrow { position: absolute; top: .6rem; right: 1.4rem; width: 72px; height: 72px; color: var(--gold-300); }
.share-wx p { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.6; }
.share-wx b { color: var(--gold-300); }
.share-wx .btn { margin-top: 1rem; border-color: rgba(255, 255, 255, .35); color: #FFF; }

.share-toast {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); z-index: 210;
  transform: translate(-50%, 10px); max-width: calc(100vw - 2rem);
  padding: .65rem 1.1rem; border-radius: 999px;
  background: var(--ink-800); color: #FFF; font-size: .9rem; box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s, visibility .22s;
}
.share-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media print { .share-row, .share-end, .share-sheet, .share-wx, .share-toast { display: none !important; } }

/* --- 13.3 可折叠的长篇原文 / collapsible full text ------------------------ */
/* 整份原文放进文章里时用：一章一个 <details class="fold">，默认收起。
   展开 / 收起全部的按钮由 site.js 的 initFolds() 接管；打印时全部展开。
   For pasting a whole source document into an article: one fold per chapter,
   closed by default. initFolds() in site.js wires the expand/collapse-all
   buttons, opens a fold the URL hash points into, and opens all for print. */
.folds { margin: 1.6rem 0 2rem; }
.fold-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }
.fold-bar button {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--gold-300); background: var(--paper); color: var(--gold-700);
}
.fold-bar button:hover { background: var(--gold-50); }
.fold {
  margin: 0 0 .7rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); box-shadow: var(--sh-sm);
}
.fold > summary {
  position: relative; display: flex; align-items: baseline; gap: .75rem;
  padding: .95rem 3rem .95rem 1.2rem; cursor: pointer; list-style: none;
  font-weight: 700; line-height: 1.5; color: var(--ink-800);
  border-radius: var(--r-md); scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: .55rem; height: .55rem; margin-top: -.4rem;
  border-right: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500);
  transform: rotate(45deg); transition: transform .2s;
}
.fold[open] > summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.fold > summary:hover { background: var(--gold-50); }
.fold[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }
.fold__pg {
  flex: none; min-width: 4.6em; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; color: var(--gold-600); font-variant-numeric: tabular-nums;
}
.fold { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.fold__body { padding: .4rem 1.2rem 1.2rem; font-size: .98rem; line-height: 1.8; }
.fold__body > *:last-child { margin-bottom: 0; }
.fold__body h4 { margin: 1.6rem 0 .6rem; font-size: 1.06rem; color: var(--ink-800); }
.fold__body h5 { margin: 1.2rem 0 .4rem; font-size: .98rem; color: var(--gold-700); }
.fold__body .table-wrap { box-shadow: none; }
.fold__body .callout { margin: 1.2rem 0; }
.fold__body td.fold-sub { padding-left: 2.2rem; }
/* 原件里的矩阵常把首列当行标题（<th>），给它和 td 一样的格线与留白 */
.fold__body tbody th {
  padding: .82rem 1rem; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: top; line-height: 1.6; font-weight: 650; color: var(--ink-800);
  background: var(--gold-50);
}
.fold__body tbody tr:last-child th { border-bottom: 0; }
@media (min-width: 721px) { .fold__body tbody th { min-width: 9.5em; } }
@media (max-width: 560px) {
  .fold > summary { flex-direction: column; gap: .1rem; padding-left: 1rem; }
  .fold__body { padding: .3rem .9rem 1rem; }
}
@media print {
  .fold-bar { display: none !important; }
  .fold { box-shadow: none; break-inside: auto; }
  .fold > summary::after { display: none; }
}

/* --- 14. Feature rows --------------------------------------------------- */
.feature-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-row--flip > *:first-child { order: 2; }
@media (max-width: 760px) { .feature-row--flip > *:first-child { order: 0; } }

.visual {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--ink-800), #46261F 55%, var(--gold-600));
  display: grid; place-items: center; box-shadow: var(--sh-lg);
}
.visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 82%, rgba(255, 214, 138, .5), transparent 58%);
}
.visual__label {
  position: relative; z-index: 1; text-align: center; padding: 1.5rem;
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); color: #FFF6DC;
}
.visual__label small { display: block; font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-top: .6rem; }

/* Photo placeholder tiles (team events) */
.photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, var(--gold-100), var(--sand) 55%, var(--gold-200));
  border: 1px dashed var(--gold-300); color: var(--gold-700);
  font-size: .85rem; padding: 1rem; line-height: 1.5;
}
.photo--tall { aspect-ratio: 3 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- 15. Steps ---------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 0 1.1rem; align-items: start;
  padding: 1.25rem 1.4rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateX(4px); box-shadow: var(--sh-md); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: #2C1F02;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
}
/* 有的步骤把标题和正文包在一个 <div> 里，有的直接平铺（中英各一个 h4、一个 p）。
   平铺时第二个子元素会被自动排进左边 52px 那一栏，正文就一两个字一行。
   所以：所有子元素固定在右栏往下排，序号跨满左栏的行。 */
.step > * { grid-column: 2; }
.step::before { grid-row: 1 / span 8; grid-column: 1; }
.step h4 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; font-size: .94rem; color: var(--muted); }
.section--dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--dark .step p { color: var(--muted-d); }

/* --- 16. Password gate -------------------------------------------------- */
html.gated body > *:not(.gate):not(.site-header) { display: none !important; }
html.gated .site-header { display: none !important; }
.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 1.5rem;
  /* 底部一抹香槟色的天光，往上收进石墨 —— 跟首页开场同一套语言。
     原来这里是橙→洋红的日出渐变，是改版前漏网的火色。 */
  background: radial-gradient(120% 90% at 50% 112%,
    #D9C793 0%, #9C8552 13%, #574F3F 30%, #2A2E35 55%, #171A20 78%, var(--ink-900) 100%);
}
.gate__card {
  width: min(100%, 430px); padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--r-xl); text-align: center;
  background: rgba(250, 247, 240, .97);   /* = --cream */
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  animation: fadeUp .6s var(--ease) both;
}
/* 原来是一块 conic-gradient 的实心金盘，跟品牌标记没关系。换成标记本身之后
   光晕要用 drop-shadow 而不是 box-shadow：标记中间是镂空的，box-shadow 会沿着
   方框描一圈，drop-shadow 才跟着形状走。 */
.gate__mark {
  width: 64px; height: 64px; margin: 0 auto .85rem;
  filter: drop-shadow(0 0 24px rgba(201, 169, 97, .5));
}
/* 标记下面的字标。写成 .gate__card .gate__brand 是为了压过下面那条
   `.gate__card p`（它把所有段落设成灰色小字、底部留 1.5rem）。 */
.gate__card .gate__brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.12rem; letter-spacing: -.01em;
  color: var(--ink-900); margin: 0 0 1.15rem;
}
.gate__card h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.gate__card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }
.gate__form { display: flex; flex-direction: column; gap: .7rem; }
.gate__form input {
  width: 100%; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: 1rem; text-align: center; color: var(--ink-800);
  transition: border-color .2s, box-shadow .2s;
}
.gate__form input:focus { outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 169, 97, .2); }
.gate__err { font-size: .87rem; color: var(--gold-700); min-height: 1.3em; margin: 0; }
.gate__foot { margin-top: 1.3rem; font-size: .8rem; color: var(--muted); }
.gate.shake .gate__card { animation: shake .45s; }
/* 「忘记口令？」那套：两张表单用 hidden 切换，但 .gate__form 的 display:flex
   会盖过浏览器自带的 [hidden]，所以要显式写回去。 */
.gate__form[hidden] { display: none; }
.gate__card .gate__hint { margin: 0 0 .2rem; font-size: .88rem; }
.gate__link {
  align-self: center; padding: .3rem .5rem; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: .85rem; color: var(--accent);
  transition: color .2s;
}
.gate__link:hover { color: var(--gold-700); text-decoration: underline; }
.gate__form .btn:disabled { opacity: .55; cursor: default; }

/* R.I.S.E. 四条价值观的中文词组不拆行。
   中文默认可以在任意两字之间断行，"Relationships" 又比另外三个词长一截，
   结果只有这一张卡片断成「以人 / 为先」，四张卡就不齐了。
   加 nowrap 之后断点落在英文和中文之间，看起来是有意为之。 */
.v-cn { white-space: nowrap; }

/* --- 17. Library / training ------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.chip {
  padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: .86rem; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--gold-300); color: var(--gold-700); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: transparent; color: #2C1F02; box-shadow: var(--sh-gold);
}
.search-box { position: relative; margin-bottom: 1.2rem; max-width: 420px; }
.search-box input {
  width: 100%; padding: .78rem 1.1rem .78rem 2.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink-800);
}
.search-box input:focus { outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 169, 97, .18); }
.search-box::before {
  content: "⌕"; position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: var(--muted); pointer-events: none;
}

.file-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center;
  padding: .95rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.file-row + .file-row { margin-top: .6rem; }
.file-row:hover { border-color: var(--gold-300); box-shadow: var(--sh-md); transform: translateX(3px); }
.file-row__ext {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  font-size: .66rem; font-weight: 800; letter-spacing: .02em; color: #FFF;
  background: var(--ink-600);
}
.file-row__ext[data-ext="PDF"] { background: #C0392B; }
.file-row__ext[data-ext="XLSX"], .file-row__ext[data-ext="CSV"] { background: #217346; }
.file-row__ext[data-ext="DOCX"] { background: #2B5797; }
.file-row__ext[data-ext="PPTX"] { background: #C55A11; }
.file-row__ext[data-ext="LINK"] { background: var(--gold-600); }
.file-row__name { font-weight: 600; color: var(--ink-800); font-size: .97rem; line-height: 1.4; }
.file-row__meta { font-size: .8rem; color: var(--muted); }
.file-row__cta { font-size: .85rem; font-weight: 650; color: var(--gold-600); white-space: nowrap; }
.file-row.is-todo { border-style: dashed; opacity: .82; }
@media (max-width: 560px) {
  .file-row { grid-template-columns: 40px 1fr; }
  .file-row__cta { grid-column: 2; }
}

.video-card { padding: 0; overflow: hidden; }
.video-card__thumb {
  /* 封面图垫在这层金色渐变上面。图挂了（视频被删、网络被挡）也还是渐变，
     不会变成一块空白 —— resources.js 里的内联 style 会带上这个变量。
     The cover image sits on top of this gradient, so a broken thumbnail
     falls back to the gradient instead of a blank box. */
  --thumb-fallback: linear-gradient(145deg, var(--ink-800), var(--ink-700) 55%, var(--gold-700));
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: var(--thumb-fallback);
}
.video-card__thumb::after {
  content: ""; width: 54px; height: 54px; border-radius: 50%;
  /* 注意 data URI 里的颜色是写死的十六进制，用不了 CSS 变量，
     也搜不到 var(--gold-*) —— 改配色时容易漏掉这一处。 */
  background: rgba(250, 247, 240, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238F7229'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/24px no-repeat;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3); transition: transform .3s var(--ease);
}
.video-card:hover .video-card__thumb::after { transform: scale(1.12); }
.video-card__dur {
  position: absolute; right: .6rem; bottom: .6rem; padding: .12rem .5rem; border-radius: 5px;
  background: rgba(10, 12, 17, .78); color: #FFF; font-size: .74rem; font-variant-numeric: tabular-nums;
}
.video-card__body { padding: 1.1rem 1.3rem 1.3rem; }
.video-card__meta {
  display: block; margin-bottom: .35rem; font-size: .76rem; letter-spacing: .02em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.video-card__lang {
  display: inline-block; margin-left: .45rem; padding: .02rem .36rem; border-radius: 4px;
  border: 1px solid var(--gold-700); color: var(--gold-700);
  font-size: .72rem; font-weight: 650; letter-spacing: .03em; vertical-align: .04em;
}
.video-card__meta code {
  padding: .04rem .28rem; border-radius: 4px; background: var(--sand, rgba(0, 0, 0, .05));
  font-size: .95em; color: var(--ink-700);
}
.video-card__body h4 { margin-bottom: .3rem; font-size: 1rem; }
.video-card__body p { font-size: .84rem; color: var(--muted); margin-bottom: 0; }

.empty-note {
  padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--r-md);
  border: 1px dashed var(--line); color: var(--muted); font-size: .92rem;
}

/* --- 18. Forms ---------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink-700); }
.field input, .field select, .field textarea {
  padding: .75rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--paper); font-family: var(--font-body); font-size: .97rem; color: var(--ink-800);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 169, 97, .18);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* --- 19. CTA band ------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0; text-align: center;
  background: linear-gradient(140deg, var(--ink-900) 0%, #1E222A 42%, #4A4433 74%, var(--gold-600) 100%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 120%;
  width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 228, .5), transparent 62%);
  animation: breathe 10s ease-in-out infinite;
}
.cta-band h2 { color: #FFF; margin-bottom: .8rem; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 2rem; }

/* --- 20. Footer --------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--muted-d); padding: 3.6rem 0 2rem; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .76); }
.site-footer a:hover { color: var(--gold-300); }
/* 原来写的是 `1.6fr repeat(auto-fit, minmax(150px, 1fr))`。
   auto-repeat 不能和轨道列表里别处的 <flex> 并存 —— 整条声明因此是无效的、
   被浏览器整条丢掉，页脚从来就没分过栏：1440 / 1024 / 768 / 390 四个宽度下
   计算出来的 grid-template-columns 都只有一条轨道，四块一直是竖着摞下来的。
   栏数跟着 FOOTER_COLS 走（三栏），所以直接写死 repeat(3)。 */
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(150px, 1fr)); gap: 2.2rem; }
@media (max-width: 900px) {
  /* 品牌那一栏独占一行，三栏链接仍然并排 */
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.9rem 1.2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .brand__name { color: #FFF; }
.footer-brand p { margin: 1rem 0 0; font-size: .9rem; max-width: 320px; color: var(--muted-d); line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-300); margin: 0 0 .9rem; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  font-size: .82rem; color: #6E7383;
}
.footer-legal { max-width: 900px; margin-top: 1.4rem; font-size: .76rem; line-height: 1.7; color: #5D6272; }

/* --- 21. Reveal animations ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; } .reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; } .reveal-d4 { transition-delay: .36s; }
.reveal-d5 { transition-delay: .45s; } .reveal-d6 { transition-delay: .54s; }

.anim-up { animation: fadeUp .9s var(--ease) both; }
.a-d1 { animation-delay: .15s; } .a-d2 { animation-delay: .3s; }
.a-d3 { animation-delay: .45s; } .a-d4 { animation-delay: .6s; } .a-d5 { animation-delay: .78s; }

/* --- 22. Keyframes ------------------------------------------------------ */
@keyframes rings-breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: .82; }
  50%      { transform: translateX(-50%) scale(1.055); opacity: 1; }
}
@keyframes hero-sheen {
  from { transform: translateX(-36%); }
  to   { transform: translateX(36%); }
}
/* 走一个平铺单位就回到相同图案，所以循环是无缝的（见 .hero__mist 的说明） */
@keyframes mist-drift {
  to { transform: translateX(-50%); }
}
@keyframes breathe { 0%, 100% { opacity: .78; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.07); } }
@keyframes shine { to { background-position: -250% 0; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 199, 147, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(217, 199, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 199, 147, 0); }
}
@keyframes scrollHint { 0%, 100% { opacity: .25; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}

/* The breathe keyframes bake in translateX(-50%); the cta variant is centred on
   both axes, so it needs its own to keep the Y offset. */
.cta-band::after { animation-name: breatheCta; }
@keyframes breatheCta {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.08); }
}

/* --- 23. Motion / print ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* 圆环和高光停在看得见的位置，而不是停在动画终点（会跑到屏幕外）。 */
  .hero__rings { transform: translateX(-50%) scale(1); opacity: .9; }
  .hero__sheen { transform: none; }
  .hero__mist::before, .hero__mist::after { transform: none; }
  .brand__sheen { transform: translateX(46px); }
  /* 视频是这一页动得最厉害的东西，要求减少动效的人最该被免掉的就是它。
     隐藏后 .hero__photo 的背景图露出来，画面内容不变，只是不动了。 */
  .hero__video { display: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero__scroll, .gate { display: none !important; }
  body { background: #FFF; color: #000; font-size: 11pt; }
  .page-hero { background: none !important; padding: 0 0 1rem; }
  .page-hero h1, .page-hero p { color: #000 !important; }
  .card, .table-wrap, .callout { break-inside: avoid; }
}

/* ==========================================================================
   24. 图像层 / Imagery
   生成的图片都放在 assets/img/ 下，按用途分目录：
     brand/     logo、社交分享图、英雄区背景
     articles/  文章头图（每篇一张）
     visual/    装饰方块
     events/    活动氛围图
   ========================================================================== */

/* --- 文章头图：图片垫在渐变遮罩下面，保证标题始终可读 --------------------
   用法：<section class="page-hero page-hero--img"
              style="--hero-img:url(/assets/img/articles/xxx.webp)">
   遮罩从左到右由浓到淡：左边压住文字区，右边把图露出来。
------------------------------------------------------------------------- */
.page-hero--img {
  background-image:
    linear-gradient(100deg,
      rgba(10, 12, 17, .94) 0%,
      rgba(10, 12, 17, .88) 38%,
      rgba(10, 12, 17, .58) 68%,
      rgba(10, 12, 17, .34) 100%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
@media (max-width: 860px) {
  /* 窄屏文字会占满整宽，遮罩要整体加深 */
  .page-hero--img {
    background-image:
      linear-gradient(170deg, rgba(10, 12, 17, .93), rgba(10, 12, 17, .8)),
      var(--hero-img);
  }
}

/* --- 首页英雄区影像层 ----------------------------------------------------
   这是开场画面的主体：一张拉丝金属的影像。它压在天光层之上、
   圆环与高光之下，所以那两层读起来像是"光落在金属上"，而不是浮在黑底上。
------------------------------------------------------------------------- */
.hero__photo {
  position: absolute; inset: 0; z-index: -5;
  background-image: url("/assets/img/brand/hero-bg.webp");
  background-size: cover; background-position: center;
  opacity: .92;
}
/* 动态版的同一个场景。视频放在 .hero__photo 内部而不是替换它，
   有两个原因：下面那道 ::after 压暗遮罩是伪元素，绘制在子元素之后，
   所以仍然盖在视频上，白字对比度不变；而背景图自动成为视频
   加载前、解码失败、或浏览器拒绝自动播放时的兜底。 */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* 文字压在左侧，所以只压暗左边，右边把金属完整露出来。
   没有这道遮罩，图会把正文那一段的背景提亮，白字对比度明显变差。 */
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(16, 18, 22, .95) 0%,
    rgba(16, 18, 22, .9) 28%,
    rgba(16, 18, 22, .62) 54%,
    rgba(16, 18, 22, .22) 80%,
    rgba(16, 18, 22, 0) 100%);
}
@media (max-width: 860px) {
  /* 窄屏文字占满整宽，改成整体压暗，并换成小图省流量 */
  .hero__photo {
    opacity: .72; background-image: url("/assets/img/brand/hero-bg-sm.webp");
    background-position: 68% center;
  }
  .hero__photo::after { background: rgba(16, 18, 22, .72); }
}

/* --- .visual 装饰块改为图片承载 ------------------------------------------ */
.visual--img { background: var(--ink-900); }
.visual--img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .72;
}
.visual--img::after {
  background: linear-gradient(160deg, rgba(10,12,17,.35), rgba(10,12,17,.75));
}
.visual--img .visual__label { text-shadow: 0 2px 16px rgba(10, 12, 17, .85); }

/* --- .photo 放真实图片时（已在 §14 定义 .photo img，这里补占位态区分）---- */
.photo--filled { border-style: solid; border-color: var(--line); padding: 0; }
.photo--filled span { display: none; }

/* --- 承保公司铭牌：图 + 左下角文字块 --------------------------------------
   两家公司各有一张自己的图（两家总部大楼的实拍，保留原色不做金属调色），一块一张，不叠在一起。
   文字原来居中压在日出的高光上，白字对白光读不清 —— 挪到左下角，
   底部加重遮罩，上面压一道金线，跟 .eyebrow 是同一种起手式。
------------------------------------------------------------------------- */
.visual--plate img { opacity: 1; }
.visual--plate::after {
  background:
    linear-gradient(to top,
      rgba(10, 12, 17, .93) 0%,
      rgba(10, 12, 17, .74) 24%,
      rgba(10, 12, 17, .30) 54%,
      rgba(10, 12, 17, .12) 76%,
      rgba(10, 12, 17, .38) 100%);
}
.visual--plate .visual__label {
  align-self: end; justify-self: start; text-align: left;
  padding: clamp(1.3rem, 3.2vw, 2rem);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.06;
}
.visual--plate .visual__label small { letter-spacing: .14em; margin-top: .75rem; }
.visual--plate .visual__label sup { font-size: .46em; top: -.62em; }
.visual__arrow { color: var(--gold-300); font-weight: 400; padding: 0 .12em; }
.visual__kicker {
  display: flex; align-items: center; gap: .55rem; margin-bottom: .95rem;
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300);
}
.visual__kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
}

/* --- 暗底影像（整屏铺一张压暗的图）---------------------------------------
   用法：<section class="section section--dark section--photo"
              style="--bg-img:url(/assets/img/articles/xxx.webp)">

   和 .page-hero--img 不是一回事：那边文字只占左半边，遮罩可以左浓右淡；
   这里左边是标题、右边是四张卡片，两边都要读，所以遮罩全幅都得压住，
   图退成一层质感而不是一张照片。

   .step 在暗底上的底色是 rgba(255,255,255,.05)——几乎全透，图会直接透到
   卡片文字后面。所以图本身的 opacity 压到 .45，上面再盖一整层墨色；
   换图之前先确认新图本身就是暗的，亮图换上来卡片里的字会立刻不够看。
------------------------------------------------------------------------- */
.section--photo { position: relative; overflow: hidden; isolation: isolate; }
.section--photo > .wrap { position: relative; z-index: 1; }
.section--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg-img);
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  opacity: .58;
}
.section--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    /* 上下各收一道，图不顶到分节线上 */
    linear-gradient(to bottom, var(--ink-900) 0%, rgba(16, 18, 22, 0) 20%,
                    rgba(16, 18, 22, 0) 76%, var(--ink-900) 100%),
    /* 全幅压暗，左边（标题）再重一档 */
    linear-gradient(100deg, rgba(16, 18, 22, .93) 0%, rgba(16, 18, 22, .84) 40%,
                    rgba(16, 18, 22, .72) 70%, rgba(16, 18, 22, .68) 100%);
}
@media (max-width: 860px) {
  /* 窄屏标题与卡片上下叠在一起，整幅统一压暗 */
  .section--photo::after { background: rgba(16, 18, 22, .88); }
}

/* --- 星系背景（R.I.S.E. 价值观那一屏）------------------------------------
   金曰「从革」，其形为圆 —— 一颗恒星、五条正圆轨道、五颗行星，全是圆。
   顺序很要紧：星 → 轨道 → 幕布（.cosmos::after）→ 正文。
   幕布在最左边是实心墨色、往右逐档变薄，所以标题永远坐在纯底上，
   星系只在右侧的空场里露出来；四张卡片本身不透明，卡上的字也不受影响。
------------------------------------------------------------------------- */
.section--cosmos { position: relative; overflow: hidden; isolation: isolate; }
.section--cosmos > .wrap { position: relative; z-index: 1; }

.cosmos {
  position: absolute; inset: 0; pointer-events: none;
  /* 恒星系中心：右上角的空场里 */
  --cx: 79%; --cy: 24%;
}

.cosmos__stars {
  position: absolute; inset: 0;
  /* 两种平铺尺寸交错，避免看出重复的格子 */
  background-image:
    radial-gradient(1.7px 1.7px at 22px 34px,   rgba(255, 248, 228, .80), transparent 100%),
    radial-gradient(1.2px 1.2px at 148px 96px,  rgba(217, 199, 147, .68), transparent 100%),
    radial-gradient(1.4px 1.4px at 246px 26px,  rgba(255, 248, 228, .56), transparent 100%),
    radial-gradient(1.1px 1.1px at 84px 178px,  rgba(198, 202, 210, .62), transparent 100%),
    radial-gradient(1.6px 1.6px at 312px 152px, rgba(255, 248, 228, .48), transparent 100%),
    radial-gradient(1.1px 1.1px at 196px 214px, rgba(217, 199, 147, .52), transparent 100%);
  background-size:
    380px 260px, 380px 260px, 380px 260px,
    617px 431px, 617px 431px, 617px 431px;
}

.cosmos__sun {
  position: absolute; left: var(--cx); top: var(--cy);
  width: 210px; height: 210px; margin: -105px 0 0 -105px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              rgba(255, 248, 228, .50) 0%, rgba(217, 199, 147, .26) 26%,
              rgba(176, 143, 60, .12) 46%, transparent 72%);
  animation: sun-breathe 12s ease-in-out infinite;
}
.cosmos__sun::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, var(--metal-hi), var(--gold-400) 70%);
  box-shadow: 0 0 22px rgba(255, 248, 228, .45);
}

.cosmos__orbit {
  position: absolute; left: var(--cx); top: var(--cy);
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border-radius: 50%; border: 1px solid rgba(217, 199, 147, .17);
  animation: cosmos-orbit var(--t) linear infinite;
}
/* 行星停在自己那条轨道上：先归心，再转到各自的起始角，再沿半径推出去。
   起始角写在 transform 里而不是靠负 delay —— 关掉动画时它们才不会挤在同一点。 */
.cosmos__orbit i {
  position: absolute; left: 50%; top: 50%;
  width: var(--d); height: var(--d); border-radius: 50%;
  background: var(--gold-300); box-shadow: 0 0 12px rgba(217, 199, 147, .5);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1));
}
.cosmos__orbit--1 { --r: 88px;  --t: 46s;  --a: 28deg;  --d: 5px; }
.cosmos__orbit--2 { --r: 152px; --t: 74s;  --a: 212deg; --d: 7px; }
.cosmos__orbit--3 { --r: 238px; --t: 112s; --a: 128deg; --d: 5px; }
.cosmos__orbit--4 { --r: 340px; --t: 168s; --a: 306deg; --d: 9px; }
.cosmos__orbit--5 { --r: 470px; --t: 240s; --a: 74deg;  --d: 6px; }
/* 最外圈在窄屏上只剩一道横线，不如不要 */
@media (max-width: 1100px) { .cosmos__orbit--5 { display: none; } }

/* 幕布：左浓右淡，上下各收一道，星系就不会顶到分节线上 */
.cosmos::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(16, 18, 22, .55) 0%, rgba(16, 18, 22, 0) 18%,
                    rgba(16, 18, 22, 0) 72%, rgba(16, 18, 22, .7) 100%),
    linear-gradient(100deg, var(--ink-900) 0%, rgba(16, 18, 22, .96) 30%,
                    rgba(16, 18, 22, .62) 56%, rgba(16, 18, 22, .22) 78%,
                    rgba(16, 18, 22, .16) 100%);
}
@media (max-width: 860px) {
  /* 窄屏标题占满整宽，幕布改成整体压暗 */
  .cosmos { --cx: 88%; --cy: 16%; }
  .cosmos::after { background: rgba(16, 18, 22, .88); }
}

@keyframes cosmos-orbit { to { transform: rotate(360deg); } }
@keyframes sun-breathe {
  0%, 100% { opacity: .82; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}


/* ==========================================================================
   装到手机上 / Installable app (PWA)
   /assets/js/pwa.js 里那条安装提示条和 iOS 的说明卡片，外加装好之后
   （从主屏幕打开）才生效的几处调整。缓存策略在 /sw.js 里，与样式无关。
   The install bar and the iOS instruction sheet built by /assets/js/pwa.js,
   plus a few tweaks that only apply once the site runs as an installed app.
   ========================================================================== */

/* 层级说明：页头 100、手机抽屉 99、文章目录 40/41、口令门 9999。
   安装条取 60 —— 压得住目录药丸，又绝不会盖住导航或口令门。
   z-index map: header 100, mobile drawer 99, article TOC 40/41, gate 9999.
   The bar sits at 60: above the TOC pill, never above the nav or the gate. */
.install-bar {
  position: fixed; z-index: 60;
  left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: min(480px, calc(100vw - 2rem)); margin-inline: auto;
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  /* 起始状态：往下挪一点并透明，JS 加 .is-in 之后滑上来 */
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.install-bar.is-in { opacity: 1; transform: none; }

/* App 图标是米白底的，而这张卡片是纯白的 —— 不描一道边的话图标没有轮廓，
   只剩当中那枚金色标记浮在卡上。这条发丝线就是那个图标该有的边框。
   The app icon is cream on a white card, so without this hairline it has no
   edge at all and only the gold mark appears to float. */
.install-bar__mark {
  width: 44px; height: 44px; flex: none; border-radius: 11px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(16, 18, 26, .14);
}
.install-bar__text { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.install-bar__text strong { display: block; font-size: .95rem; color: var(--ink-900); }
.install-bar__text span { display: block; font-size: .8rem; color: var(--muted); }

.install-bar__actions { display: flex; align-items: center; gap: .4rem; flex: none; }
/* 提示条里的按钮比正文里的小一号，不然这张卡会被一个大按钮撑散 */
.install-bar__go { padding: .52rem 1.05rem; font-size: .86rem; }
.install-bar__x {
  width: 32px; height: 32px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--muted-d); font-size: .82rem; line-height: 1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .16s, color .16s;
}
.install-bar__x:hover { background: var(--sand); color: var(--body); }

/* 很窄的屏上，一行放不下「图标 + 两行字 + 两个按钮」，让按钮换行铺满。
   断点是量出来的，不是估的。单行布局的实测高度 / 文案列宽 / 标题行数：
     414px → 88px / 174px / 1      375px → 88px / 135px / 1
     390px → 88px / 150px / 1      360px → 88px / 120px / 1
     320px → 129px / 80px / 2      （换行版 124px，几乎一样高，但文案是整宽的）
   360 以上文案列够标题排一行，单行明显更紧凑；320 那一档文案被挤成
   一条 80px 的窄缝，高度还反超换行版，那就不如换行。
   Breakpoint measured, not guessed: down to 360px the single row keeps the
   title on one line and stays 88px tall; at 320px the text column collapses to
   80px and the single row ends up taller than the wrapped one anyway. */
@media (max-width: 339px) {
  .install-bar { flex-wrap: wrap; }
  .install-bar__actions { width: 100%; justify-content: flex-end; }
}

/* 文章页右下角那个目录药丸和这条重叠。提示条在的时候把它顶上去，面板也一起。
   --install-bar-h 是 pwa.js 量出来的**实际**高度（≥430px 是 73px、
   360~414px 是 88px、≤339px 换行后是 124px），随转屏更新。
   这里必须用它而不是写死一个值：写死的那一版在 390px 上量出来还压着药丸 27px。
   偏移量 = 提示条离底边的 1rem + 它自己的高 + 0.9rem 的缝。
   面板再往上让出一个药丸的高（44px ≈ 2.75rem）加一道缝。
   --install-bar-h is measured by pwa.js because the bar's height varies with
   width and orientation; a hard-coded offset was 27px short at 390px. */
html.has-install-bar .doc-toc__fab {
  bottom: calc(var(--install-bar-h, 0px) + 1.9rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 1199.98px) {
  html.has-install-bar .doc-toc {
    bottom: calc(var(--install-bar-h, 0px) + 5.65rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- iOS 的说明卡片 -------------------------------------------------
   苹果没有任何可以触发安装的 API，只能把「分享 → 添加到主屏幕」这三步
   画出来。所以这张卡片是纯说明，没有按钮能替用户点。
   iOS exposes no install API at all, so this card can only show the three
   manual steps — there is no button that can do it for the user. */
.install-sheet {
  position: fixed; inset: 0; z-index: 9998;   /* 只比口令门低一级 */
  display: grid; place-items: end center; padding: 1rem;
  background: rgba(16, 18, 26, .45);
  opacity: 0; transition: opacity .26s var(--ease);
}
.install-sheet.is-in { opacity: 1; }
.install-sheet__card {
  width: min(100%, 460px);
  margin-bottom: env(safe-area-inset-bottom, 0px);
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  transform: translateY(16px); transition: transform .26s var(--ease);
}
.install-sheet.is-in .install-sheet__card { transform: none; }
.install-sheet__card h2 {
  margin: 0 0 1.1rem; font-family: var(--font-display);
  font-size: 1.3rem; color: var(--ink-900);
}
.install-sheet__steps { margin: 0; padding-left: 1.3rem; }
.install-sheet__steps li { margin-bottom: .7rem; font-size: .95rem; color: var(--body); }
.install-sheet__steps li::marker { color: var(--gold-600); font-weight: 700; }
/* 分享图标跟在文字后面走行内，和「点底部的分享」连成一句话 */
.install-sheet__ico {
  display: inline-block; vertical-align: -.28em;
  width: 1.15em; height: 1.15em; margin-left: .15em; color: var(--gold-700);
}
.install-sheet__note {
  margin: 1.1rem 0 1.3rem; font-size: .82rem; line-height: 1.65; color: var(--muted);
  padding-top: .9rem; border-top: 1px solid var(--line);
}
.install-sheet__ok { width: 100%; }

/* ---- 装好之后（从主屏幕打开）------------------------------------------
   html.is-app 由 pwa.js 在 display-mode: standalone 时挂上。
   Set by pwa.js when the page is running as an installed app. */

/* 页脚最后一行会被 iPhone 底部那条 Home 指示条压住 */
html.is-app .site-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }

/* 装好了就不该再出现任何「装到手机上」的说法 */
html.is-app .install-bar,
html.is-app .install-sheet { display: none; }

/* ==========================================================================
   在线表格 / Online forms (forms/*.html)
   团队四张信息表的网页版：在页面上填，按「保存为 PDF」走浏览器打印。
   屏幕上是一张宽松的表单；打印时收成和 /files/forms/ 里那几张 PDF 同样
   紧凑的样子（标题黑条、栏位下划线、表格加框）。行为在 /assets/js/forms.js。
   The web versions of the four intake sheets. Roomy on screen; in print they
   tighten up to match the blank PDFs in /files/forms/. Behaviour lives in
   /assets/js/forms.js.
   ========================================================================== */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 0 0 1rem; }
.form-actions + .disclaimer { margin-top: 2rem; }
.form-hint { font-size: .84rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.6rem; }
.form-hint b { color: var(--ink-700); }

.tr-form { font-size: 1rem; line-height: 1.6; }
.tr-form .fs { margin-bottom: 1rem; }
/* 每个 h2 都是所在 .fs 的第一个子元素，会被 .article__body h2:first-child 去掉上边距，
   所以这里用 .fs > h2 把优先级抬上去。 */
.tr-form .fs > h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.tr-form .callout { margin-top: 0; font-size: .9rem; }
.tr-form .fnote { font-size: .86rem; line-height: 1.7; color: var(--muted); margin: .4rem 0 1rem; }

.tr-form .fg {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem 1.1rem; margin: 1rem 0 1.4rem;
}
.tr-form .f { grid-column: span 2; display: flex; flex-direction: column; gap: .32rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.tr-form .s3 { grid-column: span 3; }
.tr-form .s4 { grid-column: span 4; }
.tr-form .s6 { grid-column: 1 / -1; }
/* forms.js 按所选身份隐藏的栏位；不写这条的话 .f 的 display:flex 会盖过 hidden */
.tr-form .f[hidden] { display: none; }
@media (max-width: 680px) {
  .tr-form .fg { grid-template-columns: 1fr; }
  .tr-form .f, .tr-form .s3, .tr-form .s4 { grid-column: 1 / -1; }
}

.tr-form label, .tr-form legend, .tr-form .l {
  padding: 0; font-size: .84rem; font-weight: 600; line-height: 1.45; color: var(--ink-700);
}
.tr-form input[type="text"], .tr-form input[type="email"], .tr-form input[type="tel"],
.tr-form select, .tr-form textarea {
  width: 100%; padding: .62rem .8rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--paper); font-family: var(--font-body); font-size: 16px; /* iOS 小于 16px 会自动放大页面 */
  color: var(--ink-800); transition: border-color .2s, box-shadow .2s;
}
.tr-form textarea { resize: vertical; line-height: 1.6; min-height: 4.2rem; overflow: hidden; }
.tr-form input:focus, .tr-form select:focus, .tr-form textarea:focus {
  outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 169, 97, .18);
}
.tr-form input[readonly] { background: var(--sand); color: var(--ink-700); font-weight: 600; }
.tr-form ::placeholder { color: var(--muted-d); }


.tr-form .opts { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; padding-top: .15rem; }
.tr-form .opt { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 400; color: var(--ink-800); cursor: pointer; }
.tr-form .opt input { width: 1.1rem; height: 1.1rem; margin: 0; flex: none; accent-color: var(--gold-600); }

.tr-form .yn {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.4rem;
  margin: 0; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line);
}
.tr-form .yn legend { float: left; max-width: 74%; font-size: .95rem; font-weight: 400; color: var(--ink-800); line-height: 1.6; }
.tr-form .yn .opts { flex: none; margin-left: auto; padding-top: 0; }
@media (max-width: 680px) {
  .tr-form .yn { flex-wrap: wrap; }
  .tr-form .yn legend { float: none; max-width: none; }
  .tr-form .yn .opts { margin-left: 0; }
}

.tr-form .form-table { margin: .6rem 0 .4rem; }
.tr-form .form-table table { font-size: .9rem; }
.tr-form .form-table td { padding: 0; border-bottom: 1px solid var(--line); }
.tr-form .form-table td + td, .tr-form .form-table th + td { border-left: 1px solid var(--line); }
.tr-form .form-table tbody th { padding: .5rem .8rem; font-weight: 600; white-space: nowrap; color: var(--ink-700); border-bottom: 1px solid var(--line); }
.tr-form .form-table td input, .tr-form .form-table td select {
  min-width: 6.5rem; border: 0; border-radius: 0; background: transparent; padding: .55rem .6rem; font-size: 16px;
}
.tr-form .form-table td select { min-width: 9.5rem; }
/* 电脑上（有鼠标、不会因字小而放大）列多的表收紧一点，整张表放得下，不用横向滚 */
@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .tr-form .form-table td input, .tr-form .form-table td select { min-width: 4.2rem; padding: .5rem .45rem; font-size: 14px; }
  .tr-form .form-table td select { min-width: 6rem; }
  .tr-form .form-table thead th { padding: .6rem .5rem; }
  /* 员工名单：% 和性别只填几个字，让出位置给日期 */
  #t-census th:nth-child(4), #t-census th:nth-child(6) { width: 1%; }
  #t-census td:nth-child(4) input, #t-census td:nth-child(6) input { min-width: 2.8rem; }
}
.tr-form .form-table td input:focus, .tr-form .form-table td select:focus { box-shadow: inset 0 0 0 2px var(--gold-300); }
.tr-form .form-table td.n { padding: 0 .6rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-form .form-table td.ck { text-align: center; }
.tr-form .form-table td.ck input { min-width: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--gold-600); }
.tr-form .add-row { margin: .5rem 0 1rem; }
.tr-form .benef-sum { margin: .2rem 0 0; font-size: .84rem; color: var(--muted); min-height: 1.2em; }
.tr-form .benef-sum .is-off { color: var(--gold-700); font-weight: 700; }
.tr-form .benef-sum .is-ok { color: var(--ink-700); }

.form-steps {
  list-style: none; counter-reset: step; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem;
}
.form-steps li {
  counter-increment: step; padding: .85rem 1rem; border-radius: var(--r-sm);
  background: var(--paper); border: 1px solid var(--line); font-size: .84rem; line-height: 1.5; color: var(--muted);
}
.form-steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-600); }
.form-steps b { display: block; color: var(--ink-800); font-size: .92rem; margin-bottom: .15rem; }

.tr-form .pv, .tr-form .print-head, .tr-form .print-foot { display: none; }

@media print {
  @page { size: letter; margin: 11mm 11mm 12mm; }
  .form-hero, .form-actions, .form-hint, .form-wx, .form-article .disclaimer,
  .tr-form .add-row, .install-bar, .install-sheet { display: none !important; }
  .form-article { padding: 0; }
  .form-article .wrap-narrow { width: 100%; max-width: none; }

  .tr-form { font-size: 8.6pt; line-height: 1.35; color: #000; }
  .tr-form .print-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-bottom: 5pt; margin-bottom: 7pt; border-bottom: 1.2pt solid var(--ink-900);
  }
  .tr-form .print-head b { display: block; font-size: 15pt; font-family: var(--font-display); }
  .tr-form .print-head small { display: block; font-size: 8pt; letter-spacing: .06em; color: #555; }
  .print-head__mark { text-align: right; font-weight: 700; letter-spacing: .14em; color: var(--gold-700); }
  .tr-form .print-foot { display: block; margin-top: 10pt; font-size: 7pt; color: #666; }

  .tr-form .callout { padding: 5pt 8pt; margin: 0 0 6pt; font-size: 7.6pt; line-height: 1.45; break-inside: avoid; }
  .tr-form .callout__title { margin: 0 0 2pt; font-size: 8pt; }
  .tr-form .fs { margin: 0; }
  .tr-form .fs > h2 {
    margin: 9pt 0 4pt; padding: 2.5pt 6pt; border: 0; font-family: var(--font-body);
    font-size: 9.4pt; font-weight: 700; color: #FFF; background: var(--ink-800);
    -webkit-print-color-adjust: exact; print-color-adjust: exact; break-after: avoid;
  }
  .tr-form .fnote { margin: 2pt 0 4pt; font-size: 7.4pt; line-height: 1.4; color: #444; }
  .tr-form .fg { gap: 5pt 10pt; margin: 3pt 0 5pt; }
  .tr-form .f { gap: 1pt; break-inside: avoid; }
  .tr-form h2 + .fnote { break-after: avoid; }  /* 标题下的说明别和栏位分在两页 */
  .tr-form label, .tr-form legend, .tr-form .l { font-size: 7.4pt; font-weight: 400; color: #444; }

  .tr-form.has-pv input[type="text"], .tr-form.has-pv input[type="email"],
  .tr-form.has-pv input[type="tel"], .tr-form.has-pv select, .tr-form.has-pv textarea { display: none; }
  .tr-form.has-pv .pv {
    display: block; min-height: 13pt; padding: 1pt 2pt; border-bottom: .6pt solid #888;
    font-size: 9pt; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; color: #000;
  }

  .tr-form .opts { gap: 1pt 10pt; }
  .tr-form .opt { font-size: 8.4pt; gap: 3pt; }
  .tr-form .opt input, .tr-form .form-table td.ck input { width: 8pt; height: 8pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tr-form .yn { padding: 3pt 0; break-inside: avoid; }
  .tr-form .yn legend { font-size: 8.2pt; color: #000; }

  .tr-form .form-table { margin: 3pt 0; border: .6pt solid #888; border-radius: 0; box-shadow: none; overflow: visible; }
  .tr-form .form-table table { min-width: 0; font-size: 8pt; }
  .tr-form .form-table thead th { padding: 2pt 4pt; font-size: 7.2pt; white-space: normal; background: var(--gold-50); color: #333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tr-form .form-table tbody th, .tr-form .form-table td.n { padding: 2pt 4pt; font-size: 7.6pt; }
  .tr-form .form-table td, .tr-form .form-table tbody th { border-color: #BBB; }
  .tr-form .form-table tr { break-inside: avoid; }
  .tr-form .form-table .pv { min-height: 14pt; border: 0; padding: 2pt 3pt; font-size: 8.4pt; }
  .tr-form .benef-sum { font-size: 7.4pt; }

  .form-steps { gap: 4pt; grid-template-columns: repeat(4, 1fr); }
  .form-steps li { padding: 4pt 6pt; font-size: 7pt; }
  .form-steps li::before { font-size: 9pt; }
  .form-steps b { font-size: 7.8pt; }
}

/* --- 24. Slides 幻灯片 ----------------------------------------------------
   文章顶部的幻灯片 + 逐页讲解（行为见 assets/js/slides.js 开头的注释）。

   尺寸一律用 em。.slide__frame 的字号是所在容器宽度的 1.6%（1.6cqi）：
   舞台 1000px 宽时 1em ≈ 16px；同一张克隆进 130px 宽的缩略图格子，
   1em 自动缩到 2px，于是缩略图就是一张等比例的小样，不用另外导出图片。
   窄屏（≤720px）舞台改成按内容撑高、字号固定 —— 16:9 硬缩到手机宽度，
   正文只剩 8px，读不了；缩略图不受这条影响，仍是 16:9 小样。

   配色沿用全站：Canva 原稿里的宝蓝底换成石墨，红字强调换成古金
   （橙红属火，build.sh 第 5 项会拦），奶油色的内容面板保留。 */
.deck-section { padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(1rem, 3vw, 2rem); }
.deck { width: min(100% - 2.5rem, 1040px); margin-inline: auto; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.deck__intro {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .4rem 1.2rem; margin-bottom: 1rem;
}
.deck__intro .eyebrow { margin: 0; }
.deck__intro a { font-size: .9rem; font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.deck__stage { position: relative; }
.deck__slides { container-type: inline-size; }
.deck.is-live .slide:not(.is-active) { display: none; }
/* 脚本没跑起来：所有页连同讲解从上到下排开 */
.deck:not(.is-live) .slide + .slide { margin-top: 2.6rem; }
.deck:not(.is-live) .slide__script { margin-top: 1.2rem; }

.deck__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0;
  border: 1px solid var(--gold-200); border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--gold-700); box-shadow: var(--sh-md);
  transition: transform .2s var(--ease), opacity .2s, background .2s;
}
.deck__arrow svg { width: 1.3rem; height: 1.3rem; }
.deck__arrow:hover:not(:disabled) { background: var(--gold-50); transform: scale(1.06); }
.deck__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.deck__arrow--prev { left: -1.45rem; }
.deck__arrow--next { right: -1.45rem; }

.deck__bar {
  display: flex; align-items: center; gap: .9rem; margin-top: .95rem;
  font-size: .9rem; color: var(--muted);
}
.deck__count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.deck__count b { color: var(--gold-700); font-size: 1.05rem; }
.deck__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck__full {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .75rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink-600); font: inherit; font-size: .84rem; cursor: pointer;
}
.deck__full svg { width: 1rem; height: 1rem; }
.deck__full:hover { border-color: var(--gold-300); color: var(--gold-700); }

/* 缩略图条：当前那张居中，前后各露三张；两头各垫三格空位，
   翻到第 1 页时左边就是空的，而不是把第 1 页挤到最左。 */
.deck__thumbs {
  --gap: clamp(.35rem, 1vw, .7rem);
  --tw: calc((100% - (var(--visible, 7) - 1) * var(--gap)) / var(--visible, 7));
  display: flex; gap: var(--gap); margin-top: .9rem; padding: .35rem 0 .7rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.deck__thumbs::before, .deck__thumbs::after {
  content: ""; flex: 0 0 calc((var(--tw) + var(--gap)) * 3 - var(--gap));
}
.deck__thumbs.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.deck__thumbs.is-dragging .deck__thumb { pointer-events: none; }
.deck__thumb {
  position: relative; flex: 0 0 var(--tw); container-type: inline-size;
  padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer;
  scroll-snap-align: center; opacity: .62;
  transition: opacity .2s, transform .25s var(--ease);
}
.deck__thumb:hover { opacity: .9; }
.deck__thumb[aria-current] { opacity: 1; transform: translateY(-2px); }
.deck__thumb .slide__frame { border-radius: 6px; box-shadow: var(--sh-sm); pointer-events: none; }
.deck__thumb[aria-current] .slide__frame { box-shadow: 0 0 0 2px var(--gold-500), var(--sh-md); }
.deck__thumb-n {
  position: absolute; left: 4px; bottom: 4px; min-width: 1.35rem; padding: 0 .3rem;
  border-radius: 999px; background: rgba(16, 18, 22, .72); color: #FFF;
  font-size: .68rem; font-weight: 600; line-height: 1.35rem; text-align: center;
}

.deck__scripts {
  margin-top: .6rem; padding: clamp(1.3rem, 3.4vw, 2.3rem) clamp(1.2rem, 4vw, 2.6rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.deck__scripts-h {
  margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-600);
}
.slide__script { max-width: 48em; font-size: 1.03rem; line-height: 1.88; text-wrap: pretty; }
.slide__script p { margin-bottom: 1em; }
.slide__script > *:last-child { margin-bottom: 0; }
.slide__script ol, .slide__script ul { padding-left: 1.3em; }
.slide__script li::marker { color: var(--gold-500); }
.slide__script .callout { margin: 1.4rem 0 0; }
.slide__script .callout + .callout { margin-top: .9rem; }

/* ---- 幻灯片本身 -------------------------------------------------------- */
/* 中文句子折行不留孤字：slides.js 按逗号把句子切成 .s-ph，每段不在中间断开 ——
   放得下就整句一行，放不下就后半句整段换行。一段本身就比一行长时，
   text-wrap: balance 把它折成长短相近的两行，不会只剩一两个字。 */
.s-ph { display: inline-block; }
.slide__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; text-wrap: balance;
  display: flex; flex-direction: column;
  padding: 0 1.1em 1.55em;
  font-size: 1.6cqi; line-height: 1.45; color: var(--ink-800);
  border-radius: .9em;
  background: linear-gradient(155deg, var(--ink-700) 0%, var(--ink-850) 42%, var(--ink-900) 100%);
}
.deck__slides .slide__frame { box-shadow: var(--sh-lg); }
/* 右上角三道细环：金曰从革，其形为圆（和首页开场那组环同一个意思） */
.slide__frame::before {
  content: ""; position: absolute; z-index: -1; right: -5em; top: -8.5em;
  width: 15em; height: 15em; border-radius: 50%;
  border: 1px solid rgba(217, 199, 147, .3);
  box-shadow: 0 0 0 1.8em rgba(217, 199, 147, .045), 0 0 0 3.6em rgba(217, 199, 147, .03);
}
.slide__frame::after {
  content: "Internal Agents Training Only, Not for Public Use.";
  position: absolute; left: 0; right: 0; bottom: .42em;
  font-size: .6em; font-weight: 600; letter-spacing: .05em; text-align: center;
  color: rgba(217, 199, 147, .62);
}
/* 公开页上的幻灯片（data-public）：不印「内部培训」那行字 */
.deck[data-public] .slide__frame::after { content: none; }
.slide__head {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 4.1em; padding: .4em 4.2em;
}
.slide__head::before {
  content: ""; position: absolute; left: .15em; top: 50%; translate: 0 -50%;
  width: 2.5em; height: 2.5em;
  background: url(/assets/img/brand/logo.svg) center / contain no-repeat;
}
.slide__title, .slide__big {
  margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.15;
  letter-spacing: .01em; text-align: center; text-wrap: balance;
  color: var(--gold-300);
  /* 亮—暗—亮：有一档压暗才像金属（README「改主题色」第 2 条） */
  background: linear-gradient(180deg, var(--metal-hi) 0%, var(--gold-300) 38%, var(--gold-500) 58%, var(--gold-200) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.slide__title { font-size: 2.1em; }
.slide__body {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1.1em;
  padding: 1.3em 2.2em; border-radius: .8em;
  background: var(--cream); box-shadow: inset 0 0 0 1px rgba(217, 199, 147, .55);
}
.slide__body > * { margin: 0; }

/* 封面与章节页：没有顶部标题栏，大标题放在面板里 */
.slide__frame.is-plain { padding-top: 1.1em; }
.slide__frame.is-plain .slide__body { padding-top: 1em; }
.slide__frame.is-plain .slide__body::before {
  content: ""; position: absolute; left: 1em; top: 1em; width: 3.4em; height: 3.4em;
  background: url(/assets/img/brand/logo.svg) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(16, 18, 22, .35));
}
.slide__big { font-size: 3em; padding-bottom: .25em; border-bottom: 1px solid var(--gold-300); align-self: center; min-width: 60%; }
.slide__frame.is-plain .slide__big {
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--gold-700) 55%, var(--gold-600) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.slide__frame.is-cover { padding: 0 1.1em 1.55em; justify-content: center; }
.slide__frame.is-cover .slide__body { background: none; box-shadow: none; align-items: center; text-align: center; }
.slide__frame.is-cover .slide__big { font-size: 4.6em; border: 0; min-width: 0; }
.slide__frame.is-cover .s-by { color: rgba(255, 255, 255, .78); font-size: 1.1em; letter-spacing: .18em; text-transform: uppercase; }
.slide__frame.is-cover .s-by b { display: block; color: var(--gold-300); font-size: 1.35em; letter-spacing: .1em; }
.s-cover-mark { width: 5.5em; height: 5.5em; }

/* ---- 幻灯片里的部件 ---------------------------------------------------- */
.s-list { padding-left: 1.15em; font-size: 1.42em; font-weight: 650; line-height: 1.6; color: var(--ink-800); }
.s-list > li { margin: .38em 0; }
.s-list li::marker { color: var(--gold-500); }
.s-list ul { margin: .12em 0 .25em; padding-left: 1.2em; font-size: .8em; font-weight: 500; list-style: circle; }
.s-list ul li { margin: .1em 0; }
.s-list--sm { font-size: 1.2em; }
.s-list--lg { font-size: 1.7em; }
.s-list--xs { font-size: 1.02em; font-weight: 600; }
.s-list--plain { list-style: none; padding-left: 0; }
.s-list--center { align-self: center; }
.s-list--row { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 0 2.4em; padding-left: 1.2em; }
.s-hl { color: var(--gold-700); font-weight: 750; }
.s-em { color: var(--ink-600); font-weight: 700; }
.s-center { text-align: center; }
.s-lead { font-size: 1.35em; font-weight: 700; color: var(--ink-900); line-height: 1.65; }
.s-formula {
  font-size: 2.15em; font-weight: 800; line-height: 1.45; text-align: center;
  color: var(--ink-900); font-variant-numeric: tabular-nums;
}
.s-formula .s-hl { color: var(--gold-600); }
.s-note { font-size: 1.05em; color: var(--muted); line-height: 1.65; }
.s-note p { margin: 0 0 .5em; }
.s-pill {
  display: inline-block; align-self: center; padding: .45em 1.3em; border-radius: .5em;
  background: var(--ink-800); color: var(--gold-200); font-weight: 750; font-size: 1.35em;
}

.s-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; align-items: center; }
.s-cols--3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
.s-cols--side { grid-template-columns: 9.5em 1fr; }
.s-cols > * { margin: 0; min-width: 0; }
.s-h { font-family: var(--font-display); font-size: 1.55em; font-weight: 800; color: var(--gold-700); margin: 0 0 .35em; line-height: 1.2; }

/* 人名方块 + 右侧算式（级差 / 代差） */
.s-rows { display: grid; gap: .55em; }
.s-row { display: grid; grid-template-columns: 10.5em 1fr; gap: 1.5em; align-items: center; }
.s-box {
  padding: .5em .4em; border-radius: .35em; text-align: center;
  background: var(--ink-800); color: #FFF; font-weight: 750; font-size: 1.42em; line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(217, 199, 147, .28);
}
.s-box small { display: block; margin-top: .2em; font-size: .6em; font-weight: 600; color: var(--gold-300); }
.s-box__img { display: block; width: auto; height: 3.2em; margin: .1em auto .35em; filter: drop-shadow(0 .12em .25em rgba(16, 18, 26, .35)); }
.s-box.is-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-box.is-gold small { color: var(--ink-700); }
.s-calc { font-size: 1.45em; font-weight: 750; color: var(--ink-900); font-variant-numeric: tabular-nums; line-height: 1.35; }
.s-calc small { display: block; font-size: .64em; font-weight: 600; color: var(--muted); }
.s-calc .s-hl { color: var(--gold-600); }
.s-gen { display: grid; grid-template-columns: auto 1fr; gap: 1.4em; align-items: center; }
.s-team { display: grid; gap: .25em; padding-right: .9em; border-right: 2px solid var(--gold-400); border-radius: 0 .8em .8em 0; }
.s-team span {
  padding: .15em .55em; border-radius: 999px; font-size: .78em; font-weight: 650; text-align: center;
  background: var(--paper); border: 1px solid var(--gold-200); color: var(--ink-700);
}

/* 表格 */
.slide__frame table { min-width: 0; font-size: 1em; border-collapse: separate; border-spacing: 0; }
.s-table {
  width: 100%; background: var(--paper); border-radius: .5em; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.s-table th {
  padding: .5em .7em; text-align: center; white-space: normal; font-size: .95em; font-weight: 700;
  background: var(--ink-800); color: var(--gold-200); border: 0;
}
.s-table td {
  padding: .45em .7em; text-align: center; vertical-align: middle; line-height: 1.35;
  border: 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-800);
}
.s-table tbody tr:hover { background: none; }
.s-table tr.is-hl td { background: var(--gold-50); color: var(--gold-700); }
.s-table td small { display: block; font-size: .82em; font-weight: 500; color: var(--muted); }
/* 宽表在手机上横向滑动，不撑出画面 Wide tables scroll sideways on phones */
.s-scroll { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 带图标的条目（奖金池、利润分红） */
.s-cards { display: grid; gap: .6em; }
.s-card {
  display: flex; align-items: center; gap: .9em; padding: .6em 1em;
  border-radius: .45em; background: var(--paper);
  border: 1px solid var(--gold-200); border-left: .28em solid var(--gold-500);
  font-size: 1.3em; font-weight: 700; color: var(--ink-900);
}
.s-card b { color: var(--gold-700); }
.s-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  background: var(--ink-800); color: var(--gold-300);
}
.s-ico svg { width: 1.15em; height: 1.15em; }

/* 公司业绩徽章 */
.s-badge {
  display: grid; justify-items: center; gap: .15em; padding: 1em .8em 1.2em;
  border-radius: .6em; text-align: center; color: rgba(255, 255, 255, .85);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-900));
  box-shadow: inset 0 0 0 1px rgba(217, 199, 147, .35);
  font-size: .95em; font-weight: 600; line-height: 1.3;
}
.s-badge b { font-family: var(--font-display); font-size: 2.3em; color: var(--gold-300); line-height: 1.1; }
.s-badge small { font-size: .8em; color: var(--gold-200); letter-spacing: .08em; }

/* 后台截图的替代：一张数字卡 */
.s-stat {
  display: grid; gap: .1em; padding: .7em 1em; border-radius: .5em;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 .3em .9em rgba(16, 18, 26, .08);
}
.s-stat small { font-size: .78em; color: var(--muted); font-weight: 600; }
.s-stat b { font-size: 1.6em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.s-stat b.s-hl { color: var(--gold-700); }

/* 保单说明书节选（Target Premium 在哪） */
.s-mock {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .1em .8em;
  padding: .6em .9em; border-radius: .45em; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line); font-size: .74em; line-height: 1.35; text-align: center;
}
.s-mock__h { grid-column: 1 / -1; text-align: left; font-weight: 700; color: var(--gold-700); border-bottom: 1px solid var(--line); padding-bottom: .2em; margin-bottom: .3em; }
.s-mock div { padding: .25em .2em; border-radius: .3em; }
.s-mock small { display: block; color: var(--muted); font-weight: 650; }
.s-mock b { color: var(--ink-800); font-weight: 600; }
.s-mock .is-hl { box-shadow: 0 0 0 2px var(--gold-500); background: var(--gold-50); }
.s-mock .is-hl b { color: var(--gold-700); font-weight: 800; }

/* 财富四象限 */
.s-quad { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .7em; width: 84%; align-self: center; font-size: 1.3em; }
.s-quad > div {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 .7em;
  padding: .75em 1em; border-radius: .6em; background: var(--paper);
  border: 1px solid var(--line);
}
.s-quad > .is-right { background: var(--gold-50); border-color: var(--gold-200); }
.s-quad__l { grid-row: span 2; font-family: var(--font-display); font-size: 2.6em; font-weight: 800; line-height: 1; color: var(--gold-600); }
.s-quad b { font-size: 1.15em; color: var(--ink-900); line-height: 1.2; }
.s-quad small { grid-column: 2; font-size: .82em; color: var(--muted); font-weight: 600; }
.s-quad__p { grid-row: span 2; font-size: 1.15em; font-weight: 800; color: var(--ink-600); }
.s-quad__axis { display: flex; justify-content: space-between; width: 84%; align-self: center; font-size: 1.05em; font-weight: 700; color: var(--muted); }

/* 组织图（圆形节点） */
.s-tree { display: flex; flex-direction: column; align-items: center; }
.s-node {
  position: relative; display: inline-grid; place-items: center; min-width: 3.2em; height: 3.2em; padding: 0 .55em;
  border-radius: 999px; background: var(--ink-800); color: #FFF;
  font-size: .9em; font-weight: 700; line-height: 1.15; text-align: center;
}
.s-node small { display: block; font-size: .8em; font-weight: 600; color: var(--gold-300); }
.s-node.is-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-node.is-gold small { color: var(--ink-700); }
.s-node.is-light { background: var(--paper); color: var(--ink-700); box-shadow: inset 0 0 0 1px var(--gold-300); }
.s-tree > .s-node { margin-bottom: 1.1em; min-width: 6em; }
.s-tree > .s-node::after {
  content: ""; position: absolute; left: 50%; top: 100%; height: 1.1em; border-left: 2px solid var(--gold-400);
}
.s-tree__kids { --kw: 3.6em; position: relative; display: flex; gap: .45em; padding-top: .9em; }
/* 横线从第一个孩子的中线画到最后一个的中线。孩子节点的字号是 .82em，
   --kw 落在节点上是 3.6 × .82 行宽单位，半个节点就是 --kw × .41。 */
.s-tree__kids::before {
  content: ""; position: absolute; top: 0; left: calc(var(--kw) * .41); right: calc(var(--kw) * .41);
  border-top: 2px solid var(--gold-400);
}
.s-tree__kids > .s-node { width: var(--kw); min-width: 0; padding: 0; height: var(--kw); font-size: .82em; }
.s-tree__kids > .s-node::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; height: .9em; border-left: 2px solid var(--gold-400);
}
.s-tree__kids > .s-node { margin-top: 0; }
.s-tree + .s-tree { margin-top: .8em; }
/* 从某个孩子正下方再长出一层（PFA：Eva 的团队仍挂在 David 下面）。
   两层同宽、右对齐，竖线从 Eva 落到下一层的横线上，Frank 就在 Eva 正下方。 */
.s-tree__stack { display: flex; flex-direction: column; align-items: flex-end; }
.s-tree__kids--sub { margin-top: .9em; }
.s-tree__kids > .s-node.has-kids::after {
  content: ""; position: absolute; left: 50%; top: 100%; height: 1.1em; border-left: 2px solid var(--gold-400);
}

/* 三角关系图：需求 / 信任 / 专业 */
.s-tri { position: relative; width: 72%; aspect-ratio: 2.4 / 1; align-self: center; font-size: 1.15em; }
.s-tri__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s-tri__lines line { stroke: var(--gold-500); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.s-tri__node {
  position: absolute; display: grid; justify-items: center; translate: -50% -50%;
  padding: .45em 1.1em; border-radius: .6em; background: var(--ink-800); color: #FFF;
  font-size: 1.3em; font-weight: 750; white-space: nowrap; line-height: 1.25;
}
.s-tri__node small { font-size: .62em; font-weight: 600; color: var(--gold-300); }
.s-tri__node.is-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-tri__node.is-gold small { color: var(--ink-700); }

/* 循环：招募 → 培训 → 成交 → 复制 */
.s-loop {
  display: grid; grid-template-columns: auto auto auto; place-items: center; gap: .25em .5em;
  padding: .8em 1em; border-radius: .6em; background: var(--ink-800); color: #FFF;
  font-size: 1.35em; font-weight: 750;
}
.s-loop i { font-style: normal; color: var(--gold-300); }

/* 两条路径对比（快速晋升） */
.s-paths { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; font-size: .86em; }
.s-paths > div { padding: .7em .9em; border-radius: .5em; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.s-paths > .is-best { box-shadow: 0 0 0 2px var(--gold-500); background: var(--gold-50); }
.s-paths h4 { margin: 0 0 .45em; font-family: var(--font-body); font-size: 1.12em; color: var(--ink-900); text-align: center; }
.s-paths ol { margin: 0; padding-left: 1.2em; }
.s-paths li { margin: .22em 0; line-height: 1.35; }
.s-paths .s-sum { margin: .5em 0 0; padding-top: .4em; border-top: 1px solid var(--line); font-weight: 800; color: var(--ink-900); }
.s-paths .s-perk { margin: .35em 0 0; font-size: .92em; color: var(--muted); }

/* 照片 */
.s-photo { margin: 0; display: grid; gap: .5em; min-height: 0; }
.s-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: .5em; box-shadow: 0 .2em .7em rgba(16, 18, 26, .15); }
.s-photo--contain img { object-fit: contain; box-shadow: none; }
.s-photo--fill { flex: 1; grid-template-rows: minmax(0, 1fr); }
.s-photo--fill:has(figcaption) { grid-template-rows: minmax(0, 1fr) auto; }
.slide__body.is-photo { padding: .9em 1em; justify-content: stretch; }

/* ---- 中港美对比（products/cross-border.html）用到的部件 ------------------
   原稿用红 / 绿 / 蓝区分内地、香港、美国，这里换成全站金色系：
   内地 石墨、香港 沉金、美国 亮金。 */
.s-cols--4 { grid-template-columns: repeat(4, 1fr); align-items: start; }
.s-tags { display: flex; justify-content: center; gap: .6em; }
.s-tag {
  padding: .25em .9em; border-radius: .3em; font-size: 1.05em; font-weight: 750; letter-spacing: .04em;
  background: var(--ink-600); color: #FFF;
}
.s-tag.is-hk { background: var(--gold-600); }
.s-tag.is-us { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }

/* 三地分栏：每栏一个色条标题 + 要点 */
.s-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; align-items: stretch; }
.s-trio > div {
  display: flex; flex-direction: column; min-width: 0; border-radius: .5em; overflow: hidden;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.s-trio h4 {
  margin: 0; padding: .45em .8em; font-family: var(--font-body); font-size: 1.3em; font-weight: 800;
  line-height: 1.25; text-align: center; color: #FFF; background: var(--ink-600);
}
.s-trio > .is-hk h4 { background: var(--gold-600); }
.s-trio > .is-us h4 { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-trio ul { margin: 0; padding: .6em .9em .7em 1.9em; font-size: 1.2em; font-weight: 600; line-height: 1.55; color: var(--ink-800); }
.s-trio li { margin: .32em 0; }
.s-trio li::marker { color: var(--gold-500); }
.s-trio p { margin: 0; padding: .6em .9em; font-size: 1.2em; font-weight: 600; line-height: 1.45; color: var(--ink-800); }
.s-trio .s-num { display: block; padding: .5em .4em .1em; text-align: center; font-family: var(--font-display); font-size: 2.6em; font-weight: 800; line-height: 1.1; color: var(--gold-600); }
.s-trio .s-num + p { padding-top: 0; text-align: center; color: var(--muted); }

/* 表头按地区上色 */
.s-table th.is-cn { background: var(--ink-600); color: #FFF; }
.s-table th.is-hk { background: var(--gold-600); color: #FFF; }
.s-table th.is-us { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-table--rows td:first-child { font-weight: 750; color: var(--ink-900); }
.s-table--sm { font-size: .92em; }
.s-table--sm td, .s-table--sm th { padding: .32em .6em; }
/* 行数不多、字要大的表（合规手册的「不要这样说 / 可以这样说」这类两栏对照） */
.slide__frame .s-table--lg { font-size: 1.32em; }
.s-table--lg td, .s-table--lg th { padding: .42em .8em; }

/* 目录：编号块 + 标题 + 副标题 */
.s-agenda { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.s-agenda > div {
  display: grid; grid-template-columns: 2.7em 1fr; min-width: 0; border-radius: .5em; overflow: hidden;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.s-agenda b {
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9em; font-weight: 800;
  color: var(--gold-300); background: var(--ink-800);
}
.s-agenda > div > span { padding: .6em .8em; }
.s-agenda strong { display: block; font-size: 1.35em; line-height: 1.25; color: var(--ink-900); }
.s-agenda small { display: block; margin-top: .25em; font-size: 1em; font-weight: 600; line-height: 1.35; color: var(--muted); }

/* 时间线：年份 + 一句话 */
.s-tl { display: grid; grid-template-columns: auto 1fr; gap: .75em 1.1em; align-items: baseline; font-size: 1.22em; }
.s-tl > b { font-family: var(--font-display); font-size: 1.15em; font-weight: 800; color: var(--gold-600); font-variant-numeric: tabular-nums; }
.s-tl > span { font-weight: 600; line-height: 1.4; color: var(--ink-800); }

/* 截图页：图下一行出处 / 说明 */
.s-photo { min-width: 0; }
.s-photo figcaption { font-size: .82em; font-weight: 600; line-height: 1.35; color: var(--muted); text-align: center; }
.s-logo { display: block; width: auto; margin-inline: auto; }

/* ---- 执照考试重点（exam-prep.html）用到的部件 -------------------------
   这套幻灯片字多：一页常有 4–6 个知识点，每个一行标题 + 一两行说明。
   字号全套统一：条目标题 1.5em、说明 1.22em、题干 1.75em、选项 1.36em；
   行高说明 1.5、标题 1.3，条目之间留 1em 以上。字多的页用 --sm 降一档，
   再放不下就拆页或删字，不把说明压到 1.05em 以下。 */
.slide__tag {
  position: absolute; right: .3em; top: 50%; translate: 0 -50%;
  font-size: .78em; font-weight: 700; letter-spacing: .08em; white-space: nowrap;
  color: rgba(217, 199, 147, .8);
}
.s-kicker { font-size: 1.05em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); text-align: center; }
.s-sub { font-size: 1.3em; font-weight: 600; line-height: 1.45; color: var(--ink-600); text-align: center; }

/* 字母 / 编号 + 标题 + 说明（STARR、合同五特性……） */
.s-items { display: grid; gap: 1.05em 2.2em; align-content: center; }
.s-items--2 { grid-template-columns: 1fr 1fr; }
.s-item { display: grid; grid-template-columns: 2.7em 1fr; gap: .25em 1em; align-items: start; align-content: start; min-width: 0; }
.s-item > b {
  grid-row: span 2; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%;
  background: var(--ink-800); color: var(--gold-300);
  font-family: var(--font-display); font-size: 1.18em; font-weight: 800; line-height: 1;
}
.s-item h4 { margin: .2em 0 0; font-family: var(--font-body); font-size: 1.5em; font-weight: 750; line-height: 1.3; color: var(--ink-900); }
.s-item p { margin: 0; font-size: 1.22em; font-weight: 500; line-height: 1.5; color: var(--ink-700); }
.s-item i { font-style: normal; font-weight: 600; color: var(--muted); }
.s-items--lg .s-item h4 { font-size: 1.7em; }
.s-items--lg .s-item p { font-size: 1.36em; }
.s-items--sm { gap: .8em 1.8em; }
.s-items--sm .s-item h4 { font-size: 1.32em; }
.s-items--sm .s-item p { font-size: 1.1em; }

/* 两栏对照：深色表头 + 白底内容 */
.s-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3em; align-items: stretch; }
.s-duo > div {
  display: flex; flex-direction: column; min-width: 0; border-radius: .55em; overflow: hidden;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.s-duo h4 {
  margin: 0; padding: .5em .9em; font-family: var(--font-body); font-size: 1.45em; font-weight: 800;
  line-height: 1.3; text-align: center; color: var(--gold-200); background: var(--ink-800);
}
.s-duo > .is-gold h4 { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-duo p { margin: 0; padding: .7em 1.05em 0; font-size: 1.26em; font-weight: 500; line-height: 1.55; color: var(--ink-800); }
.s-duo p:last-child { padding-bottom: .8em; }
.s-duo ul { margin: 0; padding: .55em 1.05em .8em 2.1em; font-size: 1.26em; font-weight: 500; line-height: 1.5; color: var(--ink-800); }
.s-duo li { margin: .22em 0; }
.s-duo li::marker { color: var(--gold-500); }
.s-duo b { color: var(--ink-900); font-weight: 750; }

/* 要点清单：每条一行，前面一个金色小方块 */
.s-points { margin: 0; padding: 0; list-style: none; display: grid; gap: .6em; font-size: 1.42em; line-height: 1.5; font-weight: 550; color: var(--ink-800); }
.s-points > li { position: relative; padding-left: 1.2em; }
.s-points > li::before {
  content: ""; position: absolute; left: .1em; top: .62em; width: .42em; height: .42em;
  border-radius: .1em; background: var(--gold-500); rotate: 45deg;
}
.s-points b { color: var(--ink-900); font-weight: 750; }
.s-points small { display: block; margin-top: .1em; font-size: .86em; font-weight: 500; color: var(--muted); }
.s-points--sm { font-size: 1.24em; gap: .5em; }

/* 例题：题干 + 四个选项（2×2）+ 解析 */
.s-quiz { display: grid; gap: 1.1em; }
.s-q { margin: 0; font-size: 1.75em; font-weight: 750; line-height: 1.45; color: var(--ink-900); text-align: center; }
.s-q__en { display: block; margin-top: .3em; font-size: .72em; font-weight: 550; line-height: 1.4; color: var(--muted); }
html[data-lang="en"] .s-q__en { margin-top: 0; font-size: 1em; font-weight: 750; color: var(--ink-900); }
.s-opts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .65em 1em; }
.s-opts li {
  position: relative; display: grid; grid-template-columns: 1.9em 1fr; align-items: center; gap: .75em;
  padding: .55em 2em .55em .6em; border-radius: .5em; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line); font-size: 1.36em; font-weight: 650; line-height: 1.35; color: var(--ink-800);
}
.s-opts li > b {
  display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--gold-100); color: var(--gold-700); font-size: .92em; font-weight: 800;
}
.s-opts li i { display: block; font-style: normal; font-size: .8em; font-weight: 550; color: var(--muted); }
html[data-lang="en"] .s-opts li i { font-size: 1em; font-weight: 650; color: inherit; }
.s-opts li.is-ok { background: var(--gold-50); box-shadow: 0 0 0 2px var(--gold-500); color: var(--ink-900); }
.s-opts li.is-ok > b { background: var(--ink-800); color: var(--gold-300); }
.s-opts li.is-ok::after {
  content: "✓"; position: absolute; right: .7em; top: 50%; translate: 0 -50%;
  font-size: 1.15em; font-weight: 800; color: var(--gold-600);
}
.s-why {
  display: grid; grid-template-columns: auto 1fr; gap: .9em; align-items: baseline;
  padding: .7em 1.1em; border-radius: .5em; background: var(--ink-800); color: rgba(255, 255, 255, .9);
  font-size: 1.24em; font-weight: 500; line-height: 1.55;
}
.s-why > b { font-size: .86em; font-weight: 800; letter-spacing: .12em; color: var(--gold-300); white-space: nowrap; }
.s-why p { margin: 0; }
.s-why strong { color: var(--gold-200); font-weight: 700; }

/* 自测：Q 编号 + 问题 + 答案 */
.s-qa { display: grid; gap: .75em 1.4em; }
.s-qa--2 { grid-template-columns: 1fr 1fr; }
.s-qa > div {
  display: grid; grid-template-columns: 2.3em 1fr; gap: .25em .85em; align-items: start;
  padding: .7em 1em; border-radius: .55em; background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.s-qa > div > b {
  grid-row: span 2; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .45em;
  background: var(--ink-800); color: var(--gold-300); font-family: var(--font-display); font-weight: 800;
}
.s-qa h4 { margin: .1em 0 0; font-family: var(--font-body); font-size: 1.38em; font-weight: 700; line-height: 1.4; color: var(--ink-900); }
.s-qa p { margin: 0; font-size: 1.24em; font-weight: 600; line-height: 1.5; color: var(--gold-700); }

/* 大数字：考试格式 */
.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; }
.s-stats > div {
  display: grid; justify-items: center; align-content: start; gap: .2em; padding: .8em .6em 1em;
  border-radius: .6em; text-align: center; background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.s-stats b { font-family: var(--font-display); font-size: 3.6em; font-weight: 800; line-height: 1.05; color: var(--gold-600); font-variant-numeric: tabular-nums; }
.s-stats b small { font-size: .38em; margin-left: .15em; color: var(--muted); }
.s-stats strong { font-size: 1.32em; font-weight: 750; line-height: 1.3; color: var(--ink-900); }
.s-stats span { font-size: 1.08em; font-weight: 550; line-height: 1.45; color: var(--muted); }

/* 考场答案 vs 今天的数字：页底一条 */
.s-now {
  display: grid; grid-template-columns: auto 1fr; gap: .8em; align-items: baseline;
  padding: .55em 1em; border-radius: .45em; background: var(--gold-50);
  box-shadow: inset .25em 0 0 var(--gold-500), 0 0 0 1px var(--gold-200);
  font-size: 1.15em; font-weight: 550; line-height: 1.5; color: var(--ink-800);
}
.s-now > b { font-size: .88em; font-weight: 800; letter-spacing: .08em; color: var(--gold-700); white-space: nowrap; }
.s-now strong { color: var(--ink-900); font-weight: 750; }

/* 口诀速记：三列小卡（一页最多 15 格，再多就拆页） */
.s-memo { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em 1.6em; font-size: 1.06em; align-content: center; }
.s-memo--lg { font-size: 1.3em; gap: .9em 1.6em; }
.s-memo > div { display: grid; gap: .15em; align-content: start; padding: .1em .2em .5em; border-bottom: 1px solid var(--line); }
.s-memo b { font-weight: 800; color: var(--gold-700); line-height: 1.3; letter-spacing: .02em; }
.s-memo span { font-weight: 550; line-height: 1.4; color: var(--ink-800); }

/* 稍大一号的表（行少、字要清楚） */
.slide__frame .s-table--md { font-size: 1.24em; }
.s-table--md td, .s-table--md th { padding: .48em .8em; line-height: 1.4; }
.s-table--left td { text-align: left; }
.s-table--left td:first-child { white-space: nowrap; }
/* ---- 指数策略（products/index-strategy.html）用到的部件 ----------------
   年份格子：20 年标普涨幅排成两行，超过某条线的年份描金框。 */
.s-years { display: grid; grid-template-columns: repeat(10, 1fr); gap: .45em; font-size: .86em; }
.s-years > div {
  display: grid; justify-items: center; gap: .15em; padding: .55em .2em;
  border-radius: .45em; background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.s-years b { font-size: 1em; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-years span { font-size: 1.12em; font-weight: 750; color: var(--ink-600); font-variant-numeric: tabular-nums; }
.s-years > .is-hl { background: var(--gold-50); box-shadow: 0 0 0 2px var(--gold-500); }
.s-years > .is-hl span { color: var(--gold-700); }

/* ---- 教育基金讲座（topics/education-fund.html）用到的部件 --------------
   大数字卡按列数分档；五条路那一页窄屏改成一行一张（编号在左）。
   方案 A 的时间线排成两栏，窄屏回到一栏。 */
.s-stats--2 { grid-template-columns: 1fr 1fr; }
.s-stats--3 { grid-template-columns: repeat(3, 1fr); }
.s-stats--5 { grid-template-columns: repeat(5, 1fr); gap: .7em; }
.s-stats--narrow { width: 76%; align-self: center; }
.s-tl--2 { grid-template-columns: auto 1fr auto 1fr; gap: .6em 1em; font-size: 1.1em; }
.s-tl__wide { grid-column: span 3; }
@media (max-width: 720px) {
  .deck__slides .s-stats.s-stats--3 { grid-template-columns: 1fr; }
  .deck__slides .s-stats.s-stats--5 { grid-template-columns: 1fr; gap: .45em; }
  .deck__slides .s-stats--5 > div {
    grid-template-columns: 2.2em 1fr; justify-items: start; align-items: center;
    gap: 0 .8em; padding: .5em .9em; text-align: left;
  }
  .deck__slides .s-stats--5 b { grid-row: span 2; justify-self: center; font-size: 2em !important; }
  .deck__slides .s-stats--narrow { width: auto; }
  .deck__slides .s-tl--2 { grid-template-columns: auto 1fr; }
  .deck__slides .s-tl__wide { grid-column: auto; }
}

/* ---- 医疗保险与红蓝卡（topics/health-medicare.html、topics/health-seminar.html）用到的部件 ----
   左文右图：照片按面板剩余高度裁切（不撑高整页），截图类（s-photo--contain）完整显示。
   条目下的灰色小字放在语言 span 外面，不被 slides.js 切成短语。 */
.s-cols--photo { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 1.8em; }
.s-cols--photo > :not(figure) { align-self: center; }
.s-cols--photo > .s-photo { height: 100%; grid-template-rows: minmax(0, 1fr); }
.s-cols--photo > .s-photo img { height: 100%; }
.s-points > li > small { margin-top: .15em; }
@media (max-width: 720px) {
  .deck__slides .s-cols--photo { grid-template-columns: 1fr !important; grid-template-rows: auto; }
  .deck__slides .s-cols--photo > .s-photo { height: auto; }
  .deck__slides .s-cols--photo > .s-photo img { aspect-ratio: 4 / 3; max-height: 40vh; }
}

@media (max-width: 720px) {
  .deck__slides .s-years { grid-template-columns: repeat(4, 1fr); }
  .deck__slides .slide__tag { display: none; }
  .deck__slides .s-items--2, .deck__slides .s-duo, .deck__slides .s-qa--2, .deck__slides .s-opts { grid-template-columns: 1fr; }
  .deck__slides .s-item h4 { font-size: 1.2em; }
  .deck__slides .s-item p, .deck__slides .s-duo p, .deck__slides .s-duo ul { font-size: 1.05em; }
  .deck__slides .s-points { font-size: 1.12em; }
  .deck__slides .s-q { font-size: 1.25em; }
  .deck__slides .s-opts li { font-size: 1.08em; }
  .deck__slides .s-why, .deck__slides .s-now { grid-template-columns: 1fr; gap: .2em; }
  .deck__slides .s-stats { grid-template-columns: 1fr 1fr; }
  .deck__slides .s-stats b { font-size: 2.4em; }
  .deck__slides .s-memo { grid-template-columns: 1fr; font-size: 1.05em; }
  .deck__slides .s-table--md, .deck__slides .s-table--mob { font-size: 1em; }
  .deck__slides .s-table--mob th, .deck__slides .s-table--mob td { padding: .5em .4em; line-height: 1.4; }
  .deck__slides .s-table--left td:first-child { white-space: normal; }
}

/* ---- 新人业务启动（sales/kickoff.html）用到的部件 -----------------------
   流程条（编号圆 + 连线 + 两行字）、B — C — A 关系图、话术卡（标签 + 引号原话）、
   官宣文案卡、「✕」错误卡。窄屏流程条改成竖排，话术卡和错误卡一栏。 */
.s-flow { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); align-items: start; }
.s-flow > div { position: relative; display: grid; justify-items: center; gap: .35em; padding: 0 .3em; text-align: center; }
.s-flow > div::before {
  content: ""; position: absolute; z-index: -1; top: 1.45em; left: 50%; width: 100%;
  border-top: 2px solid var(--gold-400);
}
.s-flow > div:last-child::before { content: none; }
.s-flow b {
  display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 50%;
  background: var(--ink-800); color: var(--gold-300); box-shadow: 0 0 0 .3em var(--cream);
  font-family: var(--font-display); font-size: 1em; font-weight: 800;
}
.s-flow > div:nth-child(3n+2) b { background: var(--gold-600); color: #FFF; }
.s-flow > div:nth-child(3n) b { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-flow strong { font-size: 1.32em; font-weight: 800; line-height: 1.25; color: var(--ink-900); }
.s-flow span { font-size: 1.12em; font-weight: 550; line-height: 1.4; color: var(--ink-700); }
.s-flow--lg b { font-size: 1.3em; }
.s-flow--lg > div::before { top: 1.9em; }
.s-flow--lg strong { font-size: 1.36em; }

.s-abc { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr; align-items: center; width: 92%; align-self: center; }
.s-abc > div {
  display: grid; place-items: center; align-content: center; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink-800); color: rgba(255, 255, 255, .9); text-align: center; line-height: 1.3;
  font-size: 1.12em; font-weight: 600; box-shadow: 0 .3em .9em rgba(16, 18, 26, .18);
}
.s-abc > div b { font-family: var(--font-display); font-size: 2.6em; line-height: 1.05; color: var(--gold-300); }
.s-abc > div small { font-size: .82em; color: var(--gold-200); letter-spacing: .04em; }
.s-abc > div.is-c { background: var(--gold-600); }
.s-abc > div.is-c b, .s-abc > div.is-c small { color: #FFF; }
.s-abc > div.is-a { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink-900); }
.s-abc > div.is-a b { color: var(--ink-900); }
.s-abc > div.is-a small { color: var(--ink-700); }
.s-abc > i {
  display: grid; justify-items: center; gap: .3em; padding: 0 .6em; font-style: normal;
  font-size: 1.22em; font-weight: 750; color: var(--gold-700); text-align: center;
}
.s-abc > i::after { content: ""; width: 100%; border-top: 2px solid var(--gold-500); }

.s-says { display: grid; gap: .7em; }
.s-says--2 { grid-template-columns: 1fr 1fr; gap: .9em 1.1em; }
.s-says > div {
  display: grid; gap: .3em; align-content: start; padding: .65em 1.1em .75em; border-radius: .55em;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-left: .3em solid var(--ink-700);
}
.s-says > div:nth-child(3n+2) { border-left-color: var(--gold-600); }
.s-says > div:nth-child(3n) { border-left-color: var(--gold-400); }
.s-says h4 { margin: 0; font-family: var(--font-body); font-size: 1.3em; font-weight: 800; line-height: 1.3; color: var(--ink-900); }
.s-says p { margin: 0; font-size: 1.2em; font-weight: 550; line-height: 1.55; color: var(--ink-800); }
.s-says--sm h4 { font-size: 1.18em; }
.s-says--sm p { font-size: 1.08em; }
.s-says .is-no { border-left-color: var(--ink-500); background: var(--sand); }
.s-blank { display: inline-block; width: 3.2em; border-bottom: 1.5px solid currentColor; vertical-align: .1em; }

.s-post {
  display: grid; gap: .55em; padding: .9em 1.4em 1em; border-radius: .6em; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 .3em .9em rgba(16, 18, 26, .08); border-left: .3em solid var(--gold-500);
}
.s-post h4 { margin: 0; font-family: var(--font-body); font-size: 1.25em; font-weight: 800; color: var(--gold-700); }
.s-post p { margin: 0; font-size: 1.12em; font-weight: 500; line-height: 1.6; color: var(--ink-800); }

.s-x { display: grid; grid-template-columns: 1fr 1fr; gap: .7em 1.2em; }
.s-x > div {
  display: grid; grid-template-columns: 1.4em 1fr; gap: .5em; align-items: baseline;
  padding: .6em 1em; border-radius: .5em; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line); border-left: .3em solid var(--ink-600);
  font-size: 1.3em; font-weight: 750; line-height: 1.35; color: var(--ink-900);
}
.s-x > div::before { content: "✕"; font-weight: 800; color: var(--gold-600); }

.s-items--3 { grid-template-columns: repeat(3, 1fr); gap: 1.2em 1.6em; }
.s-flow--lg strong [lang="zh"] { white-space: nowrap; }
/* 八步流程（sales/meeting.html 第 2 页）：四字标签不折成两行 */
.s-flow--8 strong [lang="zh"] { white-space: nowrap; }
/* 竖排流程：编号 + 名称 + 一句说明排一行（旁边有照片的页） */
.s-flow--v { grid-template-columns: 1fr; gap: .7em; }
.s-flow--v > div { grid-template-columns: 2.6em 4.2em 1fr; justify-items: start; align-items: center; gap: 0 .8em; padding: 0; text-align: left; }
.s-flow--v > div::before { top: 2.6em; left: 1.3em; width: 0; height: 100%; border-top: 0; border-left: 2px solid var(--gold-400); }
.s-flow--v b { width: 2.6em; height: 2.6em; }
.s-flow--v strong { font-size: 1.36em; white-space: nowrap; }
.s-flow--v span { font-size: 1.22em; }
html[data-lang="en"] .s-flow--v > div { grid-template-columns: 2.6em 7.4em 1fr; }
@media (max-width: 720px) {
  .deck__slides .s-flow { grid-template-columns: 1fr; gap: .55em; }
  .deck__slides .s-flow > div { grid-template-columns: 2.4em auto 1fr; justify-items: start; align-items: center; gap: 0 .7em; padding: 0; text-align: left; }
  .deck__slides .s-flow > div::before { content: none; }
  .deck__slides .s-flow b { width: 2.4em; height: 2.4em; font-size: .95em; box-shadow: none; }
  .deck__slides .s-flow strong { font-size: 1.15em; white-space: nowrap; }
  .deck__slides .s-flow span { font-size: 1.02em; }
  .deck__slides .s-abc { width: 100%; grid-template-columns: 1fr; gap: .4em; }
  .deck__slides .s-abc > div { aspect-ratio: auto; border-radius: .6em; padding: .5em; grid-template-columns: auto 1fr; gap: 0 .8em; justify-items: start; text-align: left; }
  .deck__slides .s-abc > div b { grid-row: span 2; font-size: 2em; }
  .deck__slides .s-abc > i::after { content: "↓"; border: 0; width: auto; }
  .deck__slides .s-says--2, .deck__slides .s-x, .deck__slides .s-items--3 { grid-template-columns: 1fr; }
  .deck__slides .s-says h4 { font-size: 1.1em; }
  .deck__slides .s-says p, .deck__slides .s-post p { font-size: 1.02em; }
  .deck__slides .s-x > div { font-size: 1.08em; }
}

/* ---- 三栏配图（products/wl-vs-iul.html「三种保单，像三种住法」）---------
   窄屏三栏改成上下排，照片压成一条横幅，不让整页拉得太长。 */
@media (max-width: 720px) {
  .deck__slides .s-trio .s-photo img { max-height: 8.5em; aspect-ratio: auto !important; object-fit: cover; }
}

/* ---- 窄屏：按内容撑高，字号固定 ---------------------------------------- */
@media (max-width: 720px) {
  .deck { width: min(100% - 1.6rem, 1040px); }
  .deck__slides .slide__frame { aspect-ratio: auto; min-height: 56.25cqi; font-size: 12.5px; padding: 0 .7em 1.8em; }
  .deck__slides .slide__head { min-height: 3.6em; padding: .5em 2.8em; }
  .deck__slides .slide__head::before { width: 2.1em; height: 2.1em; }
  .deck__slides .slide__title { font-size: 1.6em; }
  .deck__slides .slide__big { font-size: 2.1em; }
  .deck__slides .slide__frame.is-cover .slide__big { font-size: 2.8em; }
  .deck__slides .slide__frame.is-plain { padding-top: .7em; }
  .deck__slides .slide__frame.is-plain .slide__body { padding-top: 3.6em; }
  .deck__slides .slide__frame.is-plain .slide__body::before { width: 2.6em; height: 2.6em; left: .8em; top: .7em; }
  .deck__slides .slide__body { padding: 1.1em 1em; }
  .deck__slides .s-list, .deck__slides .s-list--lg { font-size: 1.22em; }
  .deck__slides .s-formula { font-size: 1.55em; }
  /* 有几页在 HTML 里用 style 写了列宽，窄屏要压过它们 */
  .deck__slides .s-cols, .deck__slides .s-paths { grid-template-columns: 1fr !important; }
  .deck__slides .s-cols--side { grid-template-columns: 7.5em 1fr !important; }
  .deck__slides .s-row { grid-template-columns: 6.8em 1fr !important; gap: .9em; }
  .deck__slides .s-list--row { grid-template-columns: repeat(2, auto); }
  .deck__slides .s-box { font-size: 1.1em; }
  .deck__slides .s-calc { font-size: 1.1em; }
  .deck__slides .s-gen { grid-template-columns: 1fr; }
  .deck__slides .s-team { display: none; }
  .deck__slides .s-quad { width: 100%; font-size: 1em; }
  .deck__slides .s-quad__axis { width: 100%; flex-direction: column; gap: .2em; font-size: .92em; }
  .deck__slides .s-tri { width: 100%; }
  .deck__slides .s-tri__node { font-size: 1.05em; }
  .deck__slides .s-mock { grid-template-columns: repeat(3, 1fr); }
  .deck__slides .s-table { font-size: .8em; }
  .deck__slides .s-table th, .deck__slides .s-table td { padding: .45em .4em; }
  /* 宽屏上为了整齐写了 nowrap 的表，手机上放不下会被裁掉右边，这里允许换行 */
  .deck__slides .s-table, .deck__slides .s-table th, .deck__slides .s-table td { white-space: normal !important; }
  .deck__slides .s-table--lg { font-size: .95em; }
  /* 五栏以上的表在手机上不硬挤，给个最小宽度，外面的 .s-scroll 左右滑 */
  .deck__slides .s-table--wide { min-width: 34em; }
  .deck__slides .s-card { font-size: 1.1em; }
  /* 宽屏上 slides.js 给每页正文算的放大倍数，窄屏不用 */
  .deck__slides .slide__body { font-size: 1em !important; }
  .deck__slides .s-trio, .deck__slides .s-agenda { grid-template-columns: 1fr !important; }
  .deck__slides .s-tl { font-size: 1.05em; }
  .deck__slides .s-photo img { height: auto !important; max-height: 70vh; }
  .deck__slides .slide__body.is-photo { padding: .6em; }
  .deck__arrow { top: auto; bottom: -1.45rem; translate: none; width: 2.5rem; height: 2.5rem; }
  .deck__arrow--prev { left: .5rem; }
  .deck__arrow--next { right: .5rem; }
  .deck__bar { padding: 0 3.4rem; margin-top: .6rem; justify-content: center; }
  .deck__name { display: none; }
}

/* 全屏放映：幻灯片按屏幕等比放大，四周是石墨底 */
.deck__stage:fullscreen { display: flex; align-items: center; justify-content: center; background: var(--ink-900); }
.deck__stage:-webkit-full-screen { display: flex; align-items: center; justify-content: center; background: var(--ink-900); }
.deck__stage:fullscreen .deck__slides { width: min(100vw, 177.78vh); }
.deck__stage:-webkit-full-screen .deck__slides { width: min(100vw, 177.78vh); }
.deck__stage:fullscreen .slide__frame { aspect-ratio: 16 / 9; min-height: 0; font-size: 1.6cqi; border-radius: 0; }
.deck__stage:fullscreen .deck__arrow--prev { left: 1rem; }
.deck__stage:fullscreen .deck__arrow--next { right: 1rem; }

@media print {
  .deck__arrow, .deck__bar, .deck__thumbs { display: none !important; }
  .slide__frame { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
