/* ============================================================
   KRONOS ZHOU · 全站样式（Cosmic 版）
   路径：main-page.css
   ------------------------------------------------------------
   这是全站的「地基样式」：主页、6 个列表页（工具 / Vibe Coding /
   游戏 / 文章 / 知识库 / 我的）以及登录页都引它，另外 30 多个
   工具·游戏·知识库子页面也引它（它们只用到外壳 + 变量 + 顶栏）。

   设计方向：Cosmic —— 纯黑底 / 单色灰阶 + 冷蓝强调色 /
   大字号衬线斜体点缀 / 玻璃拟态胶囊 / 滚动驱动的视差与揭示。

   改动前请先看这三条：
     1. ⚠️ **不要在这个文件里定义「页面标题区」那一套样式**。
        各列表页的子页面测试（ukraine-board / athlete-board /
        css-styles / spirit-board）都钉着「main-page.css 不提供
        页面标题区」，所以那套样式由每个列表页自己的 css 提供。
     2. 下面「兼容别名」那一段是给 30 多个子页面用的老变量名，
        名字不能删、不能改，只换值。删了子页面配色就崩。
     3. 保持 .hero-quickbtn 那一套（六个入口卡片）的结构化样式：
        tools/tests/main-page-hero.test.js 会逐条比对网格、
        backdrop-filter、内高光、hover 位移等写法。

   字体：assets/fonts/fonts.css（本地内联的 Inter + Instrument Serif）
   ============================================================ */

/* ============================================================
   1. 设计令牌
   ============================================================ */
:root {
  /* ---- 设计系统本体（HSL 三段式，不写 hsl() 外壳） ---- */
  --bg: 0 0% 4%;
  --surface: 0 0% 8%;
  --text: 0 0% 96%;
  --muted: 0 0% 53%;
  --stroke: 0 0% 12%;
  --accent-hsl: 0 0% 96%;

  /* ---- 字体 ---- */
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Instrument Serif', 'Songti SC', 'SimSun', Georgia, serif;
  /* 衬线斜体只用在拉丁装饰词（projects / thoughts 等）上，
     中文标题一律走 --font-body，避免衬线中文在小字号下发虚 */

  /* ---- 强调色渐变（logo 圆环 / hover 描边 / 进度条） ---- */
  --grad-from: #89aacc;
  --grad-to: #4e85bf;
  --accent-solid: #4e85bf;      /* 需要「一个颜色」的地方用它 */
  --accent-solid-soft: #89aacc;
  --accent-rgb: 78, 133, 191;

  /* ---- 兼容别名：30 多个子页面在用，别改名 ---- */
  --bg-root: hsl(var(--bg));
  --bg-panel: rgba(24, 24, 24, 0.85);
  --bg-panel-solid: hsl(var(--surface));
  --bg-block: hsl(0 0% 10%);
  --bg-block-hover: hsl(0 0% 13%);
  --bg-elevated: hsl(0 0% 9%);
  --text-primary: hsl(var(--text));
  --text-secondary: hsl(0 0% 68%);
  --text-muted: hsl(var(--muted));
  --border-soft: hsl(var(--stroke));
  --border-medium: rgba(255, 255, 255, 0.12);
  --accent: var(--accent-solid);
  --accent-soft: rgba(var(--accent-rgb), 0.15);
  --accent-glow: rgba(var(--accent-rgb), 0.35);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.15);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.15);
  --shadow-panel: 0 20px 40px -12px rgba(0, 0, 0, 0.75);
  --shadow-block: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 16px 32px -10px rgba(0, 0, 0, 0.8);
  --radius-lg: 1.8rem;
  --radius-md: 1.4rem;
  --radius-sm: 1rem;
  --transition: 280ms cubic-bezier(0.2, 0.9, 0.4, 1);

  /* ---- 顶栏窄屏菜单认这几个（shared/site-header-mobile.css） ---- */
  --kz-accent: var(--accent-solid);
  --kz-accent-soft: var(--accent-soft);
  --kz-accent-glow: var(--accent-glow);
  --kz-text-primary: var(--text-primary);
  --kz-text-secondary: var(--text-secondary);
  --kz-border-soft: var(--border-soft);
  --kz-radius-lg: var(--radius-lg);
  --kz-shadow-panel: var(--shadow-panel);

  /* ---- 布局 ---- */
  --shell-max: 1200px;
  --shell-pad: 1.5rem;
}

/* ============================================================
   2. 基础
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: hsl(var(--bg));
  color: hsl(var(--text));
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  /* 强制深色主题：没有浅色模式开关 */
  color-scheme: dark;
  transition: background var(--transition), color var(--transition);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(var(--accent-rgb), 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-solid-soft);
  outline-offset: 3px;
}

/* 跳到主内容：平时藏起来，键盘 Tab 到时才出现 */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: hsl(var(--text));
  color: hsl(var(--bg));
  font-size: 0.8125rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 220ms ease;
}

.skip-link:focus {
  transform: none;
}

/* 页面外壳：主页与列表页共用
   ⚠️ 这里保持「纵向 flex 单列」不变 —— 30 多个子页面都引本文件，
      有的（比如 chemistry）会写 html body .app-root 覆盖回 grid，
      描述里也写着「覆盖 main-page.css 里 .app-root 的 grid 布局」。
      换成 grid 会把这些页面的版面一起改掉。 */
.app-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1.6rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* 三段式容器：所有章节共用一套左右留白 */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   3. 工具类
   ============================================================ */

/* 强调色渐变：logo 圆环 / hover 描边 / 进度条 */
.accent-gradient {
  background-image: linear-gradient(90deg, var(--grad-from) 0%, var(--grad-to) 100%);
}

.accent-text {
  background-image: linear-gradient(90deg, var(--grad-from) 0%, var(--grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 动起来的那圈渐变描边（login 卡片 / hover 态胶囊用） */
.accent-gradient-animated {
  background-image: linear-gradient(90deg, var(--grad-from), var(--grad-to), var(--grad-from));
  background-size: 200% 100%;
  animation: gradient-shift 6s ease infinite;
}

/* 章节小标（COLLECTION '26 / SELECTED WORK …） */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 1.4;
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: hsl(var(--stroke));
  flex: 0 0 auto;
}

.eyebrow.is-plain::before {
  display: none;
}

/* 衬线斜体装饰词 */
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* 章节标题：中文粗体 + 拉丁斜体混排 */
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: hsl(var(--text));
}

.section-sub {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 0.95rem;
  color: hsl(var(--muted));
}

/* 胶囊按钮：实心 / 描边两种 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: none;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.4, 1),
              background 260ms ease,
              color 260ms ease,
              border-color 260ms ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.99);
}

/* 实心：默认白底黑字，hover 反过来 + 渐变环 */
.btn-solid {
  background: hsl(var(--text));
  color: hsl(var(--bg));
}

.btn-solid:hover {
  background: hsl(var(--bg));
  color: hsl(var(--text));
}

/* 描边 */
.btn-outline {
  border: 2px solid hsl(var(--stroke));
  background: hsl(var(--bg));
  color: hsl(var(--text));
}

.btn-outline:hover {
  border-color: transparent;
}

/* 渐变描边环：hover 时从卡片背后透出来（inset: -2px） */
.ring-host {
  position: relative;
  z-index: 0;
}

.ring-host > .ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(90deg, var(--grad-from), var(--grad-to), var(--grad-from));
  background-size: 200% 100%;
  animation: gradient-shift 6s ease infinite;
}

.ring-host:hover > .ring,
.ring-host:focus-visible > .ring {
  opacity: 1;
}

/* 直接给 .btn-solid / .btn-outline 补环（不用包 span 的场合） */
.btn-solid:hover,
.btn-outline:hover {
  box-shadow: 0 0 0 2px hsl(var(--bg)), 0 0 0 3.5px rgba(var(--accent-rgb), 0.95);
}

