/* ============================================================
   A股量化平台 · 产品官网样式
   ------------------------------------------------------------
   设计取向：
   1. 深色 Hero + 亮色内容区的「双色分段」结构 —— 首屏有科技感，
      往下是长时间阅读场景，浅色更舒服。
   2. 全站 8px 栅格，圆角统一 12/16px，阴影克制。
   3. 断点：1180px / 900px / 640px，与前端应用的响应式体系对齐。
   ============================================================ */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fb;
  --c-bg-deep: #0b1220;
  --c-bg-deep-2: #101b30;
  --c-border: #e3e8ef;
  --c-border-dark: rgb(255 255 255 / 0.1);
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-3: #8a98ac;
  --c-text-inv: #e8eefb;
  --c-text-inv-2: #9db0cc;
  --c-primary: #2563eb;
  --c-primary-2: #3b82f6;
  --c-violet: #8b5cf6;
  --c-up: #dc2626;
  --c-down: #059669;
  --c-radius: 14px;
  --c-radius-sm: 9px;
  --c-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 8px 24px -12px rgb(15 23 42 / 0.16);
  --c-shadow-lg: 0 24px 60px -24px rgb(15 23 42 / 0.32);
  --c-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 锚点跳转时给固定导航栏留出空间 */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef2f7;
  color: #1e40af;
}

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

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.18s, border-color 0.18s;
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary-2), var(--c-violet));
  color: #fff;
  box-shadow: 0 6px 20px -8px rgb(59 130 246 / 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgb(59 130 246 / 0.8);
}

.btn-outline {
  border-color: var(--c-border);
  color: var(--c-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--c-primary-2);
  color: var(--c-primary);
  background: rgb(59 130 246 / 0.05);
}

.btn-ghost {
  color: var(--c-text-2);
  padding: 0 12px;
}

.btn-ghost:hover {
  color: var(--c-primary);
}

/* ============================================================
   顶部导航
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 4px 18px -12px rgb(15 23 42 / 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-2), var(--c-violet));
  color: #fff;
  box-shadow: 0 4px 12px -4px rgb(59 130 246 / 0.65);
}

.brand-text {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-text-2);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--c-primary);
  background: rgb(59 130 246 / 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform 0.22s, opacity 0.18s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-deep);
  color: var(--c-text-inv);
  padding: 84px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% -8%, rgb(59 130 246 / 0.28), transparent 62%),
    radial-gradient(760px 400px at 88% 8%, rgb(139 92 246 / 0.24), transparent 60%),
    linear-gradient(180deg, var(--c-bg-deep) 0%, var(--c-bg-deep-2) 100%);
}

/* 细网格纹理，增加质感但不喧宾夺主 */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.05);
  font-size: 13px;
  color: var(--c-text-inv-2);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgb(52 211 153 / 0.18);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.16;
  font-weight: 680;
  letter-spacing: -1.4px;
}

.hero-title .grad {
  background: linear-gradient(120deg, #60a5fa, #a78bfa 60%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 34px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--c-text-inv-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-actions .btn-outline {
  border-color: rgb(255 255 255 / 0.22);
  color: var(--c-text-inv);
}

.hero-actions .btn-outline:hover {
  border-color: rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.07);
  color: #fff;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 30px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--c-text-inv-2);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta strong {
  color: #dbe6f7;
  font-weight: 600;
}

/* ============================================================
   区块通用
   ============================================================ */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--c-bg-soft);
}

.section-head {
  max-width: 700px;
  margin: 0 auto 46px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.35;
  font-weight: 660;
  letter-spacing: -0.6px;
}

.section-head p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--c-text-2);
}

/* ============================================================
   功能卡片
   ============================================================ */
.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 28px 26px 26px;
  box-shadow: var(--c-shadow);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--c-shadow-lg);
  border-color: rgb(59 130 246 / 0.35);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}

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

.card h3 {
  margin: 0 0 10px;
  font-size: 17.5px;
  font-weight: 640;
}

