/* 10086AI third-party relay test UI. No external deps. */

:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #d1fae5;
  --red: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
               sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
               Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
/* Inner wrapper aligns nav content with the page container's max-width
   (960px) so on wide monitors the nav doesn't drift to the screen edges
   while the body stays centered. */
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
.nav-official {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  font-weight: 600;
}
.nav-official:hover { background: var(--bg-soft); }
.nav-official::after { display: none !important; }

/* Desktop / tablet: nav inline next to brand, left-grouped (NOT pushed to
   the right). Standard SaaS navbar layout — feels balanced because the
   eye reads brand → nav → empty space, not brand → wide gap → nav. */
.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.site-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0;
  position: relative;
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
/* Subtle underline on hover/focus — feels more "tappable" than bare text */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

/* GitHub button in nav — pill-shaped chip with the official mark + label.
 * Stronger visual weight than text links so it reads as "primary external
 * action" without needing a real CTA button (which would compete with
 * the page's actual CTA). Underline animation suppressed since the chip
 * has its own border. */
.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text) !important;
  margin-left: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-github:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.nav-github svg {
  flex-shrink: 0;
}
.nav-github::after { display: none !important; }  /* suppress nav underline */

/* Hamburger button — hidden on desktop, shown on mobile. */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Animate to an "X" when open — gives a clear close affordance. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  flex: 1;
  width: 100%;
}

.site-footer {
  /* 横向 padding 移到内部 p 上,跟 .container (max-width 960 + padding 24)
     完全同步。border-top 仍占满屏宽保留分隔线视觉。文字居中显示
     (页脚约定俗成的对齐方式)。 */
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.site-footer p {
  /* 复刻 .container 的盒模型:外宽 960px、横向 24px 内 padding、border-box
     让 p 边线跟主体内容像素级对齐。文字在 960px 框内居中,
     长句超过 960px 自然换行(每行仍居中)。 */
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.site-footer p.muted.small {
  margin-top: 8px;
}

/* Footer multi-column layout — replaces the single centered paragraph
 * with a grid of {tagline + GitHub button | 项目 | 工具 | 资源}.
 * Designed for an SEO-friendly internal-link cluster footer (every
 * deep-link reachable from any page) without becoming a wall of text. */
.footer-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 12px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
  box-sizing: border-box;
}
.footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin: 6px 0; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-tagline {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}
.footer-tagline strong { color: var(--green-dark, #047857); }
.footer-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-copyright {
  text-align: center;
  margin: 8px 0 0;
  padding: 0 24px;
}
.footer-copyright-github {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: inherit !important;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  text-decoration: none;
  vertical-align: middle;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.footer-copyright-github:hover {
  opacity: 1;
  text-decoration: none;
}
.footer-copyright-github svg {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .footer-col-tagline {
    grid-column: 1 / -1;  /* tagline + GitHub btn span both columns */
  }
}

/* ============================== Trust Strip ==============================
 * Hub homepage section right below the hero capsule. The whole strip
 * exists because 10086AI 中转服务质量评估的产品前提 is "hand us your API key" —
 * users won't do that without proof of trust. We give 3 cards of
 * concrete promises, each linking into the actual code that proves it.
 * Visual weight is intentionally heavy: subtle gradient bg + clear
 * heading anchor + GitHub CTA at the bottom. */
.trust-strip {
  margin: 32px 0 40px;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.04) 0%,
    rgba(16, 185, 129, 0.01) 60%,
    var(--bg) 100%);
}
.trust-strip-head {
  text-align: center;
  margin-bottom: 24px;
}
.trust-strip-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.trust-strip-head p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.trust-strip-head p strong { color: var(--text); }

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.trust-card {
  padding: 18px 18px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.trust-icon {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1;
}
.trust-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.trust-card h3 em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 13.5px;
}
.trust-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.trust-card code {
  font-size: 11.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}
.trust-link {
  font-size: 12.5px;
  color: var(--green-dark, #047857);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
}
.trust-link:hover { text-decoration: underline; }

.trust-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
/* GitHub-styled "primary" button — recognizable mono font + dark bg
 * matches what users expect on a GitHub-link CTA. Different from the
 * green primary CTA on detect pages so they don't compete visually. */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1f2328;
  color: white;
  border: 1px solid #1f2328;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-github:hover {
  background: #34383d;
  border-color: #34383d;
  text-decoration: none;
  transform: translateY(-1px);
}
.trust-license-pill {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
@media (max-width: 760px) {
  .trust-cards { grid-template-columns: 1fr; }
  .trust-strip { padding: 22px 18px 18px; }
  .trust-strip-head h2 { font-size: 19px; }
}

/* hero */
.hero { text-align: center; margin-bottom: 32px; }
.hero h1 {
  font-size: 36px; line-height: 1.2; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* hub */
.hub-hero {
  /* 不设 max-width — 让首屏文字、协议卡片、why/how 各 section 共用 .container
     的 960px 全宽,左右边缘视觉对齐。text-wrap: balance 会在 960px 内自动
     算出每行接近相等的宽度,所以不会出现"一行特别长"的问题。 */
  margin: 8px 0 28px;
}
.hub-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hub-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.protocol-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.protocol-card-primary { border-color: rgba(16, 185, 129, 0.45); }
.protocol-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.protocol-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.protocol-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.protocol-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}
.protocol-action {
  margin-top: auto;
  width: 100%;
}
.tier-badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tier-crypto {
  color: #047857;
  background: var(--green-soft);
}
.tier-behavioral {
  color: #92400e;
  background: #fef3c7;
}
.tier-protocol {
  color: #374151;
  background: #f3f4f6;
}
.hub-note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}
.hub-note h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.hub-note p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* CJK + 英文混排:用 text-wrap: balance 让浏览器主动平衡每行宽度
   (Chrome 114+ / Firefox 121+ / Safari 17.5+),避免出现某行只到一半就换行
   的难看排版。仅对短文本(<= 6 行)生效,正好覆盖首页这些介绍段落。
   line-break: strict 防止 CJK 标点出现在错误位置;overflow-wrap 兜底防溢出。 */
/* balance 让短段落每行宽度均衡(适合三协议卡片、why 卡片这种多个并列、
   需要视觉对齐的场景,以及只有 1-2 行的页脚 / meta 文字)。
   .answer-capsule 之前也加了 balance,但它在不同页面长度差很多:首页 hero
   文字长 (>6 行) balance 自动失效→走贪心填满容器;排行榜 hero 只 2 行,
   balance 反而把两行都缩到一半宽。所以 capsule 一律用贪心换行,跟 hub-note /
   how-steps 一致 — 第一行填满容器,装不下才换行。 */
.hub-meta,
.protocol-card p,
.why-item p,
.site-footer p {
  overflow-wrap: break-word;
  text-wrap: balance;
  line-break: strict;
}
.answer-capsule,
.hub-note p,
.how-steps p {
  overflow-wrap: break-word;
  line-break: strict;
}

/* answer capsule + meta strip (SEO definition-first per SEO_AI_GEO_PLAN §3.2) */
.answer-capsule {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
}
.answer-capsule strong {
  color: var(--green-dark);
  font-weight: 600;
}
.hub-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}
.hub-meta strong {
  color: var(--text);
  font-weight: 600;
}
/* 内联版 meta:跟在 .answer-capsule 末尾继续流动而不是另起一段。
   保持灰色 + 稍小字号的视觉差异,前面留一格空白做天然分隔。 */
.hub-meta-inline {
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.01em;
  margin-left: 0.5em;
}
.hub-meta-inline strong { color: var(--text); font-weight: 600; }

/* "why 10086AI" differentiator grid */
.why-veridrop { margin: 44px 0 8px; }
.why-veridrop h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.why-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.why-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.why-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.why-item code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--text);
}

