/* ============================================================
   FastApi 宣传页(服务端渲染 cshtml)样式 —— 独立于 Vue SPA
   视觉体系: 现代云服务开发者门户风 (蓝紫品牌渐变 + 雾面卡片)
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-weak: #eef4ff;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 26px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 46px rgba(15, 23, 42, .13);
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 62%, #6d28d9 100%);
  --code-bg: #0b1220;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
::selection { background: rgba(37, 99, 235, .9); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* 细滚动条 (桌面) */
@media (min-width: 1200px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid #fff; }
  ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
  ::-webkit-scrollbar-track { background: transparent; }
}
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 9px 16px; border-radius: 0 0 8px 0;
  z-index: 99; font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.main-nav { display: flex; gap: 2px; margin: 0 auto; }
.main-nav a {
  color: var(--text-2); padding: 8px 14px; border-radius: 9px;
  font-size: 15px; font-weight: 500; transition: all .15s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-weak); }
.header-actions { display: flex; gap: 10px; align-items: center; flex: none; }
/* 头部用户区: 与 /console 顶栏用户区视觉一致 */
.header-text-link {
  color: #606266; font-size: 14px; font-weight: 400;
  text-decoration: none; white-space: nowrap;
  padding: 6px 12px; border-radius: 6px;
  transition: all .2s;
}
.header-text-link:hover { color: #2563eb; background: #eef2ff; }

/* ---------- 已登录用户区(头部 JS 渲染): 用户下拉菜单 ---------- */
.hu-user { position: relative; }
.hu-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 400; color: #606266;
  background: none; border: none; padding: 4px 6px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; max-width: 220px;
  transition: color .15s;
}
.hu-trigger:hover { color: #2563eb; }
.hu-name { overflow: hidden; text-overflow: ellipsis; color: #909399; }
.hu-caret { flex: none; width: 13px; height: 13px; fill: #c0c4cc; transition: transform .18s, fill .18s; }
.hu-user.open .hu-caret { transform: rotate(180deg); fill: #909399; }
.hu-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #c0c4cc;
  background-size: cover; background-position: center;
  color: #fff; font-style: normal; font-size: 12px; font-weight: 400;
  display: inline-flex; align-items: center; justify-content: center;
}
.hu-avatar-icon { flex: none; width: 15px; height: 15px; color: #fff; }
.hu-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 156px; padding: 4px 0;
  background: #fff; border: 1px solid #e4e7ed; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 21, 41, .1);
  z-index: 120;
}
.hu-menu[hidden] { display: none; }
.hu-menu a, .hu-menu button {
  display: flex; align-items: center; width: 100%;
  padding: 7px 16px; font-size: 14px; line-height: 1.5;
  color: #606266; text-align: left; text-decoration: none; white-space: nowrap;
  background: none; border: none; cursor: pointer;
}
.hu-menu a:hover, .hu-menu button:hover { background: #eef2ff; color: #2563eb; text-decoration: none; }
.hu-menu button#huLogout { color: #dc2626; }
.hu-menu button#huLogout:hover { background: #fef2f2; color: #dc2626; }
.hu-sep { height: 1px; margin: 5px 0; background: #eef0f3; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 10px;
  padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  line-height: 1.5; text-align: center; text-decoration: none;
  transition: all .18s ease;
  vertical-align: middle;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background-image: var(--grad-brand);
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, .36); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(37, 99, 235, .25); }
.btn-ghost {
  background: #fff; color: var(--text-2); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--primary); border-color: #bfdbfe; background: #fbfdff; transform: translateY(-1px); }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { display: block; width: 100%; padding: 12px; font-size: 15px; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 14px; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 柔和渐变浅底区 (hero / page-head / detail-hero) ---------- */
/* 同一套底层: 顶部品牌光晕 + 浅色线性渐变 + 细微网格点; 伪元素 pointer-events:none 不挡交互 */
.hero, .page-head, .detail-hero, .prominent {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 12% -12%, rgba(37, 99, 235, .13), transparent 62%),
    radial-gradient(900px 420px at 94% 6%, rgba(124, 58, 237, .11), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
}
.hero::before, .page-head::before, .detail-hero::before, .prominent::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, .14) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 72%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 72%);
}
.hero > .container, .page-head > .container, .detail-hero > .container, .prominent > .container { position: relative; z-index: 1; }

.hero { padding: 74px 0 58px; border-bottom: 1px solid var(--line-soft); }
.hero h1 {
  font-size: 42px; line-height: 1.22; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -.8px;
}
.hero h1 span, .hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  font-size: 17px; color: var(--text-2); max-width: 760px;
  margin: 0 auto 30px;
}
.hero .container { text-align: center; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin: 46px auto 0; max-width: 900px;
}
.hero-stats > div {
  flex: 1 1 150px; max-width: 210px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-stats dt { font-size: 13px; color: var(--text-3); letter-spacing: .2px; }
.hero-stats dd {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin: 3px 0 0; letter-spacing: -.4px;
}
/* 首页 banner 能力亮点(替代统计卡) */
.hero-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 44px auto 0; max-width: 1000px; text-align: left;
}
.hero-trust .ht-item {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.ht-item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--text); }
.ht-item h3::before {
  content: ""; display: inline-block; vertical-align: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-brand); margin-right: 8px;
}
.ht-item p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--text-2); }
@media (max-width: 900px) { .hero-trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hero-trust { grid-template-columns: 1fr; } }