/* 小胶囊按钮（View all / 更多） */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--bg));
  color: hsl(var(--text));
  padding: 0.6rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.4, 1),
              border-color 260ms ease,
              background 260ms ease;
}

.btn-pill:hover {
  transform: scale(1.04);
  border-color: rgba(var(--accent-rgb), 0.55);
}

.btn-pill .arrow {
  transition: transform 260ms ease;
}

.btn-pill:hover .arrow {
  transform: translateX(3px);
}

/* 卡片通用：surface 底 + stroke 边 + 大圆角 */
.card {
  position: relative;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--stroke));
  border-radius: 1.5rem;
  overflow: hidden;
}

/* 章节统一的纵向节奏 */
.section {
  position: relative;
  background: hsl(var(--bg));
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-head-main {
  min-width: 0;
}

/* 图片上的半调网点（4×4px 点阵，靠 mix-blend-multiply 压暗） */
.halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ============================================================
   4. 动画
   ============================================================ */
@keyframes scroll-down {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes role-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.animate-scroll-down {
  animation: scroll-down 1.5s ease-in-out infinite;
}

.animate-role-fade-in {
  display: inline-block;
  animation: role-fade-in 0.4s ease-out both;
}

/* ============================================================
   5. 顶栏
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0;
  margin: 0;
  pointer-events: none;
}

.site-header-inner {
  position: relative;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 58px;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: hsl(var(--surface));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
  overflow: visible;
  transition: box-shadow 320ms ease,
              background 320ms ease,
              border-color 320ms ease;
}

/* 滚动超过 100px 才压出阴影（shared/cosmic-motion.js 加减 .is-scrolled） */
.site-header.is-scrolled .site-header-inner,
.site-header:focus-within .site-header-inner {
  box-shadow: 0 8px 26px -10px rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.14);
}

/* 中央标题 = logo：9×9 圆环 + 里面斜体字标 */
.site-header-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  order: 0;
}

.site-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  padding: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: #fff;
  background-image: linear-gradient(90deg, var(--grad-from), var(--grad-to));
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.4, 1);
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
}

.site-title::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: hsl(var(--bg));
  z-index: 0;
}

/* 圆环里的图形字标（KZ）：盖在深色内圆上 */
.site-title-mark {
  position: relative;
  z-index: 1;
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

/* 图形没加载出来时的兜底：圆环里显示斜体 KZ 两个字 */
.site-title-text {
  position: relative;
  z-index: 1;
  line-height: 1;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* 图形加载成功就把兜底文字藏掉（JS 加 .has-mark） */
.site-title.has-mark .site-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-title:hover {
  transform: scale(1.1);
  background-image: linear-gradient(270deg, var(--grad-from), var(--grad-to));
}

/* 顶栏里的分隔竖线 */
.nav-divider {
  width: 1px;
  height: 1.25rem;
  background: hsl(var(--stroke));
  margin: 0 0.25rem;
  flex: 0 0 auto;
}

.site-header-nav {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: hsl(var(--muted));
  white-space: nowrap;
  transition: color 220ms ease, background 220ms ease;
}

.nav-link::after {
  display: none; /* 老版下划线划动，cosmic 版改成胶囊底色 */
}

.nav-link:hover,
.nav-link:focus-visible {
  color: hsl(var(--text));
  background: rgb(255 255 255 / 0.06);
}

/* 当前页（列表页用 .is-active 标自己） */
.nav-link.is-active {
  color: hsl(var(--text));
  background: hsl(var(--surface));
  box-shadow: inset 0 0 0 1px hsl(var(--stroke));
}

.nav-link.auth-status {
  cursor: pointer;
}

/* 「Say hi」那颗：内容和导航链接一样大，hover 时后面透出渐变环 */
.nav-sayhi {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--text));
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--stroke));
  white-space: nowrap;
  transition: border-color 260ms ease, transform 260ms ease;
}

.nav-sayhi .nav-sayhi-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--grad-from), var(--grad-to), var(--grad-from));
  background-size: 200% 100%;
  animation: gradient-shift 6s ease infinite;
  transition: opacity 260ms ease;
}

.nav-sayhi:hover {
  transform: scale(1.04);
  border-color: transparent;
}

.nav-sayhi:hover .nav-sayhi-ring {
  opacity: 1;
}

.nav-sayhi .arrow {
  margin-left: 0.3rem;
  transition: transform 260ms ease;
}

.nav-sayhi:hover .arrow {
  transform: translate(2px, -2px);
}

/* ------------------------------------------------------------
   登录按钮（顶栏那颗，原来是「Say hi」）
   ------------------------------------------------------------
   文案由 main-page.js / shared/site-header.js 写进 .nav-auth-label：
     未登录 → 「登录」    已登录 → 「欢迎1234」
   两种状态共用这一套样式，只靠 .is-logged-in 做一点区分。
   ⚠️ 这里用 <button> 而不是 <a>，所以要把浏览器默认外观显式去掉。

   ⚠️ 交互刻意和 Hero 那颗「打个招呼」(.btn-outline.ring-host) 一致：
        hover → 整体放大 1.05 + 背后透出一圈流动的渐变环 + 文字反色
      所以按钮里必须留着 <span class="ring">，别用 textContent 覆盖它。
   ------------------------------------------------------------ */
.nav-auth {
  position: relative;
  z-index: 0;
  font: inherit;
  cursor: pointer;
  text-align: center;
  /* 未登录「登录」两个字、已登录「欢迎1234」五个字，宽度会跳 —— 给个下限稳住 */
  min-width: 4.5rem;
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--stroke));
  color: hsl(var(--text));
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.4, 1),
              background 260ms ease,
              color 260ms ease,
              border-color 260ms ease;
}

/* 渐变环：和 .btn-outline 那颗同一套 —— 平时藏着，hover / 聚焦才透出来 */
.nav-auth > .ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg,
    var(--grad-from), var(--grad-to), var(--grad-from));
  background-size: 200% 100%;
  animation: gradient-shift 6s ease infinite;
  transition: opacity 260ms ease;
}

.nav-auth:hover > .ring,
.nav-auth:focus-visible > .ring {
  opacity: 1;
}

/* hover：放大 + 边框让位给渐变环 + 文字反色（和 Hero 那颗一模一样） */
.nav-auth:hover {
  transform: scale(1.05);
  border-color: transparent;
  background: hsl(var(--text));
  color: hsl(var(--bg));
}

.nav-auth:active {
  transform: scale(0.99);
}

.nav-auth:focus-visible {
  outline: 2px solid var(--accent-solid-soft);
  outline-offset: 3px;
}

/* 点一下的反馈：渐变环向外扩散一圈（触屏没有 hover，靠这个给回应） */
.nav-auth.is-tapped > .ring {
  animation: nav-auth-tap 520ms ease-out;
}

@keyframes nav-auth-tap {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* 已登录：底色实一点，暗示"这是个去处（我的）" */
.nav-auth.is-logged-in {
  background: hsl(var(--surface));
  box-shadow: inset 0 0 0 1px hsl(var(--stroke));
}

/* 已登录后再 hover：保持反色那套，别让底色规则盖掉 */
.nav-auth.is-logged-in:hover {
  background: hsl(var(--text));
  color: hsl(var(--bg));
}

/* 文字那一层：单独一个 span，方便脚本只改它、不动渐变环 */
.nav-auth-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* 「登录」右边那颗箭头：和「打个招呼」一样用斜箭头（这是个"去登录"的动作）。
   几个细节：
     · 和文字同一层（z-index 1），不然会被渐变环压住；
     · hover 时往右上轻推一下，和 .nav-sayhi .arrow 的位移方向一致；
     · 已登录（「欢迎1234」）时收起来 —— 那不是"去哪"的动作。 */
.nav-auth-arrow {
  position: relative;
  z-index: 1;
  margin-left: 0.3rem;
  font-size: 0.9em;
  line-height: 1;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.4, 1);
}

