/* ============================================================
   XRT 官网样式 · 2026 重构版
   内核 + 扩展库架构 · 现代深色设计系统
   ============================================================ */

:root {
  /* 色板 */
  --bg0: #04060c;
  --bg1: #070b16;
  --bg2: #0b1220;
  --bg3: #0e1729;
  --line: #1b2740;
  --line-soft: #131d32;
  --text: #e8eef9;
  --soft: #a4b2ca;
  --muted: #8595ae;

  --cyan: #26d3f0;
  --blue: #5b9dff;
  --violet: #9386f8;
  --green: #3ddc97;
  --amber: #fbc24d;
  --pink: #f281b8;
  --red: #f87171;

  --grad-brand: linear-gradient(120deg, #26d3f0 0%, #5b9dff 48%, #9386f8 100%);
  --glow-cyan: rgba(38, 211, 240, 0.14);
  --glow-blue: rgba(91, 157, 255, 0.12);
  --glow-violet: rgba(147, 134, 248, 0.13);
  --glow-green: rgba(61, 220, 151, 0.12);

  /* 尺寸 */
  --radius: 12px;
  --radius-lg: 18px;
  --max-w: 1180px;
  --nav-h: 64px;

  --font-sans: "Inter", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI",
    "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas,
    "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(91, 157, 255, 0.35);
  color: #fff;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--cyan);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
  color: var(--text);
}

/* ============ 背景氛围 ============ */

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 42% at 18% -6%, var(--glow-blue) 0%, transparent 70%),
    radial-gradient(ellipse 50% 36% at 85% 4%, var(--glow-violet) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(38, 211, 240, 0.06) 0%, transparent 70%);
}

.bg-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 198, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ============ 导航 ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(4, 6, 12, 0.88);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0.2px;
  color: var(--text);
}

.nav-logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #04060c;
  box-shadow: 0 0 18px rgba(91, 157, 255, 0.4);
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 178, 255, 0.08);
}

.nav-links a.active {
  color: var(--cyan);
}

.nav-cta {
  margin-left: 10px;
  padding: 7px 16px !important;
  border: 1px solid var(--line);
  border-radius: 999px !important;
  color: var(--text) !important;
  font-size: 13px !important;
}

.nav-cta:hover {
  border-color: var(--blue) !important;
  color: var(--cyan) !important;
}

/* 仓库组中的主推按钮：渐变实心胶囊（Gitee），与描边的 GitHub 形成主次层级 */
.nav-cta-solid {
  margin-left: 6px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent !important;
  color: #061019 !important;
  font-weight: 600;
}

.nav-cta-solid:hover {
  border-color: transparent !important;
  color: #061019 !important;
  filter: brightness(1.12);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.6px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}

.nav-toggle span {
  top: 50%;
  margin-top: -0.8px;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* ============ 通用区块 ============ */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--grad-brand);
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--soft);
  font-size: 16.5px;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 48px;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 24px 56px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.7);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--soft);
  margin-bottom: 18px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero-badge .ver {
  color: var(--cyan);
}

