/* ============================================
   NetcCheck 前台页面样式（首页/文档/注册登录）
   依赖 style.css 的设计 token 与基础组件
   ============================================ */

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 26px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  padding: 7px 14px; border-radius: 9px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--hover); }
/* 当前页高亮：黑白极简风黑底白字，与 hover 反色；无 href 的 a 保持文本光标 */
.nav-links a.nav-active { color: var(--ink-fg); background: var(--ink); }
.nav-links a:not([href]) { cursor: default; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta a.login-link { color: var(--text); text-decoration: none; font-size: 15px; padding: 7px 12px; border-radius: 9px; }
.nav-cta a.login-link:hover { background: var(--hover); }
/* 手机端：导航按钮瘦身（登录转为轻量文字链，注册按钮压缩），避免挤占窄屏空间 */
@media (max-width: 640px) {
  .nav-inner { padding: 0 14px; }
  .nav-cta { gap: 4px; }
  .nav-cta a.login-link { font-size: 13px; padding: 6px 7px; }
  .nav-cta .btn { padding: 6px 12px; font-size: 12px; border-radius: 9px; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px; margin: 0 auto; padding: 90px 24px 70px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.15; font-weight: normal; }
.hero h1 em { font-style: normal; background: var(--text); color: var(--card); padding: 0 12px; border-radius: 14px; display: inline-block; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 22px 0 30px; max-width: 460px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row .btn { padding: 13px 28px; font-size: 16px; border-radius: 13px; }
.hero-meta { margin-top: 26px; color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }

/* 伪终端卡片 */
.code-card {
  background: #17171a; color: #e8e8e4;
  border-radius: 16px; padding: 0; overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.9;
  transform: rotate(1.5deg);
  transition: transform .4s var(--ease);
}
.code-card:hover { transform: rotate(0deg) translateY(-4px); }
.code-card-bar {
  display: flex; gap: 7px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--code-line);
}
.code-card-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; display: inline-block; }
.code-card-bar span { margin-left: 8px; color: #8a8a8e; font-size: 12px; font-family: var(--font-cute); }
.code-card-body { padding: 18px 20px; white-space: pre; overflow-x: auto; }
.code-card .c-dim { color: #77777c; }
.code-card .c-key { color: #ffffff; font-weight: bold; }
.code-card .c-ok { color: #b5e0b0; }
.code-card .c-str { color: #d9c89e; }

/* ---------- 通用区块 ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.section-title { font-size: 30px; font-weight: normal; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin: 10px auto 40px; max-width: 560px; font-size: 15px; }

/* 特性 */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--text); color: var(--card);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* 三步接入 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; box-shadow: var(--shadow-sm);
}
.step > b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--text); color: var(--card); margin-bottom: 12px; font-weight: normal;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* 定价 */
.pricing-note {
  text-align: center; margin: -16px 0 28px;
}
.pricing-note span {
  display: inline-block; background: var(--text); color: var(--card);
  padding: 6px 18px; border-radius: 999px; font-size: 14px;
}
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card .tier { color: var(--muted); font-size: 15px; }
.price-card .price { font-size: 40px; margin: 8px 0 2px; }
.price-card .price small { font-size: 15px; color: var(--muted); }
.price-card .price-note { color: var(--muted); font-size: 13px; min-height: 22px; }
.price-card ul { list-style: none; margin: 16px 0 20px; flex: 1; }
.price-card li { padding: 5px 0; color: var(--muted); font-size: 14px; }
.price-card li::before { content: "✓ "; color: var(--text); }
.price-card.featured { background: var(--text); color: var(--card); border-color: var(--text); }
.price-card.featured .tier, .price-card.featured li { color: #b9b9bd; }
.price-card.featured li::before { color: var(--card); }
.price-card.featured .price-note { color: #b9b9bd; }
.price-card .btn.ghost-on-dark { background: transparent; color: var(--card); border: 1px solid #4a4a50; }
.price-card.featured .btn.ghost-on-dark:hover { border-color: var(--card); }

/* ---------- 首页套餐区个性化 ---------- */
.price-card { position: relative; }
.price-card.current { border-color: var(--text); box-shadow: var(--shadow-md); }
.current-badge {
  position: absolute; top: -12px; right: 16px;
  background: var(--text); color: var(--card);
  padding: 3px 14px; border-radius: 999px; font-size: 12px;
  box-shadow: var(--shadow-sm);
}
.price-card.featured .current-badge { background: var(--card); color: var(--text); border: 1px solid var(--border); }
a.is-current, button.is-current { opacity: .55; cursor: default; pointer-events: none; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 34px 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.footer-inner a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.footer-inner a:hover { color: var(--text); }

/* ---------- 文档页 ---------- */
.docs-hero { max-width: 1100px; margin: 0 auto; padding: 52px 24px 10px; }
.docs-hero h1 { font-size: 34px; font-weight: normal; }
.docs-hero p { color: var(--muted); margin: 8px 0 14px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chips span {
  background: var(--card); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
}
.hero-chips code { font-family: var(--font-mono); font-size: 12px; color: var(--text); }
.docs-wrap {
  max-width: 1100px; margin: 0 auto; padding: 34px 24px 80px;
  display: grid; grid-template-columns: 210px 1fr; gap: 40px;
}
.docs-side { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: none; }
.docs-side .side-title { color: var(--muted); font-size: 13px; padding: 10px 12px 4px; }
.docs-side a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 7px 12px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.docs-side a:hover { color: var(--text); background: var(--hover); }
.docs-side a.active { background: var(--text); color: var(--card); }
.docs-side a.active:hover { background: var(--text); color: var(--card); }
.docs-main { min-width: 0; }
.doc-section { margin-bottom: 50px; scroll-margin-top: 88px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.doc-section:last-child { border-bottom: none; }
.doc-section > h2 { font-size: 24px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--text); line-height: 1.2; }
.doc-section h3 { font-size: 17px; margin: 22px 0 10px; }
.doc-section p { color: var(--doc-text); font-size: 15px; margin: 8px 0; }
.doc-section p code, .doc-section td code, .doc-section li code, .hero-chips code {
  background: var(--panel); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 7px; font-family: var(--font-mono); font-size: 13px;
}
.doc-method {
  display: inline-block; background: var(--text); color: var(--card);
  font-family: var(--font-mono); font-size: 12px;
  padding: 2px 10px; border-radius: 8px; vertical-align: 4px; margin-right: 8px;
}
/* 使用文档：新手路径 / 安全模板 */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.quick-card {
  padding: 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow-sm);
}
.quick-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; background: var(--text); color: var(--card);
  font-size: 13px; font-weight: 700;
}
.quick-card h3 { margin: 10px 0 5px; font-size: 15px; }
.quick-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.quick-card .link { display: inline-block; margin-top: 9px; font-size: 13px; }
.doc-callout {
  margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--panel); color: var(--doc-text);
  font-size: 14px; line-height: 1.8;
}
.doc-callout.warn { border-color: color-mix(in srgb, var(--warn-fg) 38%, var(--border)); background: var(--warn-bg); color: var(--warn-fg); }
.sec-preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.sec-preset {
  padding: 15px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow-sm);
}
.sec-preset.recommended { border: 2px solid var(--text); }
.sec-preset h3 { margin: 0 0 5px; font-size: 15px; }
.sec-preset .preset-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; vertical-align: 2px; }
.sec-preset p { margin: 0 0 7px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.sec-preset ul { margin: 0; padding-left: 18px; color: var(--doc-text); font-size: 13px; line-height: 1.75; }
.check-list { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; color: var(--doc-text); font-size: 14px; line-height: 1.7; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--text); color: var(--card);
  font-size: 11px; line-height: 17px; text-align: center; font-weight: 700;
}
.doc-formula {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--card); border: 1px dashed var(--border-strong);
  border-radius: 10px; padding: 12px 16px;
}
.doc-list { padding-left: 4px; list-style: none; }
.doc-list li { padding: 6px 0; color: var(--doc-text); font-size: 15px; }
.doc-list li::before { content: "· "; color: var(--text); font-weight: bold; }
.codeblock { position: relative; margin: 16px 0; }
.codeblock pre {
  background: #17171a; color: #e8e8e4;
  border-radius: 12px; padding: 46px 20px 18px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.85;
  overflow: auto; max-height: 72vh; -webkit-overflow-scrolling: touch;
}
.codeblock::before {
  content: attr(data-label);
  position: absolute; top: 0; left: 0; right: 0;
  padding: 10px 16px 8px;
  color: #8a8a8e; font-size: 12px;
  border-bottom: 1px solid var(--code-line);
}
.code-copy {
  position: absolute; top: 7px; right: 10px;
  background: var(--code-chrome); color: #b9b9bd; border: none; cursor: pointer;
  font: inherit; font-size: 12px; padding: 3px 12px; border-radius: 8px;
  opacity: 0; transition: opacity .2s, color .2s;
}
.codeblock:hover .code-copy { opacity: 1; }
.code-copy:hover { color: #fff; }
.doc-table, table.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.doc-table th, .doc-table td { border-bottom: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table th { background: var(--panel); color: var(--muted); font-weight: 600; }
.doc-table tbody tr:nth-child(even) td { background: var(--zebra); }

/* ---------- 文档示例语言切换（Python/Java/Kotlin 全局联动） ---------- */
.lang-tabs {
  display: flex; gap: 6px; margin: 16px 0 2px; background: var(--panel);
  padding: 4px; border-radius: 11px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.lang-tabs::-webkit-scrollbar { display: none; }
.lang-tab {
  border: none; cursor: pointer; font: inherit; font-size: 13px;
  padding: 7px 20px; border-radius: 8px; background: transparent; color: var(--muted);
  transition: all .2s var(--ease); white-space: nowrap; user-select: none;
}
.lang-tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); font-weight: bold; }
.codeblock[data-lang] { display: none; }
.codeblock[data-lang].lang-on { display: block; animation: fade-up .35s var(--ease) both; }
/* 语言示例块固定高度：切换语言时内容长短不同，固定高避免下方内容上下跳动 */
.codeblock.lang-block pre { height: 480px; }
@media (max-width: 880px) {
  .codeblock.lang-block pre { height: auto; max-height: 62vh; }
}

/* ---------- 平台公告条（导航下方，全站通用） ---------- */
.site-notice {
  display: flex; align-items: center; gap: 14px;
  background: var(--notice-bg); color: var(--notice-fg);
  border-bottom: 1px solid var(--border);
  padding: 11px 20px; font-size: 14px; line-height: 1.6;
}
.site-notice .sn-text { flex: 1; min-width: 0; word-break: break-all; }
.site-notice .sn-hide {
  flex: 0 0 auto; background: transparent; color: var(--notice-chrome-fg);
  border: 1px solid var(--notice-chrome); border-radius: 999px;
  font: inherit; font-size: 12px; padding: 4px 14px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.site-notice .sn-hide:hover { color: var(--notice-fg); border-color: var(--muted); }
@media (max-width: 880px) {
  .site-notice { padding: 9px 14px; font-size: 13px; gap: 10px; }
}

/* ---------- 平台动态（首页时间线） ---------- */
.news { max-width: 720px; margin: 0 auto; }
.news-item {
  display: flex; gap: 18px; padding: 14px 4px;
  border-bottom: 1px dashed var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  flex-shrink: 0; width: 88px; padding-top: 2px;
  color: var(--muted); font-family: var(--font-mono); font-size: 13px;
}
.news-item p { margin: 4px 0 0; font-size: 14px; color: var(--doc-text); line-height: 1.7; }
@media (max-width: 640px) {
  .news-item { gap: 12px; }
  .news-date { width: 72px; font-size: 12px; }
}

/* ---------- 注册/登录页 ---------- */
.auth-wrap {
  min-height: calc(100vh - 64px);
  background-image: radial-gradient(#e3e3df 1px, transparent 1px);
  background-size: 22px 22px;
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  width: 400px; max-width: 100%;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 34px 32px 26px;
  box-shadow: var(--shadow-md);
  animation: pop-in .5s var(--ease) both;
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 24px; margin-bottom: 6px; }
.auth-brand .logo-mark { width: 42px; height: 42px; font-size: 23px; border-radius: 13px; }
.auth-desc { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--panel); padding: 4px; border-radius: 11px; }
.auth-tab { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 14px; transition: all .2s var(--ease); user-select: none; }
.auth-tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth-switch a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .pricing .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3n+3), .steps .reveal:nth-child(3), .pricing .reveal:nth-child(3) { transition-delay: .16s; }
.pricing .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  /* 小屏正文改用系统字体：装饰字体在小字号/弱网回退时字宽不稳定，长文档可读性差 */
  body { font-family: var(--font-body); }
  h1, h2, h3, h4, .nav-logo, .section-title, .price, .tier, .btn, button { font-family: var(--font-cute); }
  .hero { grid-template-columns: 1fr; padding-top: 50px; gap: 36px; }
  .code-card { transform: none; }
  /* 导航：不再隐藏链接，改为第二行横向滑动（手机端也能到达文档/定价/注入器说明） */
  .site-nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-inner { height: auto; flex-wrap: wrap; padding: 10px 14px 0; gap: 10px; }
  .nav-links {
    order: 3; width: 100%; display: flex; margin-left: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    overscroll-behavior-x: contain;
    gap: 2px; padding: 2px 28px 8px 0;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; white-space: nowrap; font-size: 13px; line-height: 20px; padding: 8px 12px; }
  /* theme.js 检测到可横滑时加 .hscroll：右侧渐隐，提示还有未显示的菜单项 */
  .nav-links.hscroll, .docs-side.hscroll {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .docs-wrap { grid-template-columns: 1fr; padding: 18px 14px 60px; gap: 20px; }
  /* 文档侧栏：吸顶横向滑动条（原换行链接堆占据数屏高度） */
  .docs-side {
    position: sticky; top: var(--nav-h, 66px); z-index: 30;
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 6px; margin: 0 -14px; padding: 9px 32px 9px 14px; scrollbar-width: none;
    background: var(--bg); /* 实色：吸顶时遮住下方文档内容，深色模式也跟随主题 */
    border-bottom: 1px solid var(--border);
  }
  .docs-side::-webkit-scrollbar { display: none; }
  .docs-side .side-title { display: none; }
  .docs-side a {
    flex: 0 0 auto; white-space: nowrap; font-size: 13px; padding: 6px 12px;
    background: #ededea; border-radius: 999px;
  }
  .docs-side a.active { background: var(--text); }
  /* 宽表格：整块可横滑（兜底超长代码串）；单元格自动换行，不再强制单行 */
  .docs-main, .doc-section { min-width: 0; max-width: 100%; }
  .doc-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .doc-table::-webkit-scrollbar { height: 6px; }
  .doc-table::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
  .doc-table::-webkit-scrollbar-track { background: transparent; }
  .doc-section td code { overflow-wrap: anywhere; }
  .doc-table th, .doc-table td {
    padding: 8px 10px; font-size: 13px;
    white-space: normal; word-break: break-word; overflow-wrap: anywhere;
    vertical-align: top;
  }
  /* 代码块：小屏缩字号，复制按钮常显（手机没有 hover） */
  .codeblock pre { font-size: 12px; line-height: 1.7; max-height: 62vh; padding: 40px 12px 14px; }
  .code-copy { opacity: 1; }
  .doc-section { margin-bottom: 36px; scroll-margin-top: calc(var(--nav-h, 66px) + 58px); }
  .doc-section > h2 { font-size: 20px; }
  .doc-section p, .doc-list li { font-size: 14px; }
  .doc-section p code, .doc-list li code { overflow-wrap: anywhere; }
  .doc-formula { word-break: break-all; }
  .lang-tabs { width: 100%; }
  .lang-tab { flex: 1; text-align: center; padding: 8px 0; }
}

/* ============================================================
   视觉与动效升级（2026-10-23）
   原则：动效只做层级提示，不阻塞阅读；触屏与 reduced-motion 自动降级
   ============================================================ */

/* 正文使用系统字体，展示字体仅保留给标题、品牌与按钮 */
body { font-family: var(--font-body); }
h1, h2, h3, h4, .nav-logo, .auth-brand, .section-title, .price, .tier, .pricing-note span {
  font-family: var(--font-cute);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; translate: 0 22px; scale: .985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes float-card {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@keyframes accent-sweep {
  0%, 52% { transform: translateX(-130%); }
  86%, 100% { transform: translateX(130%); }
}
@keyframes scan {
  from { background-position: 0 -100%; }
  to { background-position: 0 200%; }
}
@keyframes notice-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 14px, 0) scale(1.08); }
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- 导航 ---------- */
.site-nav { transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-nav.scrolled { box-shadow: 0 12px 34px -24px rgba(23, 23, 26, .5); }
html.dark .site-nav.scrolled { box-shadow: 0 12px 34px -20px rgba(0, 0, 0, .8); }
.nav-logo .logo-mark { transition: transform .45s var(--ease-spring); }
.nav-logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav-links a { transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.nav-links a:hover { transform: translateY(-1px); }
.theme-toggle svg { transition: transform .5s var(--ease-spring); }
.theme-toggle:hover svg { transform: rotate(18deg); }
.theme-toggle:active svg { transform: rotate(-18deg) scale(.9); }

/* 按钮光扫与键盘焦点 */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: '';
  position: absolute; inset: -30% -70%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%);
  transform: translateX(-70%) rotate(8deg);
  opacity: 0; pointer-events: none;
  transition: transform .65s var(--ease), opacity .25s var(--ease);
}
.btn:hover::after { transform: translateX(70%) rotate(8deg); opacity: 1; }
.btn.ghost::after, .btn.ghost-on-dark::after {
  background: linear-gradient(105deg, transparent 38%, rgba(23, 23, 26, .08) 50%, transparent 62%);
}
.btn:focus-visible, .nav-links a:focus-visible, .theme-toggle:focus-visible, a.link:focus-visible {
  outline: 2px solid var(--text); outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute; z-index: 0;
  width: 440px; height: 440px; right: -30px; top: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
  animation: glow-drift 14s ease-in-out infinite alternate;
}
.hero > * { position: relative; z-index: 1; }
.hero-copy > * { animation: rise-in .75s var(--ease) both; }
.hero-copy > h1 { animation-delay: .04s; }
.hero-copy > .hero-sub { animation-delay: .12s; }
.hero-copy > .cta-row { animation-delay: .2s; }
.hero-copy > .hero-meta { animation-delay: .28s; }
.hero h1 em { position: relative; overflow: hidden; }
.hero h1 em::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: accent-sweep 6.5s ease-in-out 1.4s infinite;
  pointer-events: none;
}

.code-card {
  position: relative;
  animation: card-in .85s var(--ease) .1s both, float-card 7s ease-in-out 1.2s infinite;
}
.code-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .035) 50%, transparent 100%);
  background-size: 100% 220%;
  animation: scan 9s linear infinite;
  pointer-events: none;
}