/* "how it works" 3-step list */
.how-it-works { margin: 44px 0 8px; }
.how-it-works h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--bg);
}
.how-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.how-steps h3 {
  font-size: 16px;
  margin: 2px 0 6px;
  line-height: 1.35;
}
.how-steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.how-steps a { color: var(--green-dark); text-decoration: none; }
.how-steps a:hover { text-decoration: underline; }

/* ========== /leaderboard 红黑榜 ========== */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.lb-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  align-items: flex-start;
}
.lb-rank {
  font-size: 24px;
  text-align: center;
  padding-top: 4px;
}
.lb-rank-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.lb-main { min-width: 0; }
.lb-domain {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  word-break: break-all;  /* 长域名能换行 */
}
.lb-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
  overflow-wrap: break-word;
}
.lb-badge-info {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
}
.lb-protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.lb-proto-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 500;
}
.lb-proto-chip:hover { text-decoration: none; transform: translateY(-1px); transition: transform 0.1s; }
.lb-proto-name { font-weight: 600; }
.lb-proto-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-proto-verdict { font-size: 11.5px; opacity: 0.85; }
.lb-proto-count { font-size: 11px; opacity: 0.7; }
.lb-proto-ok    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.lb-proto-good  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.lb-proto-warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.lb-proto-fail  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lb-issues {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.lb-issues code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
  border: 1px solid var(--line);
}
.lb-score {
  text-align: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
}
.lb-score-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-score-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.lb-score-ok    { background: var(--green-soft); color: var(--green-dark); }
.lb-score-good  { background: #f0fdf4; color: #166534; }
.lb-score-warn  { background: #fffbeb; color: #92400e; }
.lb-score-fail  { background: #fef2f2; color: #991b1b; }

/* leaderboard list — domain link + detail entry */
.lb-domain a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.lb-domain a:hover {
  border-bottom-color: var(--muted);
  text-decoration: none;
}
.lb-detail-link {
  font-size: 12.5px;
  color: var(--green-dark, #047857);
  text-decoration: none;
  font-weight: 500;
}
.lb-detail-link:hover { text-decoration: underline; }

/* leaderboard detail page — per-domain SEO surface */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--muted); opacity: 0.5; }
.breadcrumb-current { color: var(--text); font-weight: 500; word-break: break-all; }

.lb-detail-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-score {
  text-align: center;
  min-width: 110px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.lb-detail-score-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-detail-score-label {
  display: block;
  font-size: 11px;
  color: inherit;
  opacity: 0.75;
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.lb-detail-protocols h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lb-detail-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.lb-detail-issues {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-issues h2 {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.lb-issues-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-issues-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
}
.lb-issues-list code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 12px;
  color: var(--text);
}
.lb-issues-count {
  color: var(--muted);
  font-size: 11.5px;
}

.lb-detail-history {
  margin: 28px 0;
}
.lb-detail-history h2 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lb-history-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lb-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.lb-history-table thead {
  background: var(--bg-soft);
}
.lb-history-table th,
.lb-history-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.lb-history-table th.num,
.lb-history-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lb-history-table tbody tr:last-child td { border-bottom: none; }
.lb-history-table tbody tr:hover { background: var(--bg-soft); }
.lb-history-table code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.lb-history-table thead tr code,
.lb-history-table tbody tr:hover code {
  background: var(--bg);
}
.lb-history-score {
  display: inline-block;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
}
.lb-history-score-ok    { background: #ecfdf5; color: #065f46; }
.lb-history-score-good  { background: #f0fdf4; color: #166534; }
.lb-history-score-warn  { background: #fffbeb; color: #92400e; }
.lb-history-score-fail  { background: #fef2f2; color: #991b1b; }

/* Leaderboard section headers — separate Top 10 from全部列表. */
.lb-section-heading {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.lb-section-heading h2 {
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.lb-section-heading p {
  margin: 0;
}

/* Pagination — server-rendered links so each page is a distinct URL
 * for SEO long-tail (?page=2 etc.). Designed mobile-first: chips
 * wrap onto multiple lines if needed instead of overflowing. */
.lb-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 28px 0;
  font-size: 14px;
}
.lb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.lb-page-btn:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.lb-page-current {
  background: var(--green);
  color: white;
  border-color: var(--green);
  font-weight: 600;
}
.lb-page-current:hover {
  background: var(--green);  /* lock — current page isn't a link */
  color: white;
}
.lb-page-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.lb-page-ellipsis {
  align-self: flex-end;
  padding: 7px 4px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .lb-detail-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lb-detail-score { min-width: 0; }
  .lb-detail-score-num { font-size: 40px; }
}

/* coming soon */
.coming-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.coming-head h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 4px 0 10px;
  letter-spacing: -0.02em;
}
.coming-head .muted {
  max-width: 680px;
  margin: 0;
}
.coming-card {
  max-width: 680px;
}
.coming-notice {
  margin: 0 0 22px;
  color: var(--muted);
}
.wishlist-form .btn-primary {
  max-width: 220px;
}
.form-success {
  color: var(--green-dark);
  font-size: 14px;
  margin: 12px 0 0;
}

/* card */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.form-card { padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg);
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.field .hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 18px; }

/* Opt-in checkbox row — for long-context probe and other paid extras. */
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.field-checkbox label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.5;
  flex: 1;
}
.field-checkbox label > strong { font-weight: 600; }
.field-checkbox .checkbox-hint {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}
.field-checkbox .checkbox-hint strong { color: var(--text); font-weight: 600; }
.field-checkbox:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft, rgba(16, 185, 129, 0.06));
}

.btn-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.btn:hover { background: var(--bg-soft); }
.btn-primary {
  background: var(--green); color: white; border-color: var(--green);
  width: 100%; padding: 13px 22px; font-size: 16px;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost { background: var(--bg); }

.form-error {
  color: var(--red);
  font-size: 14px;
  margin: 12px 0 0;
}
/* Rich error card — used when /api/detect returns 422 model_not_alive.
   Renders the inline "switch to recommended" + "force submit" actions
   instead of just text. */
.form-error.form-error-rich {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 14px 16px;
  color: #991b1b;
}
.form-error-title { font-weight: 600; margin-bottom: 4px; }
.form-error-body { font-size: 13px; color: #7f1d1d; word-break: break-word; }
.form-error-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.form-error-actions .btn { font-size: 13px; padding: 7px 14px; }

/* features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 32px;
}
.feature h3 { font-size: 15px; margin: 0 0 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* running */
.running-card { text-align: center; padding: 56px 28px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- result page ---------- */
.result-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 24px;
}
.result-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.result-head .muted { font-size: 14px; word-break: break-all; }
.result-actions { display: flex; gap: 8px; flex-shrink: 0; }

.key-origin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.key-origin-high {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.key-origin-medium {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}
.key-origin-low {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.result-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  align-items: center;
}
.result-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.score-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.score-ok      { background: var(--green); }
.score-ok-dim  { background: var(--green-dark); }
.score-warn    { background: var(--amber); }
.score-fail    { background: var(--red); }

.score-inner {
  width: calc(100% - 24px); height: calc(100% - 24px);
  background: var(--bg);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-num { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; }
.score-caption { color: var(--muted); font-size: 14px; margin-top: 4px; }
.attribution { margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-row {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.check-row:last-child { border-bottom: 0; }
.check-icon { display: flex; align-items: center; flex-shrink: 0; width: 32px; }
.check-label { font-size: 16px; flex: 1; min-width: 0; }
.check-status {
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.check-ok .check-status      { color: var(--green); }
.check-warn .check-status    { color: var(--amber); }
.check-fail .check-status    { color: var(--red); }
.check-muted .check-status   { color: var(--muted); }

/* metrics row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metrics-row-5 { grid-template-columns: repeat(5, 1fr); }
.metric {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
}
.metric-warn { border-color: var(--red); border-width: 2px; }
.metric-label { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.metric-value { font-size: 24px; font-weight: 700; margin-top: 6px; }

.alert-card {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.notes-card {
  background: #fffbeb;
  border-color: #fde68a;
}
.notes-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.note-item + .note-item {
  border-top: 1px solid #fde68a;
  margin-top: 14px;
  padding-top: 14px;
}
.note-item p {
  color: #92400e;
  margin: 6px 0 0;
}

.details-card summary {
  cursor: pointer; font-weight: 600; padding: 4px 0;
}
.def-list { display: grid; grid-template-columns: 200px 1fr; gap: 10px 18px; margin-top: 14px; }
.def-list dt { font-weight: 600; }
.def-list dd { margin: 0; color: var(--muted); }

/* combobox (custom dropdown — replaces native <datalist> for mobile reliability) */
.combo { position: relative; width: 100%; }
/* input doesn't auto-fill its block container; force 100% so the combo
   matches the width of the sibling <select> in .field-row. */
.combo > input { width: 100%; }
.combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  -webkit-overflow-scrolling: touch;
}
.combo-item {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", Consolas, monospace;
  color: var(--text);
  /* mobile: bigger tap target, easier to hit */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.combo-item:hover, .combo-item.active {
  background: var(--green-soft);
  color: var(--green-dark);
}
.combo-item:active {
  background: var(--green);
  color: white;
}
.combo-item[hidden] { display: none; }
/* When the input has a query, non-matching items dim instead of hide so the
   user can still see the relay's full model whitelist surfaced by /api/probe. */
.combo-item.no-match { opacity: 0.4; }
.combo-item.no-match:hover { opacity: 1; }

/* FAQ */
.faq { margin-top: 48px; }
.faq h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

/* FAQ header — title row + dual-mode toggle (通俗 / 开发者).
   Two answers per question (data-mode="layperson|developer"); CSS hides
   the inactive mode based on the parent .faq's data-mode attribute. JS
   in app.js flips the attribute and persists the choice in localStorage. */
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}
.faq-header h2 { margin: 0; }
.faq-mode-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.faq-mode-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.faq-mode-btn:hover { color: var(--text); }
.faq-mode-active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Mode-specific answer visibility — by default both <p data-mode> are in
   DOM (so search engines see both); CSS hides whichever doesn't match
   the active mode. */
.faq[data-mode="layperson"] [data-mode="developer"] { display: none; }
.faq[data-mode="developer"] [data-mode="layperson"] { display: none; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0;
  transition: box-shadow 0.15s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  content: '▾';
}
.faq-item[open] summary::after {
  content: '▴';
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
}
.faq-body {
  padding: 0 22px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 0;
}
.faq-body p:first-child { margin-top: 0; }
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul, .faq-body ol { padding-left: 22px; }
.faq-body li { margin-bottom: 6px; }
.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.faq-table th, .faq-table td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.faq-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* Tablet (721px–960px): same desktop layout, just slightly tighter padding
   so on iPad portrait the brand+nav fit one row without crowding. */
@media (max-width: 960px) {
  .site-header-inner { padding: 14px 20px; gap: 20px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
}

/* Mobile (≤720px): collapse nav into hamburger dropdown. */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .answer-capsule { font-size: 16px; }
  .why-veridrop h2, .how-it-works h2 { font-size: 20px; }

  /* leaderboard 手机端:rank 列改小 + score 移到 main 下方,避免 3 列挤 */
  .lb-row {
    grid-template-columns: 32px 1fr;
    grid-template-areas:
      "rank main"
      ".    score";
    gap: 10px 12px;
  }
  .lb-rank { grid-area: rank; font-size: 18px; padding-top: 0; }
  .lb-rank-num { width: 28px; height: 28px; line-height: 28px; font-size: 12px; }
  .lb-main { grid-area: main; }
  .lb-score {
    grid-area: score;
    justify-self: start;
    min-width: 0;
    padding: 4px 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
  }
  .lb-score-num { font-size: 20px; }
  .lb-score-label { margin-top: 0; }

  /* 手机端:步骤项从「左圆数字 + 右内容」改成「上数字 + 下内容」竖排,
     避免左边 32px 圆 + 16px gap 吃掉 48px 内容宽度。让描述文字填满整个
     步骤框,跟其他卡片视觉一致。 */
  .how-steps li {
    flex-direction: column;
    gap: 8px;
  }
  .field-row { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; padding: 24px; }
  .metrics-row, .metrics-row-5 { grid-template-columns: repeat(2, 1fr); }
  .def-list { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  .hub-hero h1, .coming-head h1 { font-size: 28px; }
  .coming-head { flex-direction: column; }

  /* Show hamburger; collapse nav into a dropdown panel positioned right
     under the header. */
  .nav-toggle { display: flex; }
  .site-header-inner { padding: 12px 16px; gap: 12px; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    /* Hidden by default on mobile; toggled via aria-expanded on .nav-toggle */
    display: none;
  }
  /* When the toggle's aria-expanded is true, reveal the nav.
     Sibling selector relies on toggle being a direct sibling of nav. */
  .nav-toggle[aria-expanded="true"] ~ .site-nav {
    display: flex;
  }
  .site-nav a {
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a:hover { background: var(--bg-soft); }
  /* Disable the underline animation in dropdown rows — it competes with
     the row-tap highlight and looks busy. */
  .site-nav a::after { display: none; }
  /* Mobile: GitHub icon-only button sits as a normal-looking row, not a
     32px circle in the corner of a dropdown. */
  .site-nav .nav-github {
    width: auto;
    height: auto;
    border-radius: 0;
    margin-left: 0;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 20px;
  }
  .site-nav .nav-github::before {
    content: "GitHub";
    font-size: 15px;
  }
  .site-nav .nav-github svg {
    order: -1;
  }
}

/* pre-submit /v1/models probe pill (web/static/app.js inserts it) */
.probe-pill {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.55;
}
.probe-pill .probe-headline { font-weight: 600; }
.probe-pill .probe-detail { margin-top: 4px; color: var(--muted); font-size: 12px; word-break: break-all; }
.probe-pill .probe-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.probe-pill .probe-action {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}
.probe-ok      { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.probe-warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.probe-fail    { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.probe-neutral { background: #f9fafb; border-color: #e5e7eb; color: #4b5563; }

/* =========== /faq page =========== */
.faq-hero {
  margin: 8px 0 24px;
}
.faq-hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.faq-hero-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 740px;
}

/* Two-column: sticky TOC | main content */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

.faq-toc {
  position: sticky;
  /* site-header is sticky at top: 0 with ~58px height; offset so TOC sits below */
  top: 78px;
  align-self: start;
  font-size: 14px;
}
.faq-toc-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.faq-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-toc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.faq-toc-list a {
  color: var(--text);
  padding: 7px 10px;
  border-radius: 6px;
  flex: 1;
  border-left: 2px solid transparent;
}
.faq-toc-list a:hover {
  background: var(--bg-soft);
  text-decoration: none;
  border-left-color: var(--green);
}
.faq-toc-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding-right: 6px;
}

/* Main column */
.faq-main { min-width: 0; }

.faq-category {
  scroll-margin-top: 76px;  /* offset for sticky header when jumping via TOC */
  margin-bottom: 48px;
}
.faq-category h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.faq-category-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.faq-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  scroll-margin-top: 76px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-entry[open] {
  border-color: var(--green);
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.08);
}
.faq-entry summary.faq-q {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.faq-entry summary.faq-q::-webkit-details-marker { display: none; }
/* Custom triangle on the right */
.faq-entry summary.faq-q::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  margin-right: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.faq-entry[open] summary.faq-q::before {
  transform: rotate(45deg);
  border-color: var(--green);
}
.faq-entry summary.faq-q:hover { background: var(--bg-soft); }
.faq-entry[open] summary.faq-q:hover { background: var(--bg); }

.faq-permalink {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.faq-entry:hover .faq-permalink,
.faq-entry[open] .faq-permalink { opacity: 1; }

.faq-a {
  padding: 0 16px 16px 36px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-no-answer {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.faq-no-answer h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.faq-no-answer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* "更多问题 → /faq#xxx" trailer on product pages — separates the picked
   highlight FAQ from the deep-link to the full /faq page. */
.faq-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.faq-more a { color: var(--green-dark); }

/* Tablet (≤960px): TOC narrows but still sticky */
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 180px 1fr; gap: 28px; }
  .faq-toc { font-size: 13px; }
}

/* Mobile (≤820px, 覆盖 iPhone 全系 + iPad 竖屏):TOC 改成多行换行的 chip 卡片
   (而不是隐性横滚,所有分类一次看全),所有正文允许任意位置断词防止溢出。 */
@media (max-width: 820px) {
  .faq-hero h1 { font-size: 26px; }
  .faq-hero-sub { font-size: 14px; }
  .faq-layout { grid-template-columns: 1fr; gap: 16px; }
  .faq-toc {
    position: static;
    top: auto;
    margin: 0 0 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
  }
  .faq-toc-title { display: none; }
  .faq-toc-list {
    flex-direction: row;
    flex-wrap: wrap;       /* 多行排版,所有分类一次看全 */
    gap: 8px;
  }
  .faq-toc-list li { flex-shrink: 0; }
  .faq-toc-list a {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 13px;
  }
  .faq-toc-list a:hover { border-left-color: var(--line); }
  .faq-toc-count {
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: 4px;
  }
  .faq-category h2 { font-size: 20px; }
  .faq-category-intro,
  .faq-q,
  .faq-a {
    overflow-wrap: anywhere;  /* 长英文/code 可在任意位置断行,不撑宽容器 */
  }
  .faq-a { padding: 0 14px 14px 32px; font-size: 14px; }
  /* 收紧 container 横向 padding,把 16px 让给正文 */
  .container { padding-left: 16px; padding-right: 16px; }
}


/* ======================== Premium visual enhancement layer ========================
   Pure presentation only: no content or product-flow changes. */
:root {
  --accent: #10b981;
  --accent-2: #22d3ee;
  --accent-3: #6366f1;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-lift: 0 24px 70px rgba(15, 23, 42, 0.16);
  --ring: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 12% -10%, rgba(16, 185, 129, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(34, 211, 238, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 42%, #f8fafc 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
}

.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
}
.brand-logo {
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
  transition: transform .22s ease, box-shadow .22s ease;
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.06); box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28); }
.site-nav a { transition: color .18s ease, transform .18s ease, background .18s ease, border-color .18s ease; }
.site-nav a:hover { transform: translateY(-1px); }
.site-nav a.is-active { color: var(--text); font-weight: 650; }
.site-nav a.is-active::after { transform: scaleX(1); }
.nav-official {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(249,250,251,.9));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.nav-official:hover {
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.12);
}

.container { position: relative; }
.hero, .hub-hero, .faq-hero { position: relative; isolation: isolate; }
.hero::before, .hub-hero::before, .faq-hero::before {
  content: "";
  position: absolute;
  inset: -28px -18px;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 15%, rgba(16, 185, 129, 0.12), transparent 42%),
    radial-gradient(circle at 82% 5%, rgba(99, 102, 241, 0.09), transparent 38%);
  filter: blur(.2px);
}
.hero h1, .hub-hero h1, .faq-hero h1 {
  background: linear-gradient(92deg, #0f172a 0%, #065f46 48%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.answer-capsule {
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hub-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 14px !important;
  padding: 8px 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.card, .protocol-card, .trust-strip, .trust-card, .feature, .metric, .result-card, .notes-card, .details-card, .faq-item, .faq-entry, .faq-no-answer, .faq-toc {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.card, .protocol-card, .trust-card, .feature, .metric, .result-card, .faq-item, .faq-entry, .faq-toc, .faq-no-answer {
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}
.protocol-card, .trust-card, .feature, .card, .metric, .faq-item, .faq-entry { position: relative; overflow: hidden; }
.protocol-card::before, .trust-card::before, .feature::before, .card::before, .metric::before, .faq-entry::before, .faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.42), transparent 42%);
  opacity: 0;
  transition: opacity .24s ease;
}
.protocol-card:hover, .trust-card:hover, .feature:hover, .card:hover, .metric:hover, .faq-entry:hover, .faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: var(--shadow-lift);
}
.protocol-card:hover::before, .trust-card:hover::before, .feature:hover::before, .card:hover::before, .metric:hover::before, .faq-entry:hover::before, .faq-item:hover::before { opacity: 1; }
.protocol-card-primary {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.88), rgba(255,255,255,0.76));
  box-shadow: 0 22px 58px rgba(16, 185, 129, 0.14);
}
.tier-badge { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }

.btn {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  width: 42px;
  left: -64px;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .55s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); }
.btn:hover::after { left: calc(100% + 64px); }
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669 55%, #047857);
  border-color: rgba(4, 120, 87, 0.6);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.24);
}
.btn-primary:hover { background: linear-gradient(135deg, #14c78e, #059669 58%, #047857); }
.btn-ghost:hover { border-color: rgba(16, 185, 129, 0.32); }

input, select, textarea { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(16, 185, 129, 0.62) !important;
  box-shadow: var(--ring), 0 12px 28px rgba(15, 23, 42, 0.06);
  outline: none;
  background: #fff;
}
.combo-list {
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
  border-color: rgba(16, 185, 129, 0.18) !important;
}
.combo-item { transition: background .16s ease, color .16s ease, transform .16s ease; }
.combo-item:hover { transform: translateX(3px); }
.probe-pill {
  animation: probeIn .24s ease both;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}
@keyframes probeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.score-ring { filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.10)); }
.check-row { transition: transform .18s ease, background .18s ease; }
.check-row:hover { transform: translateX(4px); background: rgba(16, 185, 129, 0.035); }
.metric-value { letter-spacing: -0.03em; }
.faq-item summary, .faq-entry summary.faq-q { transition: background .18s ease, color .18s ease; }
.faq-item[open], .faq-entry[open] { border-color: rgba(16, 185, 129, 0.26); }
.faq-item summary::after, .faq-entry summary.faq-q::before { transition: transform .2s ease, color .2s ease, background .2s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-entry[open] summary.faq-q::before { transform: rotate(45deg); }

.reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}
@media (max-width: 820px) {
  .site-nav {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  }
  .hub-meta { border-radius: 18px; }
  .protocol-card:hover, .trust-card:hover, .feature:hover, .card:hover, .metric:hover, .faq-entry:hover, .faq-item:hover { transform: translateY(-2px); }
}


/* Supported model showcase */
.model-showcase {
  margin: 24px 0 28px;
  padding: 24px;
}
.model-showcase-head h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.model-showcase-head p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 760px;
}
.model-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.model-chip {
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(236,253,245,.66));
  color: #064e3b;
  border-radius: 999px;
  padding: 9px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.model-chip:hover,
.model-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.48);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.15);
  outline: none;
}
.model-chip.model-chip-selected {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #059669;
}
@media (max-width: 640px) {
  .model-showcase { padding: 18px; }
  .model-chip { width: 100%; text-align: left; }
}


/* China model page */
.proxy-alert {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.16), transparent 28rem);
}
.china-hero::before {
  background:
    radial-gradient(circle at 20% 12%, rgba(245, 158, 11, 0.11), transparent 38%),
    radial-gradient(circle at 82% 8%, rgba(16, 185, 129, 0.12), transparent 42%);
}


