/* ==========================================================================
   久久加速器 · 全站样式
   站点：https://jiujiujiasuqi.com.cn/
   原则：移动优先 / 无外部字体 / 无阻塞脚本 / 广告位与正文分离，不影响抓取
   ========================================================================== */

:root {
  --ink: #0d1024;
  --ink-2: #1d2338;
  --muted: #5c6579;
  --line: #e4e6f0;
  --bg: #ffffff;
  --bg-soft: #f5f6fc;
  --brand: #7c3aed;
  --brand-2: #a855f7;
  --brand-3: #22d3ee;
  --pink: #ec4899;
  --accent: #f59e0b;
  --ok: #10b981;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 16, 36, .06), 0 1px 3px rgba(13, 16, 36, .04);
  --shadow-md: 0 14px 34px -14px rgba(13, 16, 36, .22);
  --shadow-lg: 0 40px 90px -34px rgba(13, 16, 36, .55);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -.3px;
  color: var(--ink); white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand) 0%, var(--pink) 100%);
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .95);
  line-height: 1;
}
.brand small {
  display: block; font-size: 10.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .8px; line-height: 1.2;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-block; padding: 8px 11px; border-radius: 8px;
  color: var(--ink-2); font-size: 15px; font-weight: 600;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); background: #f1ebff; }
.nav-cta {
  margin-left: 8px; padding: 9px 16px !important; border-radius: 9px !important;
  background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff !important;
  box-shadow: 0 10px 22px -12px rgba(124, 58, 237, 1);
}
.nav-cta:hover { filter: brightness(1.07); }

.menu-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 430px at 12% -12%, rgba(124, 58, 237, .42), transparent 62%),
    radial-gradient(900px 400px at 92% -4%, rgba(236, 72, 153, .30), transparent 58%),
    linear-gradient(165deg, #08071a 0%, #140a2c 46%, #0a0a22 100%);
  color: #eef0ff;
  padding: 74px 0 66px;
}
.hero::after {
  content: ""; position: absolute; inset: auto -12% -58% -12%; height: 68%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .16), transparent 72%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #d8c8ff; background: rgba(168, 85, 247, .16);
  border: 1px solid rgba(168, 85, 247, .34); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 52px); line-height: 1.14; letter-spacing: -1.2px;
  margin: 0 0 18px; font-weight: 800; color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #a855f7, #ec4899 45%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17.5px; color: #cfd3ee; margin: 0 0 26px; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff;
  box-shadow: 0 16px 34px -16px rgba(236, 72, 153, .95);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .07); color: #eef0ff; border-color: rgba(255, 255, 255, .24); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #a3a8cc; margin: 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts li::before { content: "✓"; color: #67e8f9; font-weight: 800; }

