/* ==========================================================================
   御泰智慧营销 · 新站样式（响应式 / 移动优先 / 无框架依赖）
   ========================================================================== */

:root {
  --green-900: #064e3b;
  --green-700: #047857;
  --green-600: #0e9d56;
  --green-500: #10b981;
  --green-50: #ecfdf5;
  --ink-900: #0b1220;
  --ink-800: #16202e;
  --ink-700: #2b3a4a;
  --ink-500: #5b6b7c;
  --ink-400: #7d8b9a;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --bg-dark: #0b1a24;
  --amber: #f59e0b;
  --red: #e5484d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 4px 16px rgba(11, 18, 32, .04);
  --shadow-md: 0 12px 32px rgba(11, 18, 32, .10);
  --shadow-lg: 0 24px 64px rgba(11, 18, 32, .16);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.4vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(17px, 2vw, 21px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--green-50); color: var(--green-700); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #c7d5df; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head p { color: var(--ink-500); margin: 0; }
.section--dark .section__head p { color: #9fb4c2; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--green-600); font-weight: 700; margin-bottom: 12px; }
.section--dark .eyebrow { color: var(--green-500); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--green-600), var(--green-500)); color: #fff; box-shadow: 0 8px 24px rgba(16, 185, 129, .28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(16, 185, 129, .36); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--line); color: var(--ink-800); background: #fff; }
.btn--outline:hover { border-color: var(--green-500); color: var(--green-700); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--amber { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink-900); letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--green-600), var(--green-500)); display: grid; place-items: center; color: #fff; font-size: 16px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-400); letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-700); transition: .18s; }
.nav a:hover, .nav a.is-active { color: var(--green-700); background: var(--green-50); }
.nav-drop { position: relative; }
.nav-drop__panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden; transition: .18s; }
.nav-drop:hover .nav-drop__panel, .nav-drop:focus-within .nav-drop__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop__panel a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 800; font-size: 17px; color: var(--ink-900); letter-spacing: -.01em; }
.header-phone span { display: block; font-size: 11px; font-weight: 500; color: var(--ink-400); letter-spacing: .04em; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink-800); margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 78% 8%, rgba(16, 185, 129, .28), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(14, 157, 86, .22), transparent 55%), var(--bg-dark); color: #dbe7ee; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%); pointer-events: none; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #6ee7b7, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(15px, 1.6vw, 18px); color: #a9bfcd; max-width: 560px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 22px 0 30px; padding: 0; list-style: none; font-size: 14px; color: #cddbe4; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before { content: "✓"; color: var(--green-500); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 26px; backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.hero__card h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.hero__card p { font-size: 13px; color: #9fb4c2; margin-bottom: 16px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 2; }
.hero__stats b { display: block; font-size: clamp(24px, 3vw, 36px); color: #fff; letter-spacing: -.02em; }
.hero__stats b i { font-style: normal; font-size: .5em; color: var(--green-500); margin-left: 2px; }
.hero__stats span { font-size: 13px; color: #93a9b8; }

/* ---------- 通用卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(16, 185, 129, .35); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 14.5px; margin: 0; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--green-700); }
.card__link::after { content: "→"; transition: .2s; }
.card:hover .card__link::after { transform: translateX(4px); }

/* ---------- 痛点 / 对比 ---------- */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain__item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 20px; }
.pain__item strong { display: block; color: var(--ink-900); margin-bottom: 6px; }
.pain__item p { margin: 0; font-size: 14px; color: var(--ink-500); }
.pain__item--good { border-left-color: var(--green-600); }

.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14.5px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: var(--bg-soft); font-size: 13px; color: var(--ink-500); font-weight: 600; }
.compare td:first-child { font-weight: 600; color: var(--ink-900); }
.compare .yes { color: var(--green-700); font-weight: 600; }
.compare .no { color: var(--ink-400); }
.compare tr:last-child td { border-bottom: none; }

/* ---------- 案例 ---------- */
.case-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e8f7f0, #d7ecff); position: relative; overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 18px 20px 22px; }
.case-card__body h3 { font-size: 17px; margin-bottom: 6px; }
.case-card__body p { margin: 0; font-size: 13.5px; color: var(--ink-500); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: 12px; font-weight: 600; margin-bottom: 10px; }