/* ---------- 标题与卡片 ---------- */
.section-title { position: relative; }
.section-title::after {
  content: '';
  display: block; width: 34px; height: 3px; margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--text), transparent);
  opacity: .5;
  transition: width .35s var(--ease), opacity .35s var(--ease);
}
.section-title:hover::after { width: 64px; opacity: .85; }

.feature-card {
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease), border-color .3s var(--ease);
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at 50% 0%, var(--hover), transparent 72%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { transition: transform .4s var(--ease-spring), box-shadow .3s var(--ease); }
.feature-card:hover .feature-icon { transform: translateY(-2px) rotate(-6deg) scale(1.06); box-shadow: 0 8px 18px -10px rgba(23, 23, 26, .4); }

.step { transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease); }
.step > b { transition: transform .4s var(--ease-spring); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step:hover > b { transform: rotate(8deg) scale(1.06); }

/* ---------- 定价：3+2 居中排布，卡片悬浮与特色卡光晕 ---------- */
.pricing { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 18px; }
.pricing .price-card { flex: 1 1 280px; max-width: 340px; }
.price-card {
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.price-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(300px circle at 50% 0%, var(--hover), transparent 70%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.price-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 24px 54px -28px rgba(23, 23, 26, .38); }
.price-card:hover::before { opacity: 1; }
.price-card > :not(.current-badge) { position: relative; z-index: 1; }
.current-badge { z-index: 2; }
.price-card.featured { background: radial-gradient(130% 90% at 50% 0%, #2c2c32 0%, var(--text) 62%); }
.price-card.featured::before { background: radial-gradient(320px circle at 50% 0%, rgba(255, 255, 255, .14), transparent 70%); opacity: 1; }
.price-card.featured:hover { box-shadow: 0 26px 60px -24px rgba(23, 23, 26, .65); }
html.dark .price-card.featured {
  background: linear-gradient(180deg, #242429, #17171a);
  color: var(--text);
  border-color: var(--border-strong);
}
html.dark .price-card.featured .tier,
html.dark .price-card.featured li,
html.dark .price-card.featured .price-note { color: var(--muted); }
html.dark .price-card.featured .btn.ghost-on-dark { color: var(--text); border-color: var(--border-strong); }

/* ---------- 登录 / 文档 / 页脚 ---------- */
.auth-wrap { position: relative; overflow: hidden; }
.auth-wrap::before {
  content: '';
  position: absolute; z-index: 0; width: 520px; height: 520px; top: -180px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 70%);
  pointer-events: none;
  animation: glow-drift 15s ease-in-out infinite alternate;
}
.auth-card { position: relative; z-index: 1; animation: auth-in .75s var(--ease-spring) both; }
.docs-side a { transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.docs-side a:hover { transform: translateX(2px); }
.footer-inner a { position: relative; }
.footer-inner a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.footer-inner a:hover::after { transform: scaleX(1); }
.site-notice { animation: notice-in .45s var(--ease) both; }

@media (max-width: 700px) {
  .pricing .price-card { flex-basis: 100%; max-width: none; }
}

@media (max-width: 880px) {
  .hero::before { width: 300px; height: 300px; right: -120px; top: 0; opacity: .7; }
  .code-card { animation: card-in .8s var(--ease) .08s both; }
  .section-title::after { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .code-card, .auth-card, .site-notice,
  .hero h1 em::after, .code-card::after, .hero::before, .auth-wrap::before {
    animation: none !important;
  }
  .feature-card:hover, .price-card:hover, .step:hover,
  .nav-links a:hover, .docs-side a:hover,
  .nav-logo:hover .logo-mark, .theme-toggle:hover svg, .theme-toggle:active svg,
  .btn:hover, .btn:active { transform: none; }
}

/* ============================================================
   全站页面统一细节（2026-10-23）
   ============================================================ */

/* 文档页 Hero：小标题、柔光与更舒展的标题层级 */
.docs-hero { position: relative; isolation: isolate; padding-top: 58px; }
.docs-hero::before {
  content: '';
  position: absolute; z-index: 0;
  right: -40px; top: -20px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 68%);
  pointer-events: none;
}
.docs-hero > * { position: relative; z-index: 1; }
body.page-docs .docs-hero h1::before,
body.page-guide .docs-hero h1::before,
body.page-dag .docs-hero h1::before {
  content: 'NETCCHECK DOCS';
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
}
body.page-guide .docs-hero h1::before { content: 'NETCCHECK GUIDE'; }
body.page-dag .docs-hero h1::before { content: 'NETCCHECK INJECTOR'; }
body.page-docs .docs-hero h1,
body.page-guide .docs-hero h1,
body.page-dag .docs-hero h1 { font-size: clamp(32px, 4vw, 42px); line-height: 1.2; }
body.page-docs .docs-hero p,
body.page-guide .docs-hero p,
body.page-dag .docs-hero p { font-size: 16px; line-height: 1.85; max-width: 820px; }
.hero-chips span { transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.hero-chips span:hover { transform: translateY(-2px); border-color: var(--border-strong); }

/* DAG 文档正文与站点文档统一 */
body.page-dag .docs-main h2 {
  font-size: 24px; line-height: 1.3; margin: 36px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--text);
}
body.page-dag .docs-main h2:first-child { margin-top: 0; }
body.page-dag .docs-main p { font-size: 15px; line-height: 1.85; margin: 10px 0; color: var(--doc-text); }
body.page-dag .docs-main table { margin: 14px 0 20px; }

/* 首页特性卡：最后一行居中，避免孤零零一张卡贴左 */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.features .feature-card { flex: 1 1 280px; max-width: 355px; }

/* 步骤卡同样居中，文档快速开始的第 4 步不再单独贴左 */
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.steps .step { flex: 1 1 240px; max-width: 355px; }
body.page-pricing .doc-table tbody tr:hover td { background: var(--row-hover); }

/* 定价页卡片依次入场 */
@keyframes price-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
body.page-pricing .pricing .price-card { animation: price-in .6s var(--ease) both; }
body.page-pricing .pricing .price-card:nth-child(2) { animation-delay: .06s; }
body.page-pricing .pricing .price-card:nth-child(3) { animation-delay: .12s; }
body.page-pricing .pricing .price-card:nth-child(4) { animation-delay: .18s; }
body.page-pricing .pricing .price-card:nth-child(5) { animation-delay: .24s; }

/* 登录 / 注册页：点阵背景缓慢流动，卡片保持静止 */
@keyframes auth-dots { to { background-position: 22px 22px; } }
body.page-auth .auth-wrap { animation: auth-dots 26s linear infinite; }

/* 长文档章节间距与滚动入场配合 */
body.page-docs .doc-section,
body.page-guide .doc-section { padding-bottom: 30px; margin-bottom: 54px; }

@media (prefers-reduced-motion: reduce) {
  body.page-auth .auth-wrap,
  body.page-pricing .pricing .price-card { animation: none !important; }
  .hero-chips span:hover { transform: none; }
}

/* 支付回跳提示（定价页） */
.pricing-toast {
  position: fixed; left: 50%; top: 82px; z-index: 200;
  padding: 10px 22px; border-radius: 999px;
  background: var(--text); color: var(--card);
  font-size: 14px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translate(-50%, -10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.pricing-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pricing-toast.warn {
  background: var(--card); color: var(--danger);
  border: 1px solid rgba(229, 72, 77, .4);
}
@media (max-width: 880px) { .pricing-toast { top: 116px; font-size: 13px; } }

/* 404 页面 */
.notfound {
  position: relative; isolation: isolate;
  max-width: 760px; margin: 0 auto; padding: 96px 24px 90px;
  text-align: center;
}
.notfound::before {
  content: '';
  position: absolute; z-index: 0; left: 50%; top: 40px;
  width: 560px; height: 360px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--hero-glow), transparent 68%);
  pointer-events: none;
}
.notfound > * { position: relative; z-index: 1; }
.notfound-code {
  font-family: var(--font-cute);
  font-size: clamp(96px, 18vw, 168px);
  line-height: .9; letter-spacing: .04em;
  background: linear-gradient(180deg, var(--text), var(--muted));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.notfound h1 { font-size: 30px; margin: 18px 0 8px; }
.notfound p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 auto; max-width: 520px; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 880px) {
  .notfound { padding: 64px 18px 70px; }
  .notfound h1 { font-size: 24px; }
  .notfound-actions .btn { flex: 1 1 140px; justify-content: center; }
}

/* ============================================================
   2026-10-24 · 导航 / 定价与权益对照升级
   目标：桌面更克制，手机更好点；对照表支持冻结首列与只看差异
   ============================================================ */

/* ---------- 全局导航 ---------- */
.site-nav { isolation: isolate; }
.nav-inner { max-width: 1180px; height: 68px; gap: 18px; }
.nav-logo {
  color: var(--text); text-decoration: none; flex-shrink: 0;
  font-size: 18px; letter-spacing: .2px;
}
.nav-logo .logo-mark { width: 33px; height: 33px; border-radius: 10px; font-size: 18px; }
.nav-links {
  gap: 2px; margin-left: 4px; padding: 3px;
  border: 1px solid var(--border); border-radius: 13px;
  background: var(--card); box-shadow: var(--shadow-sm);
}
.nav-links a {
  padding: 7px 13px; border-radius: 9px; font-size: 14px;
  white-space: nowrap;
}
.nav-links a.nav-active {
  color: var(--card); background: var(--text);
  box-shadow: 0 4px 12px -8px rgba(23, 23, 26, .55);
}
.nav-links a.nav-active:hover { color: var(--card); background: var(--text); }
.nav-cta { gap: 6px; }
.nav-cta .login-link { padding: 7px 9px; }
.nav-cta .btn { padding: 8px 15px; }
.nav-cta .theme-toggle { margin-left: 0 !important; }
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4;
  height: 2px; background: var(--text); opacity: .55;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .12s linear;
  pointer-events: none;
}
.nav-logo:focus-visible, .compare-toggle:focus-visible, .compare-scroll:focus-visible {
  outline: 2px solid var(--text); outline-offset: 3px;
}

/* ---------- 定价页 Hero ---------- */
body.page-pricing { overflow-x: clip; }
.pricing-page { display: block; }
.pricing-hero {
  position: relative; isolation: isolate;
  max-width: 1180px; margin: 0 auto; padding: 76px 24px 34px;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, .72fr);
  gap: 52px; align-items: center;
}
.pricing-hero::before {
  content: ''; position: absolute; z-index: -1;
  width: min(620px, 100%); height: 620px; right: 0; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 68%);
  pointer-events: none;
}
.pricing-hero-copy > * { animation: rise-in .7s var(--ease) both; }
.pricing-hero-copy > h1 { animation-delay: .06s; }
.pricing-hero-copy > .pricing-lead { animation-delay: .12s; }
.pricing-hero-copy > .pricing-hero-actions { animation-delay: .18s; }
.pricing-hero-copy > .pricing-trust { animation-delay: .24s; }
.pricing-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.pricing-kicker > i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text);
  box-shadow: 0 0 0 4px var(--hover); flex: none;
}
.pricing-hero h1 {
  margin: 15px 0 18px; font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 400; line-height: 1.1; letter-spacing: -.015em;
}
.pricing-hero h1 em {
  display: inline-block; font-style: normal;
  padding: 0 12px 3px; border-radius: 13px;
  color: var(--card); background: var(--text);
}
.pricing-lead {
  max-width: 620px; color: var(--muted);
  font-size: 16.5px; line-height: 1.85;
}
.pricing-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.pricing-hero-actions .btn { padding: 11px 22px; border-radius: 12px; }
.pricing-trust {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px;
  color: var(--muted); font-size: 13px;
}
.pricing-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pricing-trust span::before {
  content: '✓'; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel); color: var(--text); font-size: 10px;
}
.current-plan-banner {
  margin: 22px 0 0; padding: 12px 16px;
  border-radius: 14px; font-size: 13px; text-align: left;
}
.pricing-glance {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 22px;
  padding: 22px; background: linear-gradient(155deg, var(--card), var(--panel));
  box-shadow: var(--shadow-md);
  animation: card-in .8s var(--ease) .1s both;
}
.pricing-glance::after {
  content: ''; position: absolute; width: 190px; height: 190px;
  right: -90px; top: -100px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 68%);
  pointer-events: none;
}
.glance-head {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .15em;
  color: var(--muted);
}
.glance-head b { font-family: var(--font-cute); font-size: 18px; letter-spacing: .03em; color: var(--text); }
.glance-ladder {
  position: relative; z-index: 1;
  display: flex; gap: 3px; margin: 18px 0 15px; padding: 4px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
}
.glance-ladder span {
  flex: 1; padding: 7px 1px; border-radius: 8px;
  text-align: center; font-size: 10.5px; color: var(--muted);
  white-space: nowrap;
}
.glance-ladder span.on { color: var(--card); background: var(--text); }
.glance-list { position: relative; z-index: 1; display: grid; }
.glance-list > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  color: var(--muted); font-size: 13px;
}
.glance-list > div:last-child { border-bottom: 0; }
.glance-list b { color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; }
.glance-list small { color: var(--muted); font-size: 11px; font-weight: 400; }
.glance-note { position: relative; z-index: 1; margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- 套餐区 ---------- */
.pricing-plans { padding-top: 28px; scroll-margin-top: calc(var(--nav-h, 72px) + 14px); }
.pricing-section-head { margin-bottom: 28px; text-align: center; }
.pricing-section-head .pricing-kicker { justify-content: center; }
.pricing-section-head .section-title { margin-top: 9px; font-size: clamp(28px, 3.4vw, 40px); }
.pricing-section-head .section-sub { margin: 10px auto 0; }
.pricing { max-width: 1180px; margin: 0 auto; }
.pricing .price-card { flex: 1 1 300px; max-width: 340px; }
.price-card {
  padding: 24px; border-radius: 18px; overflow: visible;
  background: linear-gradient(180deg, var(--card), var(--card));
}
.price-card .plan-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  min-height: 48px;
}
.plan-code {
  display: block; margin-bottom: 3px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .16em; color: var(--muted);
}
.price-card .tier { font-size: 19px; line-height: 1.15; }
.plan-index {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--muted); opacity: .72;
}
.price-card .price {
  margin: 12px 0 1px; font-size: 42px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price-card .price small { font-size: 13px; }
.price-card .price-note { min-height: 40px; line-height: 1.55; }
.price-card ul { margin: 16px 0 12px; }
.price-card li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 0; line-height: 1.55; color: var(--doc-text);
}
.price-card li::before {
  content: '✓'; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-top: 2px; flex: none;
  border-radius: 50%; background: var(--panel); color: var(--text); font-size: 10px;
}
.price-card .plan-stock {
  min-height: 18px; margin: 2px 0 10px; text-align: center;
  font-size: 11.5px; line-height: 1.5;
}
.price-card .plan-buy {
  width: 100%; justify-content: center; padding: 10px 16px; margin-top: auto;
}
.plan-ribbon {
  position: absolute; top: -13px; left: 18px; z-index: 3;
  padding: 4px 12px; border-radius: 999px;
  color: var(--card); background: var(--text);
  font-size: 10.5px; letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}
