/* ============================================================
   追风AI小说 官方网站 - 纯静态主题
   白色背景 / 深蓝主色 / 干净商务风
   ============================================================ */

:root {
  --primary: #2f4be0;
  --primary-600: #2741c4;
  --primary-700: #1f35a6;
  --purple: #7a5cf0;
  --grad: linear-gradient(135deg, #2f4be0 0%, #7a5cf0 100%);
  --ink: #182035;
  --ink-2: #3a4356;
  --muted: #667085;
  --line: #e7eaf3;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(24, 32, 53, 0.06);
  --shadow-lg: 0 20px 48px rgba(24, 32, 53, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1160px, 92vw); margin: 0 auto; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: rgba(47, 75, 224, 0.08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
  letter-spacing: .02em;
}
.section-head h2 { font-size: 32px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 12px 22px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: all .18s ease; white-space: nowrap; font-family: var(--font);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(47,75,224,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,75,224,.36); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(47,75,224,.04); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ===== 顶部导航 ===== */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.brand-name .sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 9px 13px; border-radius: 9px; transition: all .15s ease;
}
.nav-links a svg { width: 17px; height: 17px; opacity: .85; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(47,75,224,.08); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 76px 0 70px; overflow: hidden; background:
  radial-gradient(1000px 500px at 85% -10%, rgba(122,92,240,.12), transparent 60%),
  radial-gradient(800px 420px at 8% 0%, rgba(47,75,224,.10), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47,75,224,.08); color: var(--primary);
  font-size: 13.5px; font-weight: 600; padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: 46px; line-height: 1.16; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 20px 0 28px; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-platforms { display: flex; align-items: center; gap: 16px; margin-top: 30px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.plat { display: inline-flex; align-items: center; gap: 7px; }
.plat svg { width: 18px; height: 18px; }

.hero-visual { position: relative; }
.window-shell {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.editor-preview { padding: 22px; display: grid; gap: 14px; }
.editor-toolbar { display: flex; gap: 8px; }
.editor-toolbar span { font-size: 12px; padding: 4px 10px; background: var(--bg-soft); border-radius: 6px; color: var(--ink-2); }
.editor-cols { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.editor-list { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.editor-list div { height: 9px; border-radius: 4px; background: var(--bg-soft); }
.editor-list div:nth-child(2){ background: rgba(47,75,224,.15);}
.editor-main { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.editor-main div { height: 9px; border-radius: 4px; background: var(--bg-soft); }
.editor-main div:nth-child(3), .editor-main div:nth-child(5) { width: 70%; }
.ai-float {
  position: absolute; right: -18px; bottom: -18px; background: var(--grad);
  color: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.ai-float .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.ai-float .ic svg { width: 22px; height: 22px; }
.ai-float b { display: block; font-size: 14px; }
.ai-float small { font-size: 12px; opacity: .85; }

/* ===== 特性(为什么自己充值) ===== */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: all .2s ease; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(47,75,224,.35); }
.why-card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(47,75,224,.09); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-card .ic svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.why-card p { color: var(--muted); font-size: 14.5px; }

/* ===== 功能亮点 ===== */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: all .2s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-card .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(47,75,224,.25); }
.feature-card .ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ===== 套餐 ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; transition: all .2s ease; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.hot { border: 2px solid var(--primary); }
.price-card .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.price-note { font-size: 13px; color: var(--muted); margin: 3px 0 16px; }
.price-amount { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.price-amount small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-amount .per { font-size: 13px; color: var(--muted); font-weight: 500; }
.price-feats { margin: 20px 0; display: grid; gap: 11px; flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); }
.price-feats svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 2px; }
.price-card .btn { width: 100%; }

.pay-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: 14px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.pay-note span { display: inline-flex; align-items: center; gap: 7px; }

/* ===== 界面预览 / 移动端 ===== */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.showcase-copy h3 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.showcase-copy p { color: var(--muted); font-size: 15.5px; }
.showcase-keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); background: rgba(47,75,224,.08); padding: 6px 13px; border-radius: 999px; }
.chip svg { width: 15px; height: 15px; }

.device-mock { background: #0f1524; border-radius: 22px; padding: 16px 8px 8px; width: 210px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.device-mock .notch { width: 70px; height: 14px; background: #2a3348; border-radius: 999px; margin: 0 auto 14px; }
.device-screen { background: #fff; border-radius: 12px; overflow: hidden; }
.device-screen .ds-head { padding: 12px; background: var(--grad); color: #fff; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.device-screen .ds-head img { width: 18px; height: 18px; border-radius: 5px; }
.device-screen .ds-body { padding: 12px; display: grid; gap: 8px; }
.device-screen .ds-body div { height: 9px; border-radius: 4px; background: var(--bg-soft); }
.device-screen .ds-body div:nth-child(2){ width: 86%; }
.device-screen .ds-body div:nth-child(3){ width: 60%; }

/* ===== 授权说明 ===== */
.rules-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.rule-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.rule-card .num { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule-card h4 { margin: 8px 0 6px; font-size: 16px; font-weight: 700; }
.rule-card p { color: var(--muted); font-size: 13.5px; }

/* ===== 适用人群 ===== */
.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.audience-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.audience-card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(122,92,240,.10); color: var(--purple); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.audience-card .ic svg { width: 24px; height: 24px; }
.audience-card h3 { font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.audience-card p { color: var(--muted); font-size: 14px; }

/* ===== 对比表 ===== */
.comparison-wrap { overflow-x: auto; }
.comparison { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.comparison th, .comparison td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.comparison th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.comparison td:last-child { font-weight: 600; color: var(--primary); }
.comparison tr:last-child td { border-bottom: none; }

/* ===== 授权中心 Tab ===== */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .15s ease; font-family: var(--font); }
.tab-btn svg { width: 17px; height: 17px; }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(47,75,224,.25); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.query-box { max-width: 620px; margin: 0 auto; text-align: center; }
.query-box h3 { font-size: 22px; margin-bottom: 6px; font-weight: 800; }
.query-box p { color: var(--muted); margin-bottom: 22px; }
.field { display: flex; gap: 10px; }
.field input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: var(--font); }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,75,224,.12); }
.query-result { margin-top: 22px; text-align: left; background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.query-result .qr-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.query-result .qr-row:last-child { border-bottom: none; }
.query-result .qr-row b { font-weight: 600; color: var(--ink); }

.rules-list { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.rules-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.rules-list .rn { width: 30px; height: 30px; border-radius: 9px; background: rgba(47,75,224,.1); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }
.rules-list p { font-size: 14.5px; color: var(--ink-2); }

/* ===== 下载 ===== */
.dl-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; transition: all .2s ease; }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dl-card .os { width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--primary); }
.dl-card .os svg { width: 30px; height: 30px; }
.dl-card h3 { font-size: 18px; margin-bottom: 4px; font-weight: 700; }
.dl-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; min-height: 20px; }
.dl-card .btn { width: 100%; }

/* ===== 使用说明 ===== */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
.guide-toc { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.guide-toc a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.guide-toc a svg { width: 16px; height: 16px; color: var(--primary); }
.guide-toc a:hover, .guide-toc a.active { background: rgba(47,75,224,.08); color: var(--primary); }
.guide-content h3 { font-size: 21px; font-weight: 800; margin: 8px 0 14px; }
.guide-content section { margin-bottom: 34px; }
.guide-content p, .guide-content li { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.guide-content ol, .guide-content ul { padding-left: 20px; }
.guide-content ol { list-style: decimal; }
.guide-content ul { list-style: disc; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--card); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 17px 20px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font); color: var(--ink); }
.faq-q .chev { transition: transform .2s ease; width: 18px; height: 18px; flex: none; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 20px 17px; color: var(--muted); font-size: 14.5px; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.contact-card { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card .ic { width: 48px; height: 48px; border-radius: 13px; background: rgba(47,75,224,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card b { display: block; font-size: 15px; }
.contact-card span { color: var(--muted); font-size: 14px; }
.contact-card a { color: var(--primary); font-weight: 600; }

/* ===== 页脚 ===== */
.footer { background: #0f1524; color: #9aa3b5; padding: 52px 0 0; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 38px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 12px; }
.footer-brand b { color: #fff; font-size: 17px; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13.5px; max-width: 260px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer a { color: #9aa3b5; font-size: 13.5px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; font-size: 13px; }

/* ===== 虚拟订单滚动(右下角) ===== */
.order-ticker { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; width: 300px; pointer-events: none; }
.ticker-toast { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-lg); padding: 13px 15px; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(16px); transition: all .45s ease; pointer-events: auto; }
.ticker-toast.show { opacity: 1; transform: translateY(0); }
.ticker-av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.ticker-av svg { width: 20px; height: 20px; }
.ticker-body { min-width: 0; }
.ticker-body .t-line { font-size: 13px; font-weight: 600; color: var(--ink); }
.ticker-body .t-line b { color: var(--primary); }
.ticker-body .t-time { font-size: 12px; color: var(--muted); }

/* ===== 后台管理 ===== */
.admin-body { background: var(--bg-soft); }
.admin-login { min-height: 92vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 34px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card h2 { text-align: center; font-size: 22px; margin-bottom: 4px; font-weight: 800; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: var(--font); background: #fff; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,75,224,.12); }
.login-err { background: rgba(220,38,38,.08); color: var(--danger); padding: 10px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; display: none; }

.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.admin-side { background: #0f1524; color: #9aa3b5; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { color: #fff; margin-bottom: 24px; padding: 0 8px; }
.admin-side .brand-name { color: #fff; }
.admin-nav { display: grid; gap: 4px; flex: 1; }
.admin-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border: none; background: none; color: #9aa3b5; font-size: 14.5px; font-weight: 500; border-radius: 9px; cursor: pointer; font-family: var(--font); text-align: left; transition: all .15s ease; }
.admin-nav button svg { width: 19px; height: 19px; flex: none; }
.admin-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav button.active { color: #fff; background: var(--grad); box-shadow: 0 8px 18px rgba(47,75,224,.3); }
.admin-side .logout { margin-top: 14px; }

.admin-main { padding: 30px 34px; overflow-x: hidden; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 24px; font-weight: 800; }
.admin-head .sub { color: var(--muted); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat-card .s-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .s-ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.stat-card .s-ic svg { width: 22px; height: 22px; }
.stat-card .s-label { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.stat-card .s-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.card h3 svg { width: 19px; height: 19px; color: var(--primary); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar .spacer { flex: 1; }
.toolbar input, .toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: var(--font); }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.tbl td { color: var(--ink-2); }
.tbl tr:hover td { background: var(--bg-soft); }
.tbl .empty { text-align: center; color: var(--muted); padding: 34px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge.ok { background: rgba(22,163,74,.12); color: var(--ok); }
.badge.off { background: rgba(100,116,139,.14); color: var(--muted); }
.badge.warn { background: rgba(217,119,6,.12); color: var(--warn); }
.badge.blue { background: rgba(47,75,224,.12); color: var(--primary); }

.btn-danger { background: rgba(220,38,38,.08); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ghost-sm { background: #fff; color: var(--ink-2); border-color: var(--line); padding: 7px 12px; font-size: 13px; }

.chart-box { height: 260px; position: relative; }
.chart-legend { display: flex; gap: 18px; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty-state svg { width: 46px; height: 46px; margin: 0 auto 12px; opacity: .4; }
.empty-state p { font-size: 14px; }

/* toast */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); transition: all .3s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .pricing-grid, .dl-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid, .features-grid, .audience-grid, .rules-grid { grid-template-columns: repeat(2,1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; overflow-x: auto; }
  .admin-side .brand { margin: 0 14px 0 0; }
  .admin-nav { display: flex; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .admin-side .logout { margin: 0 0 0 auto; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; }
  .nav-cta .btn-buy { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .why-grid, .features-grid, .audience-grid, .rules-grid, .dl-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .order-ticker { width: 260px; right: 12px; bottom: 12px; }
  .container { width: 92vw; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 首页滚动公告栏 ===== */
.announce-bar { background: var(--grad); color: #fff; font-size: 14px; position: relative; overflow: hidden; }
.announce-inner { display: flex; align-items: center; gap: 14px; height: 40px; }
.announce-flag {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
}
.announce-flag svg { width: 15px; height: 15px; }
.announce-track-wrap { flex: 1; min-width: 0; overflow: hidden; }
.announce-track { display: flex; width: max-content; animation: announceScroll 30s linear infinite; }
.announce-track:hover { animation-play-state: paused; }
.announce-track .at-group { display: flex; flex: none; align-items: center; gap: 56px; padding-right: 56px; }
.announce-track .at-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.announce-track .at-item svg { width: 15px; height: 15px; opacity: .85; flex: none; }
@keyframes announceScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== 弹窗公告（卡通背景） ===== */
.announce-modal { position: fixed; inset: 0; z-index: 300; background: rgba(15,21,36,.55); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s ease; backdrop-filter: blur(3px); }
.announce-modal.show { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: min(560px, 100%); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(15,21,36,.4); transform: translateY(14px) scale(.98); transition: transform .32s ease; }
.announce-modal.show .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(15,21,36,.35); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .18s ease; }
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: rgba(15,21,36,.6); transform: rotate(90deg); }
.modal-hero { position: relative; height: 200px; overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,21,36,.10) 0%, rgba(15,21,36,.02) 40%, #fff 100%); }
.modal-hero-text { position: absolute; left: 24px; bottom: 14px; z-index: 2; color: #fff; }
.mh-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(15,21,36,.4); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }
.mh-tag svg { width: 14px; height: 14px; }
.modal-hero-text h3 { font-size: 24px; font-weight: 800; text-shadow: 0 2px 10px rgba(15,21,36,.35); }
.modal-body { padding: 20px 26px 26px; }
.modal-body p { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin-bottom: 18px; }

/* 后台开关 */
.switch-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.switch-line input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ===== 独立后台页 ===== */
body.admin-standalone { background: var(--bg-soft); min-height: 100vh; }
body.admin-standalone .admin-login { min-height: 100vh; }
body.admin-standalone .admin-shell { min-height: 100vh; }
.admin-side .side-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.side-link { display: inline-flex; align-items: center; gap: 9px; color: #9aa3b5; font-size: 14px; font-weight: 500; padding: 10px 13px; border-radius: 9px; text-decoration: none; transition: all .15s ease; }
.side-link svg { width: 18px; height: 18px; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.login-back { margin-top: 20px; text-align: center; }
.login-back a { color: var(--muted); font-size: 13px; text-decoration: none; }
.login-back a:hover { color: var(--primary); }

/* ===== 后台 UI 美化 ===== */
.login-card { position: relative; overflow: hidden; }
.login-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.stat-card { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.stat-card::after { content: ""; position: absolute; right: -18px; top: -18px; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at center, rgba(47,75,224,.06), transparent 70%); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,21,36,.08); }
.card { box-shadow: 0 1px 3px rgba(15,21,36,.03); transition: box-shadow .18s ease; }
.card:hover { box-shadow: 0 8px 22px rgba(15,21,36,.07); }
.admin-head h1 { display: inline-flex; align-items: center; gap: 10px; }
.admin-head h1 svg { width: 22px; height: 22px; color: var(--primary); }
.tbl th { background: var(--bg-soft); }
.tbl th:first-child { border-radius: 8px 0 0 8px; }
.tbl th:last-child { border-radius: 0 8px 8px 0; }
.tbl-plans input[type="text"], .tbl-plans textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; font-family: var(--font); box-sizing: border-box; }
.tbl-plans textarea { resize: vertical; min-width: 200px; }
.tbl-plans .row-ops { display: flex; gap: 6px; margin-top: 6px; }
.row-ops .btn { padding: 6px 10px; }

/* ===== Windows 展示块（桌面窗口拟态） ===== */
.window-mock { background: #0f1524; border-radius: 14px; padding: 0; width: 100%; max-width: 460px; margin: 0 auto; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1b2336; color: #9aa3b5; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.06); }
.win-bar span { width: 10px; height: 10px; border-radius: 50%; }
.win-bar span:nth-child(1) { background: #ff5f57; }
.win-bar span:nth-child(2) { background: #febc2e; }
.win-bar span:nth-child(3) { background: #28c840; }
.win-body { display: grid; gap: 10px; padding: 14px; }
.win-body div { height: 26px; border-radius: 7px; background: linear-gradient(90deg, rgba(47,75,224,.20), rgba(122,92,240,.16)); animation: winPulse 2.6s ease-in-out infinite; }
.win-body div:nth-child(2) { width: 82%; opacity: .9; }
.win-body div:nth-child(3) { width: 68%; opacity: .8; }
.win-body div:nth-child(4) { width: 90%; opacity: .7; }
.win-body div:nth-child(5) { width: 55%; opacity: .6; }
@keyframes winPulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }

/* ===== 下单 / 支付二维码弹窗 ===== */
.checkout-modal { position: fixed; inset: 0; z-index: 330; background: rgba(15,21,36,.6); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s ease; backdrop-filter: blur(3px); }
.checkout-modal.show { opacity: 1; pointer-events: auto; }
.checkout-card { position: relative; width: min(440px, 100%); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 30px 70px rgba(15,21,36,.4); transform: translateY(14px) scale(.98); transition: transform .32s ease; }
.checkout-modal.show .checkout-card { transform: translateY(0) scale(1); }
.co-step { display: none; }
.co-step.active { display: block; }
.co-head { text-align: center; margin-bottom: 18px; }
.co-head .co-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.co-head .co-ic svg { width: 26px; height: 26px; }
.co-head h3 { font-size: 19px; font-weight: 800; }
.co-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.co-summary { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.co-summary .co-plan { font-weight: 700; }
.co-summary .co-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.co-form .form-row { margin-bottom: 12px; }
.co-actions { display: flex; gap: 12px; margin-top: 4px; }
.co-actions .btn { flex: 1; justify-content: center; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 4px; }
.qr-img { width: 220px; height: 220px; border-radius: 14px; border: 1px dashed var(--line); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qr-img img { width: 100%; height: 100%; object-fit: contain; }
.qr-img.qr-empty { flex-direction: column; gap: 8px; color: var(--muted); font-size: 12.5px; text-align: center; }
.qr-img.qr-empty svg { width: 44px; height: 44px; opacity: .35; }
.qr-order { color: var(--ink-2); font-size: 14px; }
.qr-order b { color: var(--primary); letter-spacing: .03em; }
.qr-tip { color: var(--muted); font-size: 12.5px; line-height: 1.6; text-align: center; }
.qr-pay-done { width: 100%; }
.co-success { text-align: center; padding: 10px 0; }
.co-success .ok-ic { width: 60px; height: 60px; border-radius: 50%; background: rgba(22,163,74,.12); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.co-success .ok-ic svg { width: 30px; height: 30px; }
.co-success h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.co-success p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
