/* ============================================================================
   tokens.css — 全站设计令牌权威层（Apple HIG + Apple DESIGN.md 交叉校准）
   加载序：最后一个（build.mjs 中置于 refine.css 之后）。

   设计原理：
   style.css 的 v20 段把全部下游令牌（--v15-*/--k-*/--bg-*/--text-* 等）
   用 !important 重定向到 9 个「源变量」--v20-*。因此本文件只需在浅色模式下
   于 body 层覆盖这 9 个源变量（同为 !important），全站颜色即联动切换，
   无需逐条改组件规则、无需触碰任何 content/ 或业务 JS。

   深色 = v20 原值（保持现状，用户多轮调校的视觉零改动）。
   浅色 = 本文件新值（原先被 !important 锁死，现真正生效）。

   色值来源：
   - 中性面/文字：Apple DESIGN.md（社区分析快照）canvas-parchment #F5F5F7、
     ink #1D1D1F、hairline #E0E0E0 体系。
   - 强调色：Apple Action Blue #0066CC（浅）/ Sky Link Blue #2997FF（深）。
   - 对比度：脚本按 WCAG 公式对真实 hex 验算，见令牌提案文档第 2.1/5.2 节。
   ========================================================================== */

/* ---- 语义角色令牌：显式定义，供新代码使用；浅深双值 ---- */
:root {
  --surface: #0C0B14;
  --surface-secondary: #141320;
  --surface-elevated: #1A1926;
  --label: #F5F3FC;
  --label-secondary: #C4BFD8;
  --label-tertiary: #A09EB6;
  --accent-role: #2997FF;
  --hairline: rgba(255, 255, 255, .10);

  /* 字阶（rem 基准 16px；正文 17px = 1.0625rem，符合 Apple 与 HIG 可读性下限） */
  --type-display: clamp(6rem, 11vw, 10.5rem);   /* 96–168px，仅首页品牌 */
  --type-title-1: clamp(2.5rem, 5vw, 4rem);     /* 40–64px，文章详情 */
  --type-title-2: clamp(2.25rem, 4vw, 3.375rem);/* 36–54px，列表页 */
  --type-headline: 1.625rem;                     /* 26px */
  --type-body-lg: 1.125rem;                      /* 18px */
  --type-body: 1.0625rem;                        /* 17px */
  --type-footnote: .875rem;                      /* 14px */
  --type-caption: .75rem;                        /* 12px */

  /* 间距比例（4 的倍数，取自 Apple DESIGN.md spacing 阶梯） */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-20: 80px;
}

/* ============================================================================
   浅色模式：覆盖 v20 的 9 个源变量。
   选择器 html[data-theme="light"] body 特异性高于 v20 的 body，
   且全部带 !important，确保压过 v20 的 !important 锁死。
   ========================================================================== */