/* ======================== Futuristic interaction layer ========================
   Presentation only. Adds depth, holographic borders and subtle motion. */
:root {
  --tech-cyan: #22d3ee;
  --tech-violet: #8b5cf6;
  --tech-green: #10b981;
  --holo-border: linear-gradient(135deg,
    rgba(34, 211, 238, .55),
    rgba(16, 185, 129, .35) 34%,
    rgba(139, 92, 246, .35) 68%,
    rgba(34, 211, 238, .55));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 18%), rgba(34, 211, 238, .12), transparent 20rem),
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.38) 46%, transparent 52%);
  opacity: .82;
  transition: background-position .2s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.55), rgba(16,185,129,.55), transparent);
  opacity: .7;
}

.hub-hero h1,
.hero h1,
.faq-hero h1 {
  filter: drop-shadow(0 12px 28px rgba(16, 185, 129, .10));
}
.hub-hero h1::after,
.hero h1::after,
.faq-hero h1::after {
  content: "";
  display: block;
  width: min(220px, 42vw);
  height: 3px;
  margin: 16px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tech-green), var(--tech-cyan), transparent);
  box-shadow: 0 0 26px rgba(34, 211, 238, .42);
}
.hero h1::after { margin-left: auto; margin-right: auto; }

.card,
.protocol-card,
.trust-card,
.feature,
.result-card,
.metric,
.faq-entry,
.faq-item,
.model-showcase {
  transform-style: preserve-3d;
}
.card::after,
.protocol-card::after,
.trust-card::after,
.feature::after,
.result-card::after,
.metric::after,
.faq-entry::after,
.faq-item::after,
.model-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--holo-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.card:hover::after,
.protocol-card:hover::after,
.trust-card:hover::after,
.feature:hover::after,
.result-card:hover::after,
.metric:hover::after,
.faq-entry:hover::after,
.faq-item:hover::after,
.model-showcase:hover::after { opacity: .95; }

