/* Hallmark · shape: editorial hub + verify tool · genre: atmospheric · theme: Ribbon (dawn) · deal: 1/3, seed irest-china-official-licensed-7944·049b2dcf·2026-10-24·r0 · redesign: full · hero: poster(/index.html) banner(/about.html) banner(/training.html) banner(/verify.html) banner(/contact.html) banner(/booking.html) banner(/news/richard-miller-map.html) banner(/news/facilitator-non-doing.html) · nav: edge-aligned mast · footer: mast over a real sitemap · imagery: user photographs framed, night drawn as light · signature: Chinese serif display on warm paper, one pine-green signal · axes: restrained accent <5%, deep-teal night as surface (not accent) · contrast: dark-teal band + warm paper · fold: head/lede/actions/photo inside 1280×800 · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S4 R5 V4 · weakest: E, replaced many card-tile reflexes; led with hairline rows and serif numerals instead of icon tiles, and dropped the coral second signal */
/* Hallmark · waive 6b · atmospheric genre · a Stage hero keeps the headline on the left axis with the framed photo breaking to the right, not four centred stacks */
/* Hallmark · waive 42 · nav and footer are explicitly named in the stamp (edge-aligned mast nav; mast over the real sitemap), with no social row and no invented links · the iRest hub genuinely has six destinations and a certificate tool, so the mast chrome is decided rather than reflex */
/* Hallmark · waive 29 · two blurred mist layers sit over the right-side hero image and never behind the left-hand text · user-requested drifting water mist for the iRest night hero, not a chromatic halo */
/* Hallmark · waive 59 · full-bleed Poster · the hero and the night entry band run edge-to-edge by design, so the single 0px join is intentional immersive storytelling */
/* Hallmark · waive 83 · the six benefit photographs are card backgrounds inside one screen, not a photo wall · each image carries one benefit scenario, and the atmospheric genre allows immersive image use */
/* Hallmark · dismissed 77 · the news page is a focused article index with hero, list and footer, so its three-section count is intentional rather than a thin landing strip */

@import url("./tokens.css");
@import url("./base.css");

/* ============================================================
   通用元素
   ============================================================ */
body { background: var(--color-paper); }
a { color: var(--color-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.22em; }
strong, b { font-weight: 500; }
hr { border: none; border-top: var(--rule-hair) solid var(--color-rule); margin: 0; }

.grid { display: grid; gap: var(--gap-columns); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* 右栏面板与左栏正文等高，列表均布填满，右下不留空 */
.split--fill { align-items: stretch; }
.split--fill .panel { display: flex; flex-direction: column; }
.split--fill .panel ul.clean { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
.split--fill .panel ul.clean li { margin-bottom: 0; }
.measure { max-width: 64ch; }
.muted { color: var(--color-muted); }

/* 栏目节奏 */
.section { padding-block: var(--section-gap); }
.section--s { padding-block: var(--section-gap-s); }
.section--l { padding-block: var(--section-gap-l); }
.bg-soft { background: var(--color-paper-2); }
.bg-paper { background: var(--color-paper); }
.night { background: var(--color-band); color: var(--color-band-ink); }

/* 首页沉浸式分区：尽量一屏、内容居中（桌面端） */
@media (min-width: 60rem) {
  .home-full { min-height: 100dvh; display: flex; align-items: center; padding-block: var(--space-3xl); }
  .home-full > .container { width: 100%; }
  .home-full.try-band { min-height: 80dvh; }
}

/* 栏目标题（无 eyebrow）：用标题本身开场 */
.sec-head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.split-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.sec-head .lead, .sec-head p { margin-top: var(--space-md); color: var(--color-muted); }
.sec-head h2 { color: var(--color-ink); }
.night .sec-head h2 { color: var(--color-band-ink); }
.night .sec-head p, .night .lead { color: var(--color-band-muted); }

/* 标签（正文脸，小一号，句读，不拉开字距） */
.phase, .tag, .demo-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs);
  line-height: 1; padding: var(--space-xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-part);
  color: var(--color-muted); white-space: nowrap; background: transparent;
}
.night .phase, .night .tag { border-color: var(--color-band-rule); color: var(--color-band-muted); }
.p2-mini {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 500; line-height: 1;
  padding: 0.14rem 0.42rem; border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-part); color: var(--color-muted); vertical-align: middle; margin-left: var(--space-2xs);
}

/* ============================================================
   按钮：一个主按钮配方
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 52px; padding: 0 var(--space-xl);
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); line-height: 1;
  white-space: nowrap; cursor: pointer;
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  background: linear-gradient(var(--color-paper-2), var(--color-paper-3));
  color: var(--color-ink); box-shadow: var(--edge-light), var(--shadow-part);
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn:hover { text-decoration: none; border-color: var(--color-muted); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding-inline: var(--space-2xl); font-size: var(--text-md); }
.btn-primary {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink);
}
.btn-primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn-ghost { background: transparent; border-color: var(--color-rule); color: var(--color-ink); box-shadow: none; }
.btn-ghost:hover { border-color: var(--color-muted); }
.btn-band { background: transparent; border-color: var(--color-band-rule); color: var(--color-band-ink); box-shadow: none; }
.btn-band:hover { border-color: var(--color-band-ink); }
.btn:focus-visible, .btn-primary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
[data-magnetic] { transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); will-change: transform; }
.night .btn:focus-visible, .night a:focus-visible, .hero .btn:focus-visible, .hero a:focus-visible { outline-color: var(--color-band-ink); outline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--color-band-ink); }
.btn:disabled, button:disabled, input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background: color-mix(in oklab, var(--color-paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.nav {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  height: 72px; display: flex; align-items: center; gap: var(--space-xl);
}
.brand { display: flex; align-items: flex-end; gap: var(--space-sm); flex-shrink: 0; }  /* 下沿对齐：文字盒底贴住标志下沿 */
.brand-cn { margin-bottom: -5px; }  /* 汉字字形在盒底下还留了 ~4px 空档，负边距把它压到真正齐平 */
.brand:hover { text-decoration: none; }
.brand img { height: 27px; width: auto; }  /* 27 ≈ 原 30px 画布里的实际字高：原 logo 文件自带透明留白，新文件已裁掉 */
.brand-cn { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; letter-spacing: 0; color: var(--color-ink); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); margin-left: auto; }
.nav-links a {
  position: relative; font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2);
  white-space: nowrap; padding-block: var(--space-xs);
  transition: color var(--dur-short) var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-short) var(--ease-out);
}
.nav-links a:hover { color: var(--color-accent); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--color-ink); font-weight: 500; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.lang-toggle {
  display: inline-flex; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  padding: var(--space-3xs); background: var(--color-paper-2);
}
.lang-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; line-height: 1;
  color: var(--color-muted); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.lang-toggle button.on { background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-part); }
.lang-toggle button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2xs); }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; }
.nav-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* 英文提示条 */
.lang-notice {
  background: var(--color-accent-soft); color: var(--color-ink-2);
  font-size: var(--text-xs); line-height: 1.5; text-align: center; padding: var(--space-xs) var(--space-lg);
}

/* ============================================================
   首屏 Hero（夜带，晨光 drawn light，Stage）
   ============================================================ */
:root { --nav-h: 72px; }
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--color-band) 0%, var(--color-band-2) 58%, var(--color-band-3) 100%);
  color: var(--color-band-ink);
  min-height: calc(100dvh - var(--nav-h));
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 76px, color-mix(in oklab, var(--color-band-ink) 5%, transparent) 76px 77px);
  opacity: 0.5;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 160px; mix-blend-mode: soft-light; opacity: 0.42;
}
.hero .container { position: relative; z-index: var(--z-base); padding-block: var(--space-xl); }

/* 融合背景图：放大靠右，左缘渐变融入夜带 */
.hero-media {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, var(--mask-full) 52%, var(--mask-full) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, var(--mask-full) 52%, var(--mask-full) 100%);
}
.hero-media img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 72%; height: 100%; object-fit: cover; object-position: 72% 38%;
  transform: scale(1.18);
  filter: saturate(0.85) contrast(1.0) sepia(0.06) brightness(1.1);
}

/* 左侧文字可读性遮罩 */
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--color-band) 92%, transparent) 0%, color-mix(in oklab, var(--color-band) 60%, transparent) 34%, transparent 58%),
    linear-gradient(180deg, transparent 70%, color-mix(in oklab, var(--color-band-3) 55%, transparent) 100%);
}