.hero-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.hero-card h2 { font-size: 15px; margin: 0 0 14px; color: #d5d9f5; letter-spacing: .4px; font-weight: 700; }
.gauge { position: relative; width: 188px; height: 188px; margin: 4px auto 14px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 12; }
.gauge-bar {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 440; stroke-dashoffset: 70;
  animation: gaugeIn 1.4s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes gaugeIn { from { stroke-dashoffset: 440; } to { stroke-dashoffset: 70; } }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge-num strong { display: block; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.gauge-num span { font-size: 12px; color: #9aa0c4; letter-spacing: 1px; }
.card-list { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #c3c8e4; }
.card-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.card-list li:last-child { border-bottom: 0; }
.card-list b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- sections */
.section { padding: 58px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(22px, 2.7vw, 31px); line-height: 1.3; margin: 0 0 10px; letter-spacing: -.5px; }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #e2d5ff; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #f3edff; color: var(--brand); font-size: 20px; margin-bottom: 14px;
}

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding: 0 0 0 54px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff;
  font-weight: 800; display: grid; place-items: center; font-size: 15px;
}
.steps h3 { margin: 4px 0 6px; font-size: 16.5px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- 页面头 / 文章 */
.page-head {
  background: linear-gradient(180deg, #f6f2ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line); padding: 34px 0 30px;
}
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.7px; }
.page-head .lead { color: var(--muted); max-width: 62ch; margin: 0; font-size: 16.5px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.meta-row b { color: var(--ink-2); font-weight: 700; }

.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #c3c8d8; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 44px; padding: 40px 0 56px; align-items: start; }
.layout > * { min-width: 0; }

.prose { font-size: 16.5px; color: #232a3d; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 23px; line-height: 1.35; margin: 42px 0 14px; letter-spacing: -.3px;
  padding-left: 12px; border-left: 4px solid var(--brand-2); scroll-margin-top: 86px;
}
.prose h3 { font-size: 18px; margin: 28px 0 10px; scroll-margin-top: 86px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 22px 0; padding: 14px 18px; border-left: 4px solid var(--brand-2);
  background: #f7f3ff; border-radius: 0 10px 10px 0; color: #4c2e8a; font-size: 15.5px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--mono); font-size: .9em; background: #f0f1f8;
  padding: 2px 6px; border-radius: 5px; color: #6d28d9;
}
.prose pre {
  background: #100f26; color: #d8dcf5; padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.65; margin: 0 0 18px;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: #fbfaff; }
.prose img { border-radius: 12px; margin: 18px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* 窄屏宽表横向滚动；手机端改成卡片堆叠 */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 0 20px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; max-width: 100%;
}
.table-wrap > table { margin: 0; min-width: 560px; border: 0; width: 100%; border-collapse: collapse; font-size: 14.5px; }

@media (max-width: 720px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap > table { min-width: 0; width: 100%; border-collapse: separate; border-spacing: 0; }
  .table-wrap > table thead { display: none; }
  .table-wrap > table tbody,
  .table-wrap > table tr,
  .table-wrap > table td { display: block; width: 100%; }
  .table-wrap > table tr {
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    margin: 0 0 10px; padding: 4px 0; overflow: hidden;
  }
  .table-wrap > table td {
    border: 0; border-bottom: 1px dashed #eef0f7; padding: 9px 14px;
    display: flex; gap: 12px; align-items: baseline; white-space: normal;
    font-size: 14.5px; line-height: 1.55;
  }
  .table-wrap > table td:last-child { border-bottom: 0; }
  .table-wrap > table td::before {
    content: attr(data-label); flex: 0 0 78px; color: var(--muted);
    font-size: 12.5px; letter-spacing: .3px;
  }
}

.toc {
  position: sticky; top: 86px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 14px; box-shadow: var(--shadow-sm);
}
.toc h2 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 2px 0; }
.toc a { display: block; padding: 6px 10px 6px 26px; border-radius: 7px; color: var(--ink-2); position: relative; }
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 6px; color: #a9b0c6; font-size: 11px; top: 8px; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--bg-soft); text-decoration: none; }
.toc a.active { background: #f1ebff; color: var(--brand); font-weight: 700; }

/* ---------------------------------------------------------------- 广告位 */
.ad {
  position: relative; border: 1px solid #e0e3ee; border-radius: var(--radius);
  background: linear-gradient(180deg, #fdfdff, #f4f5fc); padding: 14px;
}
.ad::before {
  content: "广告"; position: absolute; top: -1px; right: -1px;
  font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 0 16px 0 8px;
  background: #e8eaf4; color: #667089; letter-spacing: .6px;
}
.ad-slot { margin: 26px 0; }
.ad-label { font-size: 11px; color: #7c8499; letter-spacing: .6px; } 

.ad-banner a { display: flex; align-items: center; gap: 16px; color: inherit; }
.ad-banner a:hover { text-decoration: none; }
.ad-banner img { width: 168px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: #0d1024; }
.ad-banner .ad-copy { min-width: 0; }
.ad-banner .ad-copy b { display: block; font-size: 16px; color: var(--ink); }
.ad-banner .ad-copy span { display: block; font-size: 13.5px; color: var(--muted); }
.ad-banner .ad-go {
  margin-left: auto; flex: 0 0 auto; padding: 9px 16px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff;
  font-weight: 700; font-size: 14px;
}
.ad-side { text-align: center; }
.ad-side img { border-radius: 10px; margin: 0 auto 12px; width: 100%; height: auto; }
.ad-side b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 6px; }
.ad-side p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ad-side .ad-go {
  display: inline-block; padding: 10px 18px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff;
  font-weight: 700; font-size: 14px;
}
.ad-inline { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center; }
.ad-inline img { border-radius: 10px; width: 100%; height: 112px; object-fit: cover; background: #0d1024; }
.ad-inline b { display: block; color: var(--ink); font-size: 15.5px; }
.ad-inline p { margin: 4px 0 10px; font-size: 13.5px; color: var(--muted); }
.ad-inline .ad-go { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--brand); }

/* ---------------------------------------------------------------- 弹窗广告 */
.popup-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 7, 26, .62);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.popup-overlay.is-open { opacity: 1; visibility: visible; }
.popup-content {
  position: relative; width: min(430px, 100%); max-height: min(88vh, 800px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 18px 18px 20px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .72);
  transform: translateY(14px) scale(.96);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.popup-overlay.is-open .popup-content { transform: translateY(0) scale(1); }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: none; } }
.popup-content { animation: popIn .42s cubic-bezier(.22, 1, .36, 1) both; }
.popup-close {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e2e5f0;
  background: rgba(255, 255, 255, .95); color: #4b5468; font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.popup-close:hover { background: #eef0f8; color: #0f1424; }
.popup-ad-label {
  display: inline-block; font-size: 11px; letter-spacing: .6px; color: #667089;
  background: #eef0f8; border-radius: 5px; padding: 2px 7px; margin-bottom: 10px;
}
.popup-stack { display: grid; gap: 12px; }
.popup-link { display: block; color: inherit; }
.popup-link:hover { text-decoration: none; }
.popup-title { margin: 0 0 10px; font-size: 18px; text-align: center; color: var(--ink); font-weight: 800; letter-spacing: -.2px; }
.popup-image {
  display: block !important; width: 100%; height: auto; max-height: 46vh; object-fit: contain;
  border-radius: 14px; background: #0b0a1e;
}
.popup-shop-wrap { text-align: center; }
.popup-shop-btn {
  display: block; padding: 13px 18px; border-radius: 12px; font-weight: 800; font-size: 16px;
  color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 14px 26px -14px rgba(220, 38, 38, .95);
}
.popup-shop-btn:hover { text-decoration: none; filter: brightness(1.06); }
.popup-foot { margin: 10px 0 0; text-align: center; font-size: 12px; color: #99a1b3; line-height: 2; }
.popup-foot a { color: #667089; text-decoration: underline; padding: 8px 4px; display: inline-block; }
.popup-foot kbd {
  font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 4px;
  border: 1px solid #dbe0ec; background: #f4f6fb; color: #4b5468;
}

/* ---------------------------------------------------------------- 下载表 */
.dl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.dl-table th, .dl-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.dl-table th { background: var(--bg-soft); font-size: 13px; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.dl-table tr:hover td { background: #fbfaff; }
.dl-table td a { white-space: nowrap; }

.badge { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #f1ebff; color: var(--brand); font-weight: 700; }
.badge-warn { background: #fff4e5; color: #b45309; }
.badge-gray { background: #eef0f8; color: #667089; }
.badge-ok { background: #e7f9f1; color: #0f766e; }

/* ---------------------------------------------------------------- faq */
details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 0; margin: 0 0 10px; box-shadow: var(--shadow-sm);
}
details.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 20px; color: var(--brand); font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }
details.faq .faq-body p { margin: 0 0 10px; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- CTA / footer */
.cta-band {
  background: linear-gradient(135deg, #12102c, #2a1150 58%, #16103a);
  color: #e9e9ff; border-radius: 20px; padding: 32px 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
  margin: 40px 0;
}
.cta-band h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.cta-band p { margin: 0; color: #b3b6d6; font-size: 14.5px; max-width: 48ch; }

.site-footer { background: #0a0b1a; color: #9ba1bb; padding: 48px 0 28px; margin-top: 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: #eceef8; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: #a7adc8; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: #c4b5fd; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 15px; }
.footer-note { color: #7f869f; font-size: 13px; line-height: 1.75; max-width: 36ch; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 12.5px; color: #727992;
}
.footer-bottom a { padding: 2px 0; }

.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--brand); font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #f1ebff; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 14.5px; }
  .nav-cta { padding: 9px 12px !important; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; order: -1; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 66px; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; font-size: 15.5px; }
  .nav-cta { margin: 6px 0 0; padding: 12px !important; text-align: center; }
}

@media (max-width: 760px) {
  .hero { padding: 46px 0 42px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .ad-banner a { flex-direction: column; text-align: center; }
  .ad-banner img { width: 100%; height: 132px; }
  .ad-banner .ad-go { margin: 4px auto 0; }
  .ad-inline { grid-template-columns: 1fr; }
  .ad-inline img { height: 130px; }
  .cta-band { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .toc ol { grid-template-columns: 1fr; }
  .popup-content { padding: 14px 14px 16px; border-radius: 16px; }
  .popup-image { max-height: 38vh; }
  .popup-title { font-size: 16.5px; }
  .to-top { right: 14px; bottom: 16px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .brand { font-size: 17px; }
  .brand small { display: none; }
  .hero h1 { font-size: 27px; }
  .popup-content { padding: 12px 12px 14px; }
  .popup-image { max-height: 34vh; }
}


/* ---------------------------------------------------------------- 正文内广告容器
   .prose 只有 1fr 宽，广告位必须靠这几条约束住宽度，避免溢出到侧栏 */
.prose .ad-banner.ad-slot,
.prose .ad-inline,
.prose > .ad-slot { margin: 30px 0; }
.prose .wrap { max-width: none; padding: 0; margin: 0; }
.prose .ad-slot + h2 { margin-top: 34px; }
.ad-side { max-width: 100%; }
.toc .ad-side { margin-top: 14px; }
.ad-inline > div { min-width: 0; }

/* ---------------------------------------------------------------- 正文卡片网格
   正文里用 .grid-2 / .grid-3 排卡片（如联系方式） */
.prose .grid { margin: 0 0 20px; }
.prose .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .card ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 760px) {
  .prose .grid-2, .prose .grid-3 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- 演示测速 */
#speed-result { display: inline-block; margin-left: 12px; vertical-align: middle; }
.card-list .bar-v { font-variant-numeric: tabular-nums; min-width: 84px; display: inline-block; text-align: right; }

/* ---------------------------------------------------------------- 首屏 hero 卡片
   首页 hero 下方横幅与 hero 交界处留白 */
.hero + .wrap > .ad-banner.ad-slot { margin-top: 30px; margin-bottom: 4px; }

/* ---------------------------------------------------------------- 页脚内链热区 */
.site-footer ul a { padding: 5px 0; }
.footer-bottom a { padding: 6px 2px; display: inline-block; }

/* ---------------------------------------------------------------- 打印 */
@media print {
  .site-header, .site-footer, .ad, .popup-overlay, .toc, .to-top { display: none !important; }
  .layout { grid-template-columns: 1fr; }
}
