/* ==========================================================================
   Ai智改工坊 官网 · 共享样式表
   暗黑科技风 / 玻璃质感 / 动效
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 底色 */
  --bg-0: #04050d;
  --bg-1: #070a18;
  --bg-2: #0a0f24;

  /* 面板 */
  --panel: rgba(15, 21, 44, 0.58);
  --panel-solid: #0d1329;
  --panel-hi: rgba(28, 38, 74, 0.72);

  /* 描边 */
  --line: rgba(122, 160, 255, 0.14);
  --line-2: rgba(140, 180, 255, 0.28);
  --line-3: rgba(160, 200, 255, 0.45);

  /* 文本 */
  --txt: #e9eeff;
  --txt-2: #a8b4d8;
  --txt-3: #6d7899;
  --txt-4: #4b5474;

  /* AI 版主色：青 → 紫 → 品红 */
  --ai-1: #22d3ee;
  --ai-2: #5b8cff;
  --ai-3: #a855f7;
  --ai-4: #f472b6;
  --ai-glow: rgba(91, 140, 255, 0.45);

  /* 手改版主色：琥珀 → 橙 → 玫红 */
  --mn-1: #fbbf24;
  --mn-2: #fb923c;
  --mn-3: #f43f5e;
  --mn-glow: rgba(251, 146, 60, 0.42);

  /* 语义 */
  --ok: #34d399;
  --warn: #fbbf24;

  /* 布局 */
  --wrap: 1240px;
  --nav-h: 68px;
  --radius: 18px;
  --radius-lg: 26px;

  /* 字体 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }

::selection { background: rgba(91, 140, 255, 0.42); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06080f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a3a6b, #1b2547);
  border-radius: 8px;
  border: 2px solid #06080f;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3c5599, #26336a); }

/* ---------- 3. 背景层：星空 / 极光 / 网格 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.85; }

.bg-grid {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
  animation: gridDrift 26s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 64px 0; }
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
}

.aurora span:nth-child(1) {
  width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 68%);
  animation: floatA 22s var(--ease-2) infinite alternate;
}
.aurora span:nth-child(2) {
  width: 52vw; height: 52vw; right: -16vw; top: 4vh;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 68%);
  animation: floatB 28s var(--ease-2) infinite alternate;
}
.aurora span:nth-child(3) {
  width: 40vw; height: 40vw; left: 28vw; top: 58vh;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.32), transparent 68%);
  animation: floatC 24s var(--ease-2) infinite alternate;
}

@keyframes floatA { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes floatB { to { transform: translate3d(-9vw, 10vh, 0) scale(0.9); } }
@keyframes floatC { to { transform: translate3d(5vw, -8vh, 0) scale(1.2); } }

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. 通用容器 / 排版 ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.page { position: relative; z-index: 2; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ai-1);
  font-family: var(--mono);
}

.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ai-1));
}

.sec-head { max-width: 820px; margin-bottom: 52px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

.sec-title {
  font-size: clamp(28px, 4.4vw, 46px);
  margin: 16px 0 16px;
  letter-spacing: -0.02em;
}

/* 单行大标题：不给换行，字号按可用宽度回推。
   中文全角字符在 em 单位下正好 1em，所以 N 个字 ≈ N em —— 这里按 19 字算。
   用 100vw - 60px 而不是 -40px，是给滚动条和两侧留余量，免得差几像素又折行。 */
.sec-title--nowrap {
  white-space: nowrap;
  font-size: clamp(14px, calc((100vw - 60px) / 19), 46px);
}

/* 装单行标题的容器要放宽，免得文字溢出容器盒子 */
.sec-head--wide { max-width: 960px; }

.sec-sub { color: var(--txt-2); font-size: 16.5px; }

.grad-ai {
  background: linear-gradient(100deg, var(--ai-1) 0%, var(--ai-2) 34%, var(--ai-3) 68%, var(--ai-4) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite;
}

.grad-mn {
  background: linear-gradient(100deg, var(--mn-1) 0%, var(--mn-2) 50%, var(--mn-3) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- 5. 顶部进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-4));
  box-shadow: 0 0 14px rgba(91, 140, 255, 0.8);
  transition: width 0.1s linear;
}

/* ---------- 6. 导航栏 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: height 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  height: 60px;
  background: rgba(5, 7, 16, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand__mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  position: relative;
  background: linear-gradient(140deg, #0d1730, #131c3d);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 22px rgba(91, 140, 255, 0.32), inset 0 0 14px rgba(91, 140, 255, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand__mark svg { width: 21px; height: 21px; }

.brand__mark::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(34, 211, 238, 0.85) 74%, transparent 86%);
  animation: spin 4.6s linear infinite;
  opacity: 0.85;
}

.brand__mark > * { position: relative; z-index: 1; }

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

.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 16.5px; font-weight: 800; letter-spacing: 0.01em; }
.brand__tag {
  font-size: 10.5px;
  color: var(--txt-3);
  letter-spacing: 0.14em;
  font-family: var(--mono);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  flex: 1;
  min-width: 0;
}

.nav__link {
  position: relative;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--txt-2);
  transition: color 0.22s, background 0.22s;
  white-space: nowrap;
}

.nav__link:hover { color: var(--txt); background: rgba(122, 160, 255, 0.09); }

.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ai-1), var(--ai-3));
  box-shadow: 0 0 10px var(--ai-1);
}

.nav__link .ext {
  font-size: 10px;
  margin-left: 4px;
  color: var(--txt-4);
  vertical-align: super;
}

.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(16, 22, 44, 0.7);
  place-items: center;
}

.nav__burger span {
  display: block;
  width: 17px; height: 1.6px;
  background: var(--txt);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 1.6px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__burger span::before { top: -5.5px; }
.nav__burger span::after { top: 5.5px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 7. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.985); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn--ai {
  color: #031018;
  background: linear-gradient(100deg, var(--ai-1), var(--ai-2) 46%, var(--ai-3) 100%);
  box-shadow: 0 10px 32px -10px var(--ai-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--ai:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(91, 140, 255, 0.75); }

.btn--mn {
  color: #1c0f03;
  background: linear-gradient(100deg, var(--mn-1), var(--mn-2) 52%, var(--mn-3) 100%);
  box-shadow: 0 10px 32px -10px var(--mn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--mn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(251, 146, 60, 0.72); }

.btn--ghost {
  color: var(--txt);
  border: 1px solid var(--line-2);
  background: rgba(122, 160, 255, 0.06);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--line-3);
  background: rgba(122, 160, 255, 0.13);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.btn--lg { padding: 17px 34px; font-size: 16.5px; border-radius: 15px; }
.btn--block { width: 100%; }

/* 微光扫过 */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.42) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }

/* ---------- 8. 玻璃卡片 ---------- */
.glass {
  position: relative;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  overflow: hidden;
}

.glass--spot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(122, 170, 255, 0.15), transparent 62%);
}
.glass--spot:hover::before { opacity: 1; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 76px) 0 72px;
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(13, 19, 41, 0.7);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: var(--txt-2);
  font-weight: 600;
}

.hero__badge b { color: var(--txt); font-weight: 700; }

.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 11px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 50px;
  align-items: center;
}

/* 主标题两行由 <br> 控制，这里再禁掉自动折行。
   字号上限 54px 是按「第二行 13 个字 + letter-spacing -0.03em ≈ 12.61em」
   和文字列宽反推的：太大会在 1120~1300px 这段把末尾几个字挤到第三行。 */
.hero h1 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.12;
  margin: 22px 0 20px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* 窄到这个程度，一行实在放不下 13 个字了，放开让它自然折行，
   硬撑 nowrap 只会把末尾的字裁掉。 */
@media (max-width: 400px) {
  .hero h1 { white-space: normal; }
}

.hero__lead {
  font-size: 17.5px;
  color: var(--txt-2);
  max-width: 620px;
}

.hero__lead b { color: var(--txt); font-weight: 700; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--txt-3);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--ai-1); }

/* 语音波形 */
.voice {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  vertical-align: -3px;
  margin: 0 5px;
}
.voice i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ai-1), var(--ai-3));
  animation: voiceBar 1.05s var(--ease-2) infinite alternate;
}
.voice i:nth-child(1) { height: 35%; animation-delay: 0s; }
.voice i:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.voice i:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.voice i:nth-child(4) { height: 55%; animation-delay: 0.36s; }
.voice i:nth-child(5) { height: 85%; animation-delay: 0.48s; }
.voice i:nth-child(6) { height: 40%; animation-delay: 0.6s; }

@keyframes voiceBar { from { transform: scaleY(0.32); } to { transform: scaleY(1); } }

/* Hero 右侧可视化 */
.viz {
  position: relative;
  aspect-ratio: 1 / 0.92;
  display: grid;
  place-items: center;
}

.viz__rings { position: absolute; inset: 0; display: grid; place-items: center; }

.viz__rings i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(122, 170, 255, 0.2);
  animation: ringPulse 5.2s var(--ease-2) infinite;
}
.viz__rings i:nth-child(1) { width: 42%; height: 42%; animation-delay: 0s; border-color: rgba(34, 211, 238, 0.32); }
.viz__rings i:nth-child(2) { width: 62%; height: 62%; animation-delay: 1.3s; }
.viz__rings i:nth-child(3) { width: 82%; height: 82%; animation-delay: 2.6s; }
.viz__rings i:nth-child(4) { width: 100%; height: 100%; animation-delay: 3.9s; }

@keyframes ringPulse {
  0% { transform: scale(0.86); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: scale(1.06); opacity: 0; }
}

.viz__core {
  position: relative;
  z-index: 2;
  width: 66%;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 26, 54, 0.94), rgba(10, 15, 34, 0.94));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 50px -18px var(--ai-glow);
  backdrop-filter: blur(14px);
}

.viz__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.viz__bar u {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #33406b;
  text-decoration: none;
}
.viz__bar u:nth-child(1) { background: #ff5f57; }
.viz__bar u:nth-child(2) { background: #febc2e; }
.viz__bar u:nth-child(3) { background: #28c840; }
.viz__bar b {
  margin-left: auto;
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--txt-3);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.viz__chat { display: flex; flex-direction: column; gap: 11px; }

.bubble {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12.8px;
  line-height: 1.6;
}

.bubble--me {
  align-self: flex-end;
  max-width: 92%;
  color: #04141b;
  background: linear-gradient(100deg, var(--ai-1), var(--ai-2));
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.bubble--ai {
  align-self: flex-start;
  max-width: 96%;
  color: var(--txt-2);
  background: rgba(122, 160, 255, 0.08);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  font-family: var(--mono);
  font-size: 11.8px;
}

.bubble--ai .ok { color: var(--ok); }

.viz__typing { display: inline-flex; gap: 4px; align-items: center; height: 12px; }
.viz__typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ai-1);
  animation: dot 1.3s infinite;
}
.viz__typing i:nth-child(2) { animation-delay: 0.18s; }
.viz__typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* 悬浮小标签 */
.chip-float {
  position: absolute;
  z-index: 3;
  padding: 8px 13px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  background: rgba(11, 17, 37, 0.92);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
  animation: bob 5.4s var(--ease-2) infinite alternate;
  white-space: nowrap;
}
.chip-float.a { top: 12%; left: -2%; color: var(--ai-1); animation-delay: 0s; }
.chip-float.b { top: 46%; right: -1%; color: var(--ai-3); animation-delay: 1.1s; }
.chip-float.c { bottom: 10%; left: 6%; color: var(--ok); animation-delay: 2.2s; }

@keyframes bob { to { transform: translateY(-13px); } }

/* ---------- 10. 双版本下载 ---------- */
.ver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.ver {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(19, 26, 52, 0.82), rgba(8, 11, 26, 0.86));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.ver::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--ver-a, var(--ai-1)), transparent 42%, transparent 58%, var(--ver-b, var(--ai-3)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.45s;
  pointer-events: none;
}

.ver::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  top: -150px; right: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ver-a, #22d3ee), transparent 68%);
  opacity: 0.16;
  filter: blur(50px);
  pointer-events: none;
  transition: opacity 0.45s;
}

