/* ============================================================
   KiCad 中文官网 — 共享样式表
   品牌色：KiCad Blue #2B3DB8 / Orange #FF6D00
   风格：扁平现代专业
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色 */
  --c-primary: #2B3DB8;
  --c-primary-dark: #1E2A8A;
  --c-primary-light: #2646C6;
  --c-primary-50: #EEF0FB;
  --c-primary-100: #DDE2F7;

  /* 强调色 */
  --c-accent: #FF6D00;
  --c-accent-dark: #E55A00;
  --c-accent-50: #FFF3E6;

  /* 中性色 */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F7F8FC;
  --c-bg-dark: #0F1535;
  --c-text: #1A1F3A;
  --c-text-soft: #4A5170;
  --c-text-muted: #7A8099;
  --c-border: #E4E6EE;
  --c-border-strong: #C7CBD9;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN",
    "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Source Code Pro", "Cascadia Code",
    Menlo, Consolas, monospace;

  /* 间距 & 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 21, 53, 0.04), 0 1px 3px rgba(15, 21, 53, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 21, 53, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 21, 53, 0.12);
  --shadow-xl: 0 24px 60px rgba(43, 61, 184, 0.18);

  /* 布局 */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 72px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent); }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--c-text); }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: var(--c-bg-dark); color: #E6E8F2; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #FFFFFF; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-primary-50);
  color: var(--c-primary);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--c-text-soft);
  margin: 0;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-text);
}
.brand img { height: 36px; width: auto; }
.brand span { letter-spacing: -0.02em; }
.brand .tld { color: var(--c-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  color: var(--c-text-soft);
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--r-sm);
  transition: all .2s ease;
}
.nav-links a:hover { color: var(--c-primary); background: var(--c-primary-50); }
.nav-links a.active { color: var(--c-primary); background: var(--c-primary-50); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--c-text); margin: 0 auto; position: relative;
  transition: transform .25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { position: absolute; top: 6px; left: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all .2s ease;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 61, 184, 0.25);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 61, 184, 0.35);
}
.btn-accent {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 109, 0, 0.25);
}
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary-100);
}
.btn-ghost:hover { background: var(--c-primary-50); color: var(--c-primary); }
.btn-light {
  background: #fff;
  color: var(--c-primary);
  border: 1px solid var(--c-border);
}
.btn-light:hover { background: var(--c-primary-50); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 109, 0, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(43, 61, 184, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #F7F8FC 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--c-primary-100);
  color: var(--c-primary);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.18);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--c-primary); }
.hero h1 .accent { color: var(--c-accent); }
.hero-lead {
  font-size: 1.15rem;
  color: var(--c-text-soft);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
}
.hero-stat .label {
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-top: 4px;
}

/* Hero 视觉 */
.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #2B3DB8 0%, #1E2A8A 100%);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-visual .pcb {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-visual .pcb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hero-visual .pcb-bar .title {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}
.hero-visual .pcb-bar .dots {
  display: flex; gap: 6px;
}
.hero-visual .pcb-bar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.hero-visual .pcb-bar .dots span:first-child { background: var(--c-accent); }
.hero-visual .schematic {
  flex: 1;
  background: rgba(0,0,0,0.18);
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
}

/* SVG schematic illustration */
.schematic svg { width: 100%; height: 100%; }

/* ---------- 信任栏 ---------- */
.trust-bar {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: #fff;
  padding: 32px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.trust-bar .label {
  font-size: .85rem;
  color: var(--c-text-muted);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.trust-logos .item {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-text-soft);
  letter-spacing: -.01em;
}
.trust-logos .item .accent { color: var(--c-accent); }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all .25s ease;
  position: relative;
}
.card:hover {
  border-color: var(--c-primary-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-50);
  color: var(--c-primary);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.card .card-icon.accent {
  background: var(--c-accent-50);
  color: var(--c-accent);
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--c-text-soft); margin: 0; font-size: .96rem; }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-primary);
}
.card .more:hover { gap: 10px; }

/* 优势卡 */
.advantage-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
}
.advantage-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--c-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.advantage-card:hover::before { transform: scaleY(1); }
.advantage-card:hover { box-shadow: var(--shadow-md); }
.advantage-card .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-primary-100);
  line-height: 1;
  margin-bottom: 12px;
}
.advantage-card h3 { margin-bottom: 12px; }
.advantage-card p { color: var(--c-text-soft); margin: 0; }