/* 雾气：两层缓慢漂移 */
.hero-mist { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-mist::before, .hero-mist::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 70%;
  background:
    radial-gradient(42% 52% at 62% 44%, color-mix(in oklab, var(--color-band-dawn) 26%, transparent) 0%, transparent 70%),
    radial-gradient(34% 44% at 78% 62%, color-mix(in oklab, var(--color-band-ink) 16%, transparent) 0%, transparent 72%);
  filter: blur(26px);
  animation: mistDrift 46s linear infinite;
}
.hero-mist::before { left: 24%; animation-duration: 52s; }
.hero-mist::after { left: 42%; opacity: 0.7; animation-duration: 38s; animation-direction: reverse; }
@keyframes mistDrift {
  0% { transform: translate3d(-4%, 0, 0) scale(1.05); }
  50% { transform: translate3d(6%, -2%, 0) scale(1.12); }
  100% { transform: translate3d(-4%, 0, 0) scale(1.05); }
}

/* 文案 */
.hero-copy { max-width: 42rem; }
.hero-copy h1 { color: var(--color-band-ink); font-size: clamp(2.3rem, 3.4vw + 0.8rem, 4.3rem); line-height: 1.1; margin-bottom: var(--space-md); }
.hero-copy .lead { color: var(--color-band-muted); margin-bottom: var(--space-xl); max-width: 30rem; }
.fold-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-xl); }
.fold-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--rule-hair) solid var(--color-band-rule); padding-top: var(--space-md);
}
.fold-trust div {
  font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-band-muted); line-height: 1.4;
  padding-right: var(--space-md);
}
.fold-trust div:not(:last-child) { border-right: var(--rule-hair) solid var(--color-band-rule); }
.fold-trust div:not(:first-child) { padding-left: var(--space-md); }

/* 通用：图片框 */
.frame { border-radius: var(--radius-card); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame img, .news-thumb img, .article .retreat img { filter: saturate(0.72) contrast(0.98) sepia(0.1); }
.hero .tag { border-color: var(--color-band-rule); color: var(--color-band-muted); }

/* 免费体验（独立一行，第二期） */
/* 免费体验（收尾陈述带：标题 + 一段说明 + 三种时长） */
.try-band { background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl) var(--space-2xl); }
.try-inner { max-width: 58rem; margin-inline: auto; text-align: center; }
.try-band h2 { font-size: var(--text-section); max-width: none; margin-bottom: var(--space-md); color: var(--color-ink); }
.try-band .lead { max-width: 44rem; margin-inline: auto; color: var(--color-muted); }
.try-sessions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule);
}
.try-sessions > div { padding: var(--space-lg) var(--space-md); }
.try-sessions > div + div { border-left: var(--rule-hair) solid var(--color-rule); }
.try-sessions .n {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-3xl); line-height: 1; color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.try-sessions .u { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 60rem) {
  .try-band { padding-block: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .try-sessions { grid-template-columns: minmax(0, 1fr); }
  .try-sessions > div + div { border-left: none; border-top: var(--rule-hair) solid var(--color-rule); }
}

/* ============================================================
   六大收益（hairline rows，不做图标卡片）
   ============================================================ */
.benefits { border-top: var(--rule-hair) solid var(--color-rule); }
.benefit {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-lg);
  padding: var(--space-md) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule);
}
.benefit .n {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 2.4vw, 2.8rem);
  color: var(--color-ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.benefit h3 { font-size: var(--text-title); margin-bottom: var(--space-xs); }
.benefit p { color: var(--color-muted); max-width: none; }

/* ============================================================
   六大收益 · 一屏六卡（图片作卡片底，桌面端一屏铺满）
   ============================================================ */
.benefit-wall { background: var(--color-paper); padding-block: var(--space-2xl); }
.benefit-wall > .container { display: flex; flex-direction: column; }
.benefit-wall-head { max-width: 54rem; margin-bottom: var(--space-xl); }
.benefit-wall-head .lead { max-width: none; }

.benefit-grid { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }

/* ============================================================
   收益卡（浅色版）
   ------------------------------------------------------------
   照片铺满整卡 → 纸面竖向渐变蒙版 → 深墨文字落在纸上。
   与「古老的根」旁边的 .panel-photo 同一套语言：
   照片只当气氛，不当插画。
   ============================================================ */
.bcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch;
  min-height: 15rem; border-radius: var(--radius-card);
  background: var(--color-paper); color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  box-shadow: 0 1px 0 oklch(20% 0.012 190 / 0.04), 0 26px 50px -34px oklch(20% 0.02 190 / 0.32);
}
/* 照片层 */
.bcard-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bcard-img {
  position: static; inset: auto; z-index: auto;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transform: none;
  filter: saturate(var(--b-s, 0.30)) contrast(var(--b-c, 0.96)) brightness(var(--b-b, 1.12));
  transition: filter var(--dur-long) var(--ease-out);
}
/* 逐张微调：02 原本全黑、05 偏暗、06 金色太跳 */
.bcard:nth-child(2) { --b-c: 0.86; --b-b: 1.40; }
.bcard:nth-child(5) { --b-c: 0.90; --b-b: 1.24; }
.bcard:nth-child(6) { --b-s: 0.18; --b-c: 0.95; --b-b: 1.08; }
/* 纸面渐变蒙版：上半露照片；68% 处收到 92% 纸面，
   文字区隔着一层 92% 的纸，图片在里面若隐若现 */
.bcard-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--color-paper) 5%, transparent) 0%,
    color-mix(in oklab, var(--color-paper) 12%, transparent) 14%,
    color-mix(in oklab, var(--color-paper) 28%, transparent) 26%,
    color-mix(in oklab, var(--color-paper) 62%, transparent) 34%,
    color-mix(in oklab, var(--color-paper) 88%, transparent) 40%,
    color-mix(in oklab, var(--color-paper) 93%, transparent) 46%,
    color-mix(in oklab, var(--color-paper) 93%, transparent) 100%);
}
/* 文字：深墨，落在纸上 */
.bcard-body {
  position: relative; z-index: 2; width: 100%;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  text-shadow: none;
}
.bcard-n {
  display: inline; margin-right: var(--space-sm);
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.78rem; line-height: 1; letter-spacing: 0.14em;
  color: var(--color-logo); font-variant-numeric: tabular-nums;
  vertical-align: 0.12em;
}
.bcard-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 0.4vw + 0.95rem, 1.4rem); line-height: 1.25;
  color: var(--color-logo); margin-bottom: var(--space-2xs);
}
.bcard-text {
  font-size: var(--text-sm); line-height: 1.65; color: var(--color-ink-2);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .bcard:hover .bcard-img {
    filter: saturate(calc(var(--b-s, 0.30) + 0.06)) contrast(var(--b-c, 0.96)) brightness(calc(var(--b-b, 1.12) - 0.04));
  }
  .bcard:hover { border-color: color-mix(in oklab, var(--color-accent) 32%, var(--color-rule)); }
}
.benefit-disclaimer {
  margin-top: var(--space-lg); padding-top: var(--space-sm);
  font-size: var(--text-xs); color: var(--color-muted);
  border-top: var(--rule-hair) solid var(--color-rule);
}
@media (min-width: 40rem) {
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 桌面端：右侧留出章节导航的位置，避免药丸标签盖住第三列文字 */
@media (min-width: 60rem) and (max-width: 97.99rem) {
  .benefit-wall > .container { padding-right: calc(var(--gutter) + 4rem); }
}
/* 窄桌面：卡片更窄，正文降到小一号并放宽到 4 行，避免句子被截断 */
@media (min-width: 60rem) and (max-width: 75rem) {
  .bcard-text { font-size: var(--text-xs); }
}
@media (min-width: 60rem) {
  .benefit-wall { padding-block: var(--space-3xl) var(--space-2xl); }
  .benefit-wall.home-full { align-items: stretch; }
  .benefit-wall > .container { align-self: stretch; }
  .benefit-wall-head { margin-bottom: var(--space-lg); }
  .benefit-grid {
    flex: 1 1 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(min-content, 1fr));
    gap: var(--space-xl);
  }
  /* 卡片整体收 10%：高度取行高的 90%，在格子里垂直居中 */
  .bcard { height: 90%; min-height: 0; align-self: center; }
}
/* 宽屏：整块收窄 7%（约等于卡片宽度收 10%），在容器里居中，间隙更从容 */
@media (min-width: 75rem) {
  .benefit-grid { max-width: 93%; margin-inline: auto; }
}
/* 矮窗口（笔记本窗口化、1366×768 缩放后等）：收紧纵向节奏，
   让六卡仍能在一屏内放下，否则会多出一个几十像素的「贴底」停靠点，
   滚轮表现为「滚了没反应」。 */