.tilt-card {
  will-change: transform;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0));
}
.tilt-card:hover { --tilt-lift: -5px; }

.protocol-card-primary::before,
.form-card::before,
.model-showcase::before {
  opacity: .42;
  background:
    linear-gradient(120deg, transparent 0%, rgba(34,211,238,.08) 34%, rgba(255,255,255,.46) 48%, rgba(16,185,129,.08) 62%, transparent 100%);
  transform: translateX(-120%);
  animation: techScan 5.6s ease-in-out infinite;
}
@keyframes techScan {
  0%, 18% { transform: translateX(-120%); }
  42%, 100% { transform: translateX(120%); }
}

.btn-primary {
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,.24) inset, 0 16px 35px rgba(16,185,129,.30), 0 0 32px rgba(34,211,238,.12);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset, 0 18px 42px rgba(16,185,129,.36), 0 0 42px rgba(34,211,238,.18); }

.model-chip {
  position: relative;
  overflow: hidden;
}
.model-chip::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.22), transparent);
  transform: translateX(-120%);
  transition: transform .5s ease;
}
.model-chip:hover::before { transform: translateX(120%); }

input:focus,
select:focus,
textarea:focus {
  transform: translateY(-1px);
}

.score-ring {
  animation: scorePulse 3.4s ease-in-out infinite;
}
@keyframes scorePulse {
  0%, 100% { filter: drop-shadow(0 18px 32px rgba(15, 23, 42, .10)); }
  50% { filter: drop-shadow(0 22px 42px rgba(16, 185, 129, .20)); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
  .protocol-card-primary::before,
  .form-card::before,
  .model-showcase::before,
  .score-ring { animation: none !important; }
  .tilt-card { transform: none !important; }
}


/* ======================== AI landing page polish layer ========================
   Inspired by modern AI/SaaS landing pages. Visual-only; no content/function changes. */
:root {
  --ai-ink: #07111f;
  --ai-panel: rgba(255, 255, 255, 0.72);
  --ai-panel-strong: rgba(255, 255, 255, 0.88);
  --ai-cyan: #22d3ee;
  --ai-mint: #10b981;
  --ai-blue: #3b82f6;
  --ai-purple: #8b5cf6;
}

body {
  background:
    radial-gradient(circle at 14% 6%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 0%, rgba(139, 92, 246, 0.13), transparent 30rem),
    radial-gradient(circle at 55% 34%, rgba(16, 185, 129, 0.10), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 38%, #f6fbf9 100%);
}

.container::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  height: 300px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 35%, rgba(34, 211, 238, .24), transparent 35%),
    radial-gradient(circle at 70% 45%, rgba(16, 185, 129, .20), transparent 38%),
    radial-gradient(circle at 50% 20%, rgba(139, 92, 246, .12), transparent 44%);
  filter: blur(36px);
  opacity: .82;
  animation: aiAura 9s ease-in-out infinite alternate;
}
@keyframes aiAura {
  from { transform: translateX(-50%) translateY(0) scale(1); opacity: .68; }
  to { transform: translateX(-50%) translateY(18px) scale(1.04); opacity: .92; }
}