.card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-2);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ticks li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--c-text-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary-2);
  opacity: 0.75;
}

/* ============================================================
   架构图
   ============================================================ */
.arch {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

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

.arch-node {
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  background: var(--c-bg);
  padding: 18px 20px;
  box-shadow: var(--c-shadow);
}

.arch-node-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 620;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--c-border);
}

.arch-node-head code {
  margin-left: auto;
  background: #eef2f7;
  color: var(--c-text-2);
  font-size: 12px;
}

.arch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.arch-user .arch-dot {
  background: var(--c-primary-2);
}

.arch-admin .arch-dot {
  background: #f59e0b;
}

.arch-site .arch-dot {
  background: #06b6d4;
}

.arch-api .arch-dot {
  background: #8b5cf6;
}

.arch-db .arch-dot {
  background: #10b981;
}

.arch-node ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-node li {
  font-size: 13.5px;
  color: var(--c-text-2);
  padding-left: 14px;
  position: relative;
}

.arch-node li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-text-3);
}

.arch-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-text-3);
  font-size: 12.5px;
  text-align: center;
}

.arch-link span {
  max-width: 84px;
  line-height: 1.4;
}

/* 技术栈 */
.stack-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.stack-item {
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  background: var(--c-bg);
  padding: 16px 18px;
}

.stack-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--c-text-3);
  margin-bottom: 10px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  white-space: nowrap;
}

/* ============================================================
   界面预览
   ============================================================ */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.shot {
  margin: 0;
}

.shot-frame {
  border-radius: var(--c-radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: #0f172a;
  box-shadow: var(--c-shadow-lg);
}

.shot-frame.shot-light {
  background: #f1f5f9;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  background: rgb(255 255 255 / 0.06);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.shot-light .shot-bar {
  background: #fff;
  border-bottom-color: var(--c-border);
}

.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
  opacity: 0.6;
}

.shot-bar i:first-child {
  background: #ef4444;
  opacity: 0.75;
}

.shot-bar i:nth-child(2) {
  background: #f59e0b;
  opacity: 0.75;
}

.shot-bar i:nth-child(3) {
  background: #10b981;
  opacity: 0.75;
}

.shot-bar span {
  margin-left: 8px;
  font-size: 11.5px;
  color: #94a3b8;
}

.shot-light .shot-bar span {
  color: var(--c-text-3);
}

.shot-body {
  display: flex;
  min-height: 210px;
}

.shot-side {
  width: 96px;
  flex-shrink: 0;
  padding: 12px 9px;
  background: rgb(0 0 0 / 0.24);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shot-light .shot-side {
  background: #fff;
  border-right: 1px solid var(--c-border);
}

.shot-side span {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 5px;
  color: #64748b;
}

.shot-side span.on {
  background: rgb(59 130 246 / 0.16);
  color: #93c5fd;
}

.shot-light .shot-side span.on {
  background: rgb(37 99 235 / 0.1);
  color: var(--c-primary);
}

.shot-main {
  flex: 1;
  padding: 14px;
  min-width: 0;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.shot-kpi {
  border-radius: 7px;
  padding: 9px 10px;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.07);
}

.shot-light .shot-kpi {
  background: #fff;
  border-color: var(--c-border);
}

.shot-kpi b {
  display: block;
  font-size: 16px;
  font-weight: 650;
  color: #e2e8f0;
  line-height: 1.3;
}

.shot-light .shot-kpi b {
  color: var(--c-text);
}

.shot-kpi.up b {
  color: #f87171;
}

.shot-kpi span {
  font-size: 10.5px;
  color: #64748b;
}

.shot-chart {
  height: 92px;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.04);
  overflow: hidden;
}

.shot-light .shot-chart {
  background: #fff;
  border: 1px solid var(--c-border);
}

.chart-line {
  width: 100%;
  height: 100%;
}

.shot-bars {
  height: 118px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 12px 10px 0;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.04);
}

.shot-light .shot-bars {
  background: #fff;
  border: 1px solid var(--c-border);
}