@media (min-width: 60rem) and (max-height: 820px) {
  .benefit-wall { padding-block: calc(var(--space-xl) * 2) var(--space-lg); }
  .benefit-wall-head { margin-bottom: var(--space-md); }
  .benefit-wall-head h2 { font-size: var(--text-2xl); }
  .benefit-wall-head .lead { margin-top: var(--space-xs); font-size: var(--text-md); }
  .benefit-disclaimer { margin-top: var(--space-md); padding-top: var(--space-xs); }
}

/* ============================================================
   官方证书查询（深绿陈述带，不做卡片）
   ============================================================ */
.cert-band { padding-block: var(--space-3xl) var(--space-2xl); }
/* 左：证书样张 · 右：文案（“内容往右移”，左侧留出证书位） */
.cert-band-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-3xl); align-items: center;
}
.cert-band-figure { margin: 0; }
.cert-band-figure img {
  width: 90%; height: auto; display: block;
  margin-inline: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 40px 90px -50px oklch(12% 0.03 190 / 0.85), var(--edge-light);
  filter: saturate(0.92) contrast(1.01);
}
.cert-band-figure figcaption {
  margin-top: var(--space-md); font-size: var(--text-xs);
  margin-inline: 5%;
  color: var(--color-band-muted); letter-spacing: 0.02em;
}
.cert-band-inner { max-width: 27rem; text-align: left; }
.cert-band-inner::before {
  content: ""; display: block; width: 3.5rem; height: var(--rule-hair);
  background: var(--color-band-rule); margin: 0 0 var(--space-xl);
}
.cert-band h2 {
  font-size: var(--text-display-s); max-width: none;
  color: var(--color-band-ink); margin-bottom: var(--space-md);
}
.cert-band .lead {
  max-width: none; margin: 0 0 var(--space-xl);
  color: var(--color-band-muted);
}
.cert-band-note {
  margin: var(--space-xl) 0 0; max-width: none;
  font-size: var(--text-xs); color: var(--color-band-muted);
}
/* 右侧章节导航会压到文案上，这一屏的容器留出安全区（与首页收益屏同一处理） */
@media (min-width: 60rem) and (max-width: 97.99rem) {
  .cert-band > .container { padding-right: calc(var(--gutter) + 4rem); }
}
/* 想反过来（文左图右）时，加这一个类即可 */
.cert-band--flip .cert-band-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cert-band--flip .cert-band-figure { order: 2; }
@media (max-width: 60rem) {
  .cert-band-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .cert-band-figure { order: 2; }
  .cert-band-inner { max-width: none; text-align: center; }
  .cert-band-inner::before { margin-inline: auto; }
}

/* ============================================================
   培训动态（Index rows）
   ============================================================ */
.news-index { border-top: var(--rule-hair) solid var(--color-rule); }
.news-row {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--gap-columns);
  padding: var(--space-xl) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule);
  align-items: start;
}
a.news-row:hover { background: var(--color-paper-2); text-decoration: none; }
a.news-row:hover .news-title { color: var(--color-accent); }
.news-thumb { border-radius: var(--radius-part); overflow: hidden; aspect-ratio: 4 / 3; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb.ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
}
.news-meta { display: flex; flex-direction: column; gap: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); }
.news-meta .cat { font-weight: 500; color: var(--color-ink-2); }
.news-title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.25; margin-bottom: var(--space-xs); }
.news-excerpt { color: var(--color-muted); font-size: var(--text-sm); }
.news-more { margin-top: var(--space-2xl); }

/* ============================================================
   时间线（serif 大年份，hairline rows）
   ============================================================ */
.timeline { border-top: var(--rule-hair) solid var(--color-rule); }
.tl-item {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap-columns);
  padding: var(--space-lg) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule);
}
.tl-date { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.6vw, 1.9rem); color: var(--color-ink); line-height: 1.1; }
.tl-item h3, .tl-item h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin-bottom: var(--space-xs); color: var(--color-ink); }
.tl-item p { color: var(--color-muted); max-width: none; }
.night .tl-item { border-bottom-color: var(--color-band-rule); }
.night .tl-item h3 { color: var(--color-band-ink); }
.night .tl-item p { color: var(--color-band-muted); }

/* ============================================================
   表格（仅横线，无外框）
   ============================================================ */
.table-wrap { overflow-x: auto; border-top: var(--rule-hair) solid var(--color-ink); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
table.data th, table.data td {
  text-align: left; vertical-align: top; padding: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
table.data th { font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink-2); }
table.data td { color: var(--color-ink-2); line-height: 1.6; }
table.data td:first-child { color: var(--color-ink); font-weight: 500; }
table.data tr:last-child td { border-bottom: var(--rule-hair) solid var(--color-ink); }
.night table.data th { color: var(--color-band-ink); border-bottom-color: var(--color-band-rule); }
.night table.data td { color: var(--color-band-muted); border-bottom-color: var(--color-band-rule); }
.night table.data td:first-child { color: var(--color-band-ink); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 0.4rem;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg);
  color: var(--color-accent); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-part);
}

/* ============================================================
   说明 / 清单 / 阶段
   ============================================================ */
.note {
  background: var(--color-paper-2); border-radius: var(--radius-part);
  padding: var(--space-md) var(--space-lg); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.6;
}
.note b { color: var(--color-ink); }
.note.warn { background: var(--color-accent-soft); }
ul.clean { list-style: none; margin: 0; padding: 0; }
ul.clean li {
  position: relative; padding-left: var(--space-xl); margin-bottom: var(--space-md);
  color: var(--color-ink-2); line-height: 1.6;
}
ul.clean li::before {
  content: ""; position: absolute; left: 0; top: 0.66em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--color-accent);
}

/* 进阶路径（4 阶段，大数字 + hairline） */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); border-top: var(--rule-hair) solid var(--color-ink); }
.stage { padding: var(--space-lg) var(--space-md) var(--space-xl) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.stage .n { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 3vw, 3.4rem); line-height: 1; color: var(--color-ink); margin-bottom: var(--space-md); font-variant-numeric: tabular-nums; }
.stage h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.stage p { color: var(--color-muted); font-size: var(--text-sm); }

/* 结语陈述（serif 大字） */
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.5rem); line-height: 1.35; letter-spacing: -0.01em; }
.flow-pills { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin-top: var(--space-lg); }
.flow-pills span {
  font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-band-ink);
  background: color-mix(in oklab, var(--color-band-ink) 10%, transparent);
  border: var(--rule-hair) solid var(--color-band-rule);
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill);
}
.flow-pills i { color: var(--color-band-dawn); font-style: normal; padding: 0 var(--space-2xs); }
.flow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-band-rule); }
.flow-steps .step {
  display: flex; align-items: baseline; gap: var(--space-sm);
  padding-top: var(--space-md); font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--color-band-ink); line-height: 1.4;
}
.flow-steps .step b { font-weight: 500; }
.flow-steps .step i { color: var(--color-band-dawn); font-style: normal; white-space: nowrap; }
@media (max-width: 60rem) { .flow-steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------
   不二：文字保持 46rem 的阅读宽度（现在这版排版更松），
   右侧放一幅**真照片**而不是背景 ——
   原始素材只有 1600px，铺成背景会被放大糊掉，
   所以只占右侧一栏（~34rem 宽、40vh 高，2x 下仍在 1600 内）。
   ------------------------------------------------------------ */
.nd-copy {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
  gap: var(--gap-columns);
  align-items: start;
}
.nd-copy .measure { max-width: 46rem; }

/* 图片上提 96px：顶到导语下缘一带，右侧不再从半空开始 */
.nd-figure { margin: -96px 0 0; justify-self: end; width: 100%; max-width: 34rem; }
.nd-figure img {
  width: 100%; height: clamp(240px, 40vh, 400px); display: block; object-fit: cover;
  border-radius: var(--radius-card);
  filter: saturate(0.78) contrast(1.02) brightness(0.94);
  box-shadow: 0 50px 110px -70px oklch(8% 0.03 200 / 0.9);
}
/* 这条小标与正文同大（原来 0.875rem，偏小） */
#nonduality .k-label { font-size: var(--text-md); }
#nonduality .sec-head { margin-bottom: var(--space-xl); }
@media (max-width: 60rem) {
  .nd-copy { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .nd-figure { margin-top: 0; justify-self: stretch; max-width: none; }
  .nd-figure img { height: clamp(220px, 52vw, 320px); }
}

/* 面板（仅用于不同类型内容，hairline 一层） */
.panel { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-xl); }
.panel.hair { background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); }
.night .panel.hair { background: transparent; border-color: var(--color-band-rule); }
.night .panel h3, .night .panel h2 { color: var(--color-band-ink); }
.night .panel .muted { color: var(--color-band-muted); }

/* ------------------------------------------------------------
   图片面板：照片整幅铺底 → 斜向纸面渐变（左下厚、右上薄）
   → 磨砂玻璃（blur）压一层，文字仍是深墨，读得清，
   照片只当气氛，不当插画。
   ------------------------------------------------------------ */