.ver:hover {
  transform: translateY(-8px);
  border-color: var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 60px -26px var(--ver-glow, var(--ai-glow));
}
.ver:hover::before { opacity: 1; }
.ver:hover::after { opacity: 0.3; }

.ver--ai { --ver-a: var(--ai-1); --ver-b: var(--ai-3); --ver-glow: var(--ai-glow); }
.ver--mn { --ver-a: var(--mn-1); --ver-b: var(--mn-3); --ver-glow: var(--mn-glow); }

.ver__flags {
  position: absolute;
  top: 20px; right: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.flag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.flag--hot {
  color: #04141b;
  background: linear-gradient(100deg, var(--ai-1), var(--ai-3));
  box-shadow: 0 8px 22px -10px var(--ai-glow);
}
.flag--classic {
  color: #1c0f03;
  background: linear-gradient(100deg, var(--mn-1), var(--mn-3));
}

.ver__head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; position: relative; z-index: 2; }

.ver__icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(8, 12, 28, 0.85);
  box-shadow: inset 0 0 20px rgba(122, 170, 255, 0.1);
}
.ver__icon svg { width: 28px; height: 28px; }
.ver--ai .ver__icon { color: var(--ai-1); box-shadow: 0 0 30px -12px var(--ai-glow), inset 0 0 20px rgba(34, 211, 238, 0.14); }
.ver--mn .ver__icon { color: var(--mn-1); box-shadow: 0 0 30px -12px var(--mn-glow), inset 0 0 20px rgba(251, 191, 36, 0.14); }

.ver__title { font-size: 24px; letter-spacing: -0.015em; }
.ver__sub {
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-top: 3px;
}

.ver__slogan {
  position: relative;
  z-index: 2;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.ver--mn .ver__slogan { font-size: 18px; }

.ver__desc {
  position: relative;
  z-index: 2;
  color: var(--txt-2);
  font-size: 14.6px;
  min-height: 5.2em;
  margin-bottom: 20px;
}

.ver__specs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(6, 9, 22, 0.6);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.ver__specs div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ver__specs dt { color: var(--txt-3); }
.ver__specs dd { margin: 0; font-weight: 700; font-family: var(--mono); font-size: 12.5px; }

.ver__list { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }

.ver__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.4px;
  color: var(--txt-2);
  line-height: 1.6;
}

.ver__list li b { color: var(--txt); font-weight: 700; }

.tick {
  width: 19px; height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}
.ver--ai .tick { color: var(--ai-1); background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.3); }
.ver--mn .tick { color: var(--mn-1); background: rgba(251, 191, 36, 0.14); border: 1px solid rgba(251, 191, 36, 0.3); }

.ver__foot { position: relative; z-index: 2; margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.ver__note { font-size: 12.3px; color: var(--txt-3); text-align: center; }
.ver__note a { color: var(--txt-2); text-decoration: underline; text-underline-offset: 3px; }
.ver__note a:hover { color: var(--ai-1); }

.ver__alt {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--txt-3);
}
.ver__alt a { color: var(--txt-2); }
.ver__alt a:hover { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 11. 差异对比条 ---------- */
.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: rgba(9, 13, 30, 0.7);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.vs__side { display: flex; flex-direction: column; gap: 3px; }
.vs__side--r { text-align: right; }
.vs__side b { font-size: 16px; }
.vs__side span { font-size: 13.5px; color: var(--txt-3); }

.vs__mid {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--txt-3);
  border: 1px solid var(--line-2);
  background: rgba(6, 9, 22, 0.9);
}

/* ---------- 12. 对比表 ---------- */
.cmp-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(9, 13, 30, 0.62);
  overflow: hidden;
}

.cmp-scroll { overflow-x: auto; }

table.cmp {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14.6px;
}

table.cmp th,
table.cmp td {
  padding: 17px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.cmp thead th {
  font-size: 14px;
  letter-spacing: 0.02em;
  background: rgba(6, 9, 22, 0.85);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line-2);
}

table.cmp thead th:nth-child(1) { width: 19%; color: var(--txt-3); font-weight: 600; }
table.cmp thead th:nth-child(2) { width: 40.5%; color: var(--ai-1); }
table.cmp thead th:nth-child(3) { width: 40.5%; color: var(--mn-1); }

table.cmp tbody tr { transition: background 0.22s; }
table.cmp tbody tr:hover { background: rgba(122, 160, 255, 0.05); }
table.cmp tbody tr:last-child td { border-bottom: 0; }

table.cmp td:first-child { color: var(--txt-3); font-weight: 600; font-size: 14px; }
table.cmp td:nth-child(2) { color: var(--txt); }
table.cmp td:nth-child(3) { color: var(--txt-2); }

table.cmp td .k { color: var(--ai-1); font-weight: 700; }
table.cmp td .k-mn { color: var(--mn-1); font-weight: 700; }

table.cmp td .muted { color: var(--txt-3); }