/* ---------- 页首横幅 (列表/文档/FAQ 顶部) ---------- */
.page-head {
  position: relative;
  padding: 60px 0 48px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(560px 300px at 16% 0%, rgba(79, 70, 229, .09), transparent 62%),
    radial-gradient(620px 320px at 86% 100%, rgba(37, 99, 235, .08), transparent 60%);
}
.page-head .grad-text { color: var(--indigo); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-head .grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.5vw, 40px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.8px;
}
.page-head p {
  color: var(--text-2);
  margin: 0 auto 26px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
}
.page-head p:last-child { margin-bottom: 0; }
.search-bar {
  display: flex; gap: 10px; max-width: 600px; margin: 4px auto 0;
  padding: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s;
}
.search-bar:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1), var(--shadow); }
.search-bar input {
  flex: 1; border: none; border-radius: 9px; padding: 8px 14px;
  font-size: 15px; outline: none; background: transparent; color: var(--text);
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--line); color: var(--text-2); background: #fff;
  padding: 7px 16px; border-radius: 999px; font-size: 14px;
  transition: all .15s;
}
.chip:hover { border-color: #93c5fd; color: var(--primary); background: #fbfdff; text-decoration: none; transform: translateY(-1px); }
.chip.active {
  background: var(--grad-brand); border-color: transparent;
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .24);
}

/* ---------- Section / 标题 ---------- */
.section { padding: 62px 0; }
.alt-bg { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2, .section-title { font-size: 26px; margin: 0 0 20px; font-weight: 800; letter-spacing: -.4px; }
.section-title { margin: 4px 0 20px; }
.section-center {
  text-align: center; margin: 0 0 38px;
  font-size: 28px; font-weight: 800; letter-spacing: -.5px;
}
.link-more { color: var(--primary); font-size: 15px; font-weight: 500; white-space: nowrap; }
.link-more:hover { text-decoration: none; }
.link-more:hover { text-decoration: none; color: var(--primary-strong); }
.empty { color: var(--text-3); text-align: center; padding: 46px 0; }

/* ---------- 接口卡片 ---------- */
.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.api-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
/* hover 顶部品牌渐变提示线 */
.api-card-topline {
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--violet) 55%, transparent 115%);
  opacity: 0; transition: opacity .22s ease;
}
.api-card:hover {
  transform: translateY(-5px);
  border-color: #c7d8f7;
  box-shadow: var(--shadow-lg);
}
.api-card:hover .api-card-topline { opacity: 1; }
.api-card-link {
  display: flex; flex-direction: column; height: 100%;
  padding: 24px 22px 0; color: inherit;
}
.api-card-link:hover { text-decoration: none; }