.site-header {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
.site-header-inner {
  max-width: 1120px;
}
.brand span {
  letter-spacing: -0.035em;
}
.site-nav {
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}
.site-nav a:not(.nav-official) {
  padding: 7px 10px;
  border-radius: 999px;
}
.site-nav a:not(.nav-official):hover,
.site-nav a:not(.nav-official).is-active {
  background: rgba(236, 253, 245, 0.72);
  color: #064e3b;
}
.site-nav a:not(.nav-official)::after { display: none; }

.hub-hero,
.hero,
.faq-hero {
  padding: 34px 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,255,255,.52)),
    radial-gradient(circle at 0% 0%, rgba(34,211,238,.16), transparent 42%),
    radial-gradient(circle at 100% 10%, rgba(16,185,129,.14), transparent 42%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  overflow: hidden;
}
.hub-hero::after,
.hero::after,
.faq-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -42px -12%;
  height: 84px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.18), rgba(16,185,129,.18), transparent);
  filter: blur(18px);
  pointer-events: none;
}
.hub-hero h1,
.hero h1,
.faq-hero h1 {
  letter-spacing: -0.055em;
}
.answer-capsule {
  border-radius: 22px;
  padding: 18px 20px;
}

.protocol-grid,
.features,
.why-grid,
.metrics-row,
.trust-cards {
  perspective: 1200px;
}
.protocol-card,
.feature,
.why-item,
.trust-card,
.metric,
.faq-entry,
.faq-item,
.form-card,
.model-showcase,
.result-card {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,.72) inset,
    0 18px 55px rgba(15, 23, 42, 0.075);
}
.protocol-card:hover,
.feature:hover,
.why-item:hover,
.trust-card:hover,
.metric:hover,
.faq-entry:hover,
.faq-item:hover,
.form-card:hover,
.model-showcase:hover,
.result-card:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,.88) inset,
    0 30px 90px rgba(15, 23, 42, 0.14),
    0 0 42px rgba(34, 211, 238, 0.10);
}
.protocol-card::after,
.feature::after,
.why-item::after,
.trust-card::after,
.metric::after,
.faq-entry::after,
.faq-item::after,
.form-card::after,
.model-showcase::after,
.result-card::after {
  opacity: .22;
}
.protocol-card:hover::after,
.feature:hover::after,
.why-item:hover::after,
.trust-card:hover::after,
.metric:hover::after,
.faq-entry:hover::after,
.faq-item:hover::after,
.form-card:hover::after,
.model-showcase:hover::after,
.result-card:hover::after {
  opacity: 1;
}

