:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #fbfbfa;
  --surface: #ffffff;
  --fg: #1c1d1f;
  --sub: #5f6368;
  --faint: #9aa0a6;
  --line: rgba(0, 0, 0, 0.08);
  --well: #f2f2f0;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.08);

  --accent: #e5484d;
  --accent-fg: #cf3238;
  --accent-soft: rgba(229, 72, 77, 0.09);
  --accent-ring: rgba(229, 72, 77, 0.24);
  --ok-fg: #6b7075;
  --ok-bg: rgba(107, 112, 117, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --surface: #1a1b1d;
    --fg: #ececee;
    --sub: #a1a4a9;
    --faint: #6d7176;
    --line: rgba(255, 255, 255, 0.08);
    --well: #212225;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --accent-fg: #ff6b70;
    --accent-soft: rgba(255, 99, 105, 0.12);
    --accent-ring: rgba(255, 99, 105, 0.3);
    --ok-fg: #a1a4a9;
    --ok-bg: rgba(161, 164, 169, 0.12);
  }
}

* { box-sizing: border-box; }
/* 带 display 的元素也要能被 hidden 属性隐藏 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.7 var(--font);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
code {
  font: 0.88em var(--mono);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: var(--well);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  color: #fff;
  background: var(--fg);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), opacity 150ms ease, background-color 150ms ease;
}
@media (prefers-color-scheme: dark) { .btn { color: #111213; } }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .copy:focus-visible, .badge:focus-visible, .veil:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-ghost { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 20px; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { opacity: 0.88; }
  .btn-ghost:not(:disabled):hover { opacity: 1; background: var(--well); }
}

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 60px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--sub); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--fg); } }

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-fg); margin-bottom: 16px; }
h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--accent-fg); }
.lede { margin-top: 22px; max-width: 30em; font-size: 17px; color: var(--sub); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- 演示 ---------- */

.demo { position: relative; display: grid; gap: 12px; }
.post {
  position: relative;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14.5px;
  line-height: 1.65;
}
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--hue) 45% 38%);
  background: hsl(var(--hue) 60% 92%);
}
@media (prefers-color-scheme: dark) {
  .avatar { color: hsl(var(--hue) 60% 78%); background: hsl(var(--hue) 25% 22%); }
}
.post-meta { display: grid; line-height: 1.35; }
.post-meta b { font-size: 14px; }
.post-meta span { display: flex; align-items: center; font-size: 12px; color: var(--faint); }

/* 和插件里的徽标一致 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  font: 600 11px/18px var(--font);
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: transform 160ms var(--ease-out);
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.75; }
.badge-ok { color: var(--ok-fg); background: var(--ok-bg); }
.badge-ad { color: var(--accent-fg); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.badge:active { transform: scale(0.96); }

/* 折叠：和插件在微博上的样子一致 */
.fold-bar {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  font: 13px/20px var(--font);
  text-align: left;
  color: var(--faint);
  background: none;
  cursor: pointer;
}
.fold-bar::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fg); opacity: 0.8; flex: none; }
.fold-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-bar b { color: var(--fg); font-weight: 600; }
.post.is-folded:not(.is-revealed) { padding-top: 11px; padding-bottom: 11px; }
.post.is-folded:not(.is-revealed) > .fold-bar { display: flex; }
.post.is-folded:not(.is-revealed) > :not(.fold-bar) { display: none; }
.post.is-folded.is-revealed > :not(.fold-bar) { animation: fade-in 200ms ease-out; }
@keyframes fade-in { from { opacity: 0.3; } }
.badge-kw { color: var(--sub); background: var(--ok-bg); }
.fold-icon { width: 18px; height: 3px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; opacity: 0.9; }

.blur-body {
  cursor: pointer;
  user-select: none;
  filter: blur(7px);
  opacity: 0.6;
  transition: filter 240ms var(--ease-out), opacity 240ms ease;
}
.veil {
  position: absolute;
  top: 58%;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  font: 600 12px/18px var(--font);
  white-space: nowrap;
  color: var(--accent-fg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--accent-ring), 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 160ms var(--ease-out), opacity 160ms ease;
}
.veil::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.veil:active { transform: translate(-50%, -50%) scale(0.97); }
.post.is-revealed .blur-body { filter: none; opacity: 1; cursor: auto; user-select: auto; }
.post.is-revealed .veil { opacity: 0; pointer-events: none; }

.demo-hint { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 4px; }
.replay { padding: 0; border: 0; font: inherit; color: var(--sub); background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .replay:hover { color: var(--fg); } }