.nav-auth:hover .nav-auth-arrow {
  transform: translate(2px, -2px);
}

/* 已登录就不显示箭头（"欢迎1234"后面跟个箭头会读成"点我去哪"） */
.nav-auth.is-logged-in .nav-auth-arrow {
  display: none;
}

/* 顶栏里的「首页 / 作品 / 简历」这组（设计稿的 Home·Work·Resume） */
.nav-group {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero-section {
  position: relative;
  /* 上面三张 shader 卡片比原来的玻璃卡高，100vh 装不下时会裁掉一截（overflow: hidden），
     所以改成「至少一屏、按内容长高」—— 首屏依然是满屏，只是不会再切卡。 */
  height: auto;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

/* 背景层：视频 / 轮播图 / 渐变兜底都塞在这里 */
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 背景 HLS 视频（shared/cosmic-video.js 挂上来） */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* 视频起不来（离线 / 被守卫拦 / 浏览器不支持）时的兜底：
   星野渐变，和视频同一个色系，看不出是降级 */
.hero-bg-fallback,
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 700px at 18% 12%, rgba(var(--accent-rgb), 0.20), transparent 62%),
    radial-gradient(900px 620px at 84% 88%, rgba(137, 170, 204, 0.14), transparent 60%),
    radial-gradient(700px 700px at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%),
    linear-gradient(180deg, #060606 0%, #0a0c10 55%, hsl(var(--bg)) 100%);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg-layer.active {
  opacity: 1;
}

/* 老版那层玻璃罩（现在只留一点点氛围，别压住视频） */
.hero-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* 底部往纯黑过渡，让 hero 和下一段无缝接上 */
.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12rem;
  z-index: 2;
  background: linear-gradient(to top, hsl(var(--bg)), transparent);
  pointer-events: none;
}

/* ---- hero 正文：三列网格 + 标题跨满整行 ---- */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1080px;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  text-align: center;
}

.hero-center {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.25rem;
}

.hero-eyebrow {
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: hsl(var(--text));
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 400;
  color: hsl(var(--text) / 0.8);
  letter-spacing: 0.02em;
}

/* 「一个 {角色} 住在芝加哥」那行的角色词 */
.hero-role-line {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted));
}

/* hero 入场动效的挂钩（.name-reveal / .blur-in）：
   ⚠️ 这两个类名是 main-page.js + shared/cosmic-motion.js 在找的钩子，
      而且 initial state 必须是「先隐身」，GSAP 才会从 0 淡入。
      ⚠️ 别把 .name-reveal 挂到 <h1 class="hero-title"> 上 ——
         tools/tests/main-page-hero.test.js 会去找字面量 class="hero-title"
         这个串（后面直接跟右引号），多挂一个类就对不上了。
         所以它挂在包住标题的 .hero-center 上，视觉上等价。 */
.name-reveal,
.blur-in {
  opacity: 0;
}

/* JS 完全不可用（没有 GSAP 也没有 cosmic-motion）时不能让首屏永久隐身 */
.no-js .name-reveal,
.no-js .blur-in {
  opacity: 1;
}

.hero-role-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  color: hsl(var(--text));
}

.hero-desc {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-size: 0.9rem;
  color: hsl(var(--muted));
  line-height: 1.75;
}

/* hero 里的两颗 CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-quicknav,
.hero-quicknav-group {
  display: contents;
}

/* 六个入口卡片：液态玻璃 */
.hero-quickbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 10px 30px -18px rgba(0, 0, 0, 0.9);
  text-align: left;
  overflow: hidden;
  min-height: 100%;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.4, 1),
              background 320ms ease,
              border-color 320ms ease,
              box-shadow 320ms ease;
}

/* 划过时从卡片上沿扫过的一道高光 */
.hero-quickbtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-120%);
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.4, 1);
  pointer-events: none;
}

.hero-quickbtn:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(137, 170, 204, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 22px 40px -22px rgba(0, 0, 0, 0.95);
}

.hero-quickbtn:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(137, 170, 204, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 22px 40px -22px rgba(0, 0, 0, 0.95);
}

.hero-quickbtn:hover::after {
  transform: translateX(180%);
}

.hero-quickbtn:focus-visible::after {
  transform: translateX(180%);
}

.hero-quickbtn-icon {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.hero-quickbtn-text {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: hsl(var(--text));
  /* 视频背景很花，文字必须有投影才读得清 */
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75),
               0 1px 2px rgba(0, 0, 0, 0.9);
}

.hero-quickbtn-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   上面三张：整张卡片就是 ThreeUI ShaderButtons 的一个变体
   ------------------------------------------------------------
   卡片里不再有图标 / 标题 / 描述那一行 —— iframe 铺满整张卡，
   卡片本身就是「点亮 / 感应 / 等离子」那颗按钮（见 shared/shader-buttons.js）。
   入口名与描述放进了视觉隐藏的 span（aria-label + 读屏可用，顶栏一致性测试也认）。
   ============================================================ */
.hero-quickbtn--shader {
  padding: 0;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  /* 设计自己的环境场就是底色；这里只兜一层暗底，避免 iframe 首帧白闪 */
  background: #06070b;
  /* 用 height 而不是 min-height：卡片里没有流内内容（iframe 绝对定位），
     min-height 在 .motion-3d 包裹层里不稳，height 才定得住。 */
  height: clamp(132px, 17vh, 176px);
}

/* iframe 铺满整张卡片：设计自己居中画那颗固定尺寸的按钮（264 / 280 / 250 × 70~96），
   两侧与上下留出环境场 */
.hero-quickbtn-shader {
  position: absolute;
  /* 比卡片大 10px：按钮有 hover 上浮 / active 缩小，留出余量不被裁出底色 */
  inset: -10px;
  display: block;
}

/* 卡片的 hover 位移让给按钮自己做（源码里 hover:-translate-y-2px / active:translate-y-1px
   + scale(.985)），卡片这边只提亮边框，避免两层位移叠成 8px */
.hero-quickbtn--shader:hover,
.hero-quickbtn--shader:focus-visible {
  transform: none;
  border-color: rgba(137, 170, 204, 0.5);
}

/* 入口名 / 描述：压在按钮表面上（按钮自己的英文标签已在 iframe 里藏掉） */
.hero-quickbtn-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 1.2rem;
  text-align: center;
  pointer-events: none;
}

.hero-quickbtn--shader .hero-quickbtn-icon {
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.85));
}

.hero-quickbtn--shader .hero-quickbtn-text {
  font-size: 1rem;
  letter-spacing: 0.02em;
  /* 等离子那张 hover 时会亮到接近白色，阴影要压得住 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.6);
}

.hero-quickbtn--shader .hero-quickbtn-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.55);
}

/* 窄屏：三张设计卡各占满一整行。
   iframe 里那颗按钮是固定尺寸的，两列并排时卡片只有 170 宽会把按钮裁掉；
   卡片一窄就整行给它，按钮就完整了。
   ⚠️ 真正的网格项目是 main-page-motion.js 运行时给每张卡套的 .motion-3d 包裹层，
   所以整行占位要挂在它身上（.kz-shader-card 这个类由 shared/shader-buttons.js 补）。 */
@media (max-width: 780px) {
  .hero-quickbtn--shader,
  .kz-shader-card {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* 滚动提示 */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: hsl(var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.2em;
  pointer-events: none;
}

.scroll-indicator-line {
  position: relative;
  width: 1px;
  height: 2.5rem;
  background: hsl(var(--stroke));
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--accent-solid-soft), transparent);
  animation: scroll-down 1.5s ease-in-out infinite;
}

/* 注：hero 底部那枚 SCROLL 指示已从 main-page.html 撤掉 ——
   上面三张 shader 卡片把 hero 撑到一屏多一点，指示无论居中还是靠边都会压到卡片/被折叠线切半。
   样式留着，需要时把 markup 贴回去即可。 */

/* ============================================================
   7. SELECTED WORKS / JOURNAL 等章节的通用卡片
   ============================================================ */
.works-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.work-card {
  position: relative;
  grid-column: span 12;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--surface));
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.work-card.is-wide {
  grid-column: span 7;
}