/* ---------- 文章列表 ---------- */
.post-list { display: grid; gap: 14px; }
.post-item { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: .2s; }
.post-item:hover { border-color: rgba(16, 185, 129, .4); box-shadow: var(--shadow-sm); }
.post-item h3 { font-size: 17px; margin-bottom: 6px; }
.post-item p { margin: 0; font-size: 14px; color: var(--ink-500); }
.post-item time { font-size: 13px; color: var(--ink-400); white-space: nowrap; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.input, .textarea, select.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink-900); background: #fff; transition: .18s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 12px; color: var(--ink-400); margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert--error { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }
.alert--success { background: var(--green-50); color: var(--green-700); border: 1px solid #bbf7d0; }
.alert--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert--warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ---------- 工具页 ---------- */
.tool-hero { background: linear-gradient(180deg, #f2fbf7 0%, #ffffff 100%); padding: clamp(40px, 6vw, 72px) 0 0; }
.tool-hero__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.tool-url-form { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px; box-shadow: var(--shadow-md); margin: 26px auto 0; max-width: 640px; }
.tool-url-form input { flex: 1; border: none; background: transparent; padding: 10px 16px; font-size: 16px; color: var(--ink-900); }
.tool-url-form input:focus { outline: none; }
.tool-url-form .btn { flex-shrink: 0; }
.tool-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; font-size: 13px; color: var(--ink-500); }
.tool-badges span::before { content: "✓ "; color: var(--green-600); font-weight: 700; }

/* ---------- 报告 ---------- */
.report-head { background: linear-gradient(135deg, #0b1a24, #0f3b30); color: #fff; padding: clamp(32px, 5vw, 56px) 0; }
.report-head__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.score-ring { width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green-500) calc(var(--score) * 1%), rgba(255, 255, 255, .12) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0d2029; }
.score-ring strong { position: relative; font-size: 42px; color: #fff; letter-spacing: -.03em; }
.score-ring span { position: relative; display: block; font-size: 12px; color: #9fb4c2; text-align: center; }
.report-head h1 { color: #fff; font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 8px; word-break: break-all; }
.report-head .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #9fb4c2; }
.dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 24px; }
.dim { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 14px; }
.dim b { display: block; font-size: 22px; color: #fff; }
.dim span { font-size: 12px; color: #9fb4c2; }
.dim__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); margin-top: 8px; overflow: hidden; }
.dim__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), #6ee7b7); }

.report-body { padding: clamp(32px, 5vw, 56px) 0; }
.report-block { margin-bottom: 34px; }
.report-block h2 { font-size: clamp(19px, 2.2vw, 24px); padding-bottom: 12px; border-bottom: 2px solid var(--green-50); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.report-block h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--green-600); }
.report-block p { color: var(--ink-700); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--bg-soft); font-size: 12.5px; color: var(--ink-500); font-weight: 600; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl--hits td.ctx { color: var(--ink-500); font-size: 13px; }
.issue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.issue { border: 1px solid var(--line); border-left: 3px solid var(--ink-400); border-radius: 12px; padding: 16px 18px; background: #fff; }
.issue--critical { border-left-color: var(--red); background: #fffafa; }
.issue--warn { border-left-color: var(--amber); background: #fffdf7; }
.issue__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.issue__tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-500); }
.issue--critical .issue__tag { background: #fee2e2; color: #b42318; }
.issue--warn .issue__tag { background: #fef3c7; color: #b45309; }
.issue__dim { margin-left: auto; font-size: 12px; color: var(--ink-400); }
.issue p { margin: 0 0 10px; font-size: 14px; color: var(--ink-500); }
.issue__fix { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.issue__fix em { display: block; font-style: normal; font-weight: 700; color: var(--ink-700); margin-bottom: 4px; font-size: 12.5px; }
.issue__fix ol { margin: 0 0 6px; padding-left: 18px; }
.issue__effort { font-size: 12px; color: var(--ink-400); }
.bullets { padding-left: 20px; }
.bullets li { margin-bottom: 8px; }
.bullets .ok { color: var(--green-700); font-weight: 600; }
.plan { padding-left: 20px; }
.plan li { margin-bottom: 14px; }
.plan li p { margin: 4px 0 0; color: var(--ink-500); font-size: 14px; }
.risk { display: inline-block; width: 22px; text-align: center; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.risk--high { background: var(--red); }
.risk--medium { background: var(--amber); }
.risk--low { background: var(--ink-400); }

/* 付费墙 */
.paywall { position: relative; margin-top: 8px; }
.paywall__locked { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; max-height: 420px; overflow: hidden; }
.paywall__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 62%); pointer-events: none; }
.paywall__card { position: relative; margin: -80px auto 0; max-width: 560px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow-lg); }
.paywall__card h3 { font-size: 20px; }
.paywall__card p { font-size: 14px; color: var(--ink-500); }
.paywall__price { font-size: 34px; font-weight: 800; color: var(--ink-900); margin: 6px 0 4px; letter-spacing: -.02em; }
.paywall__price small { font-size: 14px; color: var(--ink-400); font-weight: 500; }
.paywall__list { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; display: grid; gap: 8px; font-size: 14px; color: var(--ink-700); }
.paywall__list li::before { content: "✓"; color: var(--green-600); font-weight: 700; margin-right: 8px; }
.paywall__preview { font-size: 12px; color: var(--ink-400); margin-top: 12px; }

/* ---------- CTA 区块 ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-700), var(--green-600) 55%, #14b8a6); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-band .btn--outline { background: #fff; border-color: #fff; color: var(--green-700); }

/* ---------- 页脚 ---------- */
.site-footer { background: #071219; color: #8fa6b4; padding: clamp(40px, 5vw, 64px) 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #8fa6b4; transition: .18s; }
.site-footer a:hover { color: var(--green-500); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12.5px; color: #6b8290; }
.floating-cta { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.floating-cta a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-lg); transition: .2s; }
.floating-cta a:hover { transform: translateY(-3px); }
.floating-cta .f-tel { background: linear-gradient(135deg, var(--green-600), var(--green-500)); }
.floating-cta .f-top { background: #334155; }

/* ---------- 内容页 ---------- */
.page-hero { background: linear-gradient(180deg, #f2fbf7, #fff); padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-400); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--green-700); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { color: var(--ink-500); max-width: 720px; margin: 0; }
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.prose { font-size: 16.5px; line-height: 1.85; color: var(--ink-700); }
.prose h2 { margin-top: 1.6em; font-size: 24px; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 12px; margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--green-500); background: var(--green-50); border-radius: 0 10px 10px 0; color: var(--ink-700); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.side-list a { font-size: 14px; color: var(--ink-700); display: block; }
.side-list a:hover { color: var(--green-700); }
.side-list time { display: block; font-size: 12px; color: var(--ink-400); }

.pager { margin-top: 32px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; justify-content: center; }
.pager a, .pager span { display: inline-block; min-width: 38px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.pager .active span { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.pager a:hover { border-color: var(--green-500); color: var(--green-700); }
.pager .gap { border: none; padding: 8px 4px; }

/* ---------- 价格表 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan-card--featured { border-color: var(--green-500); box-shadow: 0 18px 48px rgba(16, 185, 129, .16); position: relative; }
.plan-card--featured::after { content: "推荐"; position: absolute; top: -12px; right: 24px; background: var(--green-600); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.plan-card h3 { font-size: 20px; margin-bottom: 4px; }
.plan-card .price { font-size: 32px; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; margin: 8px 0 2px; }
.plan-card .price small { font-size: 13px; color: var(--ink-400); font-weight: 500; }
.plan-card ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.plan-card li::before { content: "✓"; color: var(--green-600); font-weight: 700; margin-right: 8px; }
.plan-card li.off { color: var(--ink-400); }
.plan-card li.off::before { content: "×"; color: var(--ink-400); }

.matrix { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.matrix th, .matrix td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { background: var(--bg-soft); font-size: 13px; color: var(--ink-500); }
.matrix .ok { color: var(--green-600); font-weight: 700; }
.matrix .no { color: #cbd5e1; }
.matrix .group td { background: #fafcfd; font-weight: 700; color: var(--ink-800); font-size: 13px; }

/* ---------- 支付页 ---------- */
.pay-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.pay-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-md); text-align: center; }
.pay-card .amount { font-size: 40px; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; margin: 6px 0 2px; }
.pay-card .product { color: var(--ink-500); font-size: 14px; }
.pay-methods { display: grid; gap: 10px; margin: 24px 0; text-align: left; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.pay-method.is-active { border-color: var(--green-500); background: var(--green-50); }
.pay-qr { width: 160px; height: 160px; margin: 0 auto 12px; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--ink-400); font-size: 12px; background: var(--bg-soft); }

/* ---------- 后台 ---------- */
.admin-body { background: #f4f6f9; }
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: #0b1a24; color: #b6c8d3; padding: 20px 14px; }
.admin-side .brand { color: #fff; margin-bottom: 22px; padding: 0 8px; }
.admin-side .brand small { color: #6b8290; }
.admin-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.admin-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: #b6c8d3; }
.admin-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-menu a.is-active { background: var(--green-600); color: #fff; font-weight: 600; }
.admin-menu .badge { margin-left: auto; background: rgba(255, 255, 255, .16); font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.admin-main { min-width: 0; }
.admin-top { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.admin-top h1 { font-size: 17px; margin: 0; }
.admin-top .who { font-size: 13px; color: var(--ink-500); display: flex; align-items: center; gap: 14px; }
.admin-content { padding: 24px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.admin-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-card__head h2 { font-size: 16px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.kpi span { font-size: 12.5px; color: var(--ink-500); }
.kpi b { display: block; font-size: 26px; color: var(--ink-900); letter-spacing: -.02em; margin-top: 6px; }
.kpi i { font-style: normal; font-size: 12px; color: var(--green-600); margin-left: 6px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { font-size: 12px; color: var(--ink-500); font-weight: 600; background: #fafcfd; }
.data-table tr:hover td { background: #fbfdfc; }
.data-table td.wrap { white-space: normal; min-width: 240px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge--green { background: var(--green-50); color: var(--green-700); }
.badge--amber { background: #fffbeb; color: #b45309; }
.badge--red { background: #fef2f2; color: #b42318; }
.badge--gray { background: #f1f5f9; color: #475569; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.admin-filters .input { max-width: 240px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--ink-400); margin-top: 4px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 70% 10%, rgba(16, 185, 129, .18), transparent 60%), #0b1a24; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card p.sub { color: var(--ink-400); font-size: 13.5px; margin-bottom: 22px; }

/* ---------- 404 ---------- */
.err-wrap { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.err-wrap .code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; letter-spacing: -.05em; background: linear-gradient(120deg, var(--green-600), #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .layout-main { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .section__head { text-align: left; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-header__inner { height: 62px; }
  .nav { position: fixed; inset: 62px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); display: none; max-height: calc(100vh - 62px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; font-size: 15px; }
  .nav-drop__panel { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 0 10px; min-width: 0; display: none; }
  .nav-drop.is-open .nav-drop__panel { display: block; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .hero { padding-top: 40px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid--2, .grid--3, .grid--4, .pain { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tool-url-form { flex-direction: column; border-radius: 16px; padding: 12px; }
  .tool-url-form .btn { width: 100%; }
  .report-head__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .report-head .meta { justify-content: center; }
  .dims { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-item { grid-template-columns: 1fr; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .floating-cta { right: 12px; bottom: 12px; }
  .admin-content { padding: 14px; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 9px 10px; }
}

/* ---------- 补充：提示与进场动画 ---------- */
.form-tip { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-tip.is-ok { color: var(--green-700); }
.form-tip.is-err { color: #b42318; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 小屏微调 ---------- */
@media (max-width: 480px) {
  .header-cta .btn { display: none; }
  .hero__card .field label, .hero__card .form-note { color: #b9cbd6; }
  .hero__card .input { border-color: rgba(255,255,255,.18); }
  .hero__card .input::placeholder { color: #8ba2b1; }
}

/* ---------- 整站扫描：表单选择器与逐页表格 ---------- */
.tool-url-form select {
  border: none; border-left: 1px solid var(--line); background: transparent;
  font-size: 14px; color: var(--ink-700); padding: 0 6px 0 12px; cursor: pointer; flex-shrink: 0;
  font-family: inherit; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8aa0ad 50%), linear-gradient(135deg, #8aa0ad 50%, transparent 50%);
  background-position: calc(100% - 12px) 18px, calc(100% - 7px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 26px;
}
.tool-url-form select:focus { outline: none; }

.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.tbl--pages { min-width: 760px; font-size: 13px; }
.tbl--pages th, .tbl--pages td { padding: 9px 10px; white-space: nowrap; }
.tbl--hits { min-width: 700px; }
.tbl .pg { max-width: 260px; }
.pg__idx { display: inline-block; min-width: 20px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.pg__url { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: bottom; color: var(--ink-700); }
.tbl td.ok { color: var(--green-700); font-weight: 600; }
.tbl td.bad { color: #b42318; font-weight: 600; }
.tbl td.warn { color: #b54708; font-weight: 600; }
.tbl td.ok .ok, .tbl td.bad .bad { color: inherit; }
.issue__pages { margin-top: 10px; font-size: 13px; color: var(--ink-500); background: var(--bg-soft);
  border-radius: 10px; padding: 8px 12px; line-height: 1.6; }
.issue__pages em { font-style: normal; color: var(--ink-700); font-weight: 600; margin-right: 8px; }

@media (max-width: 768px) {
  .tool-url-form select { border-left: none; border-top: 1px solid var(--line); width: 100%;
    padding: 10px 26px 10px 16px; background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; }
  .tbl--pages { min-width: 680px; }
}

/* ---------- 整站扫描进度页 ---------- */
.scan-wrap { padding: 48px 0 72px; background: linear-gradient(180deg, var(--bg-soft), #fff 60%); }
.scan-card {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 40px 36px 32px; box-shadow: var(--shadow-md); text-align: center;
}
.scan-head h1 { margin: 10px 0 8px; font-size: clamp(22px, 3vw, 30px); }
.scan-url { margin: 0; font-size: 14px; color: var(--ink-500); word-break: break-all; }
.scan-scope { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-400); }
.scan-ring { position: relative; width: 148px; height: 148px; margin: 26px auto 6px; }
.scan-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.scan-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-bg { stroke: #eef2f6; }
.ring-fg { stroke: var(--green-600); transition: stroke-dashoffset .5s ease; }
.scan-ring__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px;
  font-size: 34px; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.scan-ring__num i { font-style: normal; font-size: 15px; color: var(--ink-400); font-weight: 600; }
.scan-bar { height: 6px; border-radius: 99px; background: #eef2f6; overflow: hidden; margin: 6px auto 22px; max-width: 520px; }
.scan-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-700));
  border-radius: 99px; transition: width .5s ease; }
.scan-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 18px; }
.scan-stats > div { background: var(--bg-soft); border-radius: 12px; padding: 10px 6px; }
.scan-stats dt { font-size: 12px; color: var(--ink-400); margin-bottom: 2px; }
.scan-stats dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.scan-now { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px;
  color: var(--ink-500); margin: 0 0 12px; min-height: 20px; word-break: break-all; }
.scan-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(14,157,86,.5); animation: scanPulse 1.6s infinite; }
@keyframes scanPulse {
  0% { box-shadow: 0 0 0 0 rgba(14,157,86,.45); }
  70% { box-shadow: 0 0 0 10px rgba(14,157,86,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,157,86,0); }
}
.scan-log { text-align: left; background: #0b1a24; border-radius: 12px; padding: 12px 14px; min-height: 74px;
  font-size: 12.5px; line-height: 1.9; color: #9fd8bd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.scan-log__line { animation: scanFade .3s ease; }
@keyframes scanFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.scan-actions { display: flex; gap: 12px; justify-content: center; margin: 20px 0 0; flex-wrap: wrap; }
.scan-tip { font-size: 12.5px; color: var(--ink-400); margin: 14px 0 0; }
.scan-note { max-width: 760px; margin: 34px auto 0; }
.scan-note h2 { font-size: 18px; margin-bottom: 14px; }
.scan-note__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scan-note__grid > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.scan-note__grid strong { display: block; color: var(--ink-900); margin-bottom: 4px; font-size: 14.5px; }
.scan-note__grid p { margin: 0; font-size: 13.5px; color: var(--ink-500); }

@media (max-width: 640px) {
  .scan-card { padding: 28px 18px 24px; border-radius: 18px; }
  .scan-stats { grid-template-columns: repeat(2, 1fr); }
  .scan-stats > div:last-child { grid-column: span 2; }
  .scan-note__grid { grid-template-columns: 1fr; }
  .scan-log { font-size: 11.5px; }
}

/* 版本号标识 */
.admin-top .app-ver{display:inline-block;padding:2px 8px;border:1px solid var(--line,#e2e8f0);border-radius:999px;font-size:12px;color:var(--muted,#64748b)}
.site-footer .footer-bottom .ver{opacity:.55;font-size:12px;margin-left:6px}