/* ---------- 13. 流程 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.flow::before {
  content: "";
  position: absolute;
  top: 41px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
}

.step {
  position: relative;
  z-index: 2;
  padding: 0 6px;
  text-align: center;
}

.step__num {
  width: 46px; height: 46px;
  margin: 0 auto 18px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--ai-1);
  background: linear-gradient(160deg, #101a36, #080c20);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 6px rgba(5, 8, 20, 0.9), 0 0 26px -12px var(--ai-glow);
  transition: transform 0.4s var(--ease), color 0.4s, box-shadow 0.4s;
}

.step:hover .step__num {
  transform: translateY(-5px) scale(1.06);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(5, 8, 20, 0.9), 0 0 38px -8px var(--ai-glow);
}

.step h4 { font-size: 16px; margin-bottom: 9px; }
.step p { font-size: 13.6px; color: var(--txt-3); line-height: 1.65; }

/* ---------- 14. 功能网格 ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.feat {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: rgba(13, 18, 40, 0.58);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}

.feat:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: rgba(18, 25, 52, 0.72);
}

.feat__ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  color: var(--ai-1);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.22);
  transition: transform 0.4s var(--ease);
}
.feat:hover .feat__ico { transform: scale(1.08) rotate(-4deg); }
.feat__ico svg { width: 21px; height: 21px; }

.feat h3 { font-size: 16.5px; margin-bottom: 9px; }
.feat p { font-size: 14px; color: var(--txt-3); line-height: 1.7; }
.feat p b { color: var(--txt-2); font-weight: 700; }

.feat__tag {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--txt-4);
}

/* 主题变体 */
.feat--mn .feat__ico { color: var(--mn-1); background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.22); }

/* ---------- 15. 话术库分类 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.cat {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 22, 46, 0.78), rgba(8, 11, 26, 0.7));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.42s var(--ease), border-color 0.42s;
}

.cat:hover { transform: translateY(-5px); border-color: var(--line-2); }

.cat__top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 13px; }

.cat__idx {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--ai-1);
  letter-spacing: 0.08em;
}

.cat h3 { font-size: 18px; }

.cat__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--txt-3);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 9, 22, 0.6);
}

.cat p { font-size: 13.6px; color: var(--txt-3); line-height: 1.78; }

.cat__bar {
  margin-top: 16px;
  height: 3px;
  border-radius: 3px;
  background: rgba(122, 160, 255, 0.1);
  overflow: hidden;
}

.cat__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ai-1), var(--ai-3));
  transition: width 1.4s var(--ease);
}
.cat.is-in .cat__bar i { width: 100%; }

/* ---------- 16. 统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat {
  padding: 30px 22px;
  text-align: center;
  background: rgba(8, 11, 26, 0.88);
  transition: background 0.35s;
}
.stat:hover { background: rgba(15, 21, 44, 0.9); }

.stat__num {
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat__unit { font-size: 0.5em; font-weight: 700; margin-left: 3px; color: var(--txt-3); }
.stat__label { margin-top: 8px; font-size: 13.6px; color: var(--txt-3); }

/* ---------- 17. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 940px; margin-inline: auto; }

.qa {
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(11, 16, 36, 0.6);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.qa:hover { border-color: var(--line-2); }
.qa.is-open { border-color: var(--line-2); background: rgba(16, 22, 47, 0.72); }

.qa__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 22px;
  text-align: left;
  font-size: 15.6px;
  font-weight: 700;
}

.qa__q i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  color: var(--ai-1);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  transition: transform 0.32s var(--ease);
}
.qa.is-open .qa__q i { transform: rotate(45deg); }

.qa__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}
.qa__a > div {
  padding: 0 22px 20px 58px;
  font-size: 14.4px;
  color: var(--txt-2);
  line-height: 1.8;
}
.qa__a b { color: var(--txt); }
.qa__a .warn { color: var(--warn); font-weight: 700; }

/* ---------- 18. CTA ---------- */
.cta {
  position: relative;
  padding: 62px 44px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(91, 140, 255, 0.2), transparent 70%),
    linear-gradient(170deg, rgba(17, 24, 51, 0.9), rgba(7, 10, 24, 0.94));
  border: 1px solid var(--line-2);
  overflow: hidden;
}

.cta h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 16px; }
.cta p { color: var(--txt-2); max-width: 640px; margin: 0 auto 34px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta__fine { margin-top: 22px; font-size: 12.6px; color: var(--txt-3); }

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 160, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}

.cta > * { position: relative; z-index: 2; }

/* ---------- 19. 页脚 ---------- */
.foot {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 9, 21, 0.6), rgba(3, 4, 11, 0.96));
  padding: 62px 0 34px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.foot h4 {
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.foot h4::before {
  content: "";
  width: 3px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ai-1), var(--ai-3));
}

.foot p, .foot li { font-size: 13.8px; color: var(--txt-3); line-height: 1.85; }
.foot a { color: var(--txt-2); transition: color 0.2s; }
.foot a:hover { color: var(--ai-1); }

.foot__about p + p { margin-top: 12px; }

.foot__contact { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.foot__contact div { font-size: 13.4px; color: var(--txt-3); }
.foot__contact b { color: var(--txt-2); font-weight: 600; }

.foot__links { display: flex; flex-direction: column; gap: 11px; }

.foot__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.8px;
}
.foot__links a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--txt-4);
  transition: background 0.25s, box-shadow 0.25s;
}
.foot__links a:hover::before { background: var(--ai-1); box-shadow: 0 0 9px var(--ai-1); }

.foot__legal {
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13.2px;
  color: var(--txt-3);
}
.foot__legal .sep { color: var(--txt-4); }

.foot__disc {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 13px;
  background: rgba(251, 191, 36, 0.055);
  border: 1px solid rgba(251, 191, 36, 0.18);
  font-size: 13.2px;
  color: var(--txt-2);
  line-height: 1.8;
}
.foot__disc strong { color: var(--warn); }

.foot__bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.8px;
  color: var(--txt-4);
}

.foot__bottom .links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- 20. 滚动入场 ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.rv.is-in { opacity: 1; transform: none; }