.panel-photo {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 0; border: 0; background: var(--color-paper);
}
.panel-photo > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.95) contrast(1.04) brightness(0.96);
}
.panel-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg,
    color-mix(in oklab, var(--color-paper) 94%, transparent) 0%,
    color-mix(in oklab, var(--color-paper) 90%, transparent) 44%,
    color-mix(in oklab, var(--color-paper) 66%, transparent) 72%,
    color-mix(in oklab, var(--color-paper) 34%, transparent) 100%);
  -webkit-backdrop-filter: blur(3px) saturate(1.04);
  backdrop-filter: blur(3px) saturate(1.04);
  box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule);
}
.panel-photo-body {
  position: relative; z-index: 1;
  min-height: 13.5rem;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-lg) var(--space-2xl);
}
.panel-photo h3 { margin-bottom: var(--space-xs); }
.panel-photo p { color: var(--color-ink-2); max-width: 30rem; }
@media (max-width: 60rem) {
  .panel-photo > img { filter: saturate(0.86) contrast(0.98) brightness(1.04); }
}

/* ============================================================
   证书查询（Counter）
   ============================================================ */
.verify-search {
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card); box-shadow: var(--shadow-part);
  padding: var(--space-2xl); max-width: 72rem; margin-inline: auto;
}
.verify-head { text-align: center; margin-bottom: var(--space-xl); }
.verify-head h2 { max-width: none; font-size: var(--text-2xl); margin-bottom: var(--space-xs); }
.verify-head p { max-width: 42rem; margin-inline: auto; font-size: var(--text-sm); }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); align-items: end; }
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.field input {
  height: 52px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-part);
  background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md);
}
.field input::placeholder { color: var(--color-muted); }
.field input:focus { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.field input:disabled { opacity: .55; cursor: not-allowed; }
.search-row .btn { height: 52px; }
.verify-result { margin-top: var(--space-xl); }
.result-card {
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  overflow: hidden; background: var(--color-paper);
}
.result-head {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
}
.result-head h3 { font-size: var(--text-lg); margin-right: auto; }
.result-head .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-ink);
}
.result-head .status { font-size: var(--text-sm); font-weight: 500; color: var(--color-accent); }
.result-body { padding: var(--space-xs) var(--space-lg); }
.r-item {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-md);
  padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.r-item:last-child { border-bottom: none; }
.r-item .k { color: var(--color-muted); font-size: var(--text-sm); }
.r-item .v { color: var(--color-ink); font-weight: 500; }
.r-item .v.num { font-variant-numeric: tabular-nums; }
.r-item .v .en-name {
  color: var(--color-muted); font-weight: 400; margin-left: .55em;
  font-size: var(--text-sm); letter-spacing: .01em;
}
.r-item .v.is-tbc { color: var(--color-muted); font-weight: 400; }
.result-empty { padding: var(--space-2xl); text-align: center; }
.result-empty .big {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 999px; background: var(--color-paper-2); color: var(--color-muted); margin-bottom: var(--space-md);
}
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gap-columns); }
.level { border-top: var(--rule-hair) solid var(--color-ink); padding-top: var(--space-lg); }
.level h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.level p { color: var(--color-muted); font-size: var(--text-sm); }
.b-num { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-accent); display: block; margin-bottom: var(--space-sm); font-variant-numeric: tabular-nums; }
.k-label { font-size: var(--text-sm); color: var(--color-muted); }

/* ============================================================
   关于我们 / 品牌
   ============================================================ */
/* 品牌陈列：左右两栏各占一半，两个标志各自居中；中间一根细竖线分栏。
   说明文字绝对定位挂在字标下方，不参与栏宽计算，否则会把一侧撑宽、整体重心偏移。 */
.brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 2.4rem;            /* 为字标下方的说明文字预留高度 */
}
.brand-panel { max-width: 56rem; margin-inline: auto; padding: var(--space-2xl); }
.brand-row .br-col { display: flex; justify-content: center; align-items: center; }
.brand-row .br-line { width: 1px; height: 56px; background: var(--color-rule); }
.brand-row .lg-veda { height: 46px; width: auto; display: block; }
.brand-row .br-logo { position: relative; }
.brand-row .lg-irest { height: 34px; width: auto; display: block; }
.brand-row .br-cn {
  position: absolute; left: calc(100% + 0.5rem); bottom: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.18rem; line-height: 1; color: var(--color-ink);
  white-space: nowrap;
}
.brand-row .br-cap {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); margin-top: 0.85rem;
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .brand-panel { padding: var(--space-xl) var(--space-lg); }
  .brand-row { padding-bottom: 2.1rem; }
  .brand-row .br-line { height: 46px; }
  .brand-row .lg-veda { height: 38px; }
  .brand-row .lg-irest { height: 26px; }
  .brand-row .br-cn { font-size: 0.98rem; left: calc(100% + 0.35rem); }
  .brand-row .br-cap {
    width: 8.5rem; white-space: normal; text-align: center;
    font-size: 0.7rem; line-height: 1.45;
  }
}
.contact-list { font-size: var(--text-md); line-height: 2.1; }
.contact-list .k { color: var(--color-muted); font-weight: 500; margin-right: var(--space-xs); }
.qr-slot {
  width: 11.25rem; height: 11.25rem; margin-inline: auto;
  border: 1.5px dashed var(--color-muted); border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--color-muted); font-size: var(--text-xs); padding: var(--space-lg); background: var(--color-paper-2);
}
.contact-qr {
  width: 11.25rem; height: 11.25rem; margin-inline: auto;
  border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper); padding: var(--space-xs);
}

/* ============================================================
   文章
   ============================================================ */
.article { max-width: 46rem; margin-inline: auto; }  /* 46rem ≈ 一行 40 余个汉字，长文更易读 */
.article h2 { max-width: none; }
.article p:not([class]) { max-width: none; }
.article .art-meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin-bottom: var(--space-md); }
/* 文章标题按「阅读」规格定，而不是首页展示规格：
   正文 17px/1.85，标题最大 2rem 左右比较稳，中文长标题不会三四行压下来。
   注意：标题在 .page-hero 里，不在 .article 内，所以要单独挂 .page-hero--article */
.page-hero.page-hero--article h1 {
  font-size: clamp(1.6rem, 2.1vw, 2rem); line-height: 1.32;
  letter-spacing: -0.01em; margin-bottom: var(--space-md);
  max-width: 46rem; text-wrap: balance;
}
.page-hero.page-hero--article .art-dek {
  font-size: var(--text-md); line-height: 1.7; max-width: 46rem;
}
.article h1 {
  font-size: clamp(1.6rem, 2.1vw, 2rem); line-height: 1.32;
  letter-spacing: -0.01em; margin-bottom: var(--space-md);
  text-wrap: balance;
}
.article .art-dek { color: var(--color-muted); font-size: var(--text-lg); margin-bottom: var(--space-xl); }
.article h2 {
  font-size: clamp(1.3rem, 1.7vw, 1.5rem); line-height: 1.45;
  margin-top: var(--space-2xl); margin-bottom: var(--space-md);
  text-wrap: balance;
}
.article p { margin-bottom: var(--space-md); line-height: 1.85; color: var(--color-ink-2); }
.article ul, .article ol { margin: 0 0 var(--space-md); padding-left: var(--space-xl); }
.article ul li, .article ol li { margin-bottom: var(--space-xs); line-height: 1.8; color: var(--color-ink-2); }
.article blockquote {
  margin: var(--space-xl) 0; padding: var(--space-lg) var(--space-xl);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  background: var(--color-paper-2);
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.7; color: var(--color-ink);
}
.article .retreat {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap-columns);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  padding: var(--space-xl); margin: var(--space-xl) 0; background: var(--color-paper);
}
.article .retreat img { border-radius: var(--radius-part); width: 100%; }
.article .retreat ul { list-style: none; padding: 0; margin: 0; }
.article .retreat li { font-size: var(--text-sm); line-height: 1.8; margin-bottom: var(--space-xs); color: var(--color-ink-2); }
.article .back { margin-top: var(--space-2xl); }
.article .fine { font-size: var(--text-xs); color: var(--color-muted); line-height: 1.7; }

/* 延伸阅读（hairline rows） */
.read-list { border-top: var(--rule-hair) solid var(--color-rule); }
.read-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; padding: var(--space-lg) var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.read-row .read-t { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); color: var(--color-ink); }
.read-row:hover .read-t { color: var(--color-accent-deep); text-decoration: none; }
.read-row .read-m { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }

/* ============================================================
   子页头（Banner）
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--color-band) 0%, var(--color-band-2) 100%);
  color: var(--color-band-ink); padding-block: var(--space-2xl) var(--space-md);
}
.page-hero > .container { position: relative; z-index: 1; }
/* 证书页页头：右侧证书样张水印（左侧渐隐，只露一抹暖色） */
.hero-cert-mark {
  position: absolute; top: 50%; right: -12%;
  width: min(56vw, 800px); height: auto; z-index: 0;
  transform: translateY(-50%) rotate(-9deg);
  opacity: 0.24; pointer-events: none;
  border-radius: 6px;
  filter: saturate(0.5) contrast(1) blur(0.5px);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.4) 28%, #000 60%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.4) 28%, #000 60%);
}
@media (max-width: 60rem) {
  .hero-cert-mark { width: 96vw; right: -40%; opacity: 0.14; filter: saturate(0.45) contrast(1) blur(0.8px); }
}

/* ------------------------------------------------------------
   标题栏右侧水印（各页配图）：与证书页同一套语言 ——
   右缘出血、轻微倾斜、左侧渐隐、上下用遮罩收边，
   图片只做“气氛”，不与标题抢注意力。
   ------------------------------------------------------------ */
.hero-mark {
  position: absolute; top: 50%; right: -6%; z-index: 0;
  width: min(44vw, 620px); height: auto;
  transform: translateY(-50%) rotate(-7deg);
  opacity: 0.32; pointer-events: none;
  border-radius: 10px;
  filter: saturate(0.42) contrast(0.98) brightness(0.85) blur(0.4px);
  /* 四边都施淡出：左侧渐进、右侧软收，上下各留一档，避免出现“贴上去的照片边” */
  -webkit-mask-image:
    linear-gradient(100deg, transparent 0%, rgba(0,0,0,.55) 20%, #000 34%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(100deg, transparent 0%, rgba(0,0,0,.55) 20%, #000 34%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

/* 认识 iRest：水面那张人像偏右，整体往左挪一点，脸才不会落在右侧淡出区 */
.hero-mark--about { right: 0; width: min(46vw, 650px); }

/* 竖构图人物：再放大一点，脸要完整落在画面内 */
.hero-mark--portrait { width: min(46vw, 650px); right: -4%; transform: translateY(-50%) rotate(-5deg); opacity: 0.3; }

/* 白底静物（BE HERE NOW）：反相 + screen，白底消失，只剩发亮的骨牌 */
.hero-mark--news {
  right: 5%; width: clamp(360px, 32vw, 560px); border-radius: 0; opacity: 0.3;
  mix-blend-mode: screen;
  filter: grayscale(1) invert(1) contrast(1.04) blur(0.3px);
  -webkit-mask-image:
    linear-gradient(100deg, transparent 0%, rgba(0,0,0,.5) 18%, #000 36%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(100deg, transparent 0%, rgba(0,0,0,.5) 18%, #000 36%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

/* 关于我们：品牌字标本身做幽灵水印，更淡、更大 */
.hero-mark--logo {
  width: min(52vw, 760px); right: -5%;
  transform: translateY(-50%) rotate(-4deg);
  opacity: 0.12; border-radius: 0; filter: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.6) 22%, #000 40%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.6) 22%, #000 40%, #000 92%, transparent 100%);
}

/* 窄屏：只留右缘一角，别把整块标题区盖住 */
@media (max-width: 60rem) {
  .hero-mark { width: 78vw; right: -26%; opacity: 0.16; }
  .hero-mark--about { width: 82vw; right: -28%; opacity: 0.15; }
  .hero-mark--portrait { width: 86vw; right: -30%; opacity: 0.15; }
  .hero-mark--news { width: 70vw; right: -16%; opacity: 0.18; }
  .hero-mark--logo { width: 86vw; right: -26%; opacity: 0.07; }
}
.page-hero + .section { padding-top: var(--section-gap-s); }
.page-hero .crumb { font-size: var(--text-sm); color: var(--color-band-muted); margin-bottom: var(--space-md); }
.page-hero .crumb a { color: var(--color-band-muted); }
.page-hero h1 { color: var(--color-band-ink); font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: var(--space-md); max-width: min(100%, 44rem); }
.page-hero .lead { color: var(--color-band-muted); max-width: 40rem; }
.page-hero .tag { background: color-mix(in oklab, var(--color-band-ink) 10%, transparent); border-color: var(--color-band-rule); color: var(--color-band-ink); }
.page-hero .muted, .page-hero time, .page-hero .art-meta, .page-hero .art-meta .muted { color: var(--color-band-muted); }

/* ============================================================
   页脚（mast over real sitemap）
   ============================================================ */
.site-footer { background: var(--color-band-3); color: var(--color-band-muted); position: relative; }
.site-footer::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 160px; mix-blend-mode: soft-light; opacity: 0.3; pointer-events: none; }
.footer-top { position: relative; padding-block: var(--space-3xl) var(--space-2xl); }
.footer-mast { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); padding-bottom: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-band-rule); margin-bottom: var(--space-2xl); }
.footer-brand img { height: 36px; margin-bottom: var(--space-md); }  /* 同上：对应原 40px 画布的字高 */
.footer-brand p { color: var(--color-band-muted); font-size: var(--text-sm); line-height: 1.7; max-width: 26rem; }
.footer-logo-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.footer-logo-row .pill { font-size: var(--text-xs); color: var(--color-band-ink); border: var(--rule-hair) solid var(--color-band-rule); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); }
.footer-closing { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.45; color: var(--color-band-ink); align-self: center; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.footer-col h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); color: var(--color-band-ink); margin-bottom: var(--space-md); }
.footer-col a, .footer-col .contact-line { display: block; color: var(--color-band-muted); font-size: var(--text-sm); line-height: 2; }
.footer-col a:hover { color: var(--color-band-ink); }
.footer-bottom { position: relative; border-top: var(--rule-hair) solid var(--color-band-rule); }
.footer-bottom .container { padding-block: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); justify-content: space-between; }
.footer-bottom span { font-size: var(--text-xs); color: var(--color-band-muted); line-height: 1.6; max-width: 46rem; }

/* ============================================================
   渐显（默认可见，仅 .js 时隐藏后入场）
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* 并列子元素依次淡入：容器加 .stagger，子元素带 .reveal；70ms 一档，封顶 350ms 避免久等 */
.stagger > .reveal:nth-child(2) { --reveal-delay: 70ms; }
.stagger > .reveal:nth-child(3) { --reveal-delay: 140ms; }
.stagger > .reveal:nth-child(4) { --reveal-delay: 210ms; }
.stagger > .reveal:nth-child(5) { --reveal-delay: 280ms; }
.stagger > .reveal:nth-child(6), .stagger > .reveal:nth-child(n+7) { --reveal-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stagger > .reveal { --reveal-delay: 0s; }
  html { scroll-snap-type: none; }
  .chapter-nav a, .chapter-nav .dot, .chapter-nav .label { transition: none; }
}
/* 安全网：脚本在硬超时后给 html 加 .reveal-safe，强制所有元素可见，杜绝永久隐藏 */
.js.reveal-safe .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ============================================================
   滚动磁吸（桌面端，划过一半自动吸附整屏）
   ============================================================ */
/* 整屏磁吸：桌面端改由 motion.js 接管滚轮（一次滚动走一屏）。
   CSS scroll-snap 在这里会和「比一屏高的分区」打架（正文被吸回顶部），
   所以只在桌面端把锚点偏移归零，吸附交给脚本。 */
@media (min-width: 60rem) and (pointer: fine) {
  html { scroll-padding-top: 0; }
}

/* ============================================================
   右侧章节导航（半透明，从上到下）
   ============================================================ */