.work-card.is-narrow {
  grid-column: span 5;
}

.work-media {
  position: absolute;
  inset: 0;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.9, 0.4, 1);
}

/* 图片缺失时的渐变底 */
.work-media-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 25% 20%, rgba(var(--accent-rgb), 0.35), transparent 60%),
    linear-gradient(140deg, #101318, #0a0a0a 70%);
}

/* hover 蒙层：纯黑 + 毛玻璃 */
.work-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: hsl(var(--bg) / 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 420ms ease;
}

.work-card:hover .work-overlay,
.work-card:focus-within .work-overlay {
  opacity: 1;
}

/* hover 时那颗白色胶囊：View — 标题 */
.work-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.4, 1);
}

.work-card:hover .work-label {
  transform: none;
}

.work-label .work-label-title {
  font-family: var(--font-display);
  font-style: italic;
}

/* ⚠️ 这里曾经有一条 .work-meta —— 左上角浮动显示「01 — 影阅 · CINE LIFE」。
   2026-10-16 撤掉了：它压在预览示意图自己的顶栏上，两层文字叠在一起糊成一团。
   功能的中英名现在直接嵌在示意图顶栏里（见 .wp-title / .wp-name-cn / .wp-name-en）。 */

/* ---- Journal：横向胶囊条目 ---- */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.journal-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  border-radius: 40px;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--surface) / 0.3);
  transition: background 300ms ease, transform 300ms ease, border-color 300ms ease;
}

.journal-item:hover {
  background: hsl(var(--surface));
  border-color: rgba(var(--accent-rgb), 0.4);
}

.journal-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.4), #111);
}

.journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.journal-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: hsl(var(--text));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-meta {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: hsl(var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.journal-arrow {
  flex: 0 0 auto;
  color: hsl(var(--muted));
  transition: transform 300ms ease, color 300ms ease;
}

.journal-item:hover .journal-arrow {
  color: hsl(var(--text));
  transform: translateX(4px);
}

/* ============================================================
   9. STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat {
  padding: 1.75rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--stroke));
  background: linear-gradient(160deg, hsl(var(--surface)), hsl(var(--bg)));
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: hsl(var(--text));
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.stat-desc {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: hsl(var(--text-secondary));
  line-height: 1.6;
}

/* ============================================================
   10. CONTACT / 跑马灯
   ============================================================ */
.contact-section {
  position: relative;
  background: hsl(var(--bg));
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.marquee {
  position: relative;
  display: flex;
  width: max-content;
  gap: 2rem;
  user-select: none;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}

.marquee-item {
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--text) / 0.14);
  text-transform: uppercase;
}

.marquee-item .dot {
  color: var(--accent-solid);
  opacity: 0.7;
}

/* 跑马灯背景视频（竖向翻转，压得更暗） */
.contact-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55;
}

.contact-video-wrap .hero-video {
  transform: translate(-50%, -50%) scaleY(-1);
}

.contact-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.contact-inner {
  position: relative;
  z-index: 2;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 3rem 0 2rem;
}

/* 联系区的「来聊两句」
   ------------------------------------------------------------
   ⚠️ 这里原来是 <a>，现在改成了 <button>（点了弹留言窗，不跳转）。
      <a> 默认背景是透明的，<button> 不是 —— 浏览器会给一层灰底
      （ButtonFace）+ 圆角 + 内边距，所以未 hover 状态会看到一块灰。
      全局 button 规则（见文件上方）只重置了 font / color，没管背景，
      所以必须在这里自己清干净。
   ⚠️ 顺序要紧：先 border: 0 清掉 UA 边框，再单独给 border-bottom。 */
.contact-email {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  color: hsl(var(--text));
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  cursor: pointer;
  /* 只留下划线，其余内边距归零（按钮默认有 padding） */
  padding: 0 0 0.35rem;
  border-bottom: 1px solid hsl(var(--stroke));
  transition: border-color 300ms ease, color 300ms ease;
}

.contact-email:hover {
  border-color: var(--accent-solid-soft);
}

/* 键盘聚焦时给个可见的圈，别只靠下划线变色 */
.contact-email:focus-visible {
  outline: 2px solid var(--accent-solid-soft);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ============================================================
   11. 首页专用：快捷功能卡片 / 文章列表 / 页脚
   ============================================================ */
.quick-tools-section {
  position: relative;
  background: hsl(var(--bg));
  padding: 3rem 0;
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--surface));
  overflow: hidden;
  transition: border-color 320ms ease, transform 320ms cubic-bezier(0.2, 0.9, 0.4, 1);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 50% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.tool-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-icon {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--bg));
  font-size: 1.15rem;
  overflow: hidden;
}

.tool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-card-title {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: hsl(var(--text));
}

.tool-card-desc {
  position: relative;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: hsl(var(--muted));
}

.articles-section {
  position: relative;
  background: hsl(var(--bg));
  padding: 3rem 0;
}

.articles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--shell-max);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.articles-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.35rem;
  border-radius: 40px;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--surface) / 0.3);
  overflow: hidden;
  transition: background 300ms ease, border-color 300ms ease;
}

.article-item:hover {
  background: hsl(var(--surface));
  border-color: rgba(var(--accent-rgb), 0.4);
}

.article-date {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: hsl(var(--muted));
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.article-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--text));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-arrow {
  flex: 0 0 auto;
  color: hsl(var(--muted));
  transition: transform 300ms ease, color 300ms ease;
}

.article-item:hover .article-arrow {
  color: hsl(var(--text));
  transform: translateX(4px);
}

.articles-empty {
  padding: 2.25rem 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: hsl(var(--muted));
  border: 1px dashed hsl(var(--stroke));
  border-radius: 1.5rem;
  background: hsl(var(--surface) / 0.25);
}

.articles-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-enter-articles {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--bg));
  color: hsl(var(--text));
  padding: 0.9rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 260ms ease, border-color 260ms ease, color 260ms ease;
}

.btn-enter-articles:hover {
  transform: scale(1.04);
  border-color: transparent;
  background: hsl(var(--text));
  color: hsl(var(--bg));
}

/* ---- 页脚 ---- */
.site-footer {
  position: relative;
  margin-top: auto;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid hsl(var(--stroke));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  text-align: center;
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-line {
  font-size: 0.8125rem;
  color: hsl(var(--muted));
  letter-spacing: 0.04em;
}

.footer-version {
  color: hsl(var(--text-secondary));
  font-variant-numeric: tabular-nums;
}

/* 备案信息行：ICP 备案号 → · → 图标 + 网安备案号，三样在同一行。
   ⚠️ nowrap + flex: 0 0 auto 都不能去掉：这行是 .site-footer 的 flex 子项，
      允许换行或允许压缩，就会在父级变窄时从内部折成两行。
      （shared/site-footer.js 注入的那段样式是最终生效的那份，这里是同一条规则的本地副本） */
.footer-icp {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 页脚社交链接 + 状态灯（首页联系区用） */
.footer-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-social {
  font-size: 0.8125rem;
  color: hsl(var(--muted));
  letter-spacing: 0.06em;
  transition: color 220ms ease;
}

.footer-social:hover {
  color: hsl(var(--text));
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted));
  letter-spacing: 0.06em;
}

