/* ============================================================
   有鱼智能体 官网样式 · 依据 design/youyu-website.pen 设计系统
   黑白灰为主，蓝紫渐变仅作强调；无外部 CDN，系统字体栈。
   UTF-8 无 BOM
   ============================================================ */

:root {
  /* 色板（与设计系统一致） */
  --bg: #ffffff;
  --bg-subtle: #f7f7f8;
  --bg-ink: #0e0e11;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #8b8b94;
  --text-invert: #ffffff;
  --border: #e7e7ea;
  --border-strong: #d6d6dc;
  --brand-blue: #3b6bff;
  --brand-purple: #8b5cf6;
  --brand-pink: #d946ef;
  --accent: #4f46e5;
  --success: #16a34a;
  --danger: #dc2626;
  --tier-plus: #3b6bff;
  --tier-pro: #7c3aed;
  --tier-max: #e8890c;
  --grad-brand: linear-gradient(90deg, var(--brand-blue), var(--brand-purple) 55%, var(--brand-pink));

  /* 圆角 / 容器 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --container: 1120px;

  /* 字体：中文系统栈；数字用 num 类 */
  --font-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-num: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* 兼容旧引用 */
  --primary: var(--accent);
  --bg-white: var(--bg);
  --text-light: var(--text-muted);
  --radius: var(--radius-md);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  color: var(--text-primary);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.num { font-family: var(--font-num); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------- 导航 ---------------- */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav-mark {
  /* logo 图标（website/img/logo.png，黑色版用于浅色导航栏） */
  height: 28px; width: auto; display: block; object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 36px; margin: 0 auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-right .nav-login { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.nav-right .nav-login:hover { color: var(--text-primary); }

/* 公告横幅（site-config.js 动态插入） */
.announcement-banner { padding: 9px 24px; text-align: center; font-size: 13px; }
.announcement-info  { background: #eaf0ff; color: #1d4ed8; }
.announcement-warn  { background: #fdf0df; color: #b45309; }
.announcement-promo { background: #f3eeff; color: var(--brand-purple); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; font-family: var(--font-cn);
  border: none; cursor: pointer; white-space: nowrap;
  transition: opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--text-primary); color: var(--text-invert); }
.btn-outline { background: var(--bg); color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-block { width: 100%; display: flex; }
.btn-plus { background: var(--tier-plus); color: #fff; }
.btn-pro { background: var(--tier-pro); color: #fff; }
.btn-max { background: var(--tier-max); color: #fff; }
.btn-free { background: var(--success); color: #fff; }

/* ---------------- 徽章 / 小标签 ---------------- */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
  background: var(--bg-subtle); color: var(--text-secondary); font-family: var(--font-num);
}
.badge-ai { background: #f3eeff; color: var(--brand-purple); }
.badge-hot { background: var(--grad-brand); color: #fff; font-family: var(--font-cn); }
.badge-green { background: #e8f7ee; color: var(--success); font-family: var(--font-cn); }

/* ---------------- 区块通用 ---------------- */
.section { padding: 96px 24px; }
.section-subtle { background: var(--bg-subtle); }
.section-ink { background: var(--bg-ink); color: var(--text-invert); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; margin-bottom: 14px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title { font-size: 36px; font-weight: 700; line-height: 1.35; }
.section-sub { font-size: 16px; color: var(--text-secondary); margin-top: 12px; line-height: 1.7; }
.section-ink .section-sub { color: #a6a6b0; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- 首屏 Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 24px 88px; text-align: center; background: var(--bg);
}
.hero-anim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-anim canvas { width: 100%; height: 100%; display: block; }
.hero > .hero-content { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex; align-items: center; padding: 6px 14px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .82); font-size: 13px; color: var(--text-secondary);
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.3; }
.hero-sub {
  max-width: 640px; margin: 24px auto 0; font-size: 17px; line-height: 1.7;
  color: var(--text-secondary);
}
.hero-cta { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.hero-trust {
  display: flex; justify-content: center; gap: 28px; margin-top: 22px;
  font-size: 13px; color: var(--text-secondary); flex-wrap: wrap;
}
.hero-trust span::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---------------- 能力条（四列一卡） ---------------- */
.cap-strip { padding: 28px 24px 72px; background: var(--bg); }
.cap-card {
  max-width: var(--container); margin: 0 auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(24, 24, 27, .05);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.cap-col { padding: 24px 26px; }
.cap-col + .cap-col { border-left: 1px solid var(--border); }
.cap-col h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cap-col h3 .cap-ic { color: var(--brand-purple); font-size: 16px; }
.cap-col p { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.65; }

/* ---------------- S1–S4 流水线 ---------------- */
.timeline { position: relative; height: 28px; max-width: var(--container); margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 11.7%; right: 11.7%; top: 13px; height: 2px;
  background: var(--border-strong);
}
.timeline i {
  position: absolute; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-primary); border: 2px solid var(--bg);
}
.timeline i:nth-child(1) { left: calc(11.7% - 6px); }
.timeline i:nth-child(2) { left: calc(37.2% - 6px); }
.timeline i:nth-child(3) { left: calc(62.8% - 6px); }
.timeline i:nth-child(4) { left: calc(88.3% - 6px); }

.lane-grid {
  max-width: var(--container); margin: 20px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.lane-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: 0 2px 8px rgba(24, 24, 27, .04);
}
.lane-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.lane-head .lane-num { font-family: var(--font-num); font-weight: 700; font-size: 13px; color: var(--text-muted); }
.lane-head .lane-title { font-size: 15px; font-weight: 700; }
.lane-head .badge { margin-left: auto; }
.lane-tasks li {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-secondary); padding: 5px 0;
}
.lane-tasks .st { font-size: 12px; font-weight: 500; }
.st-done { color: var(--success); }
.st-run { color: var(--brand-blue); }
.st-wait { color: var(--tier-max); }

.value-grid {
  max-width: var(--container); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.value-card .v-ic {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px;
}
.value-card h3 { font-size: 18px; font-weight: 700; }
.value-card p { font-size: 14px; color: var(--text-secondary); margin-top: 10px; line-height: 1.7; }

/* ---------------- 深色效果展示 ---------------- */
.showcase-row {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 48px;
}
.showcase-inputs { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.showcase-thumb img { width: 190px; height: 190px; object-fit: cover; border-radius: var(--radius-md); }
.showcase-thumb figcaption { font-size: 13px; color: #a6a6b0; margin-top: 10px; }
.showcase-op { color: #5b5b66; font-size: 22px; font-weight: 700; }
.showcase-result img { width: 440px; height: 552px; object-fit: cover; border-radius: var(--radius-lg); }
.showcase-caption {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 13px; color: #a6a6b0; width: 440px;
}
.showcase-caption .num { font-size: 12px; color: #5b5b66; }

/* ---------------- 产物链（旅程） ---------------- */
.journey-row {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: stretch;
}
.journey-dark {
  background: var(--bg-ink); color: var(--text-invert);
  border-radius: var(--radius-lg); padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.journey-dark h3 { font-size: 26px; font-weight: 700; line-height: 1.45; }
.journey-dark p { font-size: 14px; color: #a6a6b0; margin-top: 14px; line-height: 1.75; }
.journey-dark .badge { align-self: flex-start; margin-top: 22px; background: rgba(255, 255, 255, .1); color: #d6d6dc; font-family: var(--font-cn); }
.journey-list { display: flex; flex-direction: column; gap: 14px; }
.journey-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 22px; flex: 1;
}
.journey-item .j-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.journey-item h4 { font-size: 15px; font-weight: 700; }
.journey-item p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.journey-item .j-check { margin-left: auto; color: var(--success); font-weight: 700; }

/* ---------------- 套餐卡 ---------------- */
.plan-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start;
}
.plan-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column;
}
.plan-card.featured {
  border: 1.5px solid var(--brand-purple);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .12);
}
.plan-head { display: flex; align-items: center; }
.plan-tier { font-family: var(--font-num); font-weight: 700; font-size: 18px; }
.plan-tier.t-free { color: var(--success); font-family: var(--font-cn); }
.plan-tier.t-plus { color: var(--tier-plus); }
.plan-tier.t-pro { color: var(--tier-pro); }
.plan-tier.t-max { color: var(--tier-max); }
.plan-head .badge { margin-left: auto; }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.plan-price-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 18px; }
.plan-price { font-family: var(--font-num); font-weight: 700; font-size: 40px; line-height: 1; }
.plan-price.fallback { font-family: var(--font-cn); font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--text-secondary); }
.plan-per { font-size: 13px; color: var(--text-muted); padding-bottom: 4px; }
.plan-quota { margin-top: 18px; }
.plan-quota-row { display: flex; align-items: center; font-size: 13px; color: var(--text-secondary); }
.plan-quota-row b { font-family: var(--font-num); font-size: 14px; color: var(--text-primary); margin-right: 4px; }
.plan-quota-row .devices { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.plan-bar { height: 6px; background: var(--bg-subtle); border-radius: var(--radius-pill); margin-top: 8px; overflow: hidden; }
.plan-bar i { display: block; height: 100%; border-radius: var(--radius-pill); }
.plan-divider { height: 1px; background: var(--border); margin: 20px 0; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; }
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 700; font-size: 13px; }
.plan-features li.na { color: var(--text-muted); }
.plan-features li.na::before { content: "✕"; color: var(--text-muted); }
.plan-features li.js-only::before { content: "·"; color: var(--text-muted); }
.plan-cta { margin-top: 24px; }
.plan-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 24px; }
.plan-note a { color: var(--accent); }

/* ---------------- 定价页专属 ---------------- */
.billing-toggle {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--bg-subtle); border-radius: var(--radius-pill);
}
.billing-toggle button {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-family: var(--font-cn); color: var(--text-secondary);
}
.billing-toggle button.active {
  background: var(--bg); color: var(--text-primary); font-weight: 500;
  box-shadow: 0 1px 3px rgba(24, 24, 27, .08);
}
.billing-toggle .off { color: var(--success); font-family: var(--font-num); font-size: 12px; font-weight: 600; margin-left: 6px; }

.cost-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cost-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.cost-card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cost-card .cost-v { font-family: var(--font-num); font-weight: 700; font-size: 22px; margin-top: 10px; }
.cost-card p { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.65; }

.pack-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.pack-grid li.muted, #points-packs-list li.muted {
  grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: 14px; padding: 24px 0;
}
.pack-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.pack-card h3 { font-size: 16px; font-weight: 700; }
.pack-card .pack-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.pack-line { display: flex; align-items: flex-end; margin-top: 14px; }
.pack-line b { font-family: var(--font-num); font-weight: 700; font-size: 28px; line-height: 1; }
.pack-line span { font-size: 13px; color: var(--text-secondary); margin-left: 6px; }
.pack-line .pack-price { margin-left: auto; font-family: var(--font-num); font-weight: 600; font-size: 16px; }

/* ---------------- 安全三卡 ---------------- */
.safe-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.safe-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.safe-card .s-ic {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: #f3eeff;
  color: var(--brand-purple); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.safe-card h3 { font-size: 17px; font-weight: 700; }
.safe-card p { font-size: 14px; color: var(--text-secondary); margin-top: 10px; line-height: 1.7; }

/* ---------------- FAQ ---------------- */
.faq-2col {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start;
}
.faq-2col .faq-intro h2 { font-size: 28px; font-weight: 700; line-height: 1.4; }
.faq-2col .faq-intro p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-group-title { font-size: 20px; font-weight: 700; margin: 36px 0 16px; }
.faq-wrap .faq-group-title:first-child { margin-top: 0; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
  font-family: var(--font-cn); font-size: 15px; font-weight: 500; color: var(--text-primary);
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-q::after { content: "▾"; color: var(--text-muted); font-size: 13px; transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 18px; font-size: 13px; line-height: 1.75; color: var(--text-secondary); }
.faq-item.open .faq-a { display: block; }

/* ---------------- 联系 / 顾问卡 ---------------- */
.consult-card {
  display: inline-flex; align-items: center; gap: 20px; text-align: left;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px;
}
.consult-card .qrcode-img {
  width: 104px; height: 104px; object-fit: cover;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-subtle);
}
.consult-card h3 { font-size: 16px; font-weight: 700; }
.consult-card .c-id { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.consult-card .c-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; max-width: 280px; }

/* ---------------- 下载页 ---------------- */
.dl-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.ver-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.step-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.step-card .step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--text-primary); color: #fff;
  font-family: var(--font-num); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-card h4 { font-size: 16px; font-weight: 700; }
.step-card p { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.7; }
.step-card code { background: var(--bg-subtle); border-radius: 4px; padding: 1px 6px; font-size: 12px; }

.changelog { max-width: 760px; margin: 0 auto; }
.changelog-entry { display: flex; gap: 24px; padding-bottom: 32px; }
.changelog-meta { width: 150px; flex-shrink: 0; }
.changelog-meta .v { font-family: var(--font-num); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.changelog-meta .d { font-family: var(--font-num); font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.changelog-items li {
  position: relative; padding-left: 16px; font-size: 14px; color: var(--text-secondary); padding-bottom: 8px;
}
.changelog-items li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
}

/* ---------------- 页脚 ---------------- */
.footer { background: var(--bg-ink); color: var(--text-invert); }
.footer-fish {
  /* 鱼群动画横带（仅首页）：动画代码来自 footer.txt，视觉保持原样 */
  height: 400px; background: #333; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.footer-fish svg {
  max-height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 3%, rgba(1, 118, 142, 1) 100%);
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 56px 24px 40px; }
.footer-top { display: flex; align-items: flex-start; }
.footer-brand-col .footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.footer-brand-col .nav-mark { height: 24px; width: auto; }
.footer-slogan { font-size: 13px; color: #8b8b94; margin-top: 10px; }
.footer-links { margin-left: auto; display: flex; gap: 32px; }
.footer-links a { font-size: 13px; color: #a6a6b0; }
.footer-links a:hover { color: #fff; }
.footer-divider { height: 1px; background: #26262c; margin: 40px 0 24px; }
.footer-copy { font-size: 12px; color: #5b5b66; }
.footer-beian { font-size: 12px; color: #5b5b66; margin-top: 6px; }
.footer-beian a { color: #5b5b66; transition: color .15s; }
.footer-beian a:hover { color: #a6a6b0; }

/* ---------------- 工具类 ---------------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.flex-center { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .cap-card { grid-template-columns: repeat(2, 1fr); }
  .cap-col + .cap-col { border-left: none; }
  .cap-col:nth-child(even) { border-left: 1px solid var(--border); }
  .cap-col:nth-child(n+3) { border-top: 1px solid var(--border); }
  .lane-grid, .plan-grid, .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .safe-grid, .cost-grid { grid-template-columns: 1fr 1fr; }
  .journey-row { grid-template-columns: 1fr; }
  .showcase-row { flex-direction: column; }
  .showcase-result img, .showcase-caption { width: 100%; max-width: 440px; }
  .faq-2col { grid-template-columns: 1fr; gap: 24px; }
  .timeline { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 20px; }
  .nav-links { display: none; }
  .cap-card, .lane-grid, .plan-grid, .pack-grid, .value-grid, .safe-grid, .cost-grid { grid-template-columns: 1fr; }
  .cap-col { border-left: none !important; border-top: 1px solid var(--border); }
  .cap-col:first-child { border-top: none; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { margin-left: 0; flex-wrap: wrap; }
  .hero-trust { gap: 14px; }
  .footer-fish { height: 260px; }
}

/* ============================================================
   ── Playground ──（P5 追加分节 · 勿改上方既有规则）
   贴 Key 在线试用页 playground.html / playground.js 专属样式
   ============================================================ */
.pg-section { padding-top: 56px; padding-bottom: 80px; }
.pg-wrap { max-width: 860px; margin: 0 auto; }

/* 卡片外壳 */
.pg-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
}

/* Key 输入条 */
.pg-keybar { margin-bottom: 28px; }
.pg-keybar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }
.pg-key-input { position: relative; flex: 1; min-width: 220px; }
.pg-key-input input {
  width: 100%; font-family: var(--font-num); font-size: 14px;
  padding: 10px 40px 10px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); background: var(--bg); color: var(--text-primary);
}
.pg-key-input input:focus { outline: none; border-color: var(--accent); }
.pg-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; font-size: 15px;
  padding: 4px; opacity: .55; line-height: 1;
}
.pg-eye:hover { opacity: 1; }
.pg-balance {
  margin-top: 14px; font-size: 13px; color: var(--text-secondary);
  display: flex; gap: 22px; flex-wrap: wrap;
}
.pg-balance .pg-bal-num { font-family: var(--font-num); font-weight: 700; color: var(--text-primary); }
.pg-balance.pg-error { color: var(--danger); }
.pg-hint { color: var(--text-muted); }

/* 标签页 */
.pg-tabs {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--bg-subtle); border-radius: var(--radius-pill); margin-bottom: 24px;
}
.pg-tab {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 26px; border-radius: var(--radius-pill);
  font-size: 14px; font-family: var(--font-cn); color: var(--text-secondary);
}
.pg-tab.active {
  background: var(--bg); color: var(--text-primary); font-weight: 500;
  box-shadow: 0 1px 3px rgba(24, 24, 27, .08);
}

/* 面板通用控件 */
.pg-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pg-toolbar > .btn { margin-left: auto; }
.pg-select {
  font-family: var(--font-cn); font-size: 14px; padding: 9px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg); color: var(--text-primary); cursor: pointer;
}
.pg-select:focus { outline: none; border-color: var(--accent); }
.pg-textarea {
  width: 100%; font-family: var(--font-cn); font-size: 14px; line-height: 1.6;
  padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); background: var(--bg); color: var(--text-primary);
  resize: vertical;
}
.pg-textarea:focus { outline: none; border-color: var(--accent); }
.pg-panel .btn:disabled, .pg-keybar .btn:disabled { opacity: .45; cursor: not-allowed; }

/* 对话消息区 */
.pg-messages {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-subtle); padding: 20px;
  min-height: 280px; max-height: 520px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.pg-empty { color: var(--text-muted); font-size: 14px; text-align: center; margin: auto; }
.pg-msg { display: flex; }
.pg-msg-user { justify-content: flex-end; }
.pg-msg-assistant { justify-content: flex-start; }
.pg-bubble {
  max-width: 78%; padding: 11px 15px; border-radius: var(--radius-lg);
  font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.pg-msg-user .pg-bubble { background: var(--text-primary); color: var(--text-invert); border-bottom-right-radius: 4px; }
.pg-msg-assistant .pg-bubble { background: var(--bg); border: 1px solid var(--border); color: var(--text-primary); border-bottom-left-radius: 4px; }
.pg-bubble.pg-bubble-error { color: var(--danger); border: 1px solid var(--danger); background: #fff5f5; }

.pg-composer { display: flex; gap: 12px; margin-top: 16px; align-items: flex-end; }
.pg-composer .pg-textarea { flex: 1; }
.pg-composer .btn { flex-shrink: 0; }

/* 生图表单 */
.pg-img-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pg-field { display: flex; flex-direction: column; gap: 8px; }
.pg-field-full { grid-column: 1 / -1; }
.pg-field .pg-select { width: 100%; }
.pg-field input[type="file"] { font-size: 13px; color: var(--text-secondary); }
.pg-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-thumb {
  position: relative; width: 76px; height: 76px; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border);
}
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg-thumb-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(14, 14, 17, .7); color: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.pg-thumb-del:hover { background: var(--danger); }

.pg-img-status { margin-top: 18px; font-size: 14px; color: var(--text-secondary); }
.pg-img-status.pg-error { color: var(--danger); }
.pg-img-results { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; }
.pg-img-results img { width: 240px; max-width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); }

@media (max-width: 640px) {
  .pg-img-form { grid-template-columns: 1fr; }
  .pg-composer { flex-direction: column; align-items: stretch; }
  .pg-composer .btn { width: 100%; }
}

/* ---------------- API 文档页 ---------------- */
.doc-section { padding-top: 56px; padding-bottom: 88px; }
.doc-wrap { max-width: 900px; margin: 0 auto; }

.doc-toc { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 24px; }
.doc-toc-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.doc-toc ol { margin: 0 0 0 20px; list-style: decimal; }
.doc-toc li { margin: 3px 0; }
.doc-toc a { color: var(--accent); font-size: 14px; line-height: 1.9; }
.doc-toc a:hover { text-decoration: underline; }

.doc-block { margin-top: 52px; scroll-margin-top: 80px; }
.doc-h2 { font-size: 25px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.doc-h2 .doc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-right: 12px; vertical-align: middle;
  border-radius: var(--radius-sm); background: var(--text-primary); color: var(--text-invert);
  font-family: var(--font-num); font-size: 15px;
}
.doc-h3 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
.doc-wrap p { color: var(--text-secondary); line-height: 1.8; margin: 10px 0; }
.doc-list { margin: 10px 0 10px 22px; list-style: disc; color: var(--text-secondary); line-height: 1.8; }
.doc-list li { margin: 5px 0; }
.doc-wrap strong { color: var(--text-primary); font-weight: 600; }

/* 行内代码 */
.doc-wrap code {
  font-family: var(--font-num); font-size: 13px;
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 6px; color: var(--text-primary);
}
/* 代码块 */
.doc-code {
  background: var(--bg-ink); color: #e6e6ea; border-radius: var(--radius-md);
  padding: 18px 20px; margin: 14px 0; overflow-x: auto;
  font-size: 13px; line-height: 1.7;
}
.doc-code code {
  background: none; border: none; padding: 0; color: inherit;
  font-family: var(--font-num); white-space: pre;
}
.doc-code-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 20px 0 -4px; }

/* 表格 */
.doc-table-wrap { overflow-x: auto; margin: 16px 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.6; }
.doc-table th { background: var(--bg-subtle); font-weight: 600; color: var(--text-primary); }
.doc-table td { color: var(--text-secondary); }
.doc-table td code { font-size: 12px; }

/* 提示框 */
.doc-note {
  background: var(--bg-subtle); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 12px 16px; margin: 16px 0;
  font-size: 14px; color: var(--text-secondary); line-height: 1.8;
}