/* 演示里的"屏蔽关键词"输入框 */
.kw-demo { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12.5px; color: var(--sub); }
.kw-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 132px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  background: var(--well);
}
.kw-chip::after { content: "×"; font-weight: 400; color: var(--faint); }
.kw-typing { font-size: 12.5px; color: var(--fg); }
.kw-caret { display: none; width: 1.5px; height: 14px; background: var(--accent); }
.kw-demo[data-typing] .kw-caret { display: block; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* 检测中的徽标 */
.badge-loading { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.badge-loading::before { opacity: 0.4; }

/* 第一次访问：动画开始前先藏起来（html 上的 class 在渲染前就加好了） */
.play-intro .demo .post,
.play-intro .demo .kw-demo,
.play-intro .demo .demo-hint { opacity: 0; }

/* 悬停详情，和插件里的一致 */
.tip {
  position: absolute;
  z-index: 5;
  width: 210px;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 10px 28px -6px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transform-origin: var(--origin, top left);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 120ms ease, transform 150ms var(--ease-out);
}
.tip[data-open="true"] { opacity: 1; transform: none; }
.tip-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--sub); }
.tip-head strong { font-size: 19px; font-weight: 650; color: var(--fg); font-variant-numeric: tabular-nums; }
.tip[data-ad="true"] .tip-head strong { color: var(--accent-fg); }
.tip-meter { height: 4px; margin: 8px 0 10px; border-radius: 2px; background: var(--well); overflow: hidden; }
.tip-meter i { display: block; height: 100%; width: var(--w); background: var(--ok-fg); }
.tip[data-ad="true"] .tip-meter i { background: var(--accent-fg); }
.tip-rows { display: grid; gap: 3px; }
.tip-row { display: grid; grid-template-columns: 40px 1fr 30px; gap: 8px; align-items: center; color: var(--sub); }
.tip-row i { height: 3px; border-radius: 2px; background: linear-gradient(to right, currentColor var(--w), var(--well) var(--w)); opacity: 0.6; }
.tip-row b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.tip-row.is-top { color: var(--fg); }
.tip-sub { margin: 8px 0 3px; color: var(--sub); }

/* ---------- 通用区块 ---------- */

.section { padding-top: 88px; padding-bottom: 8px; scroll-margin-top: 60px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; font-weight: 700; line-height: 1.3; }
.section-head p { margin-top: 10px; color: var(--sub); }

/* 安装步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.step-no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-fg);
  background: var(--accent-soft);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--sub); }
.step p + p { margin-top: 10px; }
.step a { color: var(--fg); text-underline-offset: 3px; }
.small { font-size: 13px !important; }
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 6px 6px 12px;
  border-radius: 10px;
  background: var(--well);
}
.copy-row code { padding: 0; background: none; font-size: 13.5px; }
.copy {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  font: 600 12.5px/1 var(--font);
  color: var(--fg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.copy:active { transform: scale(0.96); }
.copy[data-done="true"] { color: var(--accent-fg); }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.feature h3 { font-size: 16px; margin: 14px 0 6px; }
.feature p { font-size: 14px; color: var(--sub); }
.f-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--accent-fg);
  background: var(--accent-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.blurred-bar { width: 18px; height: 8px; border-radius: 4px; background: currentColor; filter: blur(2px); opacity: 0.8; }
.note { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; padding: 28px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.plan-best { box-shadow: 0 0 0 1.5px var(--accent-ring), 0 12px 32px -12px rgba(229, 72, 77, 0.25); }
.plan-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent-soft);
}
.plan h3 { font-size: 16px; color: var(--sub); font-weight: 600; }
.price { margin-top: 8px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font-size: 14px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--sub); }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-fg); font-weight: 700; font-size: 13px; }
.plan li b { color: var(--fg); font-weight: 600; }

/* 常见问题：原生 details，不加动画，打开就是打开 */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--faint); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; color: var(--sub); font-size: 15px; }
.faq a { text-underline-offset: 3px; }

/* 页脚 */
.footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; min-height: 64px; padding-block: 16px; font-size: 13px; color: var(--faint); }
/* 客服邮箱放在每页页脚（收款平台审核要求：不能只写在条款正文里） */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--fg); } }

/* 隐私政策页 */
.doc { padding-top: 64px; }
.doc h1 { font-size: 32px; }
.doc .updated { margin-top: 8px; color: var(--faint); font-size: 14px; }
.doc h2 { font-size: 19px; margin-top: 40px; margin-bottom: 10px; }
.doc p, .doc li { color: var(--sub); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--fg); }

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .features { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
  .section-head h2 { font-size: 26px; }
  .tip { display: none; } /* 触屏上没有悬停 */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .copy, .badge, .veil, .tip, .faq summary::after { transition: none; }
  .btn:active, .copy:active, .badge:active { transform: none; }
  .veil:active { transform: translate(-50%, -50%); }
  .blur-body { transition: opacity 150ms ease; }
  .post.is-folded.is-revealed > :not(.fold-bar) { animation: none; }
  .kw-demo[data-typing] .kw-caret { animation: none; }
}