/* 横向信息头: 浅雾图标 | 标题/芯片 */
.api-card-head { display: flex; align-items: center; gap: 15px; }
/* 浅雾渐变底 + 品牌色图标 */
.api-ico {
  width: 56px; height: 56px; border-radius: 18px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
  background: linear-gradient(160deg, #eef3ff 0%, #dde8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .14), 0 8px 16px -10px rgba(37, 99, 235, .5);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.api-ico svg { width: 29px; height: 29px; display: block; }
.api-card:hover .api-ico {
  color: #1d4ed8; transform: translateY(-2px) scale(1.04);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .2), 0 14px 24px -12px rgba(37, 99, 235, .6);
}
.api-card-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* 标题行: 大标题(单行截断) + 徽章(推荐/免费试用) */
/* 卡片宽度有限时(如「推荐」+「免费试用」同时出现)徽章整体换到标题下一行, 避免标题被挤压变形 */
.api-title-line {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 8px;
}
.api-title {
  flex: 1 1 50%; min-width: 130px;
  margin: 0;
  font-size: 18px; line-height: 1.35; font-weight: 800; letter-spacing: -.3px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
/* 角标组: 绝对定位于卡片右上角, 推荐/免费试用横排同行 */
.api-pills {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px;
}
/* 推荐徽章: 实底红 (透明边框与 .api-tag 对齐, 两者等高) */
.api-flag {
  display: inline-flex; align-items: center; background: #ef4444; color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 4px 12px; border: 1px solid transparent; border-radius: 999px;
  box-shadow: 0 4px 10px -4px rgba(239, 68, 68, .6);
}
.api-tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 12px;
  border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.api-tag.trial { color: var(--success); background: var(--success-bg); border-color: #a7f3d0; }
.api-tag.hot { color: var(--danger); background: var(--danger-bg); border-color: #fecaca; }

/* 芯片行: 调用码 + 请求方式 */
.api-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.api-chip {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 7px;
}
.api-chip.code {
  color: #1d4ed8; background: #eef4ff; letter-spacing: .4px;
  font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
.api-chip.method { color: #64748b; background: #f1f5f9; }

/* 描述: 整行通栏 */
.api-desc {
  flex: 1 1 auto; margin: 18px 0 0;
  color: var(--text-3); font-size: 13px; line-height: 1.75; min-height: 46px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 底部信息栏(内嵌分隔, 与卡片一体) */
.api-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 0 17px; margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}
/* 价格块: 标签在上 大字在下 */
.api-price { display: inline-flex; align-items: center; width: 100%; }
.price-cell {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding-right: 13px; margin-right: 13px;
  border-right: 1px dashed var(--line);
  flex:1;
}
.price-cell:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.price-cell small {
  font-size: 11px; font-weight: 400; line-height: 1.2; color: var(--text-3);
  white-space: nowrap;
}
.price-cell b {
  font-size: 19px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2;
  color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 免费试用占位(价格区): 替代价格展示「登陆后免费体验 / 免费试用 · 即开即用，畅快体验」 */
.api-price-real { display: contents; }
.api-price-real[hidden],
.price-trial-cell[hidden] { display: none; }
/* 试用文案统一字号(未登录「登陆后免费体验」与已登录「免费试用 · 即开即用，畅快体验」) */
.price-trial-cell b {
  font-size: 13px; font-weight: 700; line-height: 1.45;
  color: #047857; white-space: normal; letter-spacing: 0;
}
/* 开通按钮: 实心胶囊 */
.api-go {
  flex: none; font-size: 13px; font-weight: 600; color: #fff;
  padding: 8px 17px; border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .5);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.api-card:hover .api-go {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 9px 18px -6px rgba(37, 99, 235, .6);
}

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination .pg-btn {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text-2);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
  user-select: none;
}
.pagination a.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination .pg-btn.current {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .25);
}
.pagination .pg-btn.prev-next { gap: 4px; }
.pagination .pg-btn.disabled { opacity: .4; pointer-events: none; background: #f8fafc; }
.pagination .pg-more { border: none; background: transparent; color: var(--text-3); min-width: 20px; padding: 0; }
.pagination-info { width: 100%; text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 4px; }

/* ---------- 接口详情 ---------- */
.detail-hero { padding: 40px 0 34px; border-bottom: 1px solid var(--line-soft); }
.breadcrumb {
  display: flex; gap: 8px; color: var(--text-3); font-size: 13px;
  margin-bottom: 16px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-title-row h1 { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.6px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.chip-static {
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  padding: 4px 13px; border-radius: 999px; font-size: 13px; color: var(--text-2);
}
.detail-desc { color: var(--text-2); max-width: 900px; margin: 4px 0 22px; font-size: 16px; }
.detail-quick {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow);
}
.quick-item { background: #fff; padding: 18px 20px; transition: background .15s; }
.quick-item:hover { background: #fbfdff; }
.quick-item h3 { margin: 0 0 6px; font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.quick-item p { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); word-break: break-all; }
.quick-item .price { color: var(--danger); }
.quick-item .mono { font-size: 13px; font-weight: 500; color: var(--indigo); }
.mono, code, pre { font-family: var(--font-mono); }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-body h2 {
  font-size: 23px; margin: 40px 0 14px; padding-top: 18px;
  border-top: 1px solid var(--line); font-weight: 800; letter-spacing: -.3px;
}
.detail-body h2:first-child { border-top: none; padding-top: 0; margin-top: 8px; }
.detail-body h3 { font-size: 18px; margin: 26px 0 12px; font-weight: 700; }
.detail-body h4 { font-size: 15px; margin: 18px 0 8px; color: var(--text-2); }

/* 数据表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.api-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.api-table th, .api-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.api-table th {
  background: var(--bg-soft); font-weight: 600; color: var(--text);
  font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.api-table tbody tr:last-child td { border-bottom: none; }
.api-table tbody tr { transition: background .12s; }
.api-table tbody tr:hover td { background: #f8fbff; }

/* 代码块 */
.code-block {
  background: linear-gradient(180deg, #0d1526 0%, var(--code-bg) 100%);
  color: #dbeafe; border: 1px solid #1e293b; border-radius: var(--radius);
  padding: 18px 20px; font-size: 13px; line-height: 1.7;
  overflow-x: auto; margin: 12px 0 8px;
}
/* white-space 只作用于“代码本身”: pre.code-block(自身即代码) 或 容器内的 pre(.code-head + pre 结构)。
   若让外层 div.code-block 容器继承 pre-wrap, code-head 与 pre 之间的换行会被渲染成空行, 造成标题与代码间距变大 */
pre.code-block,
.code-block > pre { white-space: pre-wrap; word-break: break-all; }
.code-block > pre { margin: 0; }

/* 多语言调用示例 TAB */
.lang-box { border: 1px solid #1e293b; border-radius: var(--radius); overflow: hidden; margin: 14px 0 8px; box-shadow: var(--shadow-sm); }
.lang-head {
  display: flex; gap: 5px; padding: 8px; background: #131c31;
  overflow-x: auto; scrollbar-width: thin;
}
.lang-tab {
  flex: none; padding: 7px 16px; font-size: 13px; line-height: 1.4;
  color: #94a3b8; background: transparent; border: none; border-radius: 8px;
  cursor: pointer; white-space: nowrap; font-family: var(--font-main);
  transition: all .15s; font-weight: 500;
}
.lang-tab:hover { color: #e2e8f0; background: rgba(255, 255, 255, .09); }
.lang-tab.active { color: #fff; background: var(--grad-brand); font-weight: 600; box-shadow: 0 3px 10px rgba(37, 99, 235, .4); }
.lang-body .code-block { border: none; border-radius: 0; margin: 0; background: var(--code-bg); }
.lang-pane { display: none; }
.lang-pane.active { display: block; }

.plain-list { padding-left: 4px; list-style: none; color: var(--text-2); }
.plain-list li { margin: 8px 0; padding-left: 24px; position: relative; }
.plain-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-brand); opacity: .85;
}
.detail-related { margin: 34px 0 0; }

/* ---------- 步骤 / 特性 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; text-align: center; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 20px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-no {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 16px;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .3);
}
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.step p { color: var(--text-2); font-size: 14px; margin: 0; }
.feature-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d8f7; }
.feature-item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; position: relative; padding-left: 16px; }
.feature-item h3::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 5px; height: 17px; border-radius: 4px; background: var(--grad-brand);
}
.feature-item p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- NMS 套餐 ---------- */
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; max-width: 1060px; margin: 0 auto;
}
.plan-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-brand) border-box;
  box-shadow: 0 16px 40px rgba(79, 70, 229, .16);
}
.plan-card.featured::after {
  content: "推荐"; position: absolute; top: -11px; right: 20px;
  background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(79, 70, 229, .35);
}
.plan-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; }
.plan-price { margin-bottom: 12px; }
.plan-price .num {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--primary);
}
.plan-price .unit { color: var(--text-3); font-size: 14px; margin-left: 4px; }
.plan-desc { color: var(--text-2); font-size: 14px; min-height: 44px; }
.plan-card .plain-list { margin: 10px 0 6px; }
.plan-card .btn { margin-top: 18px; }

/* ---------- Docs ---------- */
/* 1fr 列用 minmax(0,1fr) 防止正文最小内容宽度(行内 code/长 URL 等不可断行内容)把网格撑破产生横向滚动条 */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 42px; align-items: start; }
/* 文档正文列允许收缩到任意宽度, 长文本/行内代码可断行, 兜底避免任何元素外溢页面 */
.docs-content { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.docs-nav { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.doc-nav-group { border-top: 1px solid var(--line-soft); padding: 5px 0 3px; }
.docs-nav .doc-nav-group:first-of-type { border-top: none; }
.doc-nav-group summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 2px;
  font-size: 12px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .6px;
  position: relative; transition: color .15s;
}
.doc-nav-group summary::-webkit-details-marker { display: none; }
.doc-nav-group summary:hover { color: var(--primary); }
.doc-nav-group[open] summary { color: var(--text); }
.doc-nav-group .g-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-nav-group .nav-count {
  font-size: 11px; font-weight: 600; line-height: 1.6;
  padding: 0 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-3);
  transition: all .15s;
}
.doc-nav-group[open] .nav-count { background: var(--primary-weak); color: var(--primary); }
.doc-nav-group summary::after {
  content: ""; flex: none; width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid currentColor;
  opacity: .8;
  transition: transform .18s ease;
}
.doc-nav-group[open] summary::after { transform: rotate(90deg); }
.doc-nav-group ul { list-style: none; margin: 0 0 6px; padding: 0; }
.docs-nav li a {
  display: block; color: var(--text-2); padding: 6px 0 6px 12px;
  font-size: 14px; border-left: 2px solid var(--line);
  transition: all .12s; overflow-wrap: anywhere;
}
.docs-nav li a:hover { color: var(--primary); border-left-color: var(--primary); text-decoration: none; background: transparent; }
.doc-section { position: relative; padding: 10px 0 12px; scroll-margin-top: 88px; }
.doc-section h2 {
  font-size: 25px; margin: 22px 0 12px; font-weight: 800; letter-spacing: -.4px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.doc-section h3 { font-size: 19px; margin: 24px 0 10px; font-weight: 700; }
.doc-section p, .doc-section li { color: var(--text-2); }
.doc-section ul, .doc-section ol { padding-left: 24px; }
.doc-section li { margin: 4px 0; }
.doc-section pre {
  background: linear-gradient(180deg, #0d1526 0%, var(--code-bg) 100%);
  color: #dbeafe; border: 1px solid #1e293b; border-radius: var(--radius);
  padding: 16px 18px; overflow-x: auto; font-size: 13px; white-space: pre-wrap;
}
.doc-section code {
  background: #eef2f7; color: #be185d;
  padding: 2px 7px; border-radius: 6px; font-size: 13px;
}
.doc-section pre code { background: none; color: inherit; padding: 0; border-radius: 0; }
.doc-section blockquote {
  margin: 14px 0; padding: 12px 18px; background: var(--primary-weak);
  border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; color: var(--text-2);
}
.doc-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; background: #fff; }
.doc-table th, .doc-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.doc-table th { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-weight: 600; }
.tip-box {
  background: var(--success-bg); border: 1px solid #a7f3d0; color: #065f46;
  border-radius: var(--radius); padding: 13px 17px; margin: 14px 0; font-size: 14px;
}
.doc-anchor {
  position: absolute; left: -8px; color: transparent; font-size: 20px;
  transition: color .15s; text-decoration: none;
}
.doc-section:hover .doc-anchor { color: #94a3b8; }
.doc-anchor:hover { color: var(--primary) !important; }

/* ---------- 文档: 长页入口 + 单篇独立阅读页(/docs/章节锚点) ---------- */
.page-head-sm { padding: 42px 0 30px; }
.page-head-sm h1 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 6px; }
.doc-standalone {
  display: inline-block; font-size: 13px; color: var(--text-3);
  text-decoration: none; border-bottom: 1px dashed var(--line);
  transition: color .15s, border-color .15s;
}
.doc-standalone:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }
.docs-nav li a.active {
  color: var(--primary); border-left-color: var(--primary);
  background: var(--primary-weak); font-weight: 600;
}
.doc-crumb-link { color: var(--text-2); text-decoration: none; }
.doc-crumb-link:hover { color: var(--primary); text-decoration: underline; }
.doc-detail .doc-crumb { font-size: 13px; color: var(--text-3); margin: -6px 0 8px; }
.doc-detail .doc-crumb a { color: var(--text-3); text-decoration: none; }
.doc-detail .doc-crumb a:hover { color: var(--primary); text-decoration: underline; }
.doc-detail .doc-pager {
  display: flex; justify-content: space-between; gap: 14px;
  margin: 34px 0 6px; padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.doc-pager a { color: var(--primary); text-decoration: none; font-size: 14px; max-width: 46%; overflow-wrap: anywhere; }
.doc-pager a:hover { text-decoration: underline; }
.doc-pager-next { text-align: right; margin-left: auto; }
.doc-pager-empty { flex: 1; }
@media (max-width: 760px) {
  .page-head-sm { padding: 28px 0 22px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; margin-left: auto; margin-right: auto; }
.faq-wrap > .section-title { text-align: left; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0 0 12px; background: #fff; overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.faq-item:hover { border-color: #c7d8f7; }
.faq-item summary {
  cursor: pointer; padding: 17px 54px 17px 20px; font-weight: 600;
  font-size: 15px; list-style: none; position: relative;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  color: var(--primary); font-size: 18px; font-weight: 500;
  border: 1.5px solid #bfdbfe; border-radius: 50%;
  transition: all .2s;
}
.faq-item[open] summary::after { content: "−"; background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-answer { padding: 4px 20px 18px; color: var(--text-2); font-size: 15px; }
.faq-answer p { margin: 8px 0; }

/* ---------- 登录注册 ---------- */
.auth-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 360px at 18% 0%, rgba(37, 99, 235, .09), transparent 62%),
    radial-gradient(700px 340px at 88% 100%, rgba(124, 58, 237, .08), transparent 60%),
    var(--bg);
  display: flex; justify-content: center; padding: 64px 0 84px;
}
.auth-card {
  width: 100%; max-width: 430px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 38px 34px 34px;
  position: relative;
}
.auth-card h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; text-align: center; letter-spacing: -.4px; }
.auth-sub { color: var(--text-3); font-size: 14px; text-align: center; margin: 0 0 24px; line-height: 1.6; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; margin-bottom: 7px; color: var(--text-2); font-weight: 500; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 15px; outline: none; background: #fbfdff;
  transition: all .15s; color: var(--text);
}
.field input::placeholder { color: #9aa4b2; }
.field input:focus { border-color: #93c5fd; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.captcha-row .captcha-img {
  display: block; width: 112px; height: 40px; border-radius: 9px;
  border: 1px solid var(--line); cursor: pointer; object-fit: cover; margin-top: 8px;
}
.captcha-row .captcha-img:focus { outline: 2px solid var(--primary); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.code-row .field > span { grid-column: 1 / -1; }
.code-row .btn { height: 44px; margin-top: 0; }
.code-row .captcha-row > span { display: block; }
.form-msg { color: var(--danger); font-size: 14px; margin: 2px 0 14px; min-height: 0; }
.form-msg:empty { display: none; }
.auth-links {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; font-size: 14px;
}
.auth-links a { color: var(--text-2); }
.auth-links a:hover { color: var(--primary); }
.forgot-panel { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 20px; }
.forgot-panel h2 { font-size: 17px; margin: 0 0 4px; }
.forgot-panel .auth-sub { text-align: left; margin-bottom: 16px; }
.notice-box {
  border: 1px dashed #c7d8f7; border-radius: var(--radius);
  padding: 26px 22px; text-align: center; color: var(--text-2);
  background: linear-gradient(180deg, #f7faff, #fff);
}
.notice-box p { margin: 6px 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; margin-top: 30px; padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer .brand { color: #f8fafc; }
.site-footer .brand-name { color: #f8fafc; }
.footer-desc { color: #94a3b8; font-size: 14px; margin: 14px 0 0; max-width: 380px; line-height: 1.7; }
.footer-col h3 { color: #f8fafc; font-size: 15px; margin: 0 0 14px; font-weight: 700; letter-spacing: .2px; }
.footer-col a {
  display: block; color: #94a3b8; font-size: 14px; padding: 5px 0;
  transition: color .15s, padding-left .15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; padding-left: 4px; }
.footer-copy { border-top: 1px solid #1e293b; padding-top: 18px; }
.footer-copy p { margin: 0; color: #64748b; font-size: 13px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 8px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; margin: 0; padding-bottom: 2px; }
  .main-nav a { white-space: nowrap; }
  .header-actions { margin-left: auto; }
  .hero { padding: 52px 0 42px; }
  .hero h1 { font-size: 32px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; max-height: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .prominent::before { background-size: 22px 22px; }
}
@media (max-width: 560px) {
  .brand-name { white-space: normal; overflow-wrap: anywhere; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 27px; }
  .hero-stats { gap: 10px; }
  .hero-stats > div { flex: 1 1 44%; max-width: none; }
  .section { padding: 44px 0; }
  .detail-quick { grid-template-columns: 1fr 1fr; }
  .detail-title-row h1 { font-size: 26px; }
  .auth-card { padding: 28px 22px 26px; }
  .page-head { padding: 40px 0 32px; }
  .page-head h1 { font-size: 27px; }
  .step-no { width: 42px; height: 42px; }
}