.shot-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #a78bfa, #6d28d9);
  opacity: 0.85;
}

.shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-3);
}

/* ============================================================
   部署
   ============================================================ */
.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.code-card {
  border-radius: var(--c-radius);
  overflow: hidden;
  background: #0d1526;
  border: 1px solid #1e293b;
  box-shadow: var(--c-shadow-lg);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: rgb(255 255 255 / 0.04);
  border-bottom: 1px solid #1e293b;
}

.code-head i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #ef4444;
}

.dot-y {
  background: #f59e0b;
}

.dot-g {
  background: #10b981;
}

.code-title {
  margin-left: 8px;
  font-size: 12.5px;
  color: #94a3b8;
}

.code-body {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
  color: #cbd5e1;
  tab-size: 2;
}

.c-c {
  color: #64748b;
}

.deploy-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.deploy-point {
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  background: var(--c-bg);
  padding: 18px 20px;
}

.deploy-point h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 640;
}

.deploy-point p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-text-2);
}

/* ============================================================
   安全表格
   ============================================================ */
.sec-table {
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
  background: var(--c-bg);
  box-shadow: var(--c-shadow);
}

.sec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}

.sec-row:last-child {
  border-bottom: none;
}

.sec-row > span:first-child {
  font-weight: 600;
  color: var(--c-text);
}

.sec-row > span:last-child {
  color: var(--c-text-2);
}

.sec-row-head {
  background: var(--c-bg-soft);
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: var(--c-text-3);
  font-weight: 600;
}

.sec-row-head > span {
  color: var(--c-text-3) !important;
  font-weight: 600;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 78px 0;
  background:
    radial-gradient(760px 340px at 50% 0%, rgb(59 130 246 / 0.16), transparent 68%),
    var(--c-bg-deep);
  color: var(--c-text-inv);
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 660;
  letter-spacing: -0.6px;
}

.cta p {
  margin: 0 auto 30px;
  max-width: 560px;
  color: var(--c-text-inv-2);
  font-size: 15px;
  line-height: 1.85;
}

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

.cta .btn-outline {
  border-color: rgb(255 255 255 / 0.24);
  color: var(--c-text-inv);
}

.cta .btn-outline:hover {
  border-color: rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.07);
  color: #fff;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: #070d18;
  color: var(--c-text-inv-2);
  padding: 52px 0 28px;
}

.footer-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand .brand-text {
  color: #dbe6f7;
}

.footer-brand p {
  margin: 0;
  font-size: 13.5px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-left: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #cbd5e1;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--c-text-inv-2);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #93c5fd;
}

.disclaimer {
  padding: 16px 20px;
  border-radius: var(--c-radius-sm);
  border: 1px solid rgb(245 158 11 / 0.22);
  background: rgb(245 158 11 / 0.07);
  font-size: 13px;
  line-height: 1.8;
  color: #cbd5e1;
}