.form-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.74)),
    radial-gradient(circle at 100% 0%, rgba(34,211,238,.09), transparent 38%);
}
.field input,
.field select,
textarea {
  background: rgba(255,255,255,.76);
  border-color: rgba(148, 163, 184, 0.28);
}
.field input:hover,
.field select:hover,
textarea:hover {
  border-color: rgba(16, 185, 129, 0.34);
}

.btn {
  border-radius: 12px;
}
.btn-primary {
  background:
    linear-gradient(135deg, rgba(34,211,238,.32), transparent 32%),
    linear-gradient(135deg, #10b981, #059669 54%, #047857);
}
.nav-official,
.model-chip,
.tier-badge,
.trust-license-pill {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.model-showcase {
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.62)),
    radial-gradient(circle at 8% 12%, rgba(34,211,238,.13), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(139,92,246,.10), transparent 32%);
}
.model-chip {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(255,255,255,.62) inset;
}

@media (max-width: 820px) {
  .site-nav {
    border-radius: 18px;
    padding: 10px;
  }
  .hub-hero,
  .hero,
  .faq-hero {
    padding: 26px 18px;
    border-radius: 24px;
  }
}


/* ======================== Cinematic floating background layer ========================
   Visual-only. Stronger animated depth without touching content or behavior. */
:root {
  --float-orb-a: rgba(34, 211, 238, .22);
  --float-orb-b: rgba(16, 185, 129, .20);
  --float-orb-c: rgba(139, 92, 246, .15);
}

body {
  background-size: 140% 140%;
  animation: pageGradientDrift 16s ease-in-out infinite alternate;
}
@keyframes pageGradientDrift {
  0% { background-position: 0% 0%, 100% 0%, 50% 34%, 50% 0%; }
  50% { background-position: 8% 4%, 92% 10%, 48% 40%, 50% 0%; }
  100% { background-position: 14% 8%, 84% 4%, 54% 32%, 50% 0%; }
}

main.container::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 24%, var(--float-orb-a), transparent 9rem),
    radial-gradient(circle at 78% 18%, var(--float-orb-c), transparent 10rem),
    radial-gradient(circle at 68% 78%, var(--float-orb-b), transparent 11rem),
    radial-gradient(circle at 10% 78%, rgba(59,130,246,.10), transparent 9rem);
  filter: blur(22px) saturate(1.25);
  opacity: .95;
  animation: floatingOrbs 18s ease-in-out infinite alternate;
}
@keyframes floatingOrbs {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  33% {
    transform: translate3d(1.8vw, -1.2vh, 0) scale(1.03);
    background-position: 18px -20px, -24px 18px, 12px 20px, -16px -8px;
  }
  66% {
    transform: translate3d(-1.2vw, 1.6vh, 0) scale(1.06);
    background-position: -18px 18px, 20px -16px, -24px 12px, 18px 16px;
  }
  100% {
    transform: translate3d(1.4vw, .8vh, 0) scale(1.02);
    background-position: 12px 24px, -18px -12px, 20px -20px, -10px 22px;
  }
}

body::before {
  animation: gridDrift 22s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

.site-header {
  animation: headerFloat 7s ease-in-out infinite alternate;
}
@keyframes headerFloat {
  from { box-shadow: 0 10px 30px rgba(15,23,42,.045); }
  to { box-shadow: 0 16px 42px rgba(15,23,42,.075), 0 0 34px rgba(34,211,238,.08); }
}

.hub-hero,
.hero,
.faq-hero {
  animation: heroFloat 8s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: translateY(0); box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10); }
  to { transform: translateY(-6px); box-shadow: 0 34px 98px rgba(15, 23, 42, 0.14), 0 0 58px rgba(34, 211, 238, .12); }
}

.hub-hero::before,
.hero::before,
.faq-hero::before {
  animation: heroInnerGlow 10s ease-in-out infinite alternate;
}
@keyframes heroInnerGlow {
  0% { opacity: .58; transform: scale(1) translate3d(0,0,0); }
  50% { opacity: .92; transform: scale(1.03) translate3d(10px,-8px,0); }
  100% { opacity: .70; transform: scale(1.02) translate3d(-8px,8px,0); }
}

.protocol-card,
.trust-card,
.feature,
.card,
.model-showcase,
.faq-entry,
.faq-item,
.metric {
  animation: cardBreath 9s ease-in-out infinite alternate;
  animation-delay: var(--breath-delay, 0s);
}
.protocol-card:nth-child(1), .feature:nth-child(1), .trust-card:nth-child(1) { --breath-delay: .1s; }
.protocol-card:nth-child(2), .feature:nth-child(2), .trust-card:nth-child(2) { --breath-delay: .55s; }
.protocol-card:nth-child(3), .feature:nth-child(3), .trust-card:nth-child(3) { --breath-delay: 1s; }
@keyframes cardBreath {
  from { box-shadow: 0 1px 0 rgba(255,255,255,.72) inset, 0 18px 55px rgba(15,23,42,.075); }
  to { box-shadow: 0 1px 0 rgba(255,255,255,.86) inset, 0 22px 70px rgba(15,23,42,.105), 0 0 32px rgba(16,185,129,.08); }
}

.protocol-card:hover,
.trust-card:hover,
.feature:hover,
.card:hover,
.model-showcase:hover,
.faq-entry:hover,
.faq-item:hover,
.metric:hover {
  animation-play-state: paused;
}

