/* ============================================================
   算力业务平台官网 - 全站样式
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #0f3e9e;
  --primary-light: #3b82f6;
  --primary-bg: #eff4ff;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray-1: #334155;
  --gray-2: #64748b;
  --gray-3: #94a3b8;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .14);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-1);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px; gap: 40px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 44px; object-fit: contain; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block; padding: 20px 16px; font-size: 15px; color: var(--gray-1); font-weight: 500;
  border-bottom: 2px solid transparent; transition: color .2s;
}
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--primary); }
.main-nav > li > a.active { border-bottom-color: var(--primary); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 240px;
  opacity: 0; visibility: hidden; transition: all .2s ease;
}
.main-nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--gray-1);
}
.dropdown a:hover { background: var(--primary-bg); color: var(--primary); }
.dropdown a .d-title { font-weight: 600; display: block; }
.dropdown a .d-desc { font-size: 12px; color: var(--gray-3); display: block; margin-top: 2px; }

.nav-cta { display: flex; gap: 12px; flex-shrink: 0; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--dark); transition: all .25s; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(26, 86, 219, .35); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-bg); }
.btn-ghost { color: var(--gray-1); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .2); transform: translateY(-1px); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ---------------- Hero 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0b1f4e 0%, #123a8f 45%, #1a56db 100%);
  color: #fff; padding: 96px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(6, 182, 212, .25), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(59, 130, 246, .2), transparent 70%);
}
.hero .container { position: relative; }
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  font-size: 13px; letter-spacing: 1px; margin-bottom: 24px;
}
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 700; max-width: 760px; }
.hero h1 em { font-style: normal; color: #7dd3fc; }
.hero .hero-sub { margin-top: 20px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 680px; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-points { margin-top: 48px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.hero-points li::before { content: "✓"; color: #7dd3fc; font-weight: 700; }

/* 产品页小型 hero */
.page-hero { padding: 72px 0 80px; }
.page-hero h1 { font-size: 38px; }
.hero-tag-row { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tag {
  padding: 6px 14px; border-radius: 100px; font-size: 13px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker {
  color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px;
}
.section-dark .section-head .kicker { color: #7dd3fc; }
.section-head h2 { font-size: 32px; color: var(--dark); font-weight: 700; }
.section-dark .section-head h2 { color: #fff; }
.section-head p { margin-top: 14px; color: var(--gray-2); font-size: 16px; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 24px; }
.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: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s;
}
.card:hover { border-color: rgba(26, 86, 219, .35); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .card-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 14px; color: var(--gray-2); }
.card .card-link { display: inline-block; margin-top: 16px; color: var(--primary); font-size: 14px; font-weight: 600; }
.card .card-link:hover { text-decoration: underline; }

/* 深色区卡片 */
.section-dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: rgba(255, 255, 255, .65); }
.section-dark .card .card-icon { background: rgba(255, 255, 255, .1); }

/* ---------------- 产品大卡(首页三系统) ---------------- */
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 36px 30px; display: flex; flex-direction: column; transition: all .25s; position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(26, 86, 219, .3); }
.product-card:hover::before { opacity: 1; }
.product-card .p-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 28px;
  background: var(--primary-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.product-card h3 { font-size: 21px; color: var(--dark); font-weight: 700; }
.product-card .p-slogan { color: var(--primary); font-size: 13px; font-weight: 600; margin: 6px 0 14px; }
.product-card p { font-size: 14px; color: var(--gray-2); }
.product-card .p-features { margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.product-card .p-features li {
  font-size: 12px; color: var(--gray-2); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px;
}
.product-card .btn { margin-top: auto; align-self: flex-start; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product-actions .btn { margin-top: 0; }
.product-actions .card-link { color: var(--primary); font-size: 14px; font-weight: 600; padding: 8px 4px; }
.product-actions .card-link:hover { text-decoration: underline; }

/* ---------------- 功能列表区(图文交替) ---------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 48px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row .f-label { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.feature-row h2, .feature-row h3 { font-size: 26px; color: var(--dark); margin-bottom: 16px; }
.feature-row p { color: var(--gray-2); font-size: 15px; }
.feature-row ul { margin-top: 18px; display: grid; gap: 10px; }
.feature-row ul li { padding-left: 26px; position: relative; font-size: 14px; color: var(--gray-1); }
.feature-row ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 700;
}
.feature-visual {
  background: linear-gradient(145deg, var(--primary-bg), #e0f2fe);
  border: 1px solid var(--line); border-radius: 16px; min-height: 300px;
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.feature-row.reverse .feature-visual { order: -1; }

/* 视觉占位内部的模拟界面 */
.mock-panel {
  width: 100%; background: #fff; border-radius: 10px; box-shadow: var(--shadow-md);
  overflow: hidden; font-size: 12px;
}
.mock-panel .mock-bar {
  height: 32px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.mock-panel .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-panel .mock-bar i:first-child { background: #f87171; }
.mock-panel .mock-bar i:nth-child(2) { background: #fbbf24; }
.mock-panel .mock-bar i:nth-child(3) { background: #34d399; }
.mock-panel .mock-body { padding: 16px; display: grid; gap: 10px; }
.mock-line { height: 10px; border-radius: 5px; background: var(--bg-soft); }
.mock-line.w60 { width: 60%; } .mock-line.w80 { width: 80%; } .mock-line.w40 { width: 40%; background: var(--primary-bg); }
.mock-stat-row { display: flex; gap: 10px; }
.mock-stat { flex: 1; background: var(--bg-soft); border-radius: 8px; padding: 10px; }
.mock-stat b { display: block; color: var(--primary); font-size: 16px; }
.mock-stat span { color: var(--gray-3); font-size: 11px; }

/* ---------------- 数字统计 ---------------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item b { display: block; font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.section-dark .stat-item b, .hero .stat-item b { color: #7dd3fc; }
.stat-item span { font-size: 14px; color: var(--gray-2); }
.section-dark .stat-item span, .hero .stat-item span { color: rgba(255, 255, 255, .7); }

/* ---------------- 流程步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step-item { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.step-item .step-no {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 16px; font-size: 15px;
}
.step-item h4 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--gray-2); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp-table thead th { background: var(--bg-soft); color: var(--dark); font-weight: 600; white-space: nowrap; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:hover { background: var(--primary-bg); }
.cmp-table td:first-child { font-weight: 600; color: var(--dark); white-space: nowrap; }

/* ---------------- 标签徽章 ---------------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: var(--primary-bg); color: var(--primary);
}
.badge-cyan { background: #ecfeff; color: #0891b2; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-amber { background: #fffbeb; color: #d97706; }

/* ---------------- 痛点/价值 对比 ---------------- */
.pain-value { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pv-col { border-radius: var(--radius); padding: 32px 28px; }
.pv-col.pain { background: #fef2f2; border: 1px solid #fecaca; }
.pv-col.value { background: #f0fdf4; border: 1px solid #bbf7d0; }
.pv-col h3 { font-size: 18px; margin-bottom: 18px; color: var(--dark); }
.pv-col li { padding: 8px 0 8px 28px; position: relative; font-size: 14px; color: var(--gray-1); }
.pv-col.pain li::before { content: "✕"; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
.pv-col.value li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

/* ---------------- CTA 区 ---------------- */
.cta-band {
  background: linear-gradient(120deg, #0b1f4e, #1a56db);
  border-radius: 20px; padding: 60px 48px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 250px at 80% 10%, rgba(6, 182, 212, .3), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-bottom: 32px; font-size: 16px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 产品更新 ---------------- */
.update-highlight {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 30px 34px; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
}
.update-highlight h2 { font-size: 24px; color: var(--dark); margin: 8px 0; }
.update-highlight p { color: var(--gray-2); font-size: 14px; }
.update-highlight-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.update-highlight-meta span { font-size: 12px; color: var(--gray-2); }
.update-status {
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 10px;
  border-radius: 999px; background: #fffbeb; color: #b45309 !important; font-weight: 700;
}
.update-status.status-released { background: #f0fdf4; color: #15803d !important; }
.updates-index-section { padding-top: 40px; }
.updates-toolbar {
  display: grid; grid-template-columns: repeat(3, minmax(150px, 180px)) auto;
  justify-content: start; gap: 14px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.updates-filter { display: grid; gap: 7px; color: var(--gray-2); font-size: 13px; font-weight: 600; }
.updates-filter select {
  width: 100%; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--white); color: var(--dark); font: inherit; cursor: pointer;
}
.updates-filter select:focus { outline: 2px solid rgba(26, 86, 219, .2); border-color: var(--primary); }
.updates-count { justify-self: start; margin-left: 10px; padding-bottom: 11px; color: var(--gray-2); font-size: 13px; white-space: nowrap; }
.update-list { margin-top: 0; }
.update-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 24px; align-items: center;
  padding: 30px 14px 30px 18px; border-bottom: 1px solid var(--line); color: inherit;
  transition: background .2s, box-shadow .2s;
}
.update-row:hover { background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--primary); }
.update-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--gray-2); font-size: 12px; }
.update-row-content h2 { margin: 10px 0 8px; color: var(--dark); font-size: 22px; }
.update-row-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 0; margin-bottom: 10px; color: var(--gray-3); font-size: 12px; }
.update-row-facts span { display: inline-flex; align-items: center; }
.update-row-facts span + span::before { content: ""; width: 3px; height: 3px; margin: 0 9px; border-radius: 50%; background: #94a3b8; }
.update-row-facts .date-pending { color: #64748b; }
.update-row-content p { color: var(--gray-2); font-size: 14px; line-height: 1.65; }
.update-row-content ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.update-row-content li { position: relative; padding-left: 13px; color: var(--gray-1); font-size: 13px; }
.update-row-content li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.update-row-action {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--primary); font-size: 18px; font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}
.update-row:hover .update-row-action { border-color: var(--primary); background: var(--primary); color: #fff; }
.updates-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.updates-pagination button {
  min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); color: var(--gray-1); cursor: pointer;
}
.updates-pagination button:hover:not(:disabled), .updates-pagination button.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.updates-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.updates-empty { padding: 64px 20px; text-align: center; color: var(--gray-2); }
.updates-empty h1, .updates-empty h2 { margin-bottom: 10px; color: var(--dark); font-size: 24px; }
.updates-empty .btn { margin-top: 22px; }
.release-entry { max-width: 1120px; margin: 0 auto; }
.release-heading { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.release-heading h2 { font-size: 32px; color: var(--dark); margin: 8px 0 12px; }
.release-heading p { color: var(--gray-2); }
.release-meta { display: grid; justify-items: end; gap: 8px; font-size: 13px; color: var(--gray-2); }
.release-status { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: #fffbeb; color: #b45309; font-weight: 700; }
.release-notice { margin: 24px 0 0; padding: 14px 18px; border-left: 3px solid #f59e0b; background: #fffbeb; color: #92400e; font-size: 14px; }
.release-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release-group { padding: 32px 36px 36px 0; }
.release-group + .release-group { padding: 32px 0 36px 36px; border-left: 1px solid var(--line); }
.release-group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.release-group-head h3 { font-size: 20px; color: var(--dark); }
.release-group-head span { flex: 0 0 auto; font-size: 12px; color: var(--primary); background: var(--primary-bg); border-radius: 999px; padding: 4px 10px; font-weight: 700; }
.release-list { counter-reset: release-item; display: grid; gap: 0; }
.release-list li { counter-increment: release-item; position: relative; padding: 10px 0 10px 42px; border-top: 1px solid #edf1f7; color: var(--gray-1); font-size: 14px; line-height: 1.65; }
.release-list li:first-child { border-top: 0; }
.release-list li::before { content: counter(release-item, decimal-leading-zero); position: absolute; left: 0; top: 10px; color: var(--primary); font-size: 12px; font-weight: 700; }
.update-back { display: inline-flex; margin-bottom: 28px; color: var(--primary); font-size: 14px; font-weight: 600; }
.update-back:hover { text-decoration: underline; }
.release-detail-sections { margin-top: 34px; border-top: 1px solid var(--line); }
.release-detail-sections .release-group { padding: 32px 0 36px; border-left: 0; }
.release-detail-sections .release-group + .release-group { border-top: 1px solid var(--line); }
.release-group-head h2, .release-group-head h3 { font-size: 20px; color: var(--dark); }
.update-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.update-neighbors a { display: grid; gap: 6px; min-width: 0; color: var(--dark); }
.update-neighbors a.next { text-align: right; }
.update-neighbors span { color: var(--gray-3); font-size: 12px; }
.update-neighbors strong { overflow-wrap: anywhere; font-size: 14px; }
.update-neighbors a:hover strong { color: var(--primary); }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--gray-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ---------------- 文档布局 ---------------- */
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 40px 0 80px; align-items: start; }
.doc-sidebar {
  position: sticky; top: 88px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white);
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.doc-sidebar h4 { font-size: 13px; color: var(--gray-3); letter-spacing: 1px; margin: 18px 0 8px; font-weight: 600; }
.doc-sidebar h4:first-child { margin-top: 0; }
.doc-sidebar a {
  display: block; padding: 7px 12px; border-radius: 6px; font-size: 14px; color: var(--gray-1);
  border-left: 2px solid transparent;
}
.doc-sidebar a:hover { background: var(--primary-bg); color: var(--primary); }
.doc-sidebar a.active { background: var(--primary-bg); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.doc-content { min-width: 0; }
.doc-content h1 { font-size: 30px; color: var(--dark); margin-bottom: 12px; }
.doc-content .doc-meta { font-size: 13px; color: var(--gray-3); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc-content h2 {
  font-size: 22px; color: var(--dark); margin: 44px 0 16px; padding-top: 12px; scroll-margin-top: 88px;
}
.doc-content h3 { font-size: 17px; color: var(--dark); margin: 28px 0 12px; scroll-margin-top: 88px; }
.doc-content p { margin-bottom: 14px; font-size: 15px; color: var(--gray-1); }
.doc-content ul, .doc-content ol { margin: 0 0 16px 22px; }
.doc-content ul { list-style: disc; }
.doc-content ol { list-style: decimal; }
.doc-content li { margin-bottom: 6px; font-size: 15px; }
.doc-content code {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-size: 13px; font-family: Consolas, Monaco, monospace; color: var(--primary-dark);
}
.doc-content .doc-tip {
  background: var(--primary-bg); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin: 18px 0; font-size: 14px;
}
.doc-content .doc-warn {
  background: #fffbeb; border-left: 3px solid #f59e0b; border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin: 18px 0; font-size: 14px;
}
.doc-content blockquote {
  background: var(--primary-bg); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin: 18px 0; color: var(--gray-2);
}
.doc-content blockquote p:last-child { margin-bottom: 0; }
.doc-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.doc-content table th, .doc-content table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.doc-content table th { background: var(--bg-soft); color: var(--dark); }

/* 文档步骤块 */
.doc-steps { counter-reset: dstep; margin: 16px 0 24px; }
.doc-steps > li {
  counter-increment: dstep; position: relative; padding: 0 0 20px 44px; margin: 0; list-style: none;
}
.doc-steps > li::before {
  content: counter(dstep); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.doc-steps > li::after {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--line);
}
.doc-steps > li:last-child::after { display: none; }
.doc-steps > li b { color: var(--dark); }

/* FAQ 折叠 */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--dark); font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--gray-3); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 16px; font-size: 14px; color: var(--gray-2); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-logo { height: 52px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, .5); max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, .6); font-size: 13px; }
.footer-col a:hover { color: #7dd3fc; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; text-align: center;
  font-size: 12px; color: rgba(255, 255, 255, .4);
}

/* ---------------- 动效 ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-5 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { gap: 36px; }
}

@media (max-width: 768px) {
  .brand-logo { height: 38px; }
  .footer-brand .brand-logo { height: 48px; }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 25px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; padding: 36px 0; }
  .feature-row.reverse .feature-visual { order: 0; }
  .pain-value { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps.steps-5 { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; max-height: none; }
  .cta-band { padding: 44px 24px; }
  .update-highlight { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .update-highlight .btn { justify-self: start; }
  .updates-index-section { padding-top: 28px; }
  .updates-toolbar { grid-template-columns: 1fr; gap: 14px; }
  .updates-count { justify-self: start; margin-left: 0; padding: 0; }
  .update-row { grid-template-columns: minmax(0, 1fr) 36px; gap: 12px; padding: 26px 4px; }
  .update-row-content h2 { font-size: 20px; }
  .update-row-content ul { display: grid; gap: 7px; }
  .update-row-action { align-self: center; }
  .release-heading { grid-template-columns: 1fr; gap: 18px; }
  .release-heading h2 { font-size: 27px; }
  .release-meta { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
  .release-columns { grid-template-columns: 1fr; }
  .release-group, .release-group + .release-group { padding: 28px 0; border-left: 0; }
  .release-group + .release-group { border-top: 1px solid var(--line); }
  .update-neighbors { grid-template-columns: 1fr; }
  .update-neighbors a.next { text-align: left; }
  /* 移动端导航 */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 16px; box-shadow: var(--shadow-lg); gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a { padding: 14px 8px; border-bottom: none; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0 0 8px 16px; min-width: 0; display: none;
  }
  .main-nav > li.open-sub .dropdown { display: block; }
  .nav-cta { display: none; }
}