.hero h1 {
  font-size: clamp(34px, 4.7vw, 54px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.hero h1 .grad {
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .sub {
  display: block;
  margin-top: 7px;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--soft);
}

.hero-desc {
  color: var(--soft);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  max-width: 600px;
  margin: -7px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-proof strong {
  color: var(--soft);
  font-weight: 600;
}

.hero-proof span::before {
  content: "·";
  color: var(--blue);
  margin-right: 7px;
}

.hero-proof a { color: inherit; }
.hero-proof a:hover { color: var(--cyan); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 620px;
}

.scenario-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 14, 26, 0.58);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.scenario-link:hover {
  border-color: rgba(91, 157, 255, 0.7);
  background: rgba(17, 34, 61, 0.66);
  color: var(--text);
  transform: translateY(-2px);
}

.scenario-link strong {
  color: var(--text);
  font-size: 14px;
}

.scenario-link span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: right;
}

.scenario-link b,
.demo-more b {
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(120deg, #1d9fd4, #4f86ef 60%, #7a6df0);
  color: #fff;
  box-shadow: 0 8px 28px rgba(79, 134, 239, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(79, 134, 239, 0.5);
  color: #fff;
}

.btn-ghost {
  background: rgba(11, 18, 32, 0.6);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* hero 终端 */

.terminal {
  background: rgba(7, 11, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(91, 157, 255, 0.04);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 18, 32, 0.6);
}

.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.terminal-bar i:nth-child(1) { background: #f87171; }
.terminal-bar i:nth-child(2) { background: #fbc24d; }
.terminal-bar i:nth-child(3) { background: #3ddc97; }

.terminal-bar span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}

.terminal-body .t-prompt { color: var(--green); user-select: none; }
.terminal-body .t-cmd { color: var(--text); }
.terminal-body .t-out { color: var(--muted); }
.terminal-body .t-ok { color: var(--green); }
.terminal-body .t-dim { color: #46536b; }

.terminal-body .demo-lead {
  margin: 0 0 12px;
  color: var(--soft);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
}

.terminal-body code {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.terminal-body pre {
  margin: 0 0 14px;
  padding: 13px 14px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(2, 5, 12, 0.62);
  color: var(--text);
  font: inherit;
  line-height: 1.72;
}

.demo-command {
  margin-bottom: 4px;
  white-space: nowrap;
}

.demo-more {
  display: inline-block;
  margin-top: 13px;
  color: var(--soft);
  font-family: var(--font-sans);
  font-size: 13px;
}

.demo-more:hover { color: var(--cyan); }

/* hero 数据条 */

.hero-stats {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
}

.stat-cell {
  background: rgba(9, 14, 26, 0.85);
  padding: 22px 16px 18px;
  text-align: center;
}

a.stat-cell {
  display: block;
  color: inherit;
  transition: background 0.2s, transform 0.2s;
}

a.stat-cell:hover {
  background: rgba(17, 34, 61, 0.86);
  color: inherit;
  transform: translateY(-2px);
}

.stat-cell .num {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-cell .num .plain {
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}

.stat-cell .lbl {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============ 架构 ============ */

.arch-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.arch-panel {
  background: rgba(9, 14, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.arch-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--grad-brand);
  opacity: 0.65;
}

.arch-panel > h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.arch-panel > h3 .tagchip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(38, 211, 240, 0.08);
  border: 1px solid rgba(38, 211, 240, 0.25);
  border-radius: 999px;
  padding: 1px 10px;
}

.arch-panel .arch-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.kernel-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.kernel-layer {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.kernel-layer:hover {
  border-color: rgba(91, 157, 255, 0.45);
  transform: translateX(4px);
}

.kernel-layer .k-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.kernel-layer .k-name i {
  width: 7px;
  height: 7px;
  border-radius: 2.5px;
  background: var(--blue);
  flex: none;
}

.kernel-layer:nth-child(1) .k-name i { background: var(--cyan); }
.kernel-layer:nth-child(2) .k-name i { background: var(--blue); }
.kernel-layer:nth-child(3) .k-name i { background: var(--violet); }
.kernel-layer:nth-child(4) .k-name i { background: var(--green); }
.kernel-layer:nth-child(5) .k-name i { background: var(--amber); }
.kernel-layer:nth-child(6) .k-name i { background: var(--pink); }
.kernel-layer:nth-child(7) .k-name i { background: #7dd3fc; }

.kernel-layer .k-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kernel-layer .k-mods code {
  font-size: 11.5px;
  color: var(--soft);
  background: var(--bg0);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* 扩展库卡片 */

.ext-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.ext-card {
  position: relative;
  background: rgba(9, 14, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.ext-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ext-c, var(--grad-brand));
  opacity: 0.85;
}

.ext-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ext-c, #5b9dff) 55%, transparent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.ext-card .ext-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ext-card h4 {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ext-c, var(--blue));
  letter-spacing: 0.2px;
}

.ext-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.ext-badge.stable { color: var(--green); border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.07); }
.ext-badge.evolving { color: var(--amber); border-color: rgba(251, 194, 77, 0.4); background: rgba(251, 194, 77, 0.07); }
.ext-badge.fresh { color: var(--cyan); border-color: rgba(38, 211, 240, 0.4); background: rgba(38, 211, 240, 0.07); }

.ext-card p {
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.7;
  min-height: 66px;
}

.ext-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.ext-meta b {
  color: var(--soft);
  font-weight: 600;
}

/* ============ BENTO 能力网格 ============ */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.b-card {
  position: relative;
  background: rgba(9, 14, 26, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.b-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 157, 255, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.b-card.span4 { grid-column: span 4; }
.b-card.span6 { grid-column: span 6; }
.b-card.span8 { grid-column: span 8; }
.b-card.span12 { grid-column: span 12; }

.b-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid;
}

.b-icon svg {
  width: 21px;
  height: 21px;
}

.b-icon.c-cyan { color: var(--cyan); border-color: rgba(38, 211, 240, 0.3); background: rgba(38, 211, 240, 0.08); }
.b-icon.c-blue { color: var(--blue); border-color: rgba(91, 157, 255, 0.3); background: rgba(91, 157, 255, 0.08); }
.b-icon.c-violet { color: var(--violet); border-color: rgba(147, 134, 248, 0.3); background: rgba(147, 134, 248, 0.08); }
.b-icon.c-green { color: var(--green); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.08); }
.b-icon.c-amber { color: var(--amber); border-color: rgba(251, 194, 77, 0.3); background: rgba(251, 194, 77, 0.08); }
.b-icon.c-pink { color: var(--pink); border-color: rgba(242, 129, 184, 0.3); background: rgba(242, 129, 184, 0.08); }

.b-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.b-card p {
  color: var(--soft);
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.chips span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg0);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* ============ 质量网格 ============ */

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ============ 为什么选择 XRT ============ */

.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.value-card { min-height: 228px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(9, 14, 26, 0.68); }
.value-no { color: var(--blue); font-family: var(--font-mono); font-size: 12px; }
.value-card h3 { margin: 12px 0 9px; font-size: 17px; }
.value-card p { margin: 0 0 17px; color: var(--soft); font-size: 13.5px; line-height: 1.68; }
.value-card a { color: var(--cyan); font-size: 13px; font-weight: 600; }
.value-card a:hover { color: var(--text); }

/* ============ 并发模型 ============ */
.concurrency-section { position: relative; }
.concurrency-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.concurrency-card { min-height: 274px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(13, 24, 43, .82), rgba(8, 14, 27, .7)); }
.concurrency-no { color: var(--cyan); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.concurrency-card h3 { margin: 13px 0 9px; font-size: 18px; }
.concurrency-card p { margin: 0 0 18px; color: var(--soft); font-size: 13px; line-height: 1.7; }
.concurrency-card a { color: var(--cyan); font-size: 13px; font-weight: 600; }
.concurrency-card a:hover { color: var(--text); }
.concurrency-card a span { margin-left: 4px; }
.concurrency-note { margin-top: 16px; padding: 18px 20px; border: 1px solid rgba(38, 211, 240, .2); border-radius: 12px; color: var(--soft); background: rgba(7, 25, 41, .62); line-height: 1.7; }
.concurrency-note strong { color: var(--text); }
.concurrency-note span { color: var(--muted); }
.concurrency-table a { color: var(--cyan); }
.concurrency-learning { margin-top: 18px; }
.concurrency-learning h3 { margin: 0 0 9px; font-size: 17px; }
.concurrency-learning p { margin: 0 0 14px; }
.concurrency-learning .small-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

/* ============ 性能与可靠性证据页 ============ */

.evidence-page-header { padding-bottom: 46px; }

.evidence-page { max-width: 1080px; }

.evidence-page > section { margin-bottom: 62px; }

.journey-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 26px; }
.journey-card { display: block; min-height: 142px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 14, 26, 0.66); transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.journey-card:hover { color: var(--text); border-color: rgba(91, 157, 255, 0.65); background: rgba(17, 34, 61, 0.72); transform: translateY(-2px); }
.journey-card > span { color: var(--cyan); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.journey-card h2 { margin: 7px 0 6px; font-size: 17px; }
.journey-card p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.6; }
.content-callout { margin-bottom: 24px; padding: 20px; border: 1px solid rgba(91,157,255,.2); border-radius: 12px; background: linear-gradient(135deg,rgba(91,157,255,.08),rgba(38,211,240,.06)); }
.content-callout h2 { margin: 0 0 10px; }
.content-callout > div { display: flex; gap: 12px; flex-wrap: wrap; }
.content-callout a { padding: 8px 15px; border-radius: 8px; background: rgba(91,157,255,.1); color: var(--text); text-decoration: none; }
.content-callout a:first-child { background: rgba(91,157,255,.15); color: var(--cyan); font-weight: 600; }

/* ============ 快速开始 ============ */

.start-header { padding-bottom: 46px; }
.start-page > section { margin: 38px 0 62px; }
.quick-route { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(9, 14, 26, 0.68); }
.quick-route-primary { border-color: rgba(91, 157, 255, 0.42); background: linear-gradient(135deg, rgba(27, 64, 116, 0.22), rgba(9, 14, 26, 0.76)); }
.quick-route-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.quick-route h2 { margin: 7px 0 8px; }
.quick-route p { margin: 0; color: var(--soft); line-height: 1.65; }
.route-time { color: var(--cyan); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.start-code-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
.start-code-grid .code-block { margin: 0; }
.start-code-grid > .code-block,
.quick-build > .code-block { min-width: 0; }
.start-page .code-body { overflow-x: hidden; }
.start-page .code-body pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.quick-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.route-facts { display: grid; gap: 7px; margin: 17px 0; padding: 13px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; }
.route-facts code { color: var(--soft); }
.route-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.route-actions a { color: var(--cyan); font-size: 13px; font-weight: 600; }
.quick-build { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(9, 14, 26, 0.5); }
.quick-build h2 { margin: 6px 0 9px; }
.quick-build p { margin: 0; color: var(--soft); line-height: 1.65; }
.quick-build .code-block { margin: 0; }
.start-next h2 { margin-bottom: 16px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.metric-card,
.method-grid > article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 26, 0.72);
  padding: 22px;
}

.metric-card.metric-primary { border-color: rgba(91, 157, 255, 0.5); background: linear-gradient(145deg, rgba(35, 90, 164, 0.24), rgba(9, 14, 26, 0.82)); }

.metric-label,
.evidence-kicker { color: var(--cyan); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.metric-value { margin: 8px 0 7px; font-size: clamp(27px, 3vw, 38px); font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.metric-value small { color: var(--soft); font-size: 0.38em; font-weight: 500; letter-spacing: 0; }
.metric-card p, .method-grid p { margin: 0; color: var(--soft); font-size: 13.5px; line-height: 1.65; }

.evidence-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.evidence-section-head h2 { margin: 3px 0 0; }
.evidence-section-head > p { max-width: 465px; margin: 0; color: var(--soft); font-size: 14px; line-height: 1.65; }

.evidence-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 32px 0; padding: 26px 28px; border: 1px solid rgba(91, 157, 255, 0.3); border-radius: var(--radius-lg); background: linear-gradient(115deg, rgba(27, 64, 116, 0.28), rgba(9, 14, 26, 0.68)); }
.evidence-banner h3 { margin: 6px 0 8px; font-size: 20px; }
.evidence-banner p { max-width: 760px; margin: 0; color: var(--soft); line-height: 1.65; }
.evidence-banner .btn { flex: 0 0 auto; }

.evidence-caveat { margin-top: 16px; padding: 16px 18px; border-left: 3px solid #fbc24d; border-radius: 0 10px 10px 0; background: rgba(251, 194, 77, 0.08); color: var(--soft); line-height: 1.7; }
.evidence-caveat strong { color: #fbc24d; }

.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.method-grid h3 { margin: 0 0 8px; font-size: 16px; }
.status-pass { color: var(--green); font-weight: 700; }
.status-note { color: #fbc24d; font-weight: 700; }
.stress-table td { vertical-align: top; }

.q-card {
  background: rgba(9, 14, 26, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.q-card:hover {
  border-color: rgba(61, 220, 151, 0.45);
  transform: translateY(-2px);
}

.q-card .q-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 750;
  color: var(--green);
  letter-spacing: -0.5px;
}

.q-card h4 {
  font-size: 14.5px;
  font-weight: 650;
  margin: 6px 0 6px;
}

.q-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* ============ 代码块 ============ */

.code-block {
  background: #060a14;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 18, 32, 0.55);
}

.code-head .fname {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.code-head .fname::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  background: var(--grad-brand);
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: var(--cyan);
  border-color: rgba(38, 211, 240, 0.5);
}

.copy-btn.done {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.5);
}

.code-body {
  padding: 18px 20px;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: #c9d6ee;
}

.kw { color: #c79bff; }
.fn { color: #6fe0f5; }
.str { color: #8ce9a8; }
.cm { color: #5a6b8c; font-style: italic; }
.num { color: #fbc24d; }
.type { color: #ffd479; }
.pp { color: #f281b8; }

/* ============ 标签页 ============ */

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.55);
  color: var(--soft);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text);
  border-color: rgba(91, 157, 255, 0.4);
}

.tab-btn.active {
  color: #06121f;
  background: linear-gradient(120deg, #35c3e6, #5b9dff);
  border-color: transparent;
  font-weight: 650;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadein 0.35s ease;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ============ 表格 ============ */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: rgba(9, 14, 26, 0.6);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th,
table.data td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(11, 18, 32, 0.5);
}

table.data td {
  color: var(--soft);
}

table.data td code {
  background: var(--bg0);
  border: 1px solid var(--line-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.5px;
}

table.data .hl {
  color: var(--green);
  font-weight: 650;
}

.table-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============ 页脚 ============ */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 19, 0.8);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer h5 {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 9px;
}

.footer a {
  color: var(--soft);
  font-size: 13.5px;
}

.footer a:hover {
  color: var(--cyan);
}

/* ---- 友情链接 ---- */
.friends {
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 24, 0.5);
  padding: 44px 24px 52px;
  margin-top: 56px;
}

.friends-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.friends-title {
  font-size: 22px;
  font-weight: 750;
  color: var(--text);
  margin: 0 0 20px;
}

.friends-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.friend-card:hover {
  border-color: rgba(91, 157, 255, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(91, 157, 255, 0.12);
}

.friend-logo {
  width: 176px;
  height: 54px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
}

.friend-logo img {
  display: block;
}

.friend-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.friend-name {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}

.friend-card:hover .friend-name {
  color: var(--text);
}

.friend-desc {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friends-sub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.friend-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.friend-mini:hover {
  border-color: rgba(91, 157, 255, 0.55);
  color: var(--text);
}

.friend-mini img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: none;
  display: block;
}

@media (max-width: 640px) {
  .friends-sub {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer .f-brand img {
  height: 24px;
  width: auto;
  display: block;
}

.footer .f-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 14px;
}

.footer .f-desc {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 340px;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--soft);
}

/* ============ 子页面 ============ */

.page-header {
  padding: calc(var(--nav-h) + 64px) 24px 8px;
}

.page-header .inner {
  max-width: 860px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--soft);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 780;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.page-header .page-desc {
  color: var(--soft);
  font-size: 16.5px;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 720;
  margin: 52px 0 8px;
  letter-spacing: -0.3px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.page-content h2 .h-anchor {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.7em;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.page-content h2:hover .h-anchor {
  opacity: 1;
}

.page-content > p {
  color: var(--soft);
  margin: 10px 0 18px;
  font-size: 15px;
}

.page-content ul,
.page-content ol {
  color: var(--soft);
  padding-left: 24px;
  margin: 12px 0 20px;
  font-size: 15px;
}

.page-content li {
  margin-bottom: 7px;
}

.page-content li::marker {
  color: var(--blue);
}

.page-content .code-block {
  margin: 18px 0 24px;
}

.page-content strong {
  color: var(--text);
  font-weight: 650;
}

.page-content .note {
  border-left: 3px solid var(--blue);
  background: rgba(91, 157, 255, 0.06);
  border-radius: 0 10px 10px 0;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--soft);
  margin: 16px 0;
}

/* API 卡片 */

.api-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 8px;
}

.api-card {
  background: rgba(9, 14, 26, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.api-card:hover {
  border-color: rgba(91, 157, 255, 0.5);
  transform: translateY(-2px);
}

.api-card h4 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 650;
  color: var(--cyan);
  margin-bottom: 7px;
  word-break: break-all;
}

.api-card p {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.65;
  margin: 0;
}

.api-card .api-where {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ============ 动效 ============ */

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.motion-ready .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover, .ext-card:hover, .b-card:hover, .q-card:hover {
    transform: none;
  }
}

/* ============ 响应式 ============ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .arch-wrap {
    grid-template-columns: 1fr;
  }

  .ext-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .b-card.span4, .b-card.span6, .b-card.span8 {
    grid-column: span 6;
  }

  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .concurrency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .metric-grid,
  .method-grid { grid-template-columns: 1fr; }

  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .start-code-grid,
  .quick-build { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(4, 6, 12, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 11px 14px;
    font-size: 15px;
  }

  .nav-cta {
    margin: 8px 0 0;
    text-align: center;
    justify-content: center;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 44px);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-scenarios {
    grid-template-columns: 1fr;
  }

  .scenario-link span {
    font-size: 11px;
  }

  .demo-command {
    white-space: normal;
  }

  .ext-grid {
    grid-template-columns: 1fr;
  }

  .b-card.span4, .b-card.span6, .b-card.span8, .b-card.span12 {
    grid-column: span 12;
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .kernel-layer {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .api-grid {
    grid-template-columns: 1fr;
  }

  .value-grid { grid-template-columns: 1fr; }

  .concurrency-grid { grid-template-columns: 1fr; }

  .journey-grid { grid-template-columns: 1fr; }

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

  .quick-route-head { align-items: flex-start; flex-direction: column; }

  .evidence-section-head,
  .evidence-banner { align-items: flex-start; flex-direction: column; gap: 12px; }

  .evidence-page > section { margin-bottom: 46px; }

  .section {
    padding: 64px 24px;
  }
}


/* ---- i18n nav lang ---- */
.nav-lang-menu {
  min-width: 120px;
}

.nav-lang-menu a,
.nav-lang-menu .lang-cur {
  display: block;
  padding: 7px 14px;
  font-size: 13.5px;
}

.nav-lang-menu .lang-cur {
  color: var(--blue);
  font-weight: 650;
  cursor: default;
}

.lang-fallback-bar {
  position: relative;
  z-index: 200;
  background: rgba(91, 157, 255, 0.12);
  border-bottom: 1px solid rgba(91, 157, 255, 0.35);
  color: var(--text);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