.rv--d1 { transition-delay: 0.07s; }
.rv--d2 { transition-delay: 0.14s; }
.rv--d3 { transition-delay: 0.21s; }
.rv--d4 { transition-delay: 0.28s; }
.rv--d5 { transition-delay: 0.35s; }

/* ---------- 21. 文档页（介绍长文） ---------- */
.doc-hero {
  position: relative;
  padding: calc(var(--nav-h) + 62px) 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 20% 0%, var(--doc-glow, rgba(91, 140, 255, 0.2)), transparent 70%);
  pointer-events: none;
}

.doc-hero > .wrap { position: relative; z-index: 2; }

.crumb { font-size: 13.4px; color: var(--txt-3); margin-bottom: 20px; }
.crumb a:hover { color: var(--ai-1); }
.crumb span { margin: 0 8px; color: var(--txt-4); }

.doc-hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.doc-hero__lead { font-size: 17.5px; color: var(--txt-2); max-width: 780px; }

.doc-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.tag {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-2);
  border: 1px solid var(--line-2);
  background: rgba(13, 19, 41, 0.66);
}

.doc-hero__bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 34px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.doc-hero__bar div {
  padding: 14px 18px;
  background: rgba(8, 11, 26, 0.85);
}
.doc-hero__bar dt { font-size: 12px; color: var(--txt-4); font-family: var(--mono); letter-spacing: 0.06em; }
.doc-hero__bar dd { margin: 5px 0 0; font-size: 15px; font-weight: 700; font-family: var(--mono); }

.doc { padding: 72px 0 40px; }

.doc__body { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 52px; align-items: start; }

.prose { max-width: 100%; }

.prose h2 {
  font-size: 27px;
  margin: 54px 0 20px;
  padding-left: 18px;
  position: relative;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.16em; bottom: 0.16em;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--doc-accent, var(--ai-1)), var(--doc-accent2, var(--ai-3)));
  box-shadow: 0 0 18px -3px var(--doc-glow, var(--ai-glow));
}

.prose h3 { font-size: 19px; margin: 32px 0 14px; color: var(--txt); }

.prose p { color: var(--txt-2); margin-bottom: 17px; font-size: 15.6px; line-height: 1.92; }
.prose p b, .prose li b { color: var(--txt); font-weight: 700; }
.prose strong { color: var(--txt); }

.prose ul, .prose ol { display: flex; flex-direction: column; gap: 12px; margin: 0 0 22px; }

.prose ul li, .prose ol li {
  position: relative;
  padding-left: 26px;
  color: var(--txt-2);
  font-size: 15.4px;
  line-height: 1.86;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.72em;
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--doc-accent, var(--ai-1));
  box-shadow: 0 0 10px -1px var(--doc-glow, var(--ai-glow));
}

.prose ol { counter-reset: n; }
.prose ol li { padding-left: 34px; counter-increment: n; }
.prose ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.15em;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--doc-accent, var(--ai-1));
}

.prose blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-radius: 14px;
  border-left: 3px solid var(--doc-accent, var(--ai-1));
  background: rgba(13, 19, 41, 0.62);
  color: var(--txt-2);
  font-size: 14.8px;
  line-height: 1.85;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose .hl {
  color: var(--txt);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 62%, rgba(91, 140, 255, 0.28) 62%);
  padding: 0 2px;
}

.prose .hl-mn {
  color: var(--txt);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 62%, rgba(251, 146, 60, 0.28) 62%);
  padding: 0 2px;
}

/* 卡片组 */
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 26px 0; }

.card-sm {
  padding: 22px;
  border-radius: 15px;
  background: rgba(13, 19, 41, 0.6);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.card-sm:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-sm h4 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.card-sm h4 em {
  font-style: normal;
  width: 26px; height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--doc-accent, var(--ai-1));
  background: rgba(122, 170, 255, 0.1);
  border: 1px solid var(--line-2);
}
.card-sm p { font-size: 14px; color: var(--txt-3); margin: 0; line-height: 1.75; }

/* 表格 */
.tbl-wrap {
  border-radius: 15px;
  border: 1px solid var(--line);
  overflow-x: auto;
  margin: 26px 0;
  background: rgba(9, 13, 30, 0.6);
}
table.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.4px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl thead th {
  background: rgba(6, 9, 22, 0.85);
  font-size: 13.6px;
  color: var(--doc-accent, var(--ai-1));
  letter-spacing: 0.02em;
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: rgba(122, 160, 255, 0.05); }
table.tbl td:first-child { color: var(--txt); font-weight: 600; }
table.tbl td { color: var(--txt-2); }
table.tbl code {
  font-family: var(--mono);
  font-size: 12.6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(122, 170, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--ai-1);
}

/* 侧边目录 */
/* 吸顶侧栏：内容比屏幕高时自身滚动，否则下方卡片会被顶出屏幕、点不到 */
.side {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - var(--nav-h) - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.side > * { flex-shrink: 0; }

.side__box {
  padding: 22px;
  border-radius: 15px;
  background: rgba(11, 16, 36, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.side__box h5 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-4);
  margin: 0 0 16px;
  font-weight: 700;
}

.toc { display: flex; flex-direction: column; gap: 3px; }

.toc a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--txt-3);
  border-left: 2px solid transparent;
  transition: all 0.24s;
}
.toc a:hover { color: var(--txt); background: rgba(122, 160, 255, 0.07); }
.toc a.is-active {
  color: var(--txt);
  background: rgba(122, 160, 255, 0.1);
  border-left-color: var(--doc-accent, var(--ai-1));
}

.side__dl { display: flex; flex-direction: column; gap: 10px; }
.side__dl .btn { width: 100%; }

.side__note { font-size: 12.4px; color: var(--txt-4); line-height: 1.7; text-align: center; }