.chapter-nav {
  display: none;
  position: fixed; right: var(--space-md); top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-dropdown);
  flex-direction: column; gap: var(--space-sm);
  padding: var(--space-md) var(--space-xs);
  background: color-mix(in oklab, var(--color-band-3) 30%, transparent);
  border: var(--rule-hair) solid color-mix(in oklab, var(--color-band-ink) 16%, transparent);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (min-width: 60rem) {
  .chapter-nav { display: flex; }
}
.chapter-nav a {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  padding: var(--space-2xs); color: var(--color-band-ink);
  opacity: 0.55; transition: opacity var(--dur-short) var(--ease-out);
}
.chapter-nav a:hover, .chapter-nav a.is-active { opacity: 1; text-decoration: none; }
.chapter-nav .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.chapter-nav a.is-active .dot { transform: scale(1.45); background: var(--color-band-dawn); }
.chapter-nav .label {
  position: absolute; right: calc(100% + var(--space-xs)); top: 50%;
  transform: translateY(-50%);
  background: color-mix(in oklab, var(--color-band-3) 72%, transparent);
  border: var(--rule-hair) solid color-mix(in oklab, var(--color-band-ink) 16%, transparent);
  padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-part);
  font-size: var(--text-xs); white-space: nowrap; line-height: 1.3;
  color: var(--color-band-ink); opacity: 1; pointer-events: none;
  transition: opacity var(--dur-short) var(--ease-out);
}
.js .chapter-nav .label { opacity: 0; }
.js .chapter-nav a:hover .label, .js .chapter-nav a:focus-visible .label, .js .chapter-nav a.is-active .label { opacity: 1; }
.chapter-nav a:focus-visible { outline: 2px solid var(--color-band-ink); outline-offset: 2px; border-radius: var(--radius-pill); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 72rem) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--color-paper);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-sm) var(--gutter) var(--space-lg);
    box-shadow: var(--shadow-panel);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .brand-cn { display: none; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .levels { grid-template-columns: 1fr; }
}
@media (max-width: 60rem) {
  /* 移动端：融合图退为顶部淡背景，向下渐隐入夜带 */
  .hero-media { -webkit-mask-image: linear-gradient(180deg, var(--mask-full) 0%, transparent 76%); mask-image: linear-gradient(180deg, var(--mask-full) 0%, transparent 76%); }
  .hero-media img { width: 100%; opacity: 0.55; transform: scale(1.12); }
  .hero-veil { background: linear-gradient(180deg, color-mix(in oklab, var(--color-band) 45%, transparent) 0%, color-mix(in oklab, var(--color-band) 96%, transparent) 72%); }
  .split, .split.rev, .split-head, .footer-mast { grid-template-columns: minmax(0, 1fr); }
  .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .benefit, .tl-item { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .news-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .news-thumb { max-width: 20rem; }
  .article .retreat { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: var(--gap-columns); }
  .search-row { grid-template-columns: minmax(0, 1fr); }
  .r-item { grid-template-columns: 6rem minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .fold-trust { grid-template-columns: 1fr; }
  .fold-trust div { padding: var(--space-sm) 0; border-right: none; }
  .fold-trust div:not(:last-child) { border-bottom: var(--rule-hair) solid var(--color-band-rule); }
  .fold-actions .btn { flex: 1 1 100%; }
  .stages { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   培训动态 · 列表页（一屏 5 篇 + 分类筛选 + 分页）
   ============================================================ */
.page-hero--tight { padding-block: var(--space-lg) var(--space-md); }
.page-hero--tight h1 { font-size: clamp(2rem, 3vw, 2.75rem); }
.news-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; }
.news-hero h1 { margin-bottom: var(--space-xs); }
.news-hero .lead { margin: 0; max-width: 44rem; }
.news-hero-count { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: var(--text-sm); color: var(--color-band-muted); }
.news-hero-count b {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl);
  color: var(--color-band-ink); font-variant-numeric: tabular-nums; line-height: 1;
}

.page-hero + .news-page { padding-top: var(--space-md); padding-bottom: var(--space-2xl); }

.news-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); margin-bottom: var(--space-sm); flex-wrap: wrap;
}
.news-filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip {
  font-family: var(--font-body); font-size: var(--text-sm); line-height: 1;
  padding: 9px 14px; border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.chip:hover { border-color: var(--color-muted); color: var(--color-ink); }
.chip.is-on { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.news-sort { margin: 0; font-size: var(--text-xs); color: var(--color-muted); }

.nlist { border-top: var(--rule-hair) solid var(--color-ink); }
.nrow {
  display: grid;
  grid-template-columns: 5.6rem 6rem minmax(0, 1fr) auto;
  grid-template-areas: "date thumb main meta";
  align-items: center; gap: var(--space-lg);
  padding: 13px var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink);
}
.nrow:hover { background: var(--color-paper-2); text-decoration: none; }
.nrow:hover .nrow-title { color: var(--color-accent-deep); }
.nrow-date {
  grid-area: date; font-size: var(--text-xs); color: var(--color-muted);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.nrow-thumb {
  grid-area: thumb; display: block; width: 96px; height: 64px;
  border-radius: var(--radius-part); overflow: hidden; background: var(--color-paper-3);
}
.nrow-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.68) contrast(0.98) sepia(0.08); }
.nrow-thumb.ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
}
.nrow-main { grid-area: main; display: block; min-width: 0; }
.nrow-title {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 1.06rem; line-height: 1.35; margin-bottom: 3px;
  transition: color var(--dur-short) var(--ease-out);
}
.nrow-ex {
  display: block; font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nrow-meta {
  grid-area: meta; display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; font-size: var(--text-xs); color: var(--color-muted);
  text-align: right; white-space: nowrap;
}
.nrow-cat { color: var(--color-ink-2); }
.nlist-empty { padding: var(--space-2xl) 0; text-align: center; color: var(--color-muted); }

.news-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg); margin-top: var(--space-md); flex-wrap: wrap;
}
.news-status { margin: 0; font-size: var(--text-xs); color: var(--color-muted); }
.pager { display: flex; align-items: center; gap: 6px; }
.pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: var(--text-sm); line-height: 1;
  color: var(--color-ink-2); background: transparent; cursor: pointer;
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-part);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.pg:hover:not(:disabled) { border-color: var(--color-muted); color: var(--color-ink); }
.pg.is-current { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.pg:disabled { opacity: 0.4; cursor: not-allowed; }
.pg-gap { min-width: 20px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-muted); }
.news-note {
  max-width: 48rem; margin: var(--space-xl) auto 0; padding: 0; background: none;
  border-radius: 0; text-align: center; font-size: var(--text-xs); color: var(--color-muted);
}

@media (max-width: 48rem) {
  .nrow {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "date meta" "main main";
    gap: 6px var(--space-md); padding-block: var(--space-md);
  }
  .nrow-thumb { display: none; }
  .nrow-ex {
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .nrow-meta { justify-content: center; }
  .news-foot { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   文章页：元信息 / 封面 / 出处 / 上下篇
   ============================================================ */
.page-hero .art-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-sm); margin-bottom: var(--space-md);
  font-size: var(--text-sm); color: var(--color-band-muted);
}
.page-hero .art-meta .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: 0.45;
}
.page-hero .art-dek { color: var(--color-band-muted); max-width: 38rem; margin: 0; }

.art-cover { margin: 0 0 var(--space-2xl); }
.art-cover img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-card);
  filter: saturate(0.82) contrast(0.98) sepia(0.06);
}
.art-cover figcaption { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
/* 活动类文章：竖版海报 + 关键信息并排（海报单独做封面会太高） */
.event-brief {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--space-xl); align-items: center;   /* 海报比信息高，让信息列垂直居中 */
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  padding: var(--space-lg); margin: 0 0 var(--space-2xl);
  background: var(--color-paper);
}
.event-brief figure { margin: 0; }
.event-brief img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-part);
  filter: saturate(0.86) contrast(0.99);
}
.event-brief figcaption { margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }
.event-facts { margin: 0; }
.event-facts > div {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--space-sm); padding-block: 10px;
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.event-facts > div:first-child { padding-top: 0; }
.event-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.event-facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.event-facts dd { margin: 0; font-size: var(--text-sm); line-height: 1.65; color: var(--color-ink-2); }
@media (max-width: 40rem) {
  .event-brief { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .event-brief figure { max-width: 13rem; margin-inline: auto; }
}

.art-source {
  margin-top: var(--space-2xl); padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs); line-height: 1.8; color: var(--color-muted);
}
.art-source a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 0.2em; }

.art-nav {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg); margin-top: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-lg);
}
.art-nav a { display: flex; flex-direction: column; gap: 4px; }
.art-nav .k { font-size: var(--text-xs); color: var(--color-muted); }
.art-nav .t { font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); line-height: 1.4; }
.art-nav a:hover .t { color: var(--color-accent-deep); }
.art-nav .next { text-align: right; align-items: flex-end; }
.art-nav .only { grid-column: 1 / -1; }
@media (max-width: 40rem) {
  .art-nav { grid-template-columns: minmax(0, 1fr); }
  .art-nav .next { text-align: left; align-items: flex-start; }
}

/* 长标题均衡换行（避免出现「（PCDMN）」这种孤行） */
.page-hero h1 { text-wrap: balance; }

/* 白底插画封面：正片叠底，让白底融进纸面 */
.art-cover.flat img { mix-blend-mode: multiply; filter: saturate(0.78) contrast(0.98) sepia(0.06); }

/* 窄屏下隐藏元信息里的分隔圆点，避免行尾挂一个「·」 */
@media (max-width: 40rem) {
  .page-hero .art-meta .sep { display: none; }
}