.footer-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

/* ============================================================
   12. 鼠标动效（main-page-motion.js）
   ============================================================ */
.motion-3d {
  display: flex;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.9, 0.4, 1);
  will-change: transform;
}

.motion-3d > * {
  flex: 1 1 auto;
  min-width: 0;
}

.motion-3d[data-motion-active] {
  transition: transform 90ms linear;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  /* 放在卡片内容底下：它只是"跟着鼠标的一块柔光"，不该盖住文字 */
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  background: radial-gradient(
    var(--spot-r, 72px) circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(255, 255, 255, 0.14),
    transparent 70%
  );
}

/* 卡片自己的内容抬到光斑之上（hero 卡片 / 工具卡 / 文章条都套上） */
.hero-quickbtn > *,
.tool-card > *,
.article-item > * {
  position: relative;
  z-index: 1;
}

[data-motion-active] > .card-spotlight,
[data-motion-active] .card-spotlight {
  opacity: 1;
}

.motion-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
  background: radial-gradient(
    620px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(var(--accent-rgb), 0.07),
    transparent 65%
  );
}

.motion-ambient.is-on {
  opacity: 1;
}

/* ============================================================
   13. 滚动揭示（GSAP 没加载时的兜底）
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

/* JS 接管后由 GSAP / IntersectionObserver 加 .is-revealed */
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 1000ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1000ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* JS 完全不可用时不能让内容永久隐身 */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   14. 加载屏（首页 LoadingScreen）
   ============================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: hsl(var(--bg));
  overflow: hidden;
}

.loading-screen-label {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.loading-screen-words {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  color: hsl(var(--text) / 0.8);
  white-space: nowrap;
}

.loading-screen-count {
  position: absolute;
  right: 1.75rem;
  bottom: 4.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 1;
  color: hsl(var(--text));
  font-variant-numeric: tabular-nums;
}

.loading-screen-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: hsl(var(--stroke) / 0.5);
}

.loading-screen-bar > span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 8px rgba(137, 170, 204, 0.35);
  background-image: linear-gradient(90deg, var(--grad-from) 0%, var(--grad-to) 100%);
}

/* 收场：整块淡出，然后交给页面 */
.loading-screen.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

/* 加载屏期间锁滚动 */
body.is-loading {
  overflow: hidden;
}

/* ============================================================
   14.1 开场动画期间的正文状态
   ------------------------------------------------------------
   背景加载层（"正在连接宇宙…"）已删除：现在开场动画一收，正文就显示，
   不再等 hero 的背景视频。这里只剩"开场动画期间先别显示正文"的那几条。
   ============================================================ */
body.is-booting {
  overflow: hidden;
}

body.is-booting .app-root > .app-motion {
  opacity: 0;
}

/* hero 正文在开场动画期间先收起来，收场由 .is-booting 摘掉后淡入 */
body.is-booting .hero-content {
  opacity: 0;
}

.hero-content {
  transition: opacity 500ms ease;
}

/* ============================================================
   15. 响应式 / 移动端适配
   ------------------------------------------------------------
   阶梯（自上而下依次收窄，都是 max-width，后面的会覆盖前面的）：
     1024px  小平板 / 折叠屏展开：顶栏留白收紧
      900px  顶栏切成「logo + 汉堡」（结构在 shared/site-header-mobile.css）
      768px  平板竖屏 / 大屏手机横屏：Bento 塌成单列、迷你预览缩到 0.8 倍
      430px  大屏手机（iPhone Pro Max）
      390px  主流手机（iPhone 14/15）
      360px  小屏安卓（最窄目标）
  另外两条按"形态"而不是宽度判定：
     · 手机横屏（矮 + 横）→ hero 不再占满一屏，滚动提示收起来
     · 触摸设备（hover: none）→ 去掉 hover 位移，点击热区放大到 44px 以上
   ============================================================ */

/* ---------- 1024px：小平板 ---------- */
@media (max-width: 1024px) {
  .site-header-inner {
    gap: 0.125rem;
  }

  .site-header-nav .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
  }

  .nav-sayhi {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .shell {
    padding: 0 1.25rem;
  }

  .hero-content {
    max-width: 900px;
  }
}

