/* ============================================================
 * 官网（公开页）扩展样式 —— 只被 index / product / docs / about / help 等页面引用
 * ============================================================ */

/* ---------- 导航右侧 ---------- */
.header-right .btn-sm { height: 36px; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero-lg { padding: 76px 0 60px; }
.hero-lg h1 { font-size: 52px; letter-spacing: -0.025em; }
.hero-lg .lead { font-size: 17px; max-width: 540px; margin-top: 20px; }
.hero-lg .hero-actions { margin-top: 32px; }

.hero-visual { position: relative; }
.mock {
  position: relative;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 44px 84px -44px rgba(15, 23, 42, 0.55), 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.mock-bar {
  height: 38px;
  background: #fbfbfe;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e2e5ef; }
.mock-title { margin-left: 10px; font-size: 12px; color: var(--faint); }
.mock-body { padding: 18px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #fff;
}
.mock-row + .mock-row { margin-top: 8px; }
.mock-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--text);
}
.mock-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.mock-pill.ok { color: #0a8f63; background: var(--success-soft); }
.mock-pill.wait { color: #a86900; background: var(--warning-soft); }
.mock-bars { display: flex; align-items: flex-end; gap: 9px; height: 76px; margin-top: 16px; padding: 0 4px; }
.mock-bars i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #8b5cf6, #5b6cff);
  opacity: 0.85;
}
.mock-float {
  position: absolute;
  left: -26px;
  bottom: -16px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.5);
  font-size: 13px;
  font-weight: 600;
}
.mock-float svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- 通用区块 ---------- */
.section-soft {
  background: #fbfbfe;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 38px;
}
.section-head.center p { max-width: 580px; }

/* ---------- 能力矩阵 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: #dfe3ff;
  box-shadow: 0 26px 44px -30px rgba(91, 108, 255, 0.6);
}
.feature-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-deep);
  margin-bottom: 18px;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.72; }

/* ---------- 四步流程 ---------- */
.steps-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- 技术规格 ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 22px;
}
.spec b { display: block; font-size: 15px; margin-bottom: 6px; }
.spec span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.68; }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 32px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price.featured { border-color: var(--primary); box-shadow: 0 30px 60px -34px rgba(91, 108, 255, 0.8); }
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.price h3 { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.price .amount { margin: 14px 0 4px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.price .amount small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price .desc { font-size: 13px; color: var(--faint); margin-bottom: 22px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.price li { display: flex; gap: 9px; font-size: 13.5px; color: #475569; line-height: 1.5; }
.price li svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.price .btn { margin-top: auto; }

/* ---------- CTA 条 ---------- */
.cta-band { background: var(--grad); color: #fff; padding: 58px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.015em; }
.cta-inner p { margin-top: 8px; font-size: 14.5px; opacity: 0.86; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary-deep); }
.btn-white:hover { background: #f4f5ff; transform: translateY(-1px); }
.btn-on-grad { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); }
.btn-on-grad:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- 文档页 ---------- */
.doc-wrap { display: grid; grid-template-columns: 216px 1fr; gap: 44px; align-items: start; }
.doc-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.doc-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.doc-nav a:hover { background: #f1f2f9; color: var(--text); }
.doc-nav a.active { background: var(--primary-soft); color: var(--primary-deep); font-weight: 600; }

.doc-body h2 { font-size: 22px; margin: 40px 0 14px; scroll-margin-top: 92px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 16px; margin: 26px 0 10px; }
.doc-body p { color: #334155; font-size: 14.5px; line-height: 1.85; margin-bottom: 12px; }
.doc-body ul, .doc-body ol { color: #334155; font-size: 14.5px; line-height: 1.85; padding-left: 22px; margin: 10px 0 16px; }
.doc-body li { margin-bottom: 6px; }
.doc-body code {
  background: #f1f3f9;
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #334155;
}

.code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  margin: 6px 0 20px;
  white-space: pre;
}
.code .c { color: #64748b; }
.code .k { color: #93c5fd; }
.code .s { color: #86efac; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.about-grid h2 { font-size: 24px; margin-bottom: 14px; }
.about-grid p { color: #334155; font-size: 14.5px; line-height: 1.9; margin-bottom: 14px; }
.info-list {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.info-list div:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); flex-shrink: 0; }
.info-list b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  /* 官网导航 5 项，窄屏换行展示，避免横向滚动被裁切 */
  .nav { flex-wrap: wrap; overflow: visible; }
}

@media (max-width: 980px) {
  .hero-lg { padding: 48px 0 32px; }
  .hero-lg h1 { font-size: 40px; }
  .feature-grid, .price-grid, .spec-grid, .steps-4, .steps-2 { grid-template-columns: 1fr 1fr; }
  .doc-wrap { grid-template-columns: 1fr; gap: 26px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .mock { transform: none; }
  .mock-float { left: 12px; }
}

@media (max-width: 640px) {
  .hero-lg h1 { font-size: 32px; }
  .hero-lg .lead { font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .feature-grid, .price-grid, .spec-grid, .steps-4, .steps-2 { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner h2 { font-size: 22px; }
  .mock-float { display: none; }
  .price { padding: 28px 22px 22px; }
}