.price-card.featured .plan-code, .price-card.featured .plan-index { color: #b9b9bd; }
.price-card.featured li { color: #c9c9ce; }
.price-card.featured li::before { color: #fff; background: rgba(255, 255, 255, .12); }
.price-card.featured .plan-stock { color: #b9b9bd; }
.price-card.featured .btn.ghost-on-dark {
  color: var(--card); border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .04);
}
.price-card.featured .btn.ghost-on-dark:hover {
  color: var(--text); background: var(--card); border-color: var(--card);
}
html.dark .price-card.featured .btn.ghost-on-dark {
  color: var(--text); border-color: var(--border-strong);
}
html.dark .price-card.featured .btn.ghost-on-dark:hover {
  color: var(--card); background: var(--text); border-color: var(--text);
}

/* ---------- 加油包 ---------- */
.booster-panel {
  max-width: 1080px; margin: 24px auto 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px; align-items: center;
  padding: 20px 22px; border-radius: 18px;
  background: linear-gradient(135deg, var(--card), var(--panel));
}
.booster-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--text); color: var(--card);
  font-family: var(--font-cute); font-size: 28px; line-height: 1;
}
.booster-copy .pricing-kicker { font-size: 9px; }
.booster-copy h3 { margin: 3px 0 3px; font-size: 19px; }
.booster-copy p { margin: 0; font-size: 13px; line-height: 1.65; }
.booster-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 权益对照 ---------- */
.compare-section { max-width: 1080px; margin: 38px auto 0; scroll-margin-top: calc(var(--nav-h, 72px) + 18px); }
.compare-panel { padding: 24px; border-radius: 20px; overflow: visible; }
.compare-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 16px;
}
.compare-head h3 { margin: 4px 0 6px; font-size: 25px; }
.compare-head p { max-width: 700px; margin: 0; line-height: 1.75; }
.compare-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; flex: none; }
.compare-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.compare-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.yes { background: var(--text); }
.legend-dot.no { border: 1px solid var(--border-strong); }
.compare-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--muted); font: inherit; font-size: 12px;
  cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.compare-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.compare-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.toggle-track {
  position: relative; width: 28px; height: 16px; flex: none;
  border-radius: 999px; background: var(--panel);
  transition: background .22s var(--ease);
}
.toggle-track i {
  position: absolute; left: 2px; top: 2px; width: 12px; height: 12px;
  border: 1px solid var(--border-strong); border-radius: 50%; background: var(--card);
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.compare-toggle[aria-pressed="true"] .toggle-track { background: var(--text); }
.compare-toggle[aria-pressed="true"] .toggle-track i { transform: translateX(12px); border-color: transparent; background: var(--card); }
.compare-scroll-hint {
  display: none; align-items: center; justify-content: space-between;
  margin: 0 0 8px; color: var(--muted); font-size: 12px;
}
.compare-scroll-hint.show { display: flex; }
.compare-scroll-hint span { color: var(--text); }
.compare-scroll {
  overflow-x: auto; overscroll-behavior-x: contain;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); scrollbar-width: thin;
}
.compare-scroll:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.compare-table {
  width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0;
  table-layout: fixed; font-size: 13px;
}
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); }
.compare-table thead th {
  position: sticky; top: 0; z-index: 3;
  padding: 12px 10px; text-align: center;
  background: var(--panel); color: var(--text); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th:first-child {
  width: 35%; text-align: left; padding-left: 16px;
  left: 0; z-index: 5; color: var(--muted); font-weight: 500;
}
.compare-table thead th span { display: block; font-size: 13px; }
.compare-table thead th small {
  display: block; margin-top: 2px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 400;
  letter-spacing: .12em; color: var(--muted);
}
.compare-table thead th em {
  display: inline-block; margin-top: 5px; padding: 1px 7px;
  border-radius: 999px; background: var(--text); color: var(--card);
  font-size: 9px; font-style: normal; font-weight: 500;
}
.compare-table thead th.is-recommended { background: var(--hover); box-shadow: inset 0 -2px var(--text); }
.compare-table tbody th, .compare-table tbody td {
  padding: 10px; background: var(--card); vertical-align: middle;
}
.compare-table tbody th {
  position: sticky; left: 0; z-index: 2;
  width: 35%; padding-left: 16px;
  color: var(--doc-text); font-weight: 400; text-align: left;
  border-right: 1px solid var(--border);
  white-space: normal; word-break: break-word; overflow-wrap: anywhere;
  line-height: 1.5;
}
.compare-table tbody td { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.compare-table tbody td:nth-child(5) { background: var(--hover); }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td { background: var(--row-hover); }
.compare-table tbody tr:hover td:nth-child(5) { background: var(--hover); }
.compare-table .compare-group th {
  position: static; width: auto; padding: 9px 14px;
  background: var(--panel); color: var(--text);
  border-right: 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-cute); font-size: 14px; font-weight: 400;
}
.compare-table .compare-group th span {
  margin-right: 9px; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .12em; color: var(--muted);
}
.cmp-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; line-height: 1;
}
.cmp-mark.yes { background: var(--text); color: var(--card); }
.cmp-mark.no { background: var(--panel); color: var(--muted); }
.compare-table tr[hidden] { display: none; }
.compare-notes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 16px;
}
.compare-notes > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.compare-notes b { display: block; margin-bottom: 3px; font-size: 12px; color: var(--text); }
.compare-notes p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted); }