/* ---------- 900px：顶栏换形态 + 版面放宽 ---------- */
@media (max-width: 900px) {
  .app-root {
    padding: 0 var(--shell-pad);
  }

  .site-header {
    padding-top: 0.6rem;
    justify-content: center;
  }

  .site-header-inner {
    width: 100%;
    max-width: 640px;
    justify-content: space-between;
    align-items: center;
    border-radius: 999px;
  }

  /* 窄屏：左右导航交给 shared/site-header-mobile.css 的下拉菜单 */
  .site-header-nav,
  .nav-divider,
  .nav-sayhi {
    display: none;
  }

  .site-header-center {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .site-title {
    width: auto;
    height: auto;
    padding: 0.3rem 0;
    border-radius: 0;
    background: none;
    background-image: none;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: hsl(var(--text));
    -webkit-text-fill-color: currentColor;
  }

  /* 窄屏顶栏是纯文字 logo，圆环和图形字标都收起来 */
  .site-title::before,
  .site-title-mark {
    display: none;
  }

  .site-title.has-mark .site-title-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .site-title:hover {
    transform: none;
    background-image: none;
  }

  /* hero：不再锁死一屏高（六张卡 + 标题在手机上会超出） */
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 5.5rem 0 5rem;
  }

  .hero-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .hero-center {
    margin-bottom: 1.75rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  /* Bento 一律单列（手机上两列预览看不清） */
  .work-card.is-wide,
  .work-card.is-narrow {
    grid-column: span 12;
  }

  .work-card {
    aspect-ratio: 16 / 10;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .journal-item {
    border-radius: 32px;
    gap: 1rem;
  }

  .quick-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0 1.25rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}

/* ---------- 760px：平板竖屏 / 大屏手机横屏 ---------- */
@media (max-width: 760px) {
  /* hero 六个入口在平板竖屏依然保持两列（3 列太挤，1 列太长） */
  .hero-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 迷你界面预览整体缩到 0.8 倍：字号和间距一起收，版面比例不变 */
  .wp {
    font-size: 0.68rem;
    gap: 0.4rem;
    padding: 0.9rem 1rem;
  }

  .wp-poster {
    width: 1.8rem;
    height: 2.5rem;
  }

  .wp-ring {
    width: 3.8rem;
    height: 3.8rem;
  }

  .wp-ring-in {
    width: 2.95rem;
    height: 2.95rem;
  }

  .work-card {
    aspect-ratio: 3 / 2;
  }

  /* 小屏上预览本来就小，半调网点会把它压暗得看不清细节 —— 减淡 */
  .halftone {
    opacity: 0.1;
  }
  /* 预览顶栏在窄屏放不下「中英名 + 三个分页胶囊」：
     把英文名收起来，中文名留着（信息量最大的一档） */
  .wp-name-en {
    display: none;
  }

  .wp-bar {
    gap: 0.3rem;
  }

  .wp-brand {
    min-width: 1.35rem;
    height: 1.35rem;
    font-size: 0.58rem;
  }

  .wp-tab,
  .wp-chip {
    padding: 0.12rem 0.42rem;
    font-size: 0.62rem;
  }

  .work-meta {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
  }

  /* 触摸设备本来就没有 hover：把胶囊标签常显出来，不然看不出能点 */
  .work-label {
    font-size: 0.8125rem;
    padding: 0.6rem 1.1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .contact-email {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .marquee-item {
    font-size: clamp(1.75rem, 9vw, 3rem);
  }

  .article-item {
    gap: 0.9rem;
    padding: 1rem 1.15rem;
  }

  /* 加载屏：数字和字数在中等屏上收一点，别顶到边 */
  .loading-screen-count {
    right: 1.25rem;
    bottom: 3.5rem;
  }
}

/* ---------- 520px：手机（hero 这一档开始明显收窄） ---------- */
@media (max-width: 520px) {
  .hero-section {
    padding: 4.75rem 0 3.5rem;
  }

  .hero-content {
    gap: 0.6rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-quickbtn {
    padding: 0.95rem 1rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .stat {
    padding: 1.5rem 1.25rem;
  }
}
/* ---------- 430px：大屏手机 ---------- */
@media (max-width: 430px) {
  :root {
    --shell-pad: 0.9rem;
  }

  .shell,
  .quick-tools-grid,
  .articles-list,
  .articles-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding: 5rem 0 4rem;
  }

  .hero-content {
    padding: 0 0.25rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-role-line,
  .hero-desc {
    font-size: 0.85rem;
  }

  /* 两颗 CTA 各占一行，比并排更好点 */
  .hero-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
  }

  .hero-quickbtn {
    padding: 0.9rem 0.95rem;
    min-height: 0;
  }

  .hero-quickbtn-text {
    font-size: 0.875rem;
  }

  .hero-quickbtn-desc {
    font-size: 0.7rem;
  }

  .settings-grid,
  .stats-grid {
    gap: 0.75rem;
  }

  .stat {
    padding: 1.35rem 1.15rem;
  }

  .stat-value {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .quick-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .tool-card {
    padding: 1.15rem 1rem;
  }

  .tool-card-title {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }

  .tool-card-desc {
    font-size: 0.75rem;
  }

  .contact-cta {
    padding: 2rem 0 1.5rem;
  }

  .footer-socials {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.35rem;
  }

  .marquee-item {
    font-size: clamp(1.5rem, 11vw, 2.25rem);
  }
}

/* ---------- 390px：主流手机 ---------- */
@media (max-width: 390px) {
  .hero-title {
    font-size: clamp(2rem, 13vw, 2.75rem);
  }

  .hero-eyebrow {
    margin-bottom: 1.25rem;
  }

  .hero-role-line {
    margin-top: 1rem;
  }

  .loading-screen-count {
    right: 0.9rem;
    bottom: 3rem;
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .loading-screen-label {
    top: 0.9rem;
    left: 0.9rem;
  }

  .loading-screen-words {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  /* 迷你预览再收一档 */
  .wp {
    font-size: 0.62rem;
    gap: 0.32rem;
    padding: 0.75rem 0.85rem;
  }

  .wp-stats {
    gap: 0.3rem;
  }

  .wp-stat b,
  .wp-cards b,
  .wp-ring-in b {
    font-size: 0.9rem;
  }

  .wp-deficit-top {
    gap: 0.6rem;
  }

  .wp-ring {
    width: 3.35rem;
    height: 3.35rem;
  }

  .wp-ring-in {
    width: 2.6rem;
    height: 2.6rem;
  }
}

/* ---------- 360px：最窄目标（小屏安卓） ---------- */
@media (max-width: 360px) {
  :root {
    --shell-pad: 0.75rem;
  }

  .shell,
  .quick-tools-grid,
  .articles-list,
  .articles-header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  /* 360px 放不下两列卡片：hero 六个入口改单列，按钮变矮 */
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-quickbtn {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
  }

  .hero-quickbtn-icon {
    font-size: 1rem;
  }

  .hero-quickbtn-desc {
    display: none;  /* 单列时说明文字会被挤成两行，直接省掉 */
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .quick-tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-title {
    font-size: 0.875rem;
  }

  .marquee-item {
    font-size: 1.35rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .article-item {
    border-radius: 1.25rem;
  }

  .work-card {
    aspect-ratio: 4 / 3;
    border-radius: 1.25rem;
  }

  /* 卡片上的「查看」胶囊在小机器上收到最小可用尺寸 */
  .work-label {
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
  }
}

/* ---------- 手机横屏：矮而宽 ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .hero-section {
    height: auto;
    min-height: 0;
    padding: 4.5rem 0 2.5rem;
  }

  /* 横屏本来就矮，滚动提示会压住卡片 */
  .scroll-indicator {
    display: none;
  }

  .hero-center {
    margin-bottom: 1.25rem;
  }

  .hero-desc {
    display: none;  /* 横屏优先保证六个入口可见 */
  }

  /* 横屏下横排的胶囊条目不要长得太高 */
  .article-item,
  .journal-item {
    padding: 0.75rem 1rem;
  }

  .loading-screen-count {
    bottom: 2rem;
  }
}

/* ---------- 触摸设备：没有 hover，改成"点了有反馈" ---------- */
@media (hover: none) {
  /* hover 才出现的位移/缩放一律取消，避免点完留在一个歪状态 */
  .btn:hover,
  .btn-pill:hover,
  .btn-pill:hover .arrow,
  .tool-card:hover,
  .article-item:hover,
  .journal-item:hover,
  .hero-quickbtn:hover,
  .work-card:hover .work-media img,
  .work-card:hover .wp {
    transform: none;
  }

  /* 卡片上的白色胶囊本来就是 hover 才出来的：
     触屏把它淡一点常显，提示"可以点" */
  .work-overlay {
    opacity: 0;
    background: hsl(var(--bg) / 0.35);
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .work-card:active .work-overlay,
  .work-card:focus-within .work-overlay {
    opacity: 1;
  }

  /* 点击热区不小于 44px（触屏可点性下限） */
  .nav-link,
  .btn,
  .btn-pill,
  .filter-btn,
  .site-title,
  .mobile-menu-toggle,
  .mobile-menu-link {
    min-height: 44px;
  }

  .btn-pill,
  .filter-btn {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  /* 滚动揭示在触屏上立刻到位，不要边滚边淡入（容易看到半透明的一瞬） */
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   16. 减少动态效果 / 打印
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .loading-screen {
    display: none !important;
  }

}

@media print {
  .site-header,
  .loading-screen,
  .motion-ambient,
  .scroll-indicator,
  .contact-video-wrap {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ============================================================
   7.1 精选作品里的「迷你界面预览」
   ------------------------------------------------------------
   四张卡画的不是抽象花纹，而是**对应工具真实版面的缩略图**：
     影阅 = 片单 + 星级评分      饮录 = 统计头 + 柱状图
     减脂 = 热量缺口环 + 四项统计  重定向库 = 条目表 + 复制按钮
   全部用 HTML + CSS 画，不引任何图片：静态托管 / 断网长得一样，
   而且改文案不用重新导出图片。

   ⚠️ 比例约定：每一块都用 rem / % 排版，容器尺寸变了就整体缩放；
      窄屏（≤768px）会把字号统一压到 0.8 倍，见响应式那段。
   ============================================================ */
.wp {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(160deg, #12161c 0%, #0a0c10 60%, #08090b 100%);
  color: hsl(var(--text));
  font-size: 0.75rem;
  line-height: 1.35;
  overflow: hidden;
  /* 静态预览，别让浏览器以为这里有可点的控件 */
  pointer-events: none;
  user-select: none;
}

/* 顶部那条：应用名 + 分页标签 */
.wp-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* 顶栏左边那个小 KZ 字标：告诉人这是谁的站内工具 */
.wp-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(137, 170, 204, 0.35);
  background: rgba(var(--accent-rgb), 0.14);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-solid-soft);
}

/* 功能的中英名：嵌在示意图顶栏里（原来那条浮动的 .work-meta 已撤掉） */
.wp-title {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-right: 0.35rem;
}

.wp-name-cn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(var(--text));
  white-space: nowrap;
}

.wp-name-en {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 旧版那个只有中文名的标记（保留兼容，别的地方可能还在用） */
.wp-logo {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(var(--text));
  margin-right: 0.35rem;
}

.wp-tab {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  color: hsla(var(--muted) / 1);
  background: rgba(255, 255, 255, 0.04);
}

.wp-tab.is-on {
  color: #0a0a0a;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
}

/* 筛选胶囊 */
.wp-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.wp-chip {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--stroke));
  font-size: 0.66rem;
  color: hsl(var(--muted));
}

.wp-chip.is-on {
  color: hsl(var(--text));
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.16);
}

/* ---- 影阅：片单 ---- */
.wp-cine .wp-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wp-poster {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.9rem;
  border-radius: 0.35rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  background: linear-gradient(150deg, #4d6d8f, #1d2836);
}

.wp-poster.is-b { background: linear-gradient(150deg, #7a5a3c, #2a1f16); }
.wp-poster.is-c { background: linear-gradient(150deg, #6b4a6e, #241726); }

.wp-row-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.wp-row-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: hsl(var(--text));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-row-meta {
  font-size: 0.64rem;
  color: hsl(var(--muted));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-stars {
  flex: 0 0 auto;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--accent-solid-soft);
}

/* ---- 饮录：统计 + 柱状图 ---- */
.wp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.wp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.2rem;
  border-radius: 0.6rem;
  border: 1px solid hsl(var(--stroke));
  background: rgba(255, 255, 255, 0.03);
}

.wp-stat b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  color: hsl(var(--text));
}

.wp-stat i {
  font-style: normal;
  font-size: 0.6rem;
  color: hsl(var(--muted));
}

.wp-bars {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  min-height: 0;
  padding: 0.35rem 0;
}

.wp-bars > span {
  flex: 1 1 0;
  height: var(--v, 40%);
  min-height: 0.3rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, var(--grad-from), var(--grad-to));
  opacity: 0.75;
}

.wp-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.wp-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--stroke));
  font-size: 0.64rem;
  color: hsl(var(--text-secondary));
  background: rgba(255, 255, 255, 0.03);
}

/* ---- 减脂日志：热量缺口环 + 四项统计 ---- */
.wp-deficit-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.wp-ring {
  flex: 0 0 auto;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 用 conic-gradient 画 62% 的进度环 */
  background: conic-gradient(var(--grad-from) 0 42%, var(--grad-to) 42% 62%, rgba(255, 255, 255, 0.09) 62% 100%);
}

.wp-ring-in {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  background: #0c0f13;
}

.wp-ring-in b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: hsl(var(--text));
}

.wp-ring-in i {
  font-style: normal;
  font-size: 0.55rem;
  color: hsl(var(--muted));
}

.wp-deficit-side {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wp-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid hsl(var(--stroke));
}

.wp-kv i {
  font-style: normal;
  font-size: 0.62rem;
  color: hsl(var(--muted));
}

.wp-kv b {
  font-size: 0.72rem;
  font-weight: 600;
  color: hsl(var(--text));
  font-variant-numeric: tabular-nums;
}

.wp-cards {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.wp-cards > span {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--stroke));
  background: rgba(255, 255, 255, 0.03);
}

.wp-cards b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1;
  color: hsl(var(--text));
}

.wp-cards i {
  font-style: normal;
  font-size: 0.6rem;
  color: hsl(var(--muted));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 应用重定向库：搜索 + 条目表 ---- */
.wp-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--stroke));
  background: rgba(255, 255, 255, 0.03);
}

.wp-search-icon {
  font-size: 0.68rem;
  opacity: 0.7;
}

.wp-search-text {
  font-size: 0.68rem;
  color: hsl(var(--muted));
}

.wp-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid hsl(var(--stroke));
  background: rgba(255, 255, 255, 0.03);
}

.wp-link-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(var(--accent-rgb), 0.35);
}

.wp-link-icon.is-b { background: rgba(137, 170, 204, 0.3); }
.wp-link-icon.is-c { background: rgba(255, 255, 255, 0.12); }

.wp-link-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.wp-link-title {
  font-size: 0.74rem;
  font-weight: 500;
  color: hsl(var(--text));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-link-url {
  font-size: 0.62rem;
  color: hsl(var(--muted));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-copy {
  flex: 0 0 auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  color: hsl(var(--text));
  border: 1px solid hsl(var(--stroke));
  background: rgba(255, 255, 255, 0.05);
}

/* hover 时预览整体轻微推近，制造"点进去"的暗示 */
.work-card:hover .wp {
  transform: scale(1.03);
  transition: transform 900ms cubic-bezier(0.2, 0.9, 0.4, 1);
}

/* 图片版（如果以后换回真图）沿用同一套 hover */
.work-card:hover .work-media img {
  transform: scale(1.05);
}


/* 精选项目：统一质感的深色展示台，四张预览各自保留轻微主题色。 */
.work-card {
  --work-glow: 137, 170, 204;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.12);
  background: #090c11;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 500ms ease, box-shadow 500ms ease, transform 700ms cubic-bezier(0.2, 0.9, 0.4, 1);
}

.work-card:nth-of-type(1) { --work-glow: 120, 157, 198; }
.work-card:nth-of-type(2) { --work-glow: 111, 178, 157; }
.work-card:nth-of-type(3) { --work-glow: 143, 177, 153; }
.work-card:nth-of-type(4) { --work-glow: 125, 156, 195; }

.work-card::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(3, 7, 12, 0.04) 38%, rgba(3, 7, 12, 0.46) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(var(--work-glow), 0.19), transparent 62%);
  pointer-events: none;
}

