/* ============================================================
   MuOpt 沐优官网 · 云白极简设计系统
   零框架 · 零构建 · 双主题（data-theme light/dark）
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #ffffff;
  --bg-tint: #eef6f1;
  --card-bg: #ffffff;
  --ink: #0c2a1e;
  --ink-soft: rgba(12, 42, 30, .68);
  --ink-mute: rgba(12, 42, 30, .45);
  --brand: #0e9f6e;
  --brand-deep: #0b7d57;
  --brand-grad: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --brand-tint: rgba(14, 159, 110, .09);
  --line: rgba(12, 42, 30, .08);
  --line-strong: rgba(12, 42, 30, .14);
  --shadow-sm: 0 2px 8px rgba(12, 42, 30, .05);
  --shadow: 0 10px 30px rgba(14, 80, 55, .10);
  --shadow-lg: 0 18px 50px rgba(14, 80, 55, .16);
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --footer-bg: #08251a;
  --footer-ink: rgba(232, 255, 244, .78);
  /* 墨绿画框：导航与页脚同色夹住页面；hero 顶色与导航无缝衔接 */
  --nav-bg: #08251a;
  --hero-grad: linear-gradient(180deg, #08251a 0%, #0d3a2a 56%, #0a2e21 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  --bg: #071310;
  --bg-tint: #0b1a15;
  --card-bg: #0d2019;
  --ink: #e8fff4;
  --ink-soft: rgba(232, 255, 244, .72);
  --ink-mute: rgba(232, 255, 244, .45);
  --brand: #2dd4a0;
  --brand-deep: #22b587;
  --brand-tint: rgba(45, 212, 160, .12);
  --line: rgba(232, 255, 244, .10);
  --line-strong: rgba(232, 255, 244, .20);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  --footer-bg: #04100b;
  --nav-bg: #04100b;
  --hero-grad: linear-gradient(180deg, #04100b 0%, #0a271d 56%, #071b13 100%);
}

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

/* 细七彩滚动条：6px 宽、两端胶囊形、轨道透明（家族同款，见 jync） */
/* Firefox 不支持 ::-webkit-scrollbar；标准属性须隔离，否则 Chrome 121+ 会弃用七彩样式 */
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444, #f59e0b, #facc15, #10b981, #06b6d4, #4f46e5, #ec4899);
}
::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #facc15, #10b981, #06b6d4, #4f46e5, #ec4899);
}
::-webkit-scrollbar-thumb:hover { filter: saturate(1.3) brightness(1.06); }
::-webkit-scrollbar-corner { background: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }

::selection { background: rgba(14, 159, 110, .25); }

/* ---------- 3. 布局工具 ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.sec { padding: 80px 0; }
.sec.tinted { background: var(--bg-tint); }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head h2 { font-size: 34px; margin: 10px 0 12px; }
.sec-head p { color: var(--ink-soft); font-size: 16px; }

.sec-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid2.narrow { max-width: 760px; margin: 0 auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.page-header {
  padding: 88px 0 56px;
  text-align: center;
  /* 子页头沿用等高线母题（浅色低 alpha），与首页 hero 呼应 */
  background:
    repeating-radial-gradient(circle at 50% 150%, rgba(14, 159, 110, .07) 0 1px, transparent 1px 56px),
    var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .page-header {
  background:
    repeating-radial-gradient(circle at 50% 150%, rgba(45, 212, 160, .06) 0 1px, transparent 1px 56px),
    var(--bg-tint);
}
.page-header h1 { font-size: 40px; margin: 12px 0 10px; }
.page-header p { color: var(--ink-soft); font-size: 17px; }

/* reveal 动画（main.js IntersectionObserver 加 .on） */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 159, 110, .30);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(14, 159, 110, .38); }

.btn-ghost {
  background: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }

/* 下载徽章（GitHub release badge 风） */
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(14, 159, 110, .30);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.dl-badge:hover { transform: translateY(-2px); color: #fff; background: var(--brand); box-shadow: 0 10px 26px rgba(14, 159, 110, .40); }
/* author 样式的 display 会盖掉 UA 的 [hidden]{display:none}，必须显式补回：
   release.js 缺失/字段非法时，徽章靠 HTML 的 hidden 属性保持隐藏（守卫见 main.js applyRelease） */
.dl-badge[hidden] { display: none; }
.dl-badge svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.dl-label { letter-spacing: .01em; }
.dl-ver {
  font-size: 12px;
  font-weight: 600;
  color: #dbeafe;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 2px 9px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: rgba(232, 255, 244, .72);
  border: 1px solid transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.icon-btn:hover { color: #7ff0c8; background: rgba(45, 212, 160, .14); border-color: rgba(255, 255, 255, .14); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

.copy-btn {
  font-size: 12px;
  color: var(--brand);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 10px;
  background: var(--card-bg);
  transition: background-color .18s ease, color .18s ease;
}
.copy-btn:hover { background: var(--brand-tint); }
.copy-btn.copied { background: var(--brand); color: #fff; border-color: var(--brand); }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.more-row { text-align: center; margin-top: 36px; }

.mt-lg { margin-top: 40px; }

/* ---------- 5. 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.nav.scrolled { border-bottom-color: rgba(255, 255, 255, .10); box-shadow: 0 6px 24px rgba(0, 0, 0, .30); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  color: #eafff5;
  letter-spacing: .01em;
  flex: none;
}
.logo:hover { color: #eafff5; }
/* 导航常驻墨绿 → 品牌字固定亮翡翠，不随主题变量翻转 */
.logo b { color: #3ce0a8; font-weight: 800; }
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  overflow: hidden;
  display: inline-flex;
  box-shadow: 0 2px 8px rgba(14, 159, 110, .35);
  flex: none;
}
.logo-mark img { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(232, 255, 244, .72);
  transition: color .18s ease, background-color .18s ease;
}
/* 沐优识别符：翡翠柔光胶囊（与沐问的实蓝胶囊区分） */
.nav-links a:hover { color: #7ff0c8; background: rgba(45, 212, 160, .14); }
.nav-links a.active { color: #7ff0c8; font-weight: 700; background: rgba(45, 212, 160, .18); }

.nav-right { display: flex; align-items: center; gap: 6px; flex: none; }

.nav-toggle { display: none; font-size: 20px; line-height: 1; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  text-align: center;
  background: var(--hero-grad);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* 沐优母题：自底升起的等高线环纹（区别于沐问点阵、百目扫描线） */
.hero::before {
  background: repeating-radial-gradient(circle at 50% 128%,
    rgba(45, 212, 160, .10) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
}
/* 顶部一抹翡翠天光 */
.hero::after {
  background: radial-gradient(560px 300px at 50% -6%, rgba(45, 212, 160, .20), transparent 72%);
}
[data-theme="dark"] .hero::before {
  background: repeating-radial-gradient(circle at 50% 128%,
    rgba(45, 212, 160, .07) 0 1px, transparent 1px 64px);
}
[data-theme="dark"] .hero::after {
  background: radial-gradient(560px 300px at 50% -6%, rgba(45, 212, 160, .13), transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #7ff0c8;
  background: rgba(45, 212, 160, .12);
  border: 1px solid rgba(45, 212, 160, .32);
  border-radius: 999px;
  padding: 6px 16px;
}

/* hero 常驻墨绿深底 → 标题组固定浅色 */
.hero-title {
  font-size: 64px;
  margin: 22px 0 10px;
  letter-spacing: -.015em;
  color: #f2fff9;
}
.hero-title .grad {
  background: linear-gradient(120deg, #34e0a1, #9ff2cd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 21px;
  font-weight: 700;
  color: rgba(232, 255, 244, .94);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(232, 255, 244, .68);
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* 截图窗口框 + 悬浮能力卡 */
.hero-shot-wrap {
  position: relative;
  max-width: 920px;
  margin: 56px auto 0;
}

.browser-frame {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.bf-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.bf-dots i { width: 11px; height: 11px; border-radius: 50%; }
.bf-dots i:nth-child(1) { background: #ff5f57; }
.bf-dots i:nth-child(2) { background: #febc2e; }
.bf-dots i:nth-child(3) { background: #28c840; }
.bf-cap {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-mute);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: chip-float 5s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--brand);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fc-1 { top: -18px; left: -34px; animation-delay: 0s; }
.fc-2 { top: 42%; right: -40px; animation-delay: .8s; }
.fc-3 { bottom: -16px; left: 12%; animation-delay: 1.6s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- 7. 数字条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 14px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 14px;
}
/* 沐优 KPI 识别符：卡顶一枚翡翠短横 + 墨色数字（不玩渐变字） */
.stat::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin: 0 auto 12px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.stat b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- 8. 能力卡片 ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.f-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 159, 110, .35);
}
.f-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.f-card h3 { font-size: 19px; }
.f-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.f-card .more { font-size: 14px; font-weight: 700; color: var(--brand); }
.f-card .more:hover { color: var(--brand-deep); }

/* ---------- 9. 信创徽章墙 ---------- */
.wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.wall-chip {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card-bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.wall-chip.hl {
  color: var(--brand);
  background: var(--brand-tint);
  border-color: rgba(14, 159, 110, .35);
  font-weight: 700;
}

/* ---------- 10. 四步快速开始 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(14, 159, 110, .35);
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 13.5px; }
.step code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  border-radius: 5px;
  padding: 1px 6px;
}
[data-theme="dark"] .step code { color: var(--brand); }

/* ---------- 11. 功能图文块（features 页） ---------- */
.feat-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.feat-block:last-of-type { border-bottom: none; }
.feat-block:nth-child(even) .feat-shot { order: -1; }
.feat-block.full { grid-template-columns: 1fr; gap: 28px; }

.feat-txt h2 { font-size: 27px; margin: 8px 0 14px; }
.feat-txt > p { color: var(--ink-soft); margin-bottom: 16px; }
.feat-txt ul { display: flex; flex-direction: column; gap: 9px; }
.feat-txt ul li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.feat-txt ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}
.feat-txt ul li b { color: var(--ink); }

.feat-shot .browser-frame { box-shadow: var(--shadow); }
.feat-shot .browser-frame + .browser-frame { margin-top: 20px; }

/* ---------- 12. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
}
.cmp-table, .db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
.cmp-table th, .cmp-table td,
.db-table th, .db-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.cmp-table thead th, .db-table thead th {
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.cmp-table tbody tr:last-child td, .db-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:nth-child(even), .db-table tbody tr:nth-child(even) { background: var(--bg-tint); }
.cmp-table td:first-child, .db-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.cmp-table .col-muopt {
  background: var(--brand-tint) !important;
  color: var(--brand-deep);
  font-weight: 700;
}
[data-theme="dark"] .cmp-table .col-muopt { color: var(--brand); }
.cmp-table thead .col-muopt { font-size: 14.5px; }

.db-table code, .cmp-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  border-radius: 5px;
  padding: 1px 6px;
}
[data-theme="dark"] .db-table code, [data-theme="dark"] .cmp-table code { color: var(--brand); }

/* 家族分组行 */
.db-table .group-row td {
  background: var(--bg-tint);
  font-weight: 700;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: .04em;
}

/* ---------- 13. 代码块（deploy 页） ---------- */
.code-block {
  background: #0c1f17;
  color: #d9ffe9;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.code-block .cmt { color: rgba(217, 255, 233, .45); }
.code-block b { color: #6ee7a8; font-weight: 600; }

/* ---------- 14. 下载卡 / 视频卡 ---------- */
.dl-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.dl-card h3 { font-size: 20px; }
.dl-card p { color: var(--ink-soft); font-size: 14px; }
.dl-card .alt-links { font-size: 13.5px; color: var(--ink-mute); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* 视频卡独占一行居中放宽：缩略图 16:9 撑满 880px，比塞在半栏里大气 */
.video-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.video-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-card .v-body { padding: 18px 24px; }
.video-card .v-body b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.video-card .v-body span { font-size: 13.5px; color: var(--ink-mute); }

/* ---------- 15. 时间线（changelog） ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), rgba(14, 159, 110, .15));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 40px 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.tl-ver {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tl-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 2px 12px;
}
.tl-body { margin-top: 12px; }
.tl-body li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 7px;
}
.tl-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}
.tl-body a { font-size: 13.5px; font-weight: 600; }

/* ---------- 16. FAQ 手风琴 ---------- */
/* faq-layout：列表吃满 wrap 剩余宽度，右侧联系卡固定栏 —— 内容区与导航同宽 */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.faq-layout .contact-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: rgba(14, 159, 110, .4); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  padding: 17px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.faq-q::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: transform .25s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a > div,
.faq-a > p {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.faq-a a { font-weight: 600; }
.faq-item.open .faq-a { max-height: 420px; }

/* ---------- 17. 联系卡片（about） ---------- */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .c-ico { font-size: 26px; }
.contact-card h3 { font-size: 14px; color: var(--ink-mute); font-weight: 600; }
.contact-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
  word-break: break-all;
}

/* ---------- 18. 出品工具卡 ---------- */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 159, 110, .35);
}
.tool-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}
.tool-card h3 { font-size: 17px; }
.tool-card p { color: var(--ink-soft); font-size: 13.5px; flex: 1; }

/* ---------- 19. 赞助（donate） ----------
   版式：赞助榜单是主体（左，吃满剩余宽度），收款码固定右栏；
   右栏宽 300px，二维码比 MuAsk 参照版再小一档。 */
.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.board-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.board-head h2 { font-size: 20px; margin-bottom: 6px; }
.board-head p { color: var(--ink-mute); font-size: 13.5px; margin-bottom: 18px; }
/* 无数据时容器保持 :empty，用伪元素补空态沙发位；
   JS 写入 innerHTML 后 :empty 自然失效，空态让位给真实名单。 */
.board:empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 260px;
}
.board:empty::before { content: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%230e9f6e'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%208h1a4%204%200%200%201%200%208h-1'/%3E%3Cpath%20d='M2%208h16v9a4%204%200%200%201-4%204H6a4%204%200%200%201-4-4V8z'/%3E%3Cline%20x1='6'%20y1='1'%20x2='6'%20y2='4'/%3E%3Cline%20x1='10'%20y1='1'%20x2='10'%20y2='4'/%3E%3Cline%20x1='14'%20y1='1'%20x2='14'%20y2='4'/%3E%3C/svg%3E"); width: 34px; height: 34px; }
.board:empty::after {
  content: "榜单还空着，等你来占沙发\A每一笔赞助都会在本页名单里公示昵称（不想露脸也可以备注「匿名」）。\A一分也是爱，所有支持都会化作持续更新的动力。";
  white-space: pre-line;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.9;
}
.pay-side { display: flex; flex-direction: column; gap: 14px; }

.pay-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pay-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card-bg);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 700;
  transition: all .18s ease;
}
.pay-tab:hover { color: var(--brand); border-color: var(--brand); }
.pay-tab.on {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(14, 159, 110, .3);
}
.pay-qr {
  max-width: 216px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}
.pay-qr img { width: 100%; border-radius: var(--radius-sm); }
.pay-tip { text-align: center; color: var(--ink-mute); font-size: 13px; line-height: 1.8; margin-top: 14px; }
/* 右栏内间距由 .pay-side 的 flex gap 统一给，margin 归零避免叠间距 */
.pay-side .pay-tip { margin-top: 0; }

/* 赞助名单 / 友链（footer 上方板块） */
.sponsor-grid, .friend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sponsor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.sponsor-chip .amt { color: var(--brand); font-size: 12px; font-weight: 700; }
.friend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px 6px 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: color .18s ease, border-color .18s ease;
}
.friend-chip:hover { color: var(--brand); border-color: var(--brand); }
.friend-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ---------- 19.5 CTA 收束带 ----------
   墨绿深底 + 等高线环：延伸「绿画框」与 hero 母题，
   不用亮品牌渐变，与四个姊妹站的 CTA 带拉开识别度 */
.cta {
  text-align: center;
  padding: 64px 34px;
  border-radius: 22px;
  background: linear-gradient(150deg, #08251a 0%, #0d3a2a 56%, #0a2e21 100%);
  color: #f2fff9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 16, 11, .35);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 132%, rgba(45, 212, 160, .10) 0 1px, transparent 1px 56px);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 280px at 50% -10%, rgba(45, 212, 160, .18), transparent 72%);
}
.cta > * { position: relative; }
.cta h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.01em; }
.cta p { margin: 0 auto 28px; max-width: 640px; color: rgba(232, 255, 244, .72); font-size: 15.5px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* 带内下载徽章反白：深绿底上要最高对比 */
.cta .dl-badge { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 32px rgba(0, 0, 0, .30); }
.cta .dl-badge:hover { background: #eafff5; color: var(--brand-deep); box-shadow: 0 14px 36px rgba(0, 0, 0, .34); }
.cta .dl-badge .dl-ver { color: #0b7d57; background: rgba(14, 159, 110, .14); }
.cta-ghost {
  background: rgba(255, 255, 255, .08); color: #eafff5;
  border: 1px solid rgba(255, 255, 255, .26);
}
.cta-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); }
[data-theme="dark"] .cta { background: linear-gradient(150deg, #04100b 0%, #0a271d 56%, #071b13 100%); }

/* ---------- 20. 页脚 ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 64px 0 0;
  margin-top: 40px;
}
.footer a { color: var(--footer-ink); font-size: 14px; }
.footer a:hover { color: #38ef7d; }

.foot-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.foot-brand .logo { color: #fff; margin-bottom: 12px; }
.foot-brand .logo b { color: #38ef7d; }
.foot-brand p { font-size: 13.5px; line-height: 1.8; opacity: .75; max-width: 300px; }
.foot-cols h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: .9;
}
.foot-links ul, .foot-contact ul { display: flex; flex-direction: column; gap: 9px; }
.foot-contact li { font-size: 13.5px; opacity: .8; }

.foot-bottom {
  border-top: 1px solid rgba(232, 255, 244, .12);
  padding: 20px 0 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 13px;
  opacity: .65;
}
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: #38ef7d; }

/* footer 内嵌赞助/友链板块（深色底上的变体） */
.footer .sponsor-grid, .footer .friend-grid { padding-bottom: 8px; }
.footer .sponsor-chip, .footer .friend-chip {
  background: rgba(232, 255, 244, .07);
  border-color: rgba(232, 255, 244, .14);
  color: #eafff4;
  box-shadow: none;
}
.footer .sponsor-chip .amt { color: #38ef7d; }
.footer .friend-chip:hover { color: #38ef7d; border-color: rgba(56, 239, 125, .5); }
.footer .sec-head { margin-bottom: 26px; }
.footer .sec-head h2 { color: #fff; font-size: 20px; }
.footer .sec-tag { color: #38ef7d; }
.footer .sec { padding: 48px 0 8px; }

/* ---------- 20b. 容器化部署卡片（deploy 页） ---------- */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.deploy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
}
.deploy-card h3 { font-size: 18px; }
.deploy-card p { color: var(--ink-soft); font-size: 13.5px; }
.deploy-card .code-block {
  font-size: 12.5px;
  line-height: 1.75;
  padding: 14px 16px;
  flex: 1;
}
.deploy-card .more { margin-top: auto; font-size: 13.5px; }
.deploy-note { color: var(--ink-mute) !important; font-size: 12.5px !important; }

/* ---------- 20c. 界面截图画廊（首页） ---------- */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.shot-item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.shot-item.wide { grid-column: span 3; }
.shot-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.shot-item:hover img { transform: scale(1.02); }
.shot-item .shot-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.shot-item .shot-cap b { color: var(--ink); font-weight: 600; }
.shot-item .shot-cap span { color: var(--brand); white-space: nowrap; font-size: 12.5px; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1024px) {
  .float-chip { display: none; }
  .hero-title { font-size: 52px; }
  .cards3, .grid3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .deploy-grid { grid-template-columns: 1fr; }
  .shot-item, .shot-item.wide { grid-column: span 3; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .feat-block { grid-template-columns: 1fr; gap: 28px; }
  .feat-block:nth-child(even) .feat-shot { order: 0; }
}

@media (max-width: 768px) {
  .sec { padding: 56px 0; }
  .cta { padding: 48px 22px; }
  .hero { padding: 56px 0 64px; }
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 18px; }
  .page-header { padding: 64px 0 44px; }
  .page-header h1 { font-size: 30px; }
  .sec-head h2 { font-size: 26px; }

  .nav-toggle { display: inline-flex; }
  /* nav-links 变 fixed 脱流后，靠 nav-right 的 auto 外边距把图标组顶到右端 */
  .nav-right { margin-left: auto; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .40);
    padding: 10px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }

  .cards3, .grid3, .grid2 { grid-template-columns: 1fr; }
  .shot-gallery { grid-template-columns: 1fr; }
  .shot-item, .shot-item.wide { grid-column: auto; }
  .faq-layout, .donate-layout { grid-template-columns: 1fr; }
  .faq-layout .contact-card { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn, .hero-cta .dl-badge { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-title { font-size: 34px; }
  .stat b { font-size: 27px; }
  .dl-card { padding: 24px 18px; }
}

/* ---------- 22. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── 正文内联 SVG 图标（emoji 退役）── */
.f-ico svg, .tool-ico svg { width: 23px; height: 23px; }
.contact-card .c-ico svg { width: 25px; height: 25px; }
.f-ico, .tool-ico, .contact-card .c-ico { color: var(--brand); }

/* ── 更新日志：版本目录侧栏（≥1200px 浮卡显示，窄屏隐藏）── */
[data-cl-ver] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc-toc { display: none; }
.toc-group + .toc-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.toc-group-t { padding: 0 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-mute); }
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-mute); text-decoration: none; transition: color .15s, background .15s; }
.toc-list a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.toc-list a.on { color: var(--brand); font-weight: 600; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.toc-more { margin: 8px 8px 2px; padding: 7px 10px; width: calc(100% - 16px); border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 12.5px; cursor: pointer; }
.toc-more:hover { border-color: var(--brand); color: var(--brand); }
@media (min-width: 1200px) {
  body.has-toc .doc-toc {
    display: block; position: fixed; top: calc(var(--nav-h) + 20px);
    max-height: calc(100vh - var(--nav-h) - 40px);
    left: calc((100vw - 1120px) / 2 + 24px);
    width: 208px; z-index: 60; background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px 10px; overflow-y: auto;
  }
  body.has-toc main .wrap { padding-left: 256px; }
}