/* 高亮区块 */
.callout {
  margin: 30px 0;
  padding: 26px 28px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 130% at 0% 0%, var(--doc-glow, rgba(91, 140, 255, 0.16)), transparent 68%),
    rgba(13, 19, 41, 0.68);
  border: 1px solid var(--line-2);
}

.callout h4 { font-size: 17px; margin-bottom: 12px; }
.callout p { margin: 0; font-size: 14.8px; color: var(--txt-2); }
.callout p + p { margin-top: 12px; }

/* 口号大字 */
.slogan-band {
  margin: 40px 0;
  padding: 38px 34px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--line-2);
  background: linear-gradient(165deg, rgba(17, 24, 51, 0.85), rgba(7, 10, 24, 0.9));
}

.slogan-band p {
  font-size: clamp(21px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.4;
}

.slogan-band small { display: block; margin-top: 14px; font-size: 14px; color: var(--txt-3); font-weight: 500; }

/* 页面切换动效（跨页淡入） */
body { animation: pageIn 0.6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* 只淡出、不加 transform：body 一旦有 transform，里面 position:fixed 的
   导航和背景画布会改成相对 body 定位，切页瞬间会跳位。 */
.page-leave { animation: pageOut 0.26s var(--ease-2) forwards; }
@keyframes pageOut { to { opacity: 0; } }

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1120px) {
  .hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .viz { max-width: 520px; margin-inline: auto; }
  /* minmax(0,1fr) 而不是 1fr：文章正文里的宽表格会把 1fr 的 min-content 顶开，
     窄屏下整页会多出一截横向滚动 */
  .doc__body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side { position: static; max-height: none; overflow: visible; }
  .flow { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .flow::before { display: none; }
}

@media (max-width: 1080px) {
  .ver-grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .foot__about { grid-column: 1 / -1; }

  /* 移动端导航常驻底色，收起/展开面板都对齐到 60px 这条线 */
  .nav {
    height: 60px;
    background: rgba(5, 7, 16, 0.88);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--line);
  }
  .nav.is-stuck { height: 60px; }

  .nav__links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: rgba(5, 7, 16, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-2);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 14px 16px; font-size: 16px; }
  .nav__link.is-active::after { display: none; }
  .nav__burger { display: grid; }
  .nav__actions .btn { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .vs { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .vs__side--r { text-align: center; }
  .vs__mid { margin-inline: auto; }
  .cta { padding: 46px 24px; }
  .foot { padding-top: 46px; }
  .foot__grid { grid-template-columns: 1fr; gap: 30px; }
  .ver { padding: 28px 22px 26px; }
  .ver__specs { grid-template-columns: 1fr; }
  .ver__desc { min-height: 0; }
  .chip-float { display: none; }
  .doc-hero { padding-top: calc(var(--nav-h) + 40px); }
  .prose h2 { font-size: 23px; }
  table.cmp th, table.cmp td { padding: 14px 16px; }
}

@media (max-width: 520px) {
  body { font-size: 15.4px; }
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .brand__tag { display: none; }
  .stat { padding: 22px 14px; }
}

/* ---------- 23. 无障碍 / 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  #stars, .aurora, .bg-grid, .noise { display: none; }
}

:focus-visible {
  outline: 2px solid var(--ai-1);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ai-1);
  color: #04141b;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

/* 打印 */
@media print {
  #stars, .aurora, .bg-grid, .noise, .nav, .scroll-progress { display: none !important; }
  body { background: #fff; color: #111; }
}

/* ==========================================================================
   24. 通用小件（图标 / 屏幕阅读器专用文本 / 提示条）
   ========================================================================== */

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 图标：线条跟随 currentColor，配合 <use> 引用 <symbol> */
.ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 200;
  max-width: calc(100% - 40px);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--txt);
  background: rgba(12, 18, 40, 0.95);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   25. 内容列表页（list.aspx）
   ========================================================================== */

.list-hero { --doc-glow: rgba(34, 211, 238, 0.2); }

.list-hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.list-hero__bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--txt-2);
  border: 1px solid var(--line-2);
  background: rgba(13, 19, 41, 0.66);
}
.chip b { color: var(--ai-1); font-family: var(--mono); font-size: 15px; }
.chip .ico { color: var(--ai-1); }
.chip--ghost { border-color: var(--line); color: var(--txt-3); }

/* ---------- 列表 ---------- */
.list-body { padding-top: 56px; }

.al { display: flex; flex-direction: column; gap: 14px; }

.al__item { position: relative; }

.al__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 26px;
  padding: 22px 24px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 22, 46, 0.72), rgba(8, 11, 26, 0.66));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.38s var(--ease), border-color 0.38s, box-shadow 0.38s;
}

/* 左侧能源条 */
.al__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ai-1), var(--ai-3));
  opacity: 0.45;
  transition: opacity 0.38s;
}

.al__card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.95), 0 0 44px -26px var(--ai-glow);
}
.al__card:hover::before { opacity: 1; }

.al__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 16px;
  min-width: 0;
}

.al__idx {
  grid-row: span 2;
  padding: 5px 8px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--txt-4);
  border: 1px solid var(--line);
  background: rgba(6, 9, 22, 0.6);
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.al__card:hover .al__idx {
  color: var(--ai-1);
  border-color: var(--line-2);
  box-shadow: 0 0 20px -8px var(--ai-glow);
}

.al__title {
  font-size: 17.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color 0.28s;
}
.al__card:hover .al__title { color: #fff; }

.al__intro {
  grid-column: 2;
  margin-top: 6px;
  font-size: 14.2px;
  line-height: 1.7;
  color: var(--txt-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--txt-3);
}

.al__time, .al__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12.6px;
}
.al__stat em { font-style: normal; }