.answer-capsule,
.model-chip,
.tier-badge {
  position: relative;
}
.answer-capsule::after,
.model-chip::after,
.tier-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.42) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: capsuleShimmer 5.8s ease-in-out infinite;
}
@keyframes capsuleShimmer {
  0%, 38% { transform: translateX(-120%); opacity: 0; }
  48% { opacity: .9; }
  66%, 100% { transform: translateX(120%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  main.container::after,
  body::before,
  .site-header,
  .hub-hero,
  .hero,
  .faq-hero,
  .hub-hero::before,
  .hero::before,
  .faq-hero::before,
  .protocol-card,
  .trust-card,
  .feature,
  .card,
  .model-showcase,
  .faq-entry,
  .faq-item,
  .metric,
  .answer-capsule::after,
  .model-chip::after,
  .tier-badge::after {
    animation: none !important;
  }
}


/* ======================== Guangnian Cloud Bridge background ========================
   Visual-only brand metaphor: an abstract luminous bridge for 光年云桥. */
body {
  position: relative;
}
body > main.container {
  isolation: isolate;
}
body > main.container::marker { content: ""; }
body > main.container .hub-hero,
body > main.container .hero,
body > main.container .faq-hero {
  z-index: 1;
}
body > main.container::before {
  /* keep existing aura, but bridge layer below uses ::after on body */
}
body::selection { background: rgba(16, 185, 129, .22); }

body .site-header + main.container::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 132px;
  width: min(1180px, 110vw);
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201440%20520%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3ClinearGradient%20id%3D%22bridge%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%2322d3ee%22%20stop-opacity%3D%220%22/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220.16%22%20stop-color%3D%22%2322d3ee%22%20stop-opacity%3D%220.55%22/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220.52%22%20stop-color%3D%22%2310b981%22%20stop-opacity%3D%220.72%22/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220.86%22%20stop-color%3D%22%238b5cf6%22%20stop-opacity%3D%220.50%22/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%238b5cf6%22%20stop-opacity%3D%220%22/%3E%0A%20%20%20%20%3C/linearGradient%3E%0A%20%20%20%20%3Cfilter%20id%3D%22glow%22%20x%3D%22-20%25%22%20y%3D%22-40%25%22%20width%3D%22140%25%22%20height%3D%22180%25%22%3E%0A%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%225%22%20result%3D%22blur%22/%3E%0A%20%20%20%20%20%20%3CfeMerge%3E%0A%20%20%20%20%20%20%20%20%3CfeMergeNode%20in%3D%22blur%22/%3E%0A%20%20%20%20%20%20%20%20%3CfeMergeNode%20in%3D%22SourceGraphic%22/%3E%0A%20%20%20%20%20%20%3C/feMerge%3E%0A%20%20%20%20%3C/filter%3E%0A%20%20%3C/defs%3E%0A%20%20%3Cg%20fill%3D%22none%22%20stroke%3D%22url%28%23bridge%29%22%20stroke-linecap%3D%22round%22%20filter%3D%22url%28%23glow%29%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M90%20366%20C320%20205%20500%20205%20720%20366%20C940%20205%201120%20205%201350%20366%22%20stroke-width%3D%225%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M130%20394%20C345%20284%20510%20284%20720%20394%20C930%20284%201095%20284%201310%20394%22%20stroke-width%3D%222.5%22%20opacity%3D%220.75%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M165%20424%20H1275%22%20stroke-width%3D%223%22%20opacity%3D%220.66%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M266%20333%20V438%20M370%20276%20V438%20M480%20252%20V438%20M595%20292%20V438%20M720%20366%20V438%20M845%20292%20V438%20M960%20252%20V438%20M1070%20276%20V438%20M1174%20333%20V438%22%20stroke-width%3D%222%22%20opacity%3D%220.72%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M370%20276%20C460%20218%20565%20234%20720%20366%20C875%20234%20980%20218%201070%20276%22%20stroke-width%3D%222%22%20opacity%3D%220.46%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M210%20438%20H1230%22%20stroke-width%3D%228%22%20opacity%3D%220.12%22/%3E%0A%20%20%3C/g%3E%0A%20%20%3Cg%20fill%3D%22%23ffffff%22%20opacity%3D%220.66%22%3E%0A%20%20%20%20%3Ccircle%20cx%3D%22370%22%20cy%3D%22276%22%20r%3D%223%22/%3E%0A%20%20%20%20%3Ccircle%20cx%3D%22720%22%20cy%3D%22366%22%20r%3D%223%22/%3E%0A%20%20%20%20%3Ccircle%20cx%3D%221070%22%20cy%3D%22276%22%20r%3D%223%22/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  opacity: .58;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, .22)) drop-shadow(0 0 38px rgba(16, 185, 129, .18));
  animation: cloudBridgeFloat 11s ease-in-out infinite alternate;
}

@keyframes cloudBridgeFloat {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: .42;
    filter: drop-shadow(0 0 18px rgba(34, 211, 238, .18)) drop-shadow(0 0 32px rgba(16, 185, 129, .14));
  }
  50% {
    transform: translateX(calc(-50% + 18px)) translateY(-12px) scale(1.018);
    opacity: .68;
    filter: drop-shadow(0 0 26px rgba(34, 211, 238, .30)) drop-shadow(0 0 48px rgba(16, 185, 129, .24));
  }
  100% {
    transform: translateX(calc(-50% - 12px)) translateY(8px) scale(1.01);
    opacity: .56;
    filter: drop-shadow(0 0 22px rgba(139, 92, 246, .20)) drop-shadow(0 0 42px rgba(34, 211, 238, .20));
  }
}

.hub-hero::before,
.hero::before,
.faq-hero::before {
  background:
    radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.15), transparent 38%),
    radial-gradient(circle at 78% 12%, rgba(16, 185, 129, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.50), transparent);
}

@media (max-width: 820px) {
  body .site-header + main.container::after {
    top: 120px;
    width: 130vw;
    height: 300px;
    opacity: .34;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .site-header + main.container::after { animation: none !important; }
}


/* Contact section */
.contact-section {
  margin: 36px 0 8px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.66)),
    radial-gradient(circle at 12% 20%, rgba(34,211,238,.14), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(16,185,129,.16), transparent 36%);
}
.contact-copy h2 {
  margin: 6px 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.contact-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  max-width: 620px;
}
.contact-qr-wrap {
  justify-self: end;
  width: 200px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,185,129,.18);
  box-shadow: 0 18px 48px rgba(15,23,42,.10), 0 0 34px rgba(34,211,238,.10);
}
.contact-qr {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
@media (max-width: 720px) {
  .contact-section {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .contact-qr-wrap {
    justify-self: start;
    width: min(220px, 100%);
  }
}


/* Legal / usage disclaimer */
.site-disclaimer {
  max-width: 960px;
  margin: 8px auto 0;
  padding: 10px 24px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
  box-sizing: border-box;
}
.legal-disclaimer-card {
  margin: 16px 0 20px;
  border-color: rgba(245, 158, 11, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 96% 0%, rgba(245, 158, 11, 0.12), transparent 34%) !important;
  color: #78350f;
  font-size: 14px;
  line-height: 1.75;
}
.legal-disclaimer-card strong {
  color: #92400e;
}


/* ======================== Air & readability enhancement ========================
   Address tight card padding, cramped code tags, shallow line-height. Visual-only. */
.features,
.feature {
  padding: 20px 22px;
}
.feature h3 {
  margin: 0 0 10px !important;
  line-height: 1.4;
}
.feature p {
  line-height: 1.7;
}
.protocol-card {
  padding: 26px 26px 22px;
}
.protocol-card h2 {
  line-height: 1.3;
  margin: 0 0 12px;
}
.protocol-card p {
  line-height: 1.75;
  margin: 0 0 18px;
}
.trust-card {
  padding: 22px 22px 20px;
}
.trust-card h3 {
  line-height: 1.45;
  margin: 0 0 10px;
}
.trust-card p {
  line-height: 1.7;
}
.why-item {
  padding: 22px 22px 20px;
}
.why-item h3 {
  line-height: 1.4;
  margin: 0 0 10px;
}
.why-item p {
  line-height: 1.7;
}
.card {
  padding: 24px 26px;
}
.contact-section {
  padding: 32px 34px;
}
.model-showcase {
  padding: 28px 28px 24px;
}
.code {
  padding: 2px 7px;
  border-radius: 5px;
}
.answer-capsule {
  padding: 22px 26px;
  line-height: 1.7;
}
.faq-item,
.faq-entry {
  padding: 18px 22px;
}
.faq-body {
  padding: 4px 22px 14px;
  line-height: 1.45;
}
.faq-body p {
  margin: 0 0 6px;
}
.faq-body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .features {
    padding: 16px 16px;
  }
  .protocol-card {
    padding: 20px 18px;
  }
  .trust-card {
    padding: 18px 16px;
  }
  .why-item {
    padding: 16px 16px;
  }
  .card {
    padding: 18px 18px;
  }
  .contact-section {
    padding: 22px 18px;
  }
  .answer-capsule {
    padding: 18px 16px;
    line-height: 1.65;
  }
}


.tight-faq {
  padding-top: 0 !important;
  margin-top: -8px !important;
  line-height: 1.4 !important;
}
.tight-faq p {
  margin-top: 0 !important;
  margin-bottom: 0.2rem !important;
}

/* ===================================================================
   Navigation Homepage — AI API 中转站导航
   Designed to match zuiquanapi.com: large cards, clear borders,
   proper category layout with 4-col grid.
   =================================================================== */

/* Hero Section — sci-fi animated border */
.nav-hero {
  text-align: center;
  padding: 40px 20px 0;
}
.nav-hero-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 40px 36px;
  background: #ffffff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.nav-hero-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6, #10b981);
  background-size: 300% 300%;
  animation: borderGlow 6s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
}
.nav-hero-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(16,185,129,0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.03) 0%, transparent 50%);
  animation: glowMove 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowMove {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 2%) rotate(2deg); }
}
.nav-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 0 0 12px;
  color: #111827;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.nav-hero-sub {
  color: #64748b;
  font-size: 16px;
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