/* ---------- 使用场景 ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.scenario {
  position: relative;
  border-radius: var(--r-lg);
  padding: 32px;
  background: #fff;
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: all .25s ease;
}
.scenario:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.scenario .scenario-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-accent-50);
  color: var(--c-accent);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.scenario h3 { margin-bottom: 10px; font-size: 1.3rem; }
.scenario p { color: var(--c-text-soft); margin: 0 0 16px; }
.scenario ul.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--c-text-soft);
  font-size: .94rem;
}
.scenario ul.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--c-primary-50);
  border: 2px solid var(--c-primary);
  border-radius: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8 L7 12 L13 4' stroke='%232B3DB8' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ---------- 数据展示块 ---------- */
.stat-band {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-band .item { text-align: center; }
.stat-band .num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-band .num .unit { font-size: 1rem; opacity: .8; }
.stat-band .label {
  font-size: .95rem;
  opacity: .85;
}
.stat-band .item + .item { border-left: 1px solid rgba(255,255,255,0.18); }

/* ---------- 工作流 ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.workflow::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12%; right: 12%;
  height: 2px;
  background: var(--c-border);
  z-index: 0;
}
.workflow .step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.workflow .step-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: #fff;
  border: 2px solid var(--c-primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  transition: all .25s ease;
}
.workflow .step:hover .step-icon {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  transform: scale(1.05);
}
.workflow .step-icon svg { width: 28px; height: 28px; }
.workflow .step h4 { margin-bottom: 6px; }
.workflow .step p { font-size: .9rem; color: var(--c-text-soft); margin: 0; }

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 53, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  background: #fff;
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1;   left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.modal-head h3 {
  margin: 0;
  font-size: 1.5rem;
}
.modal-head p {
  margin: 6px 0 0;
  color: var(--c-text-soft);
  font-size: .95rem;
}
.modal-close {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
  transition: all .2s ease;
}
.modal-close:hover { background: var(--c-primary-50); color: var(--c-primary); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 28px 32px 32px; }
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.qr-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  transition: all .25s ease;
  background: var(--c-bg-soft);
}
.qr-card:hover { border-color: var(--c-primary-100); box-shadow: var(--shadow-sm); }
.qr-card .qr-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  background: #fff;
  padding: 8px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.qr-card .qr-img img { width: 100%; height: 100%; }
.qr-card h4 {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.qr-card .platform-icon { width: 20px; height: 20px; }
.qr-card .meta {
  font-size: .85rem;
  color: var(--c-text-muted);
  margin: 0 0 12px;
}
.qr-card .size {
  display: inline-block;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--c-text-soft);
  font-family: var(--font-mono);
}
.modal-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--c-primary-50);
  border-radius: var(--r-md);
  font-size: .9rem;
  color: var(--c-text-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.modal-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-primary); margin-top: 2px; }

/* ---------- 下载中心页面 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.platform-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all .25s ease;
  position: relative;
}
.platform-card.featured {
  border-color: var(--c-primary);
  box-shadow: 0 8px 24px rgba(43, 61, 184, 0.12);
}
.platform-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.platform-card .badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--c-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.platform-card .platform-icon-lg {
  width: 56px; height: 56px;
  background: var(--c-primary-50);
  color: var(--c-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.platform-card .platform-icon-lg svg { width: 32px; height: 32px; }
.platform-card h3 { margin-bottom: 6px; }
.platform-card .ver {
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  font-size: .9rem;
  margin-bottom: 16px;
}
.platform-card .specs {
  margin: 16px 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.platform-card .specs li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .9rem;
}
.platform-card .specs li .k { color: var(--c-text-muted); }
.platform-card .specs li .v { color: var(--c-text); font-weight: 500; }
.platform-card .btn { width: 100%; }

/* 版本历史表 */
.version-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.version-table thead { background: var(--c-primary-50); }
.version-table th, .version-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: .95rem;
}
.version-table th {
  font-weight: 600;
  color: var(--c-primary);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.version-table tr:last-child td { border-bottom: none; }
.version-table .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.tag-stable { background: var(--c-primary-50); color: var(--c-primary); }
.tag-lts { background: var(--c-accent-50); color: var(--c-accent); }
.tag-nightly { background: #F0F1F5; color: var(--c-text-muted); }

/* ---------- 文档/学习页 ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.doc-toc h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.doc-toc ul li {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  margin-bottom: 2px;
}
.doc-toc ul li a {
  color: var(--c-text-soft);
  display: block;
  padding: 4px 0;
}
.doc-toc ul li a:hover, .doc-toc ul li a.active { color: var(--c-primary); font-weight: 600; }
.doc-toc ul li.active { background: var(--c-primary-50); }

.doc-content {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.doc-content h2 { margin-top: 0; }
.doc-content h3 { margin-top: 32px; }
.doc-content .callout {
  background: var(--c-primary-50);
  border-left: 4px solid var(--c-primary);
  padding: 16px 20px;
  border-radius: var(--r-sm);
  margin: 24px 0;
}
.doc-content .callout.accent {
  background: var(--c-accent-50);
  border-left-color: var(--c-accent);
}
.doc-content code {
  font-family: var(--font-mono);
  background: var(--c-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  color: var(--c-primary-dark);
}

/* 资源卡 */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resource-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource-card .type {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.resource-card h4 { margin-bottom: 8px; font-size: 1.15rem; }
.resource-card p { color: var(--c-text-soft); font-size: .92rem; flex: 1; }
.resource-card .meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--c-text-muted);
}
.resource-card .meta .arrow {
  color: var(--c-primary);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .2s ease;
}
.faq-item:hover { border-color: var(--c-primary-100); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6 L8 10 L12 6' stroke='%232B3DB8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .answer {
  padding: 0 24px 22px;
  color: var(--c-text-soft);
  font-size: .96rem;
  line-height: 1.7;
}

/* ---------- 关于页：时间线 ---------- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--c-border);
}
.timeline .event {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  margin-bottom: 36px;
  position: relative;
}
.timeline .event::before {
  content: "";
  position: absolute;
  left: 114px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--c-primary);
}
.timeline .event .year {
  font-weight: 800;
  color: var(--c-primary);
  font-size: 1.3rem;
  text-align: right;
  padding-top: 4px;
}
.timeline .event .body h4 { margin-bottom: 6px; }
.timeline .event .body p { color: var(--c-text-soft); margin: 0; }

/* ---------- CTA 区 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: #fff;
}
.cta-band::before { width: 300px; height: 300px; top: -150px; right: -100px; }
.cta-band::after  { width: 200px; height: 200px; bottom: -100px; left: -80px; }
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { font-size: 1.1rem; opacity: .92; max-width: 580px; margin: 0 auto 32px; }
.cta-band .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--c-bg-dark);
  color: #B0B6CC;
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand p {
  color: #8C92AC;
  font-size: .92rem;
  max-width: 320px;
  margin-bottom: 20px;
}
.footer-brand .social {
  display: flex;
  gap: 12px;
}
.footer-brand .social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0B6CC;
  transition: all .2s ease;
}
.footer-brand .social a:hover {
  background: var(--c-primary);
  color: #fff;
}
.footer-brand .social svg { width: 18px; height: 18px; }
.footer-col h5 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #B0B6CC;
  font-size: .92rem;
  transition: color .2s ease;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: #8C92AC;
}
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal a { color: #8C92AC; }
.footer-bottom .legal a:hover { color: #fff; }

/* ---------- 页面通用 hero (内页) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--c-primary-50) 0%, #FFFFFF 100%);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .container { max-width: 820px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--c-text-soft);
  margin: 0 auto;
  max-width: 640px;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { color: var(--c-border-strong); }

/* ---------- 面包屑导航 (内嵌) ---------- */
.breadcrumbs {
  font-size: .85rem;
  color: var(--c-text-muted);
  padding: 20px 0 0;
}
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .sep { margin: 0 8px; color: var(--c-border-strong); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow::before { display: none; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band .item + .item { border-left: none; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform .25s ease;
    gap: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; border-radius: var(--r-sm); }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .grid-2, .grid-3, .grid-4, .resource-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; padding: 40px 24px; }
  .qr-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 8px; }
  .timeline .event { grid-template-columns: 1fr; gap: 8px; }
  .timeline .event::before { left: 2px; top: 4px; }
  .timeline .event .year { text-align: left; padding-left: 28px; }
  .modal-head, .modal-body { padding: 20px; }
  .cta-band { padding: 48px 24px; }
  .doc-content { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- 辅助 ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 12px 20px; z-index: 9999;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* 打印优化 */
@media print {
  .site-header, .site-footer, .nav-toggle, .modal-overlay { display: none !important; }
  body { color: #000; background: #fff; }
}
