/* ==========================================================================
   水母加速器 · 全站样式表  shuimu-jiasuqi.com.cn
   主题：深海蓝黑 + 水母紫青，玻璃拟态卡片，响应式 320px → 1920px
   目录：
     01 设计变量 / 02 基础重置 / 03 版式排版 / 04 通用组件
     05 顶部广告条 / 06 页头导航 / 07 Hero / 08 区块与卡片
     09 表格 / 10 步骤 / 11 FAQ 折叠 / 12 文章排版 / 13 页脚
     14 返回顶部 / 15 广告位（banner / 侧边 / 文章内 / 悬浮贴底）
     16 弹窗广告（全站每次打开 / 刷新必弹）
     17 响应式 / 18 打印 / 19 动效降级
   ========================================================================== */

/* ========================================================== 01 设计变量 */
:root {
  --ink-900: #05060f;
  --ink-850: #070a18;
  --ink-800: #0a0e21;
  --ink-700: #0f1430;
  --ink-600: #151b3d;
  --ink-500: #1d2551;

  --violet: #8b5cf6;
  --violet-deep: #6d3ff0;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --mint: #34d399;
  --amber: #fbbf24;

  --line: rgba(139, 92, 246, 0.18);
  --line-strong: rgba(139, 92, 246, 0.42);

  --text: #eef0ff;
  --text-dim: #aab0d6;
  --text-mute: #737aa6;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 26px 64px -30px rgba(0, 0, 10, 0.95);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.4), 0 18px 52px -24px rgba(124, 92, 255, 0.65);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================================== 02 基础重置 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(124, 92, 255, 0.16), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(700px 420px at 50% 108%, rgba(244, 114, 182, 0.08), transparent 62%),
    var(--ink-900);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #a5f3fc; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(139, 92, 246, 0.5); color: #fff; }

/* ========================================================== 03 版式排版 */
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.28; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.34rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; color: var(--text-dim); }
strong, b { color: #fff; font-weight: 700; }

ul, ol { margin: 0 0 1em; padding-left: 1.3rem; color: var(--text-dim); }
li { margin-bottom: 0.45em; }

code, kbd, pre, samp { font-family: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 6px; padding: 0.1em 0.42em; font-size: 0.9em;
  color: #c4b5fd; word-break: break-word;
}
pre {
  background: #05060f; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; font-size: 0.86rem; line-height: 1.66;
  color: #cfd3f5; margin: 0 0 1.2em;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* ========================================================== 04 通用组件 */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cyan); color: #05060f;
  padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; line-height: 1; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #a78bfa, #6366f1 55%, #22d3ee);
  color: #05060f;
  box-shadow: 0 14px 34px -16px rgba(124, 92, 255, 0.9);
}
.btn-primary:hover { color: #05060f; box-shadow: 0 18px 42px -14px rgba(124, 92, 255, 1); }

.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(139, 92, 246, 0.14); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #c4b5fd; background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.32);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

.tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.14); color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.3); vertical-align: middle;
}
.tag-hot { background: rgba(244, 114, 182, 0.14); color: #f9a8d4; border-color: rgba(244, 114, 182, 0.3); }
.tag-new { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.tag-mute { background: rgba(115, 122, 166, 0.14); color: var(--text-mute); border-color: rgba(115, 122, 166, 0.26); }

.ok { color: var(--mint); }
.warn { color: var(--amber); }

.card {
  background: linear-gradient(180deg, rgba(21, 27, 61, 0.72), rgba(7, 10, 24, 0.92));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}

.muted { color: var(--text-mute); font-size: 0.88rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin-bottom: 0; }

/* ========================================================== 05 顶部广告条 */
.topstrip {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 18px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.16));
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.84rem; color: var(--text); text-align: center;
}
.topstrip:hover { color: #fff; }
.topstrip strong { color: #c4b5fd; }
.strip-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(5, 6, 15, 0.6); color: var(--text-mute);
  border: 1px solid var(--line-strong);
}
.strip-arrow { color: var(--cyan); font-weight: 800; }

/* ========================================================== 06 页头导航 */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 6, 15, 0.84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.02rem; }
.brand:hover { color: #fff; }
.brand-logo { display: block; flex: none; line-height: 0; }
.brand-logo svg { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.brand-sub { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; color: var(--text-mute); text-transform: uppercase; line-height: 1.2; }

.nav-toggle {
  display: none; margin-left: auto;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 1.15rem; line-height: 1;
  padding: 8px 11px; border-radius: 10px; cursor: pointer;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: #c4b5fd; background: rgba(139, 92, 246, 0.16); }

.nav-cta { margin-left: 8px; }

/* ========================================================== 07 Hero */
.hero { padding: 66px 0 52px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -55% -10%; height: 320px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.22), transparent 72%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 span {
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6 42%, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { font-size: 1.03rem; color: var(--text-dim); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; font-size: 0.86rem; color: var(--text-mute); }
.hero-meta li { margin: 0; display: flex; align-items: center; gap: 7px; }
.hero-meta li::before { content: "✓"; color: var(--cyan); font-weight: 900; }

.hero-art { position: relative; }
.hero-art picture { display: block; }
.hero-art > picture > img, .hero-art > img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, 0.1);
}
.float-card {
  position: absolute; left: -14px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5, 6, 15, 0.94);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 14px;
  font-size: 0.8rem; color: var(--text-dim); box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}
.float-card b { color: #fff; font-size: 0.84rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px 0 0; }
.stat { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; color: #c4b5fd; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8rem; color: var(--text-mute); }

/* ========================================================== 08 区块与卡片 */
.section { padding: 62px 0; }
.section-alt { background: linear-gradient(180deg, rgba(15, 20, 48, 0.62), rgba(5, 6, 15, 0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature {
  background: linear-gradient(180deg, rgba(21, 27, 61, 0.62), rgba(7, 10, 24, 0.88));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--glow); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin-bottom: 0; font-size: 0.92rem; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 1.2rem;
}

/* 价格卡 */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(21, 27, 61, 0.7), rgba(7, 10, 24, 0.94));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.price-card.is-featured { border-color: rgba(139, 92, 246, 0.62); box-shadow: var(--glow); position: relative; }
.price-card.is-featured::before {
  content: "最受欢迎"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #a78bfa, #22d3ee); color: #05060f;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-size: 1.06rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.price-desc { font-size: 0.84rem; color: var(--text-mute); min-height: 40px; }
.price-amount { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 2px; }
.price-amount .cur { font-size: 1rem; color: var(--text-dim); font-weight: 700; }
.price-amount .num { font-size: 2.5rem; font-weight: 800; color: #c4b5fd; line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount .unit { font-size: 0.84rem; color: var(--text-mute); }
.price-origin { font-size: 0.82rem; color: var(--text-mute); text-decoration: line-through; margin-bottom: 14px; }
.price-list { list-style: none; padding: 0; margin: 18px 0 22px; font-size: 0.9rem; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; color: var(--text-dim); }
.price-list li::before { content: "✓"; color: var(--cyan); font-weight: 900; flex: none; }
.price-list li.no { color: var(--text-mute); }
.price-list li.no::before { content: "×"; color: var(--text-mute); }
.price-card .btn { margin-top: auto; }

/* 节点表 / 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(5, 6, 15, 0.55); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
caption { caption-side: top; text-align: left; padding: 14px 18px 0; font-size: 0.82rem; color: var(--text-mute); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(139, 92, 246, 0.1); color: #fff; font-weight: 700; font-size: 0.84rem; letter-spacing: 0.03em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(139, 92, 246, 0.06); }
td.num { font-variant-numeric: tabular-nums; }

/* 步骤 */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps > li {
  position: relative; padding: 22px 24px 22px 68px;
  background: rgba(21, 27, 61, 0.55); border: 1px solid var(--line);
  border-radius: var(--radius); margin: 0;
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #05060f; font-weight: 800; font-size: 0.92rem;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.92rem; }

.note {
  border-left: 3px solid var(--violet);
  background: rgba(139, 92, 246, 0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 0 0 1.2em;
  font-size: 0.92rem; color: var(--text-dim);
}
.note b { color: #c4b5fd; }

/* ========================================================== 11 FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details {
  background: rgba(21, 27, 61, 0.55); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 50px 16px 20px;
  font-weight: 700; color: #fff; font-size: 0.98rem;
  position: relative; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: #c4b5fd; font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 20px 18px; font-size: 0.93rem; color: var(--text-dim); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ========================================================== 12 文章排版 */
.page-head { padding: 48px 0 8px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { margin-bottom: 1.3em; }
.prose blockquote {
  margin: 0 0 1.3em; padding: 14px 20px;
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dim); font-size: 0.94rem;
}
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.4em 0; }

.breadcrumb { font-size: 0.82rem; color: var(--text-mute); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--text-mute); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: #c4b5fd; }

.post-meta { font-size: 0.82rem; color: var(--text-mute); margin-bottom: 24px; display: flex; gap: 14px; flex-wrap: wrap; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(21, 27, 61, 0.64), rgba(7, 10, 24, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow); }
.post-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.post-card h3 a { color: #fff; }
.post-card h3 a:hover { color: #c4b5fd; }
.post-card p { font-size: 0.9rem; margin-bottom: 14px; }
.post-card .post-meta { margin-bottom: 10px; font-size: 0.78rem; }
.post-card .more { margin-top: auto; font-size: 0.86rem; font-weight: 700; color: var(--cyan); }

.cta-box {
  text-align: center; padding: 48px 28px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(139, 92, 246, 0.26), transparent 70%),
    linear-gradient(180deg, rgba(21, 27, 61, 0.82), rgba(7, 10, 24, 0.95));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
}
.cta-box h2 { margin-bottom: 10px; }
.cta-box p { max-width: 620px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 相关链接 */
.rel-title { text-align: center; font-size: 1.2rem; }
.rel-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.rel-links li { margin: 0; }
.rel-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(139, 92, 246, 0.08);
  font-size: 0.86rem; color: var(--text-dim);
}
.rel-links a:hover { color: #fff; border-color: var(--line-strong); background: rgba(139, 92, 246, 0.18); }

/* ========================================================== 13 页脚 */
.site-footer {
  margin-top: 40px; padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 10, 24, 0.5), rgba(3, 4, 10, 0.94));
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-mute); margin: 12px 0 0; max-width: 34ch; }
.footer-col-title { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-dim); font-size: 0.88rem; }
.footer-col a:hover { color: #c4b5fd; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-mute);
}
.footer-bottom p { margin: 0; color: var(--text-mute); }

/* ========================================================== 14 返回顶部 */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 6, 15, 0.92); color: #c4b5fd;
  border: 1px solid var(--line-strong); cursor: pointer;
  font-size: 1.1rem; box-shadow: var(--shadow);
}
.to-top.is-visible { display: flex; }
.to-top:hover { background: rgba(139, 92, 246, 0.24); color: #fff; }

/* ========================================================== 15 广告位 */
/* 15.1 正文内横幅（原生广告位，参与排版，不遮挡内容） */
.ad-slot {
  margin: 34px 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 27, 61, 0.55), rgba(7, 10, 24, 0.82));
  overflow: hidden;
}
.ad-slot-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-bottom: 1px solid var(--line);
  font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.08em;
}
.ad-label {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(5, 6, 15, 0.66); color: var(--text-mute);
  border: 1px solid var(--line-strong);
}
.ad-slot a { display: block; padding: 18px; color: inherit; }
.ad-slot a:hover { color: inherit; background: rgba(139, 92, 246, 0.06); }
.ad-slot img { border-radius: var(--radius-sm); width: 100%; }
.ad-slot-title { margin: 12px 0 4px; font-size: 1rem; font-weight: 700; color: #fff; }
.ad-slot p { margin: 0; font-size: 0.88rem; color: var(--text-dim); }
.ad-slot .ad-cta { display: inline-block; margin-top: 10px; font-size: 0.84rem; font-weight: 700; color: #c4b5fd; }

/* 15.2 侧边悬浮广告 */
.corner-ad {
  position: fixed; right: 16px; bottom: 76px; z-index: 58; width: 208px;
  background: rgba(5, 6, 15, 0.96);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, 0.12);
  overflow: hidden;
}
.corner-ad[hidden] { display: none; }
.corner-ad a { display: block; color: inherit; padding: 12px; }
.corner-ad a:hover { color: inherit; background: rgba(139, 92, 246, 0.1); }
.corner-ad img { border-radius: 8px; margin-bottom: 8px; }
.corner-ad .corner-title { font-size: 0.84rem; font-weight: 700; color: #fff; margin: 0 0 2px; }
.corner-ad .corner-desc { font-size: 0.74rem; color: var(--text-mute); margin: 0; }
.corner-close {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 6, 15, 0.9); color: var(--text-dim);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem; line-height: 1; cursor: pointer; z-index: 2;
}
.corner-close:hover { color: #fff; background: rgba(244, 114, 182, 0.3); }

/* 15.3 横向广告条（内页 / 文章页） */
.ad-rail {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 26px 0; padding: 14px 18px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.14), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.ad-rail a { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; color: inherit; min-width: 0; }
.ad-rail a:hover { color: inherit; }
.ad-rail img { width: 92px; border-radius: 8px; flex: none; }
.ad-rail .rail-text { min-width: 0; }
.ad-rail strong { display: block; color: #fff; font-size: 0.94rem; }
.ad-rail span { display: block; font-size: 0.8rem; color: var(--text-mute); }

/* 15.4 底部悬浮贴片（移动端友好，不遮挡正文） */
.sticky-ad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 57;
  display: none; align-items: center; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 6, 15, 0.97);
  border-top: 1px solid var(--line-strong);
}
.sticky-ad[hidden] { display: none !important; }
.sticky-ad a { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; color: inherit; min-width: 0; }
.sticky-ad img { width: 44px; height: 44px; border-radius: 8px; flex: none; object-fit: cover; }
.sticky-ad .sa-text { min-width: 0; }
.sticky-ad strong { display: block; font-size: 0.82rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-ad span { display: block; font-size: 0.72rem; color: var(--text-mute); }
.sticky-ad .sa-cta {
  flex: none; padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #05060f; font-size: 0.8rem; font-weight: 800; white-space: nowrap;
}
.sticky-ad .sa-close {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--text-dim);
  border: 1px solid var(--line-strong); cursor: pointer; line-height: 1; font-size: 0.9rem;
}

/* ========================================================== 16 弹窗广告 */
/* 全站每次打开 / 每次刷新（F5、Ctrl+R、从搜索落地、bfcache 返回）都会弹出。
   HTML 内联时为 hidden，正文先完整输出，不遮挡首屏抓取；JS 延迟触发。 */
.ad-mask {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(2, 3, 9, 0.78);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0; transition: opacity 0.24s var(--ease);
}
.ad-mask[hidden] { display: none; }
.ad-mask.is-open { opacity: 1; }

.popup-content {
  position: relative;
  width: 100%; max-width: 368px; margin: auto;
  background: radial-gradient(420px 200px at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%), linear-gradient(180deg, #12173a, #06081a 82%);
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 20px; padding: 20px 20px 18px;
  box-shadow: 0 40px 90px -32px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(139, 92, 246, 0.16);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s var(--ease);
  max-height: calc(100vh - 40px); overflow-y: auto; text-align: center;
}
.ad-mask.is-open .popup-content { transform: translateY(0) scale(1); }

.popup-close {
  position: absolute; top: 9px; right: 9px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-dim); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 3;
}
.popup-close:hover { background: rgba(244, 114, 182, 0.3); color: #fff; transform: rotate(90deg); }

.popup-ad-label {
  display: inline-block;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 2px 9px; border-radius: 4px;
  background: rgba(5, 6, 15, 0.7); color: var(--text-mute);
  border: 1px solid var(--line-strong);
  margin-bottom: 12px; text-transform: uppercase;
}

.popup-stack { display: flex; flex-direction: column; gap: 12px; }
.popup-link { display: block; color: inherit; }
.popup-link:hover { color: inherit; }

.popup-title { margin: 0 0 10px; font-size: 1.06rem; font-weight: 800; color: #fff; letter-spacing: 0.01em; }
.popup-link:hover .popup-title { color: #c4b5fd; }

.popup-image { width: 100%; border-radius: 14px; border: 1px solid rgba(139, 92, 246, 0.28); background: #04050d; display: block; }

/* 移动端弹窗仍保留完整广告卡片（旧版在 560px 以下把主图整块隐藏，广告位形同虚设）。
   .is-mobile 由 ad.js 在打开时按视口切换，保证手机上也是「图片 + 标题 + 下载按钮」。 */
.ad-mask.is-mobile .popup-content { max-width: min(360px, 92vw); padding: 16px 14px 14px; }
.ad-mask.is-mobile .popup-image { display: block; width: 100%; }
.ad-mask.is-mobile .popup-title { font-size: 0.98rem; margin: 0 0 8px; }
.ad-mask.is-mobile .popup-ad-label { margin-bottom: 10px; }
.ad-mask.is-mobile .popup-shop-btn { padding: 11px 18px; font-size: 0.9rem; }

.popup-shop-wrap { display: flex; }
.popup-shop-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #05060f; font-weight: 800; font-size: 0.94rem; letter-spacing: 0.02em;
  box-shadow: 0 14px 32px -16px rgba(124, 92, 255, 0.9);
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease);
}
.popup-shop-btn:hover { color: #05060f; transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(124, 92, 255, 1); }

/* ========================================================== 18.5 picture 兼容 */
picture { display: block; }
.popup-link picture { display: block; }
.popup-link picture img { width: 100%; border-radius: 14px; }
.ad-slot picture { display: block; }
.ad-slot picture img { border-radius: var(--radius-sm); width: 100%; }
.corner-ad picture { display: block; }
.corner-ad picture img { border-radius: 8px; margin-bottom: 8px; }
.ad-rail picture { display: block; flex: none; }
.ad-rail picture img { width: 92px; border-radius: 8px; }
.hero-art picture { display: block; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ========================================================== 17 响应式 */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { height: 62px; }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 10px 16px 16px;
    background: rgba(5, 6, 15, 0.98);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn { padding: 8px 14px; font-size: 0.82rem; }
  .section { padding: 46px 0; }
  .hero { padding: 42px 0 38px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .corner-ad { display: none; }
  .ad-rail img, .ad-rail picture img { width: 68px; }
  .sticky-ad { display: flex; }
  .to-top { bottom: 74px; }
  body.has-sticky-ad { padding-bottom: 64px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .topstrip { font-size: 0.76rem; gap: 6px; padding: 8px 12px; }
  .grid-4 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .float-card { left: 8px; bottom: 10px; font-size: 0.72rem; padding: 7px 10px; }
  .popup-content { padding: 18px 16px 16px; border-radius: 16px; }
  .popup-title { font-size: 1rem; }
  .ad-mask.is-mobile { padding: 14px; }
  .ad-mask.is-mobile .popup-content { max-width: min(330px, 92vw); }
  .ad-slot a { padding: 14px; }
  .to-top { right: 14px; bottom: 74px; }
  table { font-size: 0.84rem; }
  th, td { padding: 10px 12px; }
}

/* ========================================================== 18 打印 */
@media print {
  .ad-mask, .corner-ad, .sticky-ad, .to-top, .topstrip, .ad-slot, .ad-rail, .site-header, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ========================================================== 19 动效降级 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