/* ---------- 开通流程 ---------- */
.flow-panel { max-width: 1080px; margin: 24px auto 0; padding: 24px; border-radius: 18px; }
.flow-head h3 { margin: 4px 0 0; font-size: 22px; }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.flow-step { padding: 15px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.flow-step > span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.flow-step h4 { margin: 8px 0 5px; font-size: 15px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.flow-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.flow-note b { color: var(--text); }

/* ---------- 用量计算 ---------- */
.usage-section { padding-top: 10px; }
.usage-panel { max-width: 1080px; margin: 0 auto; padding: 24px; border-radius: 18px; }
.usage-panel h3 { margin-bottom: 6px; }
.usage-panel .doc-table { margin-top: 14px; }

/* ---------- 定价页手机端 ---------- */
@media (max-width: 980px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding: 9px 16px 0; gap: 9px; }
  .nav-logo { font-size: 17px; }
  .nav-links {
    order: 3; width: calc(100% + 32px); margin: 0 -16px;
    padding: 7px 16px 10px; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; overscroll-behavior-x: contain;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto; padding: 7px 12px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--card); font-size: 13px;
  }
  .nav-links a.nav-active { color: var(--card); background: var(--text); border-color: var(--text); }
  .nav-cta { margin-left: auto; }
  .nav-cta .login-link { font-size: 13px; padding: 6px 8px; }
  .nav-cta .btn { padding: 7px 12px; font-size: 12.5px; }
  .pricing-hero { grid-template-columns: 1fr; padding: 48px 20px 28px; gap: 30px; }
  .pricing-hero::before { width: min(420px, 100%); height: 420px; right: 0; top: -160px; opacity: .7; }
  .pricing-hero h1 { max-width: 720px; }
  .pricing-glance { max-width: 620px; width: 100%; }
  .pricing .price-card { flex: 1 1 280px; max-width: none; }
  .booster-panel { grid-template-columns: auto minmax(0, 1fr); }
  .booster-actions { grid-column: 2; justify-content: flex-start; }
  .compare-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .compare-tools { width: 100%; justify-content: space-between; }
  .compare-table { min-width: 720px; }
  .compare-table thead th:first-child, .compare-table tbody th { width: 33%; }
  .compare-notes { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pricing .price-card { flex-basis: 100%; max-width: none; }
  .pricing-hero { padding-top: 36px; }
  .pricing-hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .pricing-lead { font-size: 15px; }
  .pricing-hero-actions .btn { flex: 1 1 140px; justify-content: center; }
  .pricing-trust { gap: 12px; }
  .booster-panel { grid-template-columns: 1fr; }
  .booster-actions { grid-column: auto; }
  .booster-actions .btn { flex: 1 1 120px; justify-content: center; }
  .compare-panel, .flow-panel, .usage-panel, .booster-panel { padding: 17px 15px; border-radius: 16px; }
  .compare-head h3 { font-size: 22px; }
  .compare-table { min-width: 680px; font-size: 12px; }
  .compare-table thead th, .compare-table tbody th, .compare-table tbody td { padding: 8px; }
  .compare-table thead th:first-child, .compare-table tbody th { width: 32%; padding-left: 11px; }
  .compare-table tbody th { font-size: 11.5px; line-height: 1.45; }
  .compare-table thead th small { display: none; }
  .compare-table .compare-group th { padding: 8px 11px; font-size: 13px; }
  .compare-notes > div { padding: 10px 12px; }
  .flow-panel { margin-top: 18px; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 8px 12px 0; }
  .nav-logo { gap: 7px; font-size: 16px; }
  .nav-logo .logo-mark { width: 29px; height: 29px; border-radius: 9px; font-size: 16px; }
  .nav-cta { gap: 2px; }
  .nav-cta .login-link { display: none; }
  .nav-cta .btn { padding: 6px 11px; font-size: 12px; }
  .nav-links { width: calc(100% + 24px); margin: 0 -12px; padding: 6px 12px 9px; }
  .theme-toggle { width: 32px; height: 32px; }
  .pricing-section-head .section-sub { font-size: 13px; }
  .price-card { padding: 21px 20px 19px; }
  .price-card .price { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-hero-copy > *, .pricing-glance { animation: none !important; }
  .nav-progress { transition: none; }
}

/* 柔光装饰不得撑出移动端横向滚动（内页共用） */
.auth-wrap::before { right: 0; width: min(520px, 100%); }
.notfound::before { width: min(560px, 100%); }
@media (max-width: 980px) {
  .docs-hero::before { right: 0; width: min(360px, 100%); }
}
@media (max-width: 880px) {
  .hero::before { right: 0; width: min(300px, 100%); height: 300px; }
}

/* 注册赠送体验标签（定价页/首页免费卡） */
.trial-chip {
  display: inline-block;
  margin: 2px auto 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent, #2563eb) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #2563eb) 32%, transparent);
}
.dark .trial-chip {
  color: #93c5fd;
  background: rgba(96, 165, 250, .14);
  border-color: rgba(96, 165, 250, .34);
}

/* ===== 手机端文档阅读（2026-10-27） =====
   1) 顶部导航固定：长文档滚动时随时可切页，不用回到顶部
   2) 两列表格在窄屏改为卡片堆叠：不再需要左右拖动看半截内容
   3) 三/四列表格仍在表格内部横滑，并在右侧给出可滑动阴影提示 */
@media (max-width: 880px) {
  .site-nav { position: fixed; top: 0; left: 0; right: 0; }
  body:not(.admin-body) { padding-top: var(--nav-h, 104px); }
  .auth-wrap { min-height: calc(100vh - var(--nav-h, 104px)); }
}
@media (max-width: 560px) {
  .doc-table.cols-2 { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .doc-table.cols-2 thead { display: none; }
  .doc-table.cols-2 tbody, .doc-table.cols-2 tr, .doc-table.cols-2 td { display: block; width: auto; }
  .doc-table.cols-2 tr {
    border: 1px solid var(--border); border-radius: 10px; background: var(--card);
    margin: 0 0 8px; padding: 9px 12px 10px;
  }
  .doc-table.cols-2 tr:last-child { margin-bottom: 0; }
  .doc-table.cols-2 tbody tr:nth-child(even) td { background: transparent; }
  .doc-table.cols-2 td { border: 0; padding: 2px 0; font-size: 13.5px; line-height: 1.65; }
  .doc-table.cols-2 td:first-child {
    color: var(--muted); font-size: 11.5px; font-weight: 600;
    letter-spacing: .3px; padding-bottom: 4px;
  }
}
.doc-table.scrollable { box-shadow: inset -18px 0 14px -14px rgba(0, 0, 0, .3); }
.doc-table.scrollable.at-end { box-shadow: none; }
html.dark .doc-table.scrollable { box-shadow: inset -18px 0 14px -14px rgba(0, 0, 0, .8); }
@media (max-width: 560px) {
  .doc-table.cols-2 tr.head { display: none; }
}

@media (max-width: 560px) {
  .doc-table.codes { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .doc-table.codes tr.head, .doc-table.codes thead { display: none; }
  .doc-table.codes tbody { display: block; }
  .doc-table.codes tr {
    display: grid; grid-template-columns: 50px 1fr; column-gap: 10px; row-gap: 7px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--card);
    margin: 0 0 8px; padding: 9px 12px;
  }
  .doc-table.codes tbody tr:nth-child(even) td { background: transparent; }
  .doc-table.codes td { display: block; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }
  .doc-table.codes td:nth-child(odd) {
    color: var(--muted); font-family: var(--font-mono); font-size: 12px; text-align: right;
  }
}
/* 宽表（6 列套餐对照等）：外层容器横滑，表格保持 table 布局，避免列被压成 40px */
@media (max-width: 880px) {
  .table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .table-scroll > .doc-table { display: table; min-width: 560px; margin: 0; overflow: visible; }
  .table-scroll > .doc-table::after { display: none; }
}