/* ============================================================
   标题与正文的纵向节奏
   原来 h2/h3 紧贴下面段落（gap = 0），“古老的根”“250 小时”“核验结果”
   这些分栏标题都像和正文粘在一起；段落之间也是 0，长段读起来成块。
   ============================================================ */
h2 + p { margin-top: var(--space-lg); }
h3 + p { margin-top: var(--space-md); }
p + p { margin-top: var(--space-md); }
.grid > p + p { margin-top: 0; }   /* 网格里靠 gap 拉开，不叠加外边距 */
.article h2 + p, .article p + p { margin-top: 0; }   /* 文章内已有段间距，不叠加 */

/* 分栏里的标题常为两行以上，1.05 的中文行高会挤在一起 */
.split h2 { line-height: 1.16; }

/* 机构名：主名 + 副名锁排（原名太长，在 5 栏里被切成“整/合修复学院”） */
.org-lockup { font-size: var(--text-section); line-height: 1.12; margin-bottom: var(--space-md); }
.org-lockup span {
  display: block; margin-top: 10px;
  font-size: 0.48em; font-weight: 500; letter-spacing: 0.04em; line-height: 1.3;
  color: var(--color-muted);
}

/* ============================================================
   整屏节奏：向「iRest 可以为你带来什么」看齐
   那一屏的高度基准 = 一屏（100dvh）。这里把高度接近一屏的分区
   也钉成一屏，并把纵向内边距改成随视口高度收缩，
   避免内容 + 内边距撑破 100dvh（矮窗口下最容易“高一点点”）。
   ============================================================ */
@media (min-width: 60rem) {
  /* 首页「iRest 在中国」 */
  .timeline-band { padding-block: calc(var(--header-h) + var(--space-md)) var(--space-xl); }

  /* 证书核验 / 教师进阶路径 / 练习流程 等 */
  .snap-screen {
    min-height: 100dvh; display: flex;
    align-items: safe center;   /* 内容超高时向下溢出，而不是往上顶到导航底下 */
    padding-block: calc(var(--header-h) + var(--space-md)) var(--space-xl);
  }
  .snap-screen > .container { width: 100%; }
  /* 右侧章节导航会压到内容上（1440 附近最明显），这里留出安全区 */
  @media (min-width: 60rem) and (max-width: 97.99rem) {
    .snap-screen > .container { padding-right: calc(var(--gutter) + 5.5rem); }
  }
  .timeline-band { align-items: safe center; }
}

/* 内收：时间线行距 24→16（4 行省 64px），标题下留白 64→32；
   否则矮窗口（≤768 高）时内容比可用高度高，标题被挤到吸顶导航后面。 */
.timeline-band .sec-head { margin-bottom: var(--space-lg); }
.timeline-band .tl-item { padding-block: var(--space-md); }

/* 「瑜伽休息术与 iRest 的根本差别」：对照表行距 16→12（6 行省 48px） */
#yoga-nidra .sec-head { margin-bottom: var(--space-lg); }
#yoga-nidra table.data th,
#yoga-nidra table.data td { padding-block: 12px; }

/* 矮窗口（笔记本窗口化、浏览器缩放后）：标题与导语各降一号，
   让这两屏在 650–760 的高度里仍能一屏装下、标题不被顶到导航后面。 */
@media (min-width: 60rem) and (max-height: 760px) {
  .timeline-band h2, .snap-screen h2 { font-size: var(--text-2xl); }
  .timeline-band .sec-head, .snap-screen .sec-head { margin-bottom: var(--space-md); }
  .timeline-band .lead, .snap-screen .lead { font-size: var(--text-md); }
  .timeline-band, .snap-screen { padding-block: calc(var(--header-h) + var(--space-sm)) var(--space-lg); }
}

/* 标题里不拆的复合词：CJK 任意字符都能断行，关键名词用这个包住 */
.nb { white-space: nowrap; }

/* 内容比一屏短的两屏（古老的根 / 250 小时认证）：靠内边距与行距把体量补回来，
   而不是把内容硬拉长，避免出现一大块空白 */
#what .panel-photo { padding: 0; }
#what .panel:not(.panel-photo), [data-chapter="250 小时认证"] .panel { padding: var(--space-2xl); }
#what .panel p, [data-chapter="250 小时认证"] .panel li { line-height: 1.85; }
[data-chapter="250 小时认证"] .clean li { margin-bottom: var(--space-sm); }
/* 「预约说明」「证书等级说明」内容偏少，靠板块自身的呼吸补体量 */
[data-chapter="预约说明"] .levels,
#cert-levels .levels { margin-top: var(--space-lg); }
[data-chapter="预约说明"] .level,
#cert-levels .level { padding-top: var(--space-xl); padding-bottom: var(--space-lg); }
[data-chapter="预约说明"] .level p,
#cert-levels .level p { line-height: 1.9; }

/* ============================================================
   导航 · 下拉菜单（证书查询：证书查询 / 师资查询）
   ============================================================ */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-top { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret {
  display: inline-flex; align-items: center; color: var(--color-muted);
  transition: transform var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 172px; padding: 6px;
  background: color-mix(in oklab, var(--color-paper) 96%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 14px; box-shadow: var(--shadow-panel);
  opacity: 0; visibility: hidden; z-index: var(--z-dropdown);
  transition: opacity var(--dur-short) var(--ease-out),
             transform var(--dur-short) var(--ease-out),
             visibility var(--dur-short) var(--ease-out);
}
/* 透明桥接：消除顶部链接与菜单之间的悬停空隙 */
.nav-drop-menu::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-drop-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: var(--text-sm); white-space: nowrap;
}
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover {
  background: var(--color-accent-soft); color: var(--color-accent);
}
.nav-drop-menu a.active { color: var(--color-accent); font-weight: 500; }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop:hover .nav-caret,
.nav-drop:focus-within .nav-caret { transform: rotate(180deg); color: var(--color-accent); }

/* ============================================================
   师资查询 · 筛选器与名单表格
   ============================================================ */
.teacher-search {
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card); box-shadow: var(--shadow-part);
  padding: var(--space-2xl); max-width: 80rem; margin-inline: auto;
}
.teacher-filters { display: flex; align-items: flex-end; gap: var(--space-md); flex-wrap: wrap; }
.teacher-filter-toggle { display: none; }
.field-grow { flex: 1 1 280px; }
.teacher-filters .field select {
  width: 100%; height: 52px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-part);
  background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md);
  font-family: var(--font-body); min-width: 180px; cursor: pointer;
}
.teacher-filters .field select:focus { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.teacher-filters .btn-reset { height: 52px; }
.teacher-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap; margin: var(--space-xl) 0 var(--space-md);
}
.teacher-count {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg);
  color: var(--color-ink); font-variant-numeric: tabular-nums;
}
.teacher-count.is-zero { color: var(--color-muted); }
.teacher-table .col-name { width: 22%; }
.teacher-table .col-en { width: 34%; }
.teacher-table .col-prov { width: 18%; }
.teacher-table .col-city { width: 26%; }
.teacher-table .col-region { display: none; }   /* 仅手机端卡片布局使用 */
/* 末行不做加粗收尾线：单行结果时那条深线会贴在文字下方，被读成"最后一位老师带下划线" */
table.data.teacher-table tr:last-child td { border-bottom: var(--rule-hair) solid var(--color-rule); }
.teacher-table tbody tr { transition: background var(--dur-micro) var(--ease-out); }
.teacher-table tbody tr:hover { background: var(--color-accent-soft); }
.t-name { font-weight: 500; color: var(--color-ink); }
.t-na { color: var(--color-muted); }
.teacher-empty { text-align: center; padding: var(--space-3xl) var(--space-xl); }
.teacher-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--color-paper-2); color: var(--color-muted); margin-bottom: var(--space-md);
}
.teacher-empty h3 { margin-bottom: var(--space-sm); }
.teacher-empty p { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-xs); }