.disclaimer strong {
  color: #fbbf24;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 12.5px;
  color: #64748b;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* 移动端展开为下拉面板 */
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 14px 30px -18px rgb(15 23 42 / 0.4);
  }

  .nav.open .nav-actions {
    display: flex;
    position: absolute;
    top: calc(64px + 232px);
    left: 0;
    right: 0;
    padding: 0 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
  }

  .nav.open .nav-actions .btn {
    flex: 1;
  }

  .section {
    padding: 62px 0;
  }

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

  .arch-link {
    flex-direction: row;
    gap: 12px;
  }

  .arch-link span {
    max-width: none;
  }

  .arch-link svg {
    transform: rotate(90deg);
  }

  .stack-row {
    grid-template-columns: 1fr;
  }

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

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

  .footer-cols {
    margin-left: 0;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 58px 0 66px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

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

  .deploy-points {
    grid-template-columns: 1fr;
  }

  .sec-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 12px 16px;
  }

  .sec-row-head {
    display: none;
  }

  .shot-side {
    width: 74px;
  }

  .shot-body {
    min-height: 180px;
  }

  .footer-inner {
    gap: 30px;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   部署文档页
   ============================================================ */
.docs-page {
  background: var(--c-bg);
}

.docs-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  max-width: var(--c-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---- 左侧目录 ---- */
.docs-side {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.docs-side-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 10px;
  padding-left: 12px;
}

.docs-side a {
  position: relative;
  padding: 7px 12px;
  border-radius: var(--c-radius-sm);
  font-size: 13.5px;
  color: var(--c-text-2);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.docs-side a:hover {
  background: var(--c-bg-soft);
  color: var(--c-primary);
}

.docs-side a.is-active {
  background: rgb(37 99 235 / 0.09);
  color: var(--c-primary);
  font-weight: 600;
}

/* 一级目录项（章）—— 加重，与二级拉开层级 */
.docs-side a.toc-l2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-top: 4px;
}

.docs-side a.toc-l2:first-of-type {
  margin-top: 0;
}

/* 二级目录项（接口文档的功能分组）—— 字号更小、左缩进、弱化 */
.docs-side a.toc-l3 {
  padding: 3px 12px 3px 22px;
  font-size: 12.5px;
  color: var(--c-text-3);
}

.docs-side a.toc-l3.is-active {
  color: var(--c-primary);
  background: rgb(37 99 235 / 0.06);
}

/* 返回上一级文档 */
.docs-side a.docs-side-back {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-3);
  font-size: 12.5px;
}

.docs-side a.docs-side-back:hover {
  color: var(--c-primary);
}

/* ---- 正文 ---- */
.docs-body {
  min-width: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--c-text-2);
}

.docs-body h1 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.docs-lead {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--c-text-2);
  max-width: 68ch;
}

.docs-body h2 {
  margin: 52px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border);
  font-size: 22px;
  font-weight: 650;
  color: var(--c-text);
  scroll-margin-top: 88px;
}

.docs-body h3 {
  margin: 28px 0 10px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--c-text);
  scroll-margin-top: 88px;
}

.docs-body p {
  margin: 0 0 14px;
  max-width: 76ch;
}

.docs-body ul,
.docs-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  max-width: 74ch;
}

.docs-body li {
  margin-bottom: 7px;
}

.docs-body strong {
  color: var(--c-text);
  font-weight: 600;
}

.docs-body code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--c-primary);
  word-break: break-word;
}

.docs-code {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: var(--c-radius);
  background: var(--c-bg-deep);
  border: 1px solid var(--c-border-dark);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.72;
  overflow-x: auto;
  white-space: pre;
}

/* ---- 提示框 ---- */
.docs-note {
  margin: 0 0 22px;
  padding: 15px 18px;
  border-radius: var(--c-radius-sm);
  border-left: 3px solid var(--c-primary);
  background: rgb(37 99 235 / 0.055);
  font-size: 14px;
  line-height: 1.7;
  max-width: 78ch;
}

.docs-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--c-primary);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.docs-note-warn {
  border-left-color: #d97706;
  background: rgb(217 119 6 / 0.06);
}

.docs-note-warn strong {
  color: #b45309;
}

/* ---- 表格 ---- */
.docs-table-wrap {
  margin: 0 0 22px;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}

.docs-table th,
.docs-table td {
  padding: 11px 15px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.docs-table th {
  background: var(--c-bg-soft);
  color: var(--c-text);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.docs-table td {
  color: var(--c-text-2);
}

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

.docs-table code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 12.5px;
}

/* ---- 底部按钮 ---- */
.docs-foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .docs-wrap {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 20px 60px;
  }

  .docs-side {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-sm);
    background: var(--c-bg-soft);
  }

  .docs-side-title {
    width: 100%;
    margin-bottom: 4px;
  }

  .docs-body h1 {
    font-size: 27px;
  }

  .docs-body h2 {
    margin-top: 40px;
    font-size: 19.5px;
  }
}

@media (max-width: 640px) {
  .docs-code {
    font-size: 12px;
    padding: 14px 15px;
  }

  .docs-body {
    font-size: 14.5px;
  }
}