.work-card::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -28px 54px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(var(--work-glow), 0.5);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(var(--work-glow), 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.work-media {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(var(--work-glow), 0.2), transparent 58%),
    linear-gradient(145deg, #101720, #080b10 72%);
}

.wp {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(var(--work-glow), 0.13), transparent 46%),
    linear-gradient(155deg, #151c25 0%, #0d1219 52%, #090c11 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.wp-bar {
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.wp-stat,
.wp-pill,
.wp-kv,
.wp-cards > span,
.wp-link {
  border-color: rgba(255, 255, 255, 0.095);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.wp-search {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(4, 8, 13, 0.42);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.24);
}

.halftone {
  z-index: 1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.38) 0.7px, transparent 0.9px);
  background-size: 7px 7px;
  opacity: 0.08;
  mix-blend-mode: screen;
  mask-image: linear-gradient(135deg, transparent 10%, #000 100%);
}

.work-overlay {
  z-index: 4;
  background: linear-gradient(145deg, rgba(7, 11, 17, 0.62), rgba(6, 9, 14, 0.78));
}

.work-label {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(var(--work-glow), 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .work-card {
    transition: none;
  }
}

/* 精选项目行间文案：落在 Bento 首行窄卡片（饮录）下方的自然留白里。 */
.works-note {
  position: absolute;
  grid-column: 8 / -1;
  /* ⚠️ 必须写成 `1 / 2`（起止两条线都写死），不能只写 `grid-row: 1`。
     绝对定位的子元素会拿"网格区域"当包含块，而只写 grid-row: 1 时
     结束线是 auto —— Chrome 把这块区域当成"从第 1 行一直到最后一行"，
     于是 inset 的 bottom: 0 就贴到了整个 Bento 的底部，
     文案整个跑到了第二排卡片（应用重定向库）身上。
     写成 1 / 2 之后区域就是第一行，bottom: 0 才真的落在首行底部。 */
  grid-row: 1 / 2;
  align-self: end;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  inset: auto 0 0;
  /* 高度跟着内容走，不写死：首行留白 = 高卡片高 - 窄卡片高，
     写死成 clamp() 会高出留白、压到卡片上。 */
  height: auto;
  padding: 1rem 1.45rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.works-note-kicker {
  color: rgba(157, 186, 213, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

.works-note-copy {
  margin: 0.7rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  /* 上限从 1.75rem 收到 1.6rem：两行大字 + 上下标签正好塞进首行留白
     （约 153px），再大就会压到上面那张窄卡片的底边。 */
  font-size: clamp(1.05rem, 1.4vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: 0.035em;
}

.works-note-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
}

.works-note-foot i {
  width: 1.3rem;
  height: 1px;
  background: linear-gradient(90deg, #9dbad5, transparent);
}

.works-note-foot span {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 1024px) {
  .works-note {
    display: none;
  }
}
/* ============================================================
   7.x 创意 games 的两张卡：预览画的是游戏真实界面
   ------------------------------------------------------------
   和上面 .wp-* 那套工具预览同一套尺寸语言（.wp 里 font-size 0.75rem
   是基准，这里一律用 rem / em，缩放时整体等比，不会某一处先崩）。
   ============================================================ */

/* ---------- 冷答：限时答题 ---------- */
.wp-quiz {
  background:
    radial-gradient(560px 380px at 78% 8%, rgba(72, 138, 214, 0.28), transparent 62%),
    linear-gradient(160deg, #0d141d 0%, #090c12 62%, #07090d 100%);
}

/* 进度条的微光放在条内，别用伪元素横穿卡片边框 */
.wp-quiz-bar i { box-shadow: 0 0 10px rgba(126, 196, 255, 0.5); }

.wp-quiz-step {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(160, 200, 240, 0.6);
}

.wp-quiz-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

/* 限时环：conic-gradient 画进度，中间压一颗数字 */
.wp-quiz-ring {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: conic-gradient(#7ec4ff 0turn 0.68turn, rgba(126, 196, 255, 0.14) 0.68turn 1turn);
}

.wp-quiz-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0b1017;
}

.wp-quiz-ring i {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cfe6ff;
}

.wp-quiz-q {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #eaf3ff;
}

.wp-quiz-q em {
  font-style: normal;
  color: #7ec4ff;
  box-shadow: inset 0 -0.4em 0 rgba(126, 196, 255, 0.16);
}

/* 答案输入框：一个胶囊 + 闪动的光标 */
.wp-quiz-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(126, 196, 255, 0.32);
  background: rgba(126, 196, 255, 0.07);
}

.wp-quiz-value {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #eaf3ff;
}

.wp-quiz-caret {
  width: 1px;
  height: 0.95rem;
  background: #7ec4ff;
  animation: kz-quiz-caret 1s steps(2, start) infinite;
}

@keyframes kz-quiz-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* 五级评分：招牌上那排 +10 / +20 / +50 */
.wp-quiz-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.wp-quiz-chip {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 196, 255, 0.18);
  background: rgba(126, 196, 255, 0.05);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: rgba(190, 216, 244, 0.72);
  white-space: nowrap;
}

.wp-quiz-chip.is-hot {
  border-color: rgba(126, 196, 255, 0.6);
  background: rgba(126, 196, 255, 0.16);
  color: #dcefff;
  font-weight: 600;
}

.wp-quiz-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wp-quiz-bar {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(126, 196, 255, 0.12);
  overflow: hidden;
}

.wp-quiz-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f9bdd, #9fd4ff);
}

.wp-quiz-total {
  flex: 0 0 auto;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(190, 216, 244, 0.65);
}

/* 前几题的评分记录：贴底往上排，把中段填满，也顺手交代了玩法 */
.wp-quiz-log {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.24rem;
  padding-bottom: 0.25rem;
}

.wp-quiz-log-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.28rem 0.52rem;
  border-radius: 0.4rem;
  background: rgba(126, 196, 255, 0.045);
  font-size: 0.62rem;
  color: rgba(190, 216, 244, 0.6);
}

.wp-quiz-log-row b {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.wp-quiz-log-row i {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9fd4ff;
}

/* ---------- 夜行列车：文字冒险 ---------- */
.wp-avg {
  background:
    radial-gradient(420px 320px at 22% 6%, rgba(214, 158, 96, 0.22), transparent 66%),
    linear-gradient(160deg, #14110d 0%, #0b0a08 58%, #070706 100%);
}

.wp-avg-chap {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(226, 190, 140, 0.55);
}

/* 车窗外掠过的夜色：一个月亮 + 几道斜向流光 */
.wp-avg-scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 2.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(226, 190, 140, 0.14);
  background: linear-gradient(180deg, #0b1220 0%, #131a26 55%, #0a0d14 100%);
  overflow: hidden;
}

/* 车窗的两根竖框：把"一片渐变"变成"一扇窗" */
.wp-avg-scene::before,
.wp-avg-scene::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(226, 190, 140, 0.03), rgba(226, 190, 140, 0.22), rgba(226, 190, 140, 0.03));
}

.wp-avg-scene::before { left: 34%; }
.wp-avg-scene::after { left: 68%; }

.wp-avg-moon {
  position: absolute;
  top: 0.5rem;
  right: 1.1rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #ffe9c2, #c9a469);
  box-shadow: 0 0 12px rgba(255, 224, 176, 0.45);
}

.wp-avg-streak {
  position: absolute;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(226, 190, 140, 0), rgba(226, 190, 140, 0.5), rgba(226, 190, 140, 0));
  transform: rotate(-6deg);
}

.wp-avg-streak.is-a { top: 0.7rem; left: -10%; width: 60%; }
.wp-avg-streak.is-b { top: 1.5rem; left: 12%; width: 78%; opacity: 0.6; }
.wp-avg-streak.is-c { top: 2.15rem; left: -4%; width: 54%; opacity: 0.4; }

/* 对白框 */
.wp-avg-box {
  position: relative;
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(226, 190, 140, 0.2);
  background: rgba(18, 15, 11, 0.86);
}

/* 左上角那颗小方块：说话人的位置锚点 */
.wp-avg-name {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.08rem 0.42rem;
  border-radius: 0.3rem;
  background: rgba(226, 190, 140, 0.16);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f0d2a6;
}

.wp-avg-line {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(240, 232, 220, 0.9);
}

/* 旁白：比对白淡一档、斜体，读起来才是"叙述"而不是"谁说" */
.wp-avg-narr {
  margin: 0.3rem 0 0;
  font-size: 0.64rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(226, 214, 196, 0.52);
}

/* 选项 */
.wp-avg-choices {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wp-avg-choice {
  padding: 0.34rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 190, 140, 0.16);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: rgba(236, 222, 202, 0.72);
}

.wp-avg-choice.is-on {
  border-color: rgba(226, 190, 140, 0.52);
  background: rgba(226, 190, 140, 0.12);
  color: #ffe9c6;
}

/* 窄卡片里把预览压紧一点，别溢出 */
@media (max-width: 900px) {
  .wp-quiz-q { font-size: 0.82rem; }
  .wp-quiz-ring { width: 2.4rem; height: 2.4rem; }
  .wp-quiz-ring i { font-size: 0.74rem; }
  .wp-avg-scene { height: 2rem; }
  .wp-avg-line { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-quiz-caret { animation: none; }
}

/* ============================================================
   云端场背景（shared/cloud-background.js · ThreeUI cloud-field）
   ------------------------------------------------------------
   主页保留 hero 那段 m3u8/mp4 视频；滚过 hero 之后，背景层才淡入。
   但 hero 之后的章节原本都用 --bg 铺满整行，会把背景层整块盖住 ——
   这里只让「整行的大块底色」让路，卡片 / 面板 / 页脚一律不动
   （它们本来就是半透明玻璃，透出来正好）。
   背景层自己在 z-index: 0，内容在 .app-root（z-index: 1）之上。
   ============================================================ */
html.has-cloud .section,
html.has-cloud .quick-tools-section,
html.has-cloud .contact-section {
  background: transparent;
}