.al__act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12.6px;
  color: var(--txt-3);
  border: 1px solid var(--line);
  background: rgba(10, 14, 32, 0.7);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.al__act label, .al__act span { cursor: inherit; font-family: inherit; }
.al__act:hover {
  color: var(--ai-1);
  border-color: var(--line-2);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}
.al__act[disabled], .al__act.is-on {
  cursor: default;
  color: var(--ai-1);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.1);
}

.al__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 13.4px;
  font-weight: 700;
  color: var(--ai-1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.07);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}
.al__go:hover {
  color: #04141b;
  border-color: transparent;
  background: linear-gradient(100deg, var(--ai-1), var(--ai-2));
  transform: translateY(-2px);
}
.al__go .ico { width: 14px; height: 14px; }

/* 空状态（ShowText） */
.empty {
  display: none;
  padding: 46px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--txt-3);
  border-radius: var(--radius);
  border: 1px dashed var(--line-2);
  background: rgba(9, 13, 30, 0.5);
}

/* ---------- 分页（AspNetPager 输出 ul/li） ---------- */
.pager { margin-top: 36px; }
.pager ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pager li { display: block; }
.pager ul > li > a,
.pager ul > li > span,
.pager .is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 13.4px;
  font-weight: 700;
  color: var(--txt-2);
  border: 1px solid var(--line);
  background: rgba(11, 16, 36, 0.62);
  transition: color 0.24s, border-color 0.24s, background 0.24s, transform 0.24s;
}
.pager ul > li > a:hover {
  color: #fff;
  border-color: var(--line-3);
  background: rgba(122, 160, 255, 0.14);
  transform: translateY(-2px);
}
.pager ul > li > span:not(.is-current) { opacity: 0.45; }
.pager .is-current {
  opacity: 1;
  color: #04141b;
  border-color: transparent;
  background: linear-gradient(100deg, var(--ai-1), var(--ai-2));
  box-shadow: 0 10px 26px -12px var(--ai-glow);
}

/* ---------- 底部站内入口 ---------- */
.list-more { margin-top: 40px; }
.list-more__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.list-more .tag { transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s; }
.list-more .tag:hover {
  color: var(--txt);
  border-color: var(--line-3);
  background: rgba(122, 160, 255, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   26. 内容详情页（detail.aspx）
   ========================================================================== */

.art-hero { --doc-glow: rgba(91, 140, 255, 0.2); }

.art-hero h1 {
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 22px;
  font-size: 13.4px;
  color: var(--txt-3);
}
.art-meta__i { display: inline-flex; align-items: center; gap: 7px; }
.art-meta__i .ico { color: var(--ai-1); }
.art-meta__i time { font-family: var(--mono); font-size: 12.8px; }
.art-meta__i a { color: var(--txt-2); }
.art-meta__i a:hover { color: var(--ai-1); }

.art-doc { padding-top: 46px; }

.art-rule {
  display: block;
  width: 76px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, var(--ai-1), var(--ai-3));
  box-shadow: 0 0 18px -4px var(--ai-glow);
}

/* ---------- 正文 ---------- */
.article-body { overflow-wrap: anywhere; word-wrap: break-word; }
.article-body > *:first-child { margin-top: 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body iframe, .article-body video, .article-body embed {
  max-width: 100%;
  border-radius: 12px;
}
/* 正文里的表格（含嵌套在内容 div 里的）宽了就横向滚动，不撑破整页 */
.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14.4px;
}
.article-body table td, .article-body table th {
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(6, 9, 22, 0.86);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.72;
  color: var(--txt-2);
}
.article-body code {
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ai-1);
  background: rgba(122, 170, 255, 0.1);
  border: 1px solid var(--line);
}
.article-body pre code { padding: 0; border: 0; background: none; color: inherit; }
.article-body a { color: var(--ai-1); text-decoration: underline; text-underline-offset: 3px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { margin: 34px 0 14px; }
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 18px; }
.article-body h4 { font-size: 16px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 12px;
  border-left: 3px solid var(--ai-1);
  background: rgba(13, 19, 41, 0.6);
  color: var(--txt-2);
}

/* 编辑器输出的代码块 / 目录树 */
.article-body .code-block,
.article-body .xml-code,
.article-body .file-tree {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(6, 9, 22, 0.86);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--txt-2);
}

/* ---------- 上一篇 / 下一篇 ---------- */
.art-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.art-nav__side {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(11, 16, 36, 0.62);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.art-nav__side:hover {
  border-color: var(--line-2);
  background: rgba(16, 22, 47, 0.72);
  transform: translateY(-3px);
}
.art-nav__side--next { justify-content: flex-end; text-align: right; }

.art-nav__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.art-nav__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-4);
}

.art-nav__link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt-2);
  transition: color 0.25s;
}
.art-nav__side:hover .art-nav__link { color: var(--txt); }

.art-nav__ico { flex-shrink: 0; opacity: 0.85; }
.art-nav__side:hover .art-nav__ico { opacity: 1; }

.art-src { margin-top: 20px; font-size: 13px; color: var(--txt-4); }
.art-src a { color: var(--txt-3); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   27. 详情页正文区：白底纸面 + 上下渐变过渡
   --------------------------------------------------------------------------
   文章正文是 UEditor 输出的 HTML，本身就按白底设计：自带
   color:#1f2937 / background:#ffffff，内部还有蓝色渐变头图、浅蓝提示框、
   深色代码块等 40 多处配色。所以这里把正文整块做成「白纸」，段落上下各留
   一段深→白的渐变，让深色页面自然过渡到白色再过渡回去；同时把本站自己的
   正文排版（标题、段落、列表、代码、右侧栏、上下篇）全部换成深色文字，
   避免浅色字落在白底上读不出来。
   ========================================================================== */

.art-doc.art-band {
  position: relative;
  padding: 190px 0 210px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0,
    #ffffff 160px,
    #ffffff calc(100% - 180px),
    rgba(255, 255, 255, 0) 100%);
}