/* 移动端：下拉菜单静态展开；筛选器纵向堆叠 */
@media (max-width: 72rem) {
  .nav-drop { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-caret { display: none; }
  .nav-drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: 0 0 0 var(--space-md);
    border: none; border-radius: 0; box-shadow: none; background: transparent;
  }
  .nav-drop-menu::before { display: none; }
  .nav-drop-menu a { padding: var(--space-sm) 0; border-radius: 0; }
  .nav-drop-menu a:hover { background: transparent; }
}
@media (max-width: 48rem) {
  .teacher-search { padding: var(--space-xl); }
  .field-grow { flex: 1 1 auto; }
  .teacher-filter-toggle { display: inline-flex; margin-bottom: var(--space-md); }
  .teacher-filters { display: none; flex-direction: column; align-items: stretch; }
  .teacher-filters.is-open { display: flex; }
  .teacher-filters .btn-reset { width: 100%; }

  /* 名单改为卡片式：第一行 姓名+英文名，第二行 省·市，第三行 邮箱
     五列表格在窄屏下每格只剩十几像素，英文名和邮箱被折成 5 行，行高飙到 150px+ */
  .teacher-search .table-wrap { overflow-x: visible; }
  .teacher-table thead { display: none; }
  .teacher-table,
  .teacher-table tbody { display: block; width: 100%; }
  .teacher-table tbody tr {
    display: flex; flex-wrap: wrap; align-items: baseline;
    padding: var(--space-sm) 0;
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }
  /* 需用 table.data.teacher-table 提高优先级，否则被 table.data td 的 16px 内边距覆盖 */
  table.data.teacher-table td { padding: 0; border-bottom: none; }
  table.data.teacher-table tr:last-child td { border-bottom: none; }
  .teacher-table td.col-name { flex: 0 0 auto; width: auto; font-size: var(--text-md); font-weight: 500; color: var(--color-ink); }
  .teacher-table td.col-en { flex: 0 1 auto; width: auto; min-width: 0; margin-left: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
  .teacher-table td.col-en .t-na { display: none; }
  .teacher-table td.col-prov,
  .teacher-table td.col-city { display: none; }
  .teacher-table td.col-region {
    display: block; flex: 0 0 100%; margin-top: 2px;
    font-size: var(--text-sm); color: var(--color-muted);
  }
}

/* 英文文案普遍比中文长：首屏主标题降一档字号并做均衡换行，避免末行只剩一个词 */
html[lang="en"] .hero-copy h1 {
  font-size: clamp(1.95rem, 3.3vw, 3rem);
  white-space: pre-line;   /* 英文标语在词库里用 \n 指定断行，保证断在逗号处 */
}
html[lang="en"] .hero-copy .lead { max-width: 34rem; }

/* 延伸阅读：文章末尾的收尾清单，字号要收回到正文量级，
   原来标题 40px+、行标题 26px，比正文 17px 大太多 */
.sec-read .sec-head { margin-bottom: var(--space-lg); }
.sec-read .sec-head h2 { font-size: clamp(1.3rem, 1.7vw, 1.5rem); }
.sec-read .read-row { padding: var(--space-md) var(--space-2xs); gap: var(--space-lg); }
.sec-read .read-row .read-t { font-size: var(--text-md); }
.sec-read .read-row .read-m { font-size: var(--text-xs); }

/* 文章收尾属于文章内容本身，不用站级版块标题的大规格：
   字号对齐文章标题（26–32px），而不是全站 --text-section（40px+） */
.art-cta h2 {
  font-size: clamp(1.6rem, 2.1vw, 2rem);
  line-height: 1.32; letter-spacing: -0.01em;
}
/* 延伸阅读与上一篇之间原本隔了一个整段 section 内边距（120px+），收到 40px */
.sec-read { padding-top: var(--space-xl); }

/* ============================================================
   移动端专项（2026-11-09）
   ------------------------------------------------------------
   1) 头部：320px 宽也放得下（原来汉堡被 overflow-x:clip 裁掉）
   2) 六大收益：改为横向 scroll-snap 卡片组，一屏两张
   3) 滚动动效 B 档：入场位移加大、卡片图片收束、时间线生长、证书入场
   全部写在 ≤60rem / ≤40rem 的媒体查询里，桌面端零影响。
   ============================================================ */

/* ---------- 1. 窄屏头部：挤不下时先收间距，绝不让菜单出界 ---------- */
@media (max-width: 40rem) {
  .nav { gap: var(--space-sm); }
  .nav-actions { margin-left: auto; gap: var(--space-xs); }
  /* 语言开关做到 44px 触控高度（原来 29px，手指点不准） */
  .lang-toggle { height: 44px; padding: 2px; align-items: stretch; }
  .lang-toggle button { height: 100%; padding: 0 10px; }
}
@media (max-width: 22.5rem) {
  .nav { gap: var(--space-xs); }
  .lang-toggle button { padding: 0 8px; }
}

/* ---------- 2. 六大收益 · 移动端横滑卡片组 ---------- */
.benefit-dots { display: none; }

@media (max-width: 40rem) {
  /* 手机上六张竖排卡片要滚 1400px；改成一行横滑，一屏两张 */
  .benefit-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    /* 一屏两张，右侧留 10px 露出下一张的边，提示还能滑动 */
    grid-auto-columns: calc((100% - var(--space-md) - 10px) / 2);
    gap: var(--space-md);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* 让吸附点认下留白，否则首屏会把 scrollLeft 吸到 16px，卡片贴着屏幕左缘 */
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 出血到屏幕两缘，首尾卡片与正文对齐 */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    /* 底部多留 28px：卡片入场时整个下移 24px，留出位置就不会被裁也不出竖向滚动 */
    padding-block: 2px calc(28px + var(--space-xs));
    overflow-y: hidden;
  }
  .benefit-grid::-webkit-scrollbar { display: none; }
  .bcard {
    scroll-snap-align: start;
    min-height: 17.5rem;
  }
  /* 窄卡片里字号与行数同步收一档，避免正文被截得太狠 */
  .bcard-body { padding: var(--space-md) var(--space-md) var(--space-lg); }
  .bcard-n { font-size: 0.68rem; letter-spacing: 0.1em; margin-right: var(--space-xs); }
  .bcard-title { font-size: 1.02rem; line-height: 1.3; }
  .bcard-text { font-size: 0.78rem; line-height: 1.6; -webkit-line-clamp: 5; line-clamp: 5; }

  .benefit-dots {
    display: flex; justify-content: center; gap: 2px;
    margin-top: var(--space-sm);
  }
  .benefit-dots button {
    width: 24px; height: 24px; padding: 0; border: 0; background: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .benefit-dots button::before {
    content: ""; width: 18px; height: 3px; border-radius: var(--radius-pill);
    background: var(--color-rule);
    transition: background-color var(--dur-short) var(--ease-out);
  }
  .benefit-dots button[aria-current="true"]::before { background: var(--color-accent); }
}

/* ---------- 3. 滚动动效 B 档（仅触屏/窄屏，桌面保持现状） ---------- */
@media (max-width: 60rem) {
  /* 入场：8px 在手机上几乎察觉不到，放到 24px / 520ms */
  .js .reveal { transform: translateY(24px); transition-duration: 520ms; }
  .js .reveal.in { transform: none; }

  /* 收益卡：照片从 1.06 慢慢收回原大，比单纯淡入更有落定感 */
  .bcard-img { transition: transform 700ms var(--ease-out); }
  .js .bcard:not(.in) .bcard-img { transform: scale(1.06); }

  /* 证书样张：像被轻放到桌上 */
  .cert-band-figure img { transition: transform 720ms var(--ease-out), opacity 720ms var(--ease-out); }
  .js .cert-band-grid:not(.in) .cert-band-figure img { transform: scale(0.955) rotate(-1.4deg); opacity: 0.55; }

  /* 时间线：左侧一条随滚动生长的轴，节点到位后点亮 */
  .timeline { position: relative; padding-left: 18px; }
  .timeline::before,
  .timeline::after {
    content: ""; position: absolute; left: 5px; top: 0; width: 1px;
  }
  .timeline::before { bottom: 0; background: var(--color-rule); }
  .timeline::after {
    height: calc(var(--tl-progress, 0) * 100%);
    background: var(--color-accent); opacity: 0.72;
  }
  .tl-item { position: relative; }
  .tl-item::before {
    content: ""; position: absolute; left: -16px; top: 1.85rem;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--color-paper);
    border: var(--rule-hair) solid var(--color-rule);
    transform: scale(0.85);
    transition: background-color 380ms var(--ease-out), border-color 380ms var(--ease-out), transform 380ms var(--ease-out);
  }
  .js .tl-item.in::before {
    background: var(--color-accent); border-color: var(--color-accent); transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; }
  .js .bcard:not(.in) .bcard-img { transform: none; }
  .js .cert-band-grid:not(.in) .cert-band-figure img { transform: none; opacity: 1; }
  .timeline::after { height: 100%; }
  .js .tl-item::before { transform: none; }
}

/* ---------- 4. 菜单展开时锁滚动 ---------- */
html.menu-open { overflow: hidden; }

@media (max-width: 72rem) {
  /* 横屏/矮屏下菜单可能高过视口，让它自己滚，条目不会被截在外面 */
  .nav-links {
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ---------- 5. 页脚链接触控高度 44px（WCAG 2.5.8 / Apple HIG） ---------- */
@media (max-width: 60rem) {
  .footer-col a {
    display: flex; align-items: center;
    min-height: 44px;
  }
}