html[data-theme="light"] body {
  /* --- v20 源变量（style.css 全站令牌根） --- */
  --v20-bg: #F5F5F7 !important;         /* parchment 画布 */
  --v20-bg-deep: #FFFFFF !important;    /* 纯白 elevated */
  --v20-surface: #FFFFFF !important;    /* 卡片/浮层 */
  --v20-surface-2: #FAFAFC !important;  /* pearl 次级面 */
  --v20-line: rgba(0, 0, 0, .12) !important;
  --v20-line-strong: rgba(0, 0, 0, .20) !important;
  --v20-text: #1D1D1F !important;       /* ink 正文，15.25:1 on parchment */
  --v20-text-2: #3A3A3C !important;     /* 次级文字，10.17:1 */
  --v20-text-3: #6E6E73 !important;     /* tertiary，4.54:1（仅非关键辅助） */
  --v20-accent: #0066CC !important;     /* Action Blue，5.11:1 on parchment */

  /* --- wope 源变量（wope-tokens.css / wope-theme.css 的 html body 背景走这套） --- */
  --w-bg-base: #F5F5F7 !important;
  --w-bg-alt: #FFFFFF !important;
  --w-card-surface: #FFFFFF !important;
  --w-text-heading: #1D1D1F !important;
  --w-text-heading-alt: #3A3A3C !important;
  --w-text-body: #3A3A3C !important;
  --w-text-muted: #6E6E73 !important;
  --w-border-tint: rgba(0, 0, 0, .16) !important;
  --w-primary: #0066CC !important;
  --w-primary-soft: #0071E3 !important;
  --w-primary-soft2: #2997FF !important;
  --w-lavender-glow: #0066CC !important;
  --w-lavender-soft: #3A3A3C !important;
  --w-line-04: rgba(0, 0, 0, .04) !important;
  --w-line-05: rgba(0, 0, 0, .05) !important;
  --w-line-08: rgba(0, 0, 0, .08) !important;
  --w-line-10: rgba(0, 0, 0, .10) !important;
  --w-card-border: rgba(0, 0, 0, .14) !important;
  --w-lavender-border: rgba(0, 0, 0, .10) !important;
  --w-fill-white-04: rgba(0, 0, 0, .04) !important;
  --w-fill-white-05: rgba(0, 0, 0, .05) !important;
  --w-grad-text: linear-gradient(180deg, #1D1D1F 22.92%, #3A3A3C 81.25%) !important;
  --w-grad-text-footer: linear-gradient(180deg, #6E6E73 8.85%, #1D1D1F 100%) !important;
  --w-grad-text-alt: linear-gradient(180deg, #1D1D1F 22.5%, #3A3A3C 100%) !important;
  --w-divider-glow: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.16) 50%, rgba(0,0,0,0) 100%) !important;
  --w-btn-surface: radial-gradient(107.5% 107.5% at 50% 215%, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 100%), rgba(0,0,0,.03) !important;
  --w-bottom-glow: radial-gradient(85% 120% at 50% 120%, rgba(0,0,0,.06) 0%, rgba(0,0,0,0) 100%) !important;

  /* --- refine 层专用令牌（refine.css 定义在 :root，不走 v20 链，浅色需单独反转） --- */
  --rf-ink-1: #1D1D1F !important;
  --rf-ink-2: #3A3A3C !important;
  --rf-ink-3: #6E6E73 !important;
  --rf-lav: #0066CC !important;
  --rf-violet: #0066CC !important;
  --rf-hair: rgba(0, 0, 0, .12) !important;
  --rf-hair-soft: rgba(0, 0, 0, .06) !important;
  --rf-card: rgba(0, 0, 0, .025) !important;

  /* --- 语义角色同步浅色值 --- */
  --surface: #F5F5F7 !important;
  --surface-secondary: #FFFFFF !important;
  --surface-elevated: #FFFFFF !important;
  --label: #1D1D1F !important;
  --label-secondary: #3A3A3C !important;
  --label-tertiary: #6E6E73 !important;
  --accent-role: #0066CC !important;
  --hairline: rgba(0, 0, 0, .12) !important;
}

/* 浅色下移除深色专用暗角（wope-theme.css: html body::before 四周压暗），
   否则浅底四周发灰。同时减弱光点/网格装饰以贴合 Apple 低密度美学。 */
html[data-theme="light"] body::before { display: none !important; }
html[data-theme="light"] body .glass-grid { opacity: .35 !important; }
html[data-theme="light"] body .hero-beams { opacity: .30 !important; }
html[data-theme="light"] body .glass-particles { opacity: .40 !important; }

/* 浅色下导航链接：旧层用 --v15-ink / --w-text-heading 硬编码白字，
   浅底上必须改为深字，否则整排导航消失（与窄屏折叠修复同理）。 */
html[data-theme="light"] body .site-nav .nav-link:not(#__v20_none__),
html[data-theme="light"] body .site-nav .nav-link:hover:not(#__v20_none__),
html[data-theme="light"] body .site-nav .nav-link.is-active:not(#__v20_none__),
html[data-theme="light"] body .nav-link,
html[data-theme="light"] body .site-nav a,
html[data-theme="light"] body .nav-link-aside,
html[data-theme="light"] body .brand,
html[data-theme="light"] body h1,
html[data-theme="light"] body h2,
html[data-theme="light"] body h3,
html[data-theme="light"] body .lede,
html[data-theme="light"] body .prose,
html[data-theme="light"] body .comment-body,
html[data-theme="light"] body .comment-name,
html[data-theme="light"] body .site-footer {
  color: #1D1D1F !important;
}
/* 标题/eyebrow/副标题在 refine.css 用了 :not(#__v20_none__) 高特异性，此处同等特异性覆盖 */
html[data-theme="light"] body .hero .eyebrow:not(#__v20_none__),
html[data-theme="light"] body .hero-tagline:not(#__v20_none__) {
  color: #3A3A3C !important;
}
html[data-theme="light"] body .hero h1:not(#__v20_none__) {
  color: #1D1D1F !important;
  -webkit-text-fill-color: #1D1D1F !important;
}
/* 渐变/描边标题：浅色下反转渐变，保留"实心 + 空心描边"签名 */
html[data-theme="light"] body .hero h1 .v15-solid:not(#__v20_none__) {
  background: linear-gradient(178deg, #1D1D1F 2%, #3A3A3C 40%, #0066CC 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 8px 24px rgba(0, 102, 204, .12));
}
html[data-theme="light"] body .hero h1 .v15-outline:not(#__v20_none__) {
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 2px rgba(29, 29, 31, .62) !important;
  text-shadow: none !important;
}
/* 硬编码浅色字（refine.css 内写死的浅灰/白），浅底上改深 */
html[data-theme="light"] body .hero .hero-pill:not(#__v20_none__) {
  color: #3A3A3C !important;
  background: rgba(0, 0, 0, .045) !important;
}
html[data-theme="light"] body .hero .hero-brand span:not(#__v20_none__) {
  color: #1D1D1F !important;
}
html[data-theme="light"] body .page-head .eyebrow:not(#__v20_none__),
html[data-theme="light"] body .hero .eyebrow:not(#__v20_none__) {
  color: #0066CC !important;
}
/* 补齐浅色遗漏：卡片内 eyebrow（首页专栏、列表项、页眉日期等）。
   refine.css 写死 rgba(198,190,218,.92) 近白，浅底 #F5F5F7 上仅 1.57:1（实测）。
   改为 #0066CC = 5.11:1（Action Blue），与 page-head eyebrow 一致。 */
html[data-theme="light"] body .eyebrow:not(#__v20_none__) {
  color: #0066CC !important;
}
/* 相册筛选胶囊：非激活态用深灰字，激活态改浅底深字（原近白字+灰蓝渐变在浅色下 1.29:1）。
   保留 blur 与胶囊形状，仅反转前景/底色，深色态不受影响。 */
html[data-theme="light"] body .gallery-filter .filter-btn:not(#__v20_none__) {
  color: #3A3A3C !important;
}
html[data-theme="light"] body .gallery-filter .filter-btn:hover:not(#__v20_none__) {
  color: #1D1D1F !important;
  background: rgba(0, 0, 0, .06) !important;
}
html[data-theme="light"] body .gallery-filter .filter-btn.is-active:not(#__v20_none__),
html[data-theme="light"] body .gallery-filter .filter-btn[aria-pressed="true"]:not(#__v20_none__) {
  color: #FFFFFF !important;
  background: linear-gradient(180deg, #0066CC, #0055AA) !important;
  border-color: rgba(0, 0, 0, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 4px 16px rgba(0,102,204,.22) !important;
}
html[data-theme="light"] body .site-footer .footer-tagline:not(#__v20_none__) {
  background: linear-gradient(180deg, #1D1D1F 22%, #3A3A3C 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
/* 列表页主标题渐变反转（refine.css 用白色渐变 + background-clip:text） */
html[data-theme="light"] body .page-head h1:not(#__v20_none__),
html[data-theme="light"] body .article-head h1:not(#__v20_none__) {
  background: linear-gradient(180deg, #1D1D1F 20%, #0066CC 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html[data-theme="light"] body .btn:not(#__v20_none__):not(.btn-primary) {
  color: #1D1D1F !important;
  background: rgba(0, 0, 0, .05) !important;
  border-color: rgba(0, 0, 0, .14) !important;
}
/* 主按钮：深色态是蓝灰玻璃+近白字；浅底上同款只剩 1.36:1（实测）。
   改为 Action Blue 实底 + 白字 = 5.57:1，保留圆角/按压态，符合 buttons.md › Role。 */
html[data-theme="light"] body .btn-primary:not(#__v20_none__) {
  color: #FFFFFF !important;
  background: #0066CC !important;
  border-color: #0066CC !important;
  box-shadow: 0 4px 16px rgba(0, 102, 204, .22) !important;
}
html[data-theme="light"] body .btn-primary:not(#__v20_none__):hover {
  background: #0055AA !important;
  border-color: #0055AA !important;
}
/* 次按钮（相册）：refine.css 用 html body .hero-actions a.btn:not(.btn-primary):not(#__v20_none__)
   写死 #C9D2DF，浅底上 1.2:1。用同等特异性 + html[data-theme] 覆盖为深字实底。 */
html[data-theme="light"] body .hero-actions a.btn:not(.btn-primary):not(#__v20_none__) {
  color: #1D1D1F !important;
  background: rgba(0, 0, 0, .06) !important;
  border: 1px solid rgba(0, 0, 0, .14) !important;
}
/* 浅色下灯箱仍是深色遮罩，内部文字保持白 */
html[data-theme="light"] body .lightbox,
html[data-theme="light"] body .lightbox *,
html[data-theme="light"] body .lightbox-nav,
html[data-theme="light"] body .lightbox-close {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* 浅色下的毛玻璃/半透明覆盖层：底色转浅，文字转深 */
html[data-theme="light"] body .comments input,
html[data-theme="light"] body .comments textarea {
  color: #1D1D1F !important;
  background: rgba(255, 255, 255, .85) !important;
}
html[data-theme="light"] body .comment-form,
html[data-theme="light"] body .comment-item {
  background: rgba(255, 255, 255, .75) !important;
  color: #1D1D1F !important;
}
/* 评论区辅助文字：refine.css 写死近白 rgb(183,177,203)/(196,190,214)，
   浅底上不可读。覆盖 hint/off/字段标签为深灰（≥4.5:1）。 */
html[data-theme="light"] body .comments-hint:not(#__v20_none__),
html[data-theme="light"] body .comments-off:not(#__v20_none__),
html[data-theme="light"] body .comments .field > span:not(#__v20_none__),
html[data-theme="light"] body .comment-form .field > span {
  color: #3A3A3C !important;
}
/* 分区标题（相册分组 h2、各列表 section-head h2）：refine.css 用白色渐变
   background-clip:text，浅底上透明不可见。反转为深色渐变。 */
html[data-theme="light"] body .section-head h2:not(#__v20_none__) {
  background: linear-gradient(180deg, #1D1D1F 20%, #3A3A3C 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
/* 卡片元信息（日期/分类小字）：refine.css 写死 rgba(198,190,218,.85) 浅底 1.6:1。
   改为 #6E6E73（4.66:1，辅助非关键信息）并保持字距/大写样式。 */
html[data-theme="light"] body .card .card-meta:not(#__v20_none__) {
  color: #6E6E73 !important;
}
/* 3D 实验室入口标签：lab.css 独立主题写死浅蓝字，浅底 hover 态偏淡，改深蓝。 */
html[data-theme="light"] body .lab-enter {
  color: #0066CC !important;
}

/* ============================================================================
   降低透明度偏好降级：毛玻璃转实色（HIG accessibility / liquid-glass）
   仅作用于内容层卡片；导航等浮层玻璃保留但加深基底以维持可读性。
   ========================================================================== */
@media (prefers-reduced-transparency: reduce) {
  html body .card:not(#__v20_none__),
  html body .project-card:not(#__v20_none__),
  html body .column-card:not(#__v20_none__),
  html body .photo-tile:not(#__v20_none__),
  html body .comment-form:not(#__v20_none__),
  html body .comment-item:not(#__v20_none__) {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: var(--surface-elevated) !important;
  }
}

/* ============================================================================
   深色态 tertiary 文字对比度对齐 HIG 7:1 建议（审计 Improvement #4）
   ----------------------------------------------------------------------------
   --rf-ink-3 原值 #8B85A3 on #0C0B14 = 5.57:1（实测 gallery/page-head muted）
   --v20-text-3 被 style.css body 用 !important 锁为 #918E9B = 6.10:1
   两者均低于 dark-mode.md › Dark Mode colors 对自定义小字 "strive for 7:1" 的建议。
   统一提到 #A09EB6 = 7.51:1（已验算），仅作用于辅助文字，正文 ink 不变。
   特异性：html body + !important，压过 refine.css :root 与 style.css body 锁。
   ========================================================================== */
html body {
  --rf-ink-3: #A09EB6 !important;
  --v20-text-3: #A09EB6 !important;
}

/* 页脚链接命中区：原 24px 高（实测 < 28px 最低命中区），补垂直 padding 到 28px+，
   视觉字号不变、仍居中。accessibility.md › Mobility: 桌面最低 20×20 / 移动最低 28×28。 */
html body .site-footer .footer-links a:not(#__v20_none__) {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 4px 2px !important;
}

/* ============================================================================
   文章详情（data-page="article"）= 固定的深色素阅读窗口
   ----------------------------------------------------------------------------
   wope-theme.css:563 把 article 页背景强制为 #0C0B14（用户明确要的「素阅读窗口」），
   内部文字/卡片均写死浅色值。但上面的浅色令牌覆盖会误伤：body 前景变深字（深底深字，
   实测 1:1）、TOC 变白底、导航变深字。此处对 article 页统一反覆盖，恢复深色阅读态。
   只作用于 data-page="article"，其余页面浅色零影响。
   ========================================================================== */
html[data-theme="light"] body[data-page="article"] {
  --rf-ink-1: #F5F3FC !important;
  --rf-ink-2: #C4BFD8 !important;
  --rf-ink-3: #A09EB6 !important;
  --v20-text: #F3F2F5 !important;
  --v20-text-2: #BCB9C5 !important;
  --v20-text-3: #A09EB6 !important;
  color: #F5F3FC !important;
}
html[data-theme="light"] body[data-page="article"] .site-nav .nav-link:not(#__v20_none__),
html[data-theme="light"] body[data-page="article"] .site-nav .nav-link:hover:not(#__v20_none__),
html[data-theme="light"] body[data-page="article"] .site-nav .nav-link.is-active:not(#__v20_none__),
html[data-theme="light"] body[data-page="article"] .nav-link:not(#__v20_none__),
html[data-theme="light"] body[data-page="article"] .site-nav a:not(#__v20_none__),
html[data-theme="light"] body[data-page="article"] .nav-link-aside:not(#__v20_none__),
html[data-theme="light"] body[data-page="article"] .brand:not(#__v20_none__) {
  color: #F5F3FC !important;
}
html[data-theme="light"] body[data-page="article"] .article-head h1,
html[data-theme="light"] body[data-page="article"] .article-head .lede,
html[data-theme="light"] body[data-page="article"] .prose,
html[data-theme="light"] body[data-page="article"] .prose p,
html[data-theme="light"] body[data-page="article"] .comment-body,
html[data-theme="light"] body[data-page="article"] .comment-name {
  color: #C9C5D6 !important;
  -webkit-text-fill-color: #C9C5D6 !important;
}
html[data-theme="light"] body[data-page="article"] .article-head .eyebrow {
  color: #8B7FB8 !important;
}
html[data-theme="light"] body[data-page="article"] .toc,
html[data-theme="light"] body[data-page="article"] .comment-form,
html[data-theme="light"] body[data-page="article"] .comment-item {
  background: #1D1C23 !important;
  color: #EDEBF5 !important;
}
html[data-theme="light"] body[data-page="article"] .toc-list a {
  color: #C4BFD8 !important;
}
html[data-theme="light"] body[data-page="article"] .breadcrumb,
html[data-theme="light"] body[data-page="article"] .muted,
html[data-theme="light"] body[data-page="article"] .article-head .eyebrow {
  color: #A09EB6 !important;
}
html[data-theme="light"] body[data-page="article"] .site-footer .footer-tagline {
  background: linear-gradient(180deg, #FFFFFF 22%, rgba(255,255,255,.55) 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html[data-theme="light"] body[data-page="article"] .site-footer .muted {
  color: #A09EB6 !important;
}

/* 高对比度模式：tertiary 文字提升到 secondary，确保关键辅助文字可读 */
@media (prefers-contrast: more) {
  html body :not(#__v20_none__) {
    --label-tertiary: var(--label-secondary) !important;
  }
}

/* ============================================================================
   reactbits 背景动效层（全站，按页面类型分配不同效果）
   ----------------------------------------------------------------------------
   容器 .rb-bg 由 build.mjs 按路径注入；对应 vanilla WebGL2 模块只在该页加载。
   层级 z-index:1，位于原背景(glass-grid/particles)之上、内容层(z5)之下。
   有 .rb-bg 的页面隐藏旧网格与粒子，避免双层叠加（用户要求"替换"）。
   ========================================================================== */
.rb-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;   /* 移动端视口用 dvh，避免地址栏伸缩抖动 */
  z-index: 1 !important;
  pointer-events: none !important;  /* 交互穿透到内容层；鼠标追随由 window 事件捕获 */
  overflow: hidden !important;
  contain: strict !important;
}
.rb-canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
/* 启用新背景的页面：移除旧网格/粒子（含首页 Hero 纵深 canvas），保留内容层玻璃 */
html body:has(> .rb-bg) .glass-grid,
html body:has(> .rb-bg) .glass-particles,
html body:has(> .rb-bg) .hero-beams { display: none !important; }

/* WebGL 不可用时的安全降级：无 canvas 也不会留空洞，body 底色即背景 */
html body:has(> .rb-bg) { background-attachment: fixed; }

/* 降低透明度偏好：背景整体再降一档，避免动态干扰阅读 */
@media (prefers-reduced-transparency: reduce) {
  .rb-bg { opacity: .35 !important; }
}
/* 减少动态偏好：模块内部已停动画（只渲染首帧），这里补静态化提示 */
@media (prefers-reduced-motion: reduce) {
  .rb-bg { opacity: .5 !important; }
}

/* ============================================================================
   全站统一精致重排（2026-12-05）
   ----------------------------------------------------------------------------
   背景换成 Threads 流线后，原 Hero 的透视网格/重复品牌标与流线叠加显脏，
   且描边字过淡、卡片节奏不齐。以下在权威层统一修正，不动任何内容/路由/数据。
   所有规则用 :not(#__v20_none__) 与 v20/refine 同特异性覆盖。
   ========================================================================== */

/* 1) 移除 Hero 里残留的透视网格 canvas 与重复品牌标（主标题已是品牌，无需重复） */
html body[data-page="index"] .hero .hero-depth:not(#__v20_none__),
html body[data-page="index"] .hero .hero-brand:not(#__v20_none__) { display: none !important; }

/* 2) 描边字提亮：从 1px 淡描边改为 1.4px 冷白描边，保证 4926 清晰可读 */
html body .hero h1 .v15-outline:not(#__v20_none__) {
  -webkit-text-stroke: 1.4px rgba(214,226,242,.82) !important;
}

/* 3) Hero 版面：给流线留出呼吸区，标题区上移一点、底部收紧，避免大片空白 */
html body[data-page="index"] .hero:not(#__v20_none__) { padding: 168px 0 76px !important; }
html body[data-page="index"] .hero .hero-copy:not(#__v20_none__) { max-width: 1080px !important; }

/* 4) 卡片节奏统一：两列区域卡片等高，摘要限 3 行防止大段正文撑破小卡 */
html body .two-col-cell .card-grid-single .card:not(#__v20_none__) { height: 100% !important; }
html body .card .card-summary:not(#__v20_none__) {
  display: -webkit-box !important; -webkit-line-clamp: 4 !important; -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 5) 分区标题层次：序号感与留白统一，标题下方细线更克制 */
html body .section-head:not(#__v20_none__) { padding-bottom: 16px !important; margin-bottom: 26px !important; }
html body .section-head h2:not(#__v20_none__) { letter-spacing: -.02em !important; }

/* 6) 浅色态：流线背景上文字对比加强（深字压在浅色流线上要更实） */
html[data-theme="light"] body[data-page="index"] .hero-tagline:not(#__v20_none__) { color: #3A3A3C !important; }

/* 描边字二次加强 + 标题区柔和底衬：流线穿过时仍清晰 */
html body .hero h1 .v15-outline:not(#__v20_none__) {
  -webkit-text-stroke: 1.8px rgba(226,236,250,.92) !important;
}
html body[data-page="index"] .hero .hero-copy:not(#__v20_none__)::before {
  content: ''; position: absolute; z-index: -1;
  left: 50%; top: 8%; transform: translateX(-50%);
  width: min(1000px, 94vw); height: 76%;
  background: radial-gradient(ellipse at center, rgba(9,10,16,.72) 0%, rgba(9,10,16,.42) 48%, transparent 78%);
  pointer-events: none;
}

/* ============================================================================
   页面动效点缀（SplitText / SpotlightCard / StarBorder）· 参考 reactbits (MIT)
   ----------------------------------------------------------------------------
   由 accents.js 按 data 属性激活，纯 CSS 渲染；reduced-motion 下全部停用。
   ========================================================================== */
@keyframes rbWordRise {
  from { opacity: 0; transform: translateY(.42em) rotate(2deg); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.rb-word {
  display: inline-block;
  animation: rbWordRise .62s cubic-bezier(.22,.68,.32,1) both;
  animation-delay: calc(var(--rb-i, 0) * 65ms);
}

/* SpotlightCard：指针位置的柔和冷光，仅加深色态、不遮挡内容 */
html body [data-rb-spotlight]:not(#__v20_none__) { position: relative; overflow: hidden; }
html body [data-rb-spotlight]:not(#__v20_none__)::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--rb-x, 50%) var(--rb-y, 50%),
    rgba(120,168,225,.16) 0%, rgba(120,168,225,.06) 38%, transparent 68%);
  opacity: 0; transition: opacity .35s ease;
}
html body [data-rb-spotlight]:not(#__v20_none__):hover::before { opacity: 1; }
html body [data-rb-spotlight] > *:not(#__v20_none__) { position: relative; z-index: 1; }
html[data-theme="light"] body [data-rb-spotlight]:not(#__v20_none__)::before {
  background: radial-gradient(420px circle at var(--rb-x, 50%) var(--rb-y, 50%),
    rgba(0,102,204,.10) 0%, rgba(0,102,204,.04) 38%, transparent 68%);
}

/* StarBorder：主按钮边框上的流光点（CSS conic-gradient 掩膜，零 JS 帧） */
@keyframes rbStarTravel {
  to { --rb-star-angle: 360deg; }
}
@property --rb-star-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
html body .btn-primary[data-rb-star]:not(#__v20_none__) { position: relative; overflow: hidden; }
html body .btn-primary[data-rb-star]:not(#__v20_none__)::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--rb-star-angle, 0deg),
    transparent 0deg, transparent 320deg, rgba(210,232,255,.9) 344deg, rgba(255,255,255,.95) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rbStarTravel 3.6s linear infinite;
  opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
  .rb-word { animation: none !important; }
  html body .btn-primary[data-rb-star]::after { animation: none !important; display: none !important; }
  html body [data-rb-spotlight]::before { display: none !important; }
}

/* ============================================================================
   编辑式高级排版 Hero（2026-12-05 第二版）
   ----------------------------------------------------------------------------
   光纤隧道背景 + 编辑部式编号/规则线/字重对比，重塑首页视觉签名。
   用新类名避开旧 v15 覆盖链；只改视觉，文字内容与按钮功能不变。
   ========================================================================== */
html body[data-page="index"] .hero .hero-editorial:not(#__v20_none__) {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px;
  margin: 0 0 30px !important;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px !important; letter-spacing: .22em !important; text-transform: uppercase;
  color: rgba(150,170,200,.68) !important;
}
html body[data-page="index"] .hero .hero-ed-line:not(#__v20_none__) {
  display: inline-block; width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150,180,220,.5), transparent);
}
html body[data-page="index"] .hero .hero-ed-issue:not(#__v20_none__) { color: rgba(130,152,184,.55) !important; }

/* 主标题：字重对比 + 光学对齐 + 超大字号 */
html body[data-page="index"] .hero h1:not(#__v20_none__) {
  position: relative;
  font-size: clamp(56px, 8.4vw, 126px) !important;
  line-height: .94 !important;
  letter-spacing: -.055em !important;
  font-weight: 300 !important;
  margin: 0 auto 22px !important;
  -webkit-text-fill-color: initial !important;
}
html body[data-page="index"] .hero .hero-title-main:not(#__v20_none__) {
  font-weight: 700 !important;
  background: linear-gradient(178deg, #FFFFFF 4%, #DCE6F4 48%, #A8BDD8 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  letter-spacing: -.06em !important;
}
html body[data-page="index"] .hero .hero-title-num:not(#__v20_none__) {
  font-weight: 200 !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.4px rgba(196,214,238,.72) !important;
  letter-spacing: -.04em !important;
}
html body[data-page="index"] .hero .hero-title-sub:not(#__v20_none__) {
  display: block; margin-top: 20px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px !important; font-weight: 400 !important;
  letter-spacing: .34em !important; text-transform: uppercase;
  color: rgba(140,163,194,.62) !important;
  -webkit-text-fill-color: rgba(140,163,194,.62) !important;
  text-shadow: none !important;
}
/* 标题区底衬：光纤隧道中心本就暗，再补一层极淡渐变稳住文字 */
html body[data-page="index"] .hero .hero-copy:not(#__v20_none__)::before {
  background: radial-gradient(ellipse at center, rgba(9,10,16,.52) 0%, rgba(9,10,16,.28) 50%, transparent 76%) !important;
}
/* 浅色态 */
html[data-theme="light"] body[data-page="index"] .hero .hero-title-main:not(#__v20_none__) {
  background: linear-gradient(178deg, #1D1D1F 4%, #3A4A60 56%, #5A7292 100%) !important;
}
html[data-theme="light"] body[data-page="index"] .hero .hero-title-num:not(#__v20_none__) {
  -webkit-text-stroke: 1.6px rgba(44,66,96,.72) !important;
}
html[data-theme="light"] body[data-page="index"] .hero .hero-editorial:not(#__v20_none__),
html[data-theme="light"] body[data-page="index"] .hero .hero-title-sub:not(#__v20_none__) {
  color: rgba(58,74,98,.72) !important; -webkit-text-fill-color: rgba(58,74,98,.72) !important;
}
html[data-theme="light"] body[data-page="index"] .hero .hero-copy:not(#__v20_none__)::before {
  background: radial-gradient(ellipse at center, rgba(245,245,247,.62) 0%, rgba(245,245,247,.34) 50%, transparent 76%) !important;
}

/* 编辑式编号行提亮 + 按钮区柔底，保证在光纤上清晰 */
html body[data-page="index"] .hero .hero-editorial:not(#__v20_none__) {
  color: rgba(178,198,224,.88) !important;
  font-size: 11px !important;
}
html body[data-page="index"] .hero .hero-ed-issue:not(#__v20_none__) { color: rgba(160,184,214,.78) !important; }
html body[data-page="index"] .hero .hero-actions:not(#__v20_none__) {
  position: relative; z-index: 1;
}
html body[data-page="index"] .hero .hero-actions:not(#__v20_none__)::before {
  content:''; position:absolute; inset:-14px -24px; z-index:-1; pointer-events:none;
  background: radial-gradient(ellipse at center, rgba(9,10,16,.55), transparent 72%);
}
html[data-theme="light"] body[data-page="index"] .hero .hero-editorial:not(#__v20_none__),
html[data-theme="light"] body[data-page="index"] .hero .hero-ed-issue:not(#__v20_none__) {
  color: rgba(38,56,84,.86) !important;
}
html[data-theme="light"] body[data-page="index"] .hero .hero-actions::before {
  background: radial-gradient(ellipse at center, rgba(245,245,247,.6), transparent 72%);
}

/* 修复浅色渐变字：某条浅色规则把 background-clip 重置为 border-box，需显式重申 */
html[data-theme="light"] body[data-page="index"] .hero .hero-title-main:not(#__v20_none__) {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