/* 标题栏底部那条对齐线在白纸面前多余，交给渐变过渡 */
.art-hero { border-bottom-color: transparent; }

/* ---------- 正文排版改为深色（原 .prose 是深底浅字） ---------- */
.art-band .prose {
  --doc-accent: #0b62d6;
  --doc-accent2: #0ea5e9;
}

.art-band .prose h2 { color: #0f172a; }
.art-band .prose h3 { color: #111827; }
.art-band .prose h4 { color: #1f2937; }
.art-band .prose p,
.art-band .prose li { color: #334155; }
.art-band .prose p b,
.art-band .prose li b,
.art-band .prose strong { color: #0f172a; }
.art-band .prose a { color: #0b62d6; }
.art-band .prose a:hover { color: #084c9e; }

.art-band .prose blockquote {
  background: #f1f5f9;
  border-left-color: #0b62d6;
  color: #334155;
}

.art-band .prose .hl {
  color: #0f172a;
  background: linear-gradient(180deg, transparent 62%, rgba(14, 165, 233, 0.28) 62%);
}

.art-band .article-body hr { border-top-color: #e2e8f0; }
.art-band .article-body table td,
.art-band .article-body table th { border-color: #e2e8f0; }
.art-band .article-body img { border-color: #e5e7eb; }

/* 行内代码：白底上改成浅灰底蓝字 */
.art-band .article-body code {
  color: #0b62d6;
  background: #eef2f7;
  border-color: #e2e8f0;
}

/* 代码块 / 目录树：文章里本来就是深色块，保持深底浅字 */
.art-band .article-body pre,
.art-band .article-body .code-block,
.art-band .article-body .xml-code,
.art-band .article-body .file-tree {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
}
.art-band .article-body pre code { color: inherit; background: none; border: 0; }

.art-band .art-rule {
  background: linear-gradient(90deg, #0ea5e9, #0b62d6);
  box-shadow: none;
}

/* ---------- 右侧栏：白底上的浅色卡片 ---------- */
.art-band .side__box {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.35);
  backdrop-filter: none;
}
.art-band .side__box h5 { color: #94a3b8; }
.art-band .toc a { color: #475569; }
.art-band .toc a:hover { color: #0b62d6; background: #f1f5f9; }
.art-band .toc a.is-active { color: #0b62d6; background: #eff6ff; border-left-color: #0b62d6; }
.art-band .side__note { color: #94a3b8; }

/* 「相关」列表：每条只占一行，标题超出用省略号，完整标题靠 title 提示。
   容器用 block —— .toc 原本是 flex，flex 子项会被 blockify，
   text-overflow / line-clamp 这类单行截断在 flex 子项上容易出毛边。 */
.art-band .toc--rel { display: block; }

.art-band .toc--rel a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.6px;
  line-height: 1.55;
  padding-top: 7px;
  padding-bottom: 7px;
}

.art-band .toc--rel a + a { margin-top: 2px; }

/* ---------- 上一篇 / 下一篇、来源 ---------- */
.art-band .art-nav__side {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 14px 34px -26px rgba(15, 23, 42, 0.4);
}
.art-band .art-nav__side:hover {
  border-color: #bfdbfe;
  background: #f8fafc;
}
.art-band .art-nav__label { color: #94a3b8; }
.art-band .art-nav__link { color: #1f2937; }
.art-band .art-nav__side:hover .art-nav__link { color: #0b62d6; }
.art-band .art-src { color: #94a3b8; }
.art-band .art-src a { color: #0b62d6; }

/* 正文里自带一个全局的 <style>p{white-space:pre-line}</style>（文章的换行即分段），
   会波及页面其它段落，这里把本站自己的段落还原成正常换行 */
.foot p,
.foot__disc,
.doc-hero__lead,
.art-meta,
.side__note,
.art-src,
.ver p,
.qa__a p { white-space: normal; }


/* ==========================================================================
   28. 列表页 / 详情页 响应式
   ========================================================================== */

@media (max-width: 1080px) {
  /* 卡片改上下排：标题列不再被右侧的互动区挤窄 */
  .al__card { grid-template-columns: minmax(0, 1fr); }
  .al__go { margin-left: 0; }
  .art-nav { grid-template-columns: minmax(0, 1fr); }
  .art-nav__side--next {
    flex-direction: row-reverse;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .list-body { padding-top: 40px; }
  .list-hero__bar { margin-top: 20px; }
  .al__card { padding: 18px 18px 18px 20px; }
  .al__intro { -webkit-line-clamp: 3; }
  .al__title { font-size: 16.6px; }
  .art-doc { padding-top: 34px; }
  /* 白纸面在小屏上收一收：渐变与留白都减半，别浪费手机屏幕 */
  .art-doc.art-band {
    padding: 108px 0 122px;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0,
      #ffffff 96px,
      #ffffff calc(100% - 106px),
      rgba(255, 255, 255, 0) 100%);
  }
  .art-meta { gap: 8px 14px; font-size: 12.8px; }
  .art-hero h1 { font-size: clamp(21px, 5.6vw, 28px); }
  .pager { margin-top: 28px; }
  .pager ul { gap: 6px; }
  .pager ul > li > a, .pager ul > li > span, .pager .is-current {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 12.8px;
  }
  .art-nav__side { padding: 15px 16px; }
}

@media (max-width: 520px) {
  .chip--ghost { display: none; }
  .al__intro { font-size: 13.4px; }
  .al__idx { font-size: 13px; padding: 4px 7px; }
  .al__meta { font-size: 12.4px; }
  .article-body pre, .article-body .code-block, .article-body .xml-code, .article-body .file-tree {
    font-size: 12.4px;
    padding: 13px 14px;
  }
  .art-nav__link { font-size: 14.2px; }
}