/* Search */
.nav-search-wrap {
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 6px 6px 6px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.nav-search-wrap:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.08);
}
.nav-search-icon {
  font-size: 18px;
  margin-right: 10px;
  opacity: 0.5;
}
.nav-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 8px;
  font-size: 16px;
  background: transparent;
  min-width: 0;
}
.nav-search-btn-random {
  padding: 10px 18px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-search-btn-random:hover {
  background: #f8fafc;
  border-color: #10b981;
}
.nav-search-btn {
  padding: 12px 28px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-search-btn:hover { background: #059669; }

/* Stats */
.nav-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.nav-stats-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #10b981;
  letter-spacing: -1px;
}
.nav-stats-text {
  font-size: 15px;
  color: #64748b;
  margin-right: 16px;
}
.nav-stats-links {
  display: flex;
  gap: 10px;
}
.nav-stats-action {
  padding: 6px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.nav-stats-action:hover {
  background: #f0fdf4;
  border-color: #10b981;
  color: #059669;
  text-decoration: none;
}

/* Carousel */
.nav-carousel-wrap {
  max-width: 920px;
  margin: 24px auto 0;
  overflow: hidden;
  position: relative;
}
.nav-carousel-title {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-carousel {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.nav-carousel-track {
  display: flex;
  gap: 16px;
  animation: carouselScroll 50s linear infinite;
  width: max-content;
}
.nav-carousel-track:hover {
  animation-play-state: paused;
}
@keyframes carouselScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.nav-carousel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-carousel-item:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16,185,129,0.1);
  text-decoration: none;
}
.nav-carousel-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-carousel-name {
  font-weight: 600;
  font-size: 14px;
}
.nav-carousel-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16,185,129,0.08);
  color: #059669;
  font-weight: 500;
}
.nav-carousel-tag-official {
  background: rgba(99,102,241,0.08);
  color: #4f46e5;
}
.nav-carousel-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Generated logo icon (color based on CSS var) */
.nav-card-logo-gen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    hsl(var(--logo-hue, 160) 60% 45%),
    hsl(calc(var(--logo-hue, 160) + 30) 50% 55%));
  color: white;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px hsla(var(--logo-hue, 160) 60% 45% / 0.25);
}
.nav-card-featured .nav-card-logo-gen {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

/* Layout: sidebar + main */
.nav-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar */
.nav-sidebar {
  position: sticky;
  top: 80px;
}
.nav-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 8px;
  border-radius: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.nav-sidebar-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px 12px;
}
.nav-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s;
}
.nav-sidebar-item:hover {
  background: #f0fdf4;
  text-decoration: none;
}
.nav-sidebar-item.active {
  background: #ecfdf5;
  color: #059669;
  font-weight: 600;
}
.nav-sidebar-icon { font-size: 16px; }
.nav-sidebar-count {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
}
.nav-sidebar-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 10px 16px;
}

/* Section headers */
.nav-section {
  margin-bottom: 48px;
}
.nav-section-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.nav-section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
}
.nav-section-icon { font-size: 22px; }
.nav-section-count {
  margin-left: auto;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* Card grid — 4 columns on wide, 3 on medium */
.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Base card */
.nav-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.nav-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: #10b981;
  transform: translateY(-3px);
  text-decoration: none;
}
.nav-card-highlight {
  animation: cardHighlight 2.5s ease;
}
@keyframes cardHighlight {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  20%, 80% { box-shadow: 0 0 0 4px rgba(16,185,129,0.3), 0 8px 30px rgba(16,185,129,0.15); border-color: #10b981; }
}

/* Featured card (10086AI) */
.nav-card-featured {
  padding: 32px;
  border: 2px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.nav-card-featured::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.nav-card-featured:hover {
  border-color: #059669;
  box-shadow: 0 12px 40px rgba(16,185,129,0.12);
  transform: none;
}
.nav-card-badge-promoted {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

/* Card header */
.nav-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.nav-card-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #f1f5f9;
}
.nav-card-info { flex: 1; min-width: 0; }
.nav-card-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-card-featured .nav-card-name {
  font-size: 22px;
  font-weight: 800;
}

/* Meta: tags + status */
.nav-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.nav-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(107,114,128,0.08);
  color: #4b5563;
}
.nav-tag-第三方 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-官转 { background: rgba(16,185,129,0.1); color: #059669; }
.nav-tag-官方 { background: rgba(16,185,129,0.1); color: #059669; }
.nav-tag-企业级 { background: rgba(16,185,129,0.08); color: #047857; }
.nav-tag-全模型 { background: rgba(107,114,128,0.08); color: #374151; }
.nav-tag-国产 { background: rgba(16,185,129,0.08); color: #059669; }
.nav-tag-聚合 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-老牌 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-新站 { background: rgba(16,185,129,0.08); color: #059669; }
.nav-tag-便宜 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-性价比 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-特色 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-xAI { background: rgba(107,114,128,0.08); color: #374151; }
.nav-tag-高稳定 { background: rgba(16,185,129,0.08); color: #059669; }
.nav-tag-代码向 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-超值 { background: rgba(16,185,129,0.08); color: #059669; }
.nav-tag-省钱 { background: rgba(107,114,128,0.08); color: #4b5563; }
.nav-tag-开源模型 { background: rgba(16,185,129,0.08); color: #059669; }
.nav-status {
  font-size: 12px;
  font-weight: 600;
}
.nav-status-online { color: #10b981; }

/* Card body */
.nav-card-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 14px;
  flex: 1;
}
.nav-card-featured .nav-card-desc {
  font-size: 15px;
  color: #334155;
}

/* Features list (featured card) */
.nav-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.nav-card-features li {
  font-size: 14px;
  padding: 4px 0;
  color: #334155;
  line-height: 1.5;
}
.nav-card-features li::before {
  content: '✅ ';
  font-size: 12px;
}

/* Features list (regular cards) */
.nav-card-features-sm {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.nav-card-features-sm li {
  font-size: 13px;
  padding: 3px 0;
  color: #475569;
  line-height: 1.5;
}
.nav-card-features-sm li::before {
  content: '• ';
  color: #10b981;
  font-weight: 700;
}

/* Card footer */
.nav-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.nav-card-btn-primary {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav-card-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}
.nav-card-btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.nav-card-btn-secondary:hover {
  border-color: #10b981;
  color: #059669;
  text-decoration: none;
}
.nav-card-visit {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
}
.nav-card:hover .nav-card-visit {
  color: #059669;
}

/* Responsive: 4 → 3 → 2 → 1 columns */
@media (max-width: 1200px) {
  .nav-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav-card-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-layout { grid-template-columns: 180px 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .nav-layout {
    grid-template-columns: 1fr;
  }
  .nav-sidebar {
    position: static;
    order: -1;
  }
  .nav-sidebar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 10px;
  }
  .nav-sidebar-title { display: none; }
  .nav-sidebar-item {
    padding: 8px 12px;
    font-size: 13px;
  }
  .nav-sidebar-count { display: none; }
  .nav-sidebar-divider { display: none; }
  .nav-card-grid { grid-template-columns: 1fr; }
  .nav-hero h1 { font-size: 2rem; }
  .nav-hero-card { padding: 28px 20px; }
  .nav-card-featured { padding: 20px; }
  .nav-card-features { grid-template-columns: 1fr; }
  .nav-search-btn-random { display: none; }
  .nav-carousel-wrap { margin-top: 16px; }
}

/* Navigation page needs wider container */
body:has(.nav-hero) .container {
  max-width: 1400px;
  padding-top: 20px;
}
