/* ==========================================================================
   明先生日常 · 全局样式
   纯静态站，无构建、无依赖
   ========================================================================== */

:root {
  color-scheme: dark;
  accent-color: var(--accent);

  --bg: #070a10;
  --bg-soft: #0b1017;
  --surface: #111926;
  --surface-2: #16202f;
  --surface-3: #1c2838;
  --border: #23324a;
  --border-soft: #1a2434;
  --border-strong: #2f4463;

  --text: #e9eff8;
  --text-strong: #ffffff;
  --text-body: #d5dfec;
  --text-dim: #9bacc4;
  --text-mute: #6c7d97;

  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --accent-strong: #3f6fe0;
  /* 白字专用深阶：凡 background:accent + 白字 的载体一律用它，保 WCAG AA ≥4.5:1（审计 T4） */
  --accent-solid: #2563eb;
  --accent-hover: #6099ff;
  --accent-hover-2: #4a7ae8;
  --accent-grad-1: #7fb0ff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --accent-glow: rgba(79, 140, 255, 0.35);
  --accent-border: rgba(79, 140, 255, 0.42);
  --accent-text: #cfe0ff;
  --accent-text-strong: #dfeaff;
  --on-accent: #ffffff;
  --on-success: #04231a;

  /* 跨站 capabilities.js 用 --color-* 读宿主主题；本站原来没定义，组件回退到深色字，
     在暗色主题下标题几乎不可见。这里把所有回退变量映射到本站令牌，亮/暗自动跟随。 */
  --color-text: var(--text);
  --color-muted-text: var(--text-dim);
  --color-border: var(--border-soft);
  --color-surface: var(--surface);
  --color-background: var(--bg-soft);
  --color-primary: var(--accent-solid);
  --color-on-accent: var(--on-accent);
  --color-focus: var(--accent);

  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --notice-text: #f6dfa8;
  --notice-bg: rgba(251, 191, 36, 0.08);
  --notice-border: rgba(251, 191, 36, 0.3);

  --code-text: #b8d3ff;
  --code-bg: rgba(79, 140, 255, 0.13);
  --code-border: rgba(79, 140, 255, 0.22);
  --code-block-bg: #060910;
  --code-block-text: #a9c6e8;

  --fill-subtle: rgba(255, 255, 255, 0.02);
  --header-bg: rgba(7, 10, 16, 0.82);
  --glow-1: rgba(79, 140, 255, 0.16);
  --glow-2: rgba(34, 211, 238, 0.10);
  --dot-off: #2c3d55;
  --check-border: #34465f;
  --check-text: #c7f0de;
  --promo-text: #d9e7ff;
  --ai-text: #d6f2f8;
  --ai-miss-text: #f6e3b4;
  --doc-text: #cfdaea;
  --cover-bg-1: #16233a;
  --cover-bg-2: #0d1522;

  /* 与 tokens.css 同值的令牌已去重（审计 T9 · 单一源见 tokens.css）：
     --radius-sm / --radius / --radius-lg / --space-1..4 / --maxw / --header-h 均由 tokens 提供；
     以下仅保留本站品牌差异项 */
  --radius-xs: 6px;
  /* 间距令牌：HTML 里不再写内联 padding / margin（5..8 为本站更紧的品牌档） */
  --space-5: 22px;
  --space-6: 28px;
  --space-7: 34px;
  --space-8: 48px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(79, 140, 255, 0.25), 0 16px 40px -18px rgba(79, 140, 255, 0.55);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   亮色主题：只覆盖令牌，组件样式一行不改
   html[data-theme="light"]，由 assets/js/theme.js 设置并持久化到 localStorage
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f7fc;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #e7edf7;
  --border: #d2dbea;
  --border-soft: #e1e8f3;
  --border-strong: #b7c4da;

  --text: #101828;
  --text-strong: #050b16;
  --text-body: #334155;
  --text-dim: #4b5a72;
  --text-mute: #5d6b85;

  --accent: #2563eb;
  --accent-2: #0e8fae;
  --accent-strong: #1d4ed8;
  --accent-solid: #1d4ed8;
  --accent-hover: #3b82f6;
  --accent-hover-2: #2563eb;
  --accent-grad-1: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-glow: rgba(37, 99, 235, 0.26);
  --accent-border: rgba(37, 99, 235, 0.45);
  --accent-text: #1d4ed8;
  --accent-text-strong: #1740a8;
  --on-accent: #ffffff;
  --on-success: #ffffff;

  --success: #0f9d70;
  --warn: #b45309;
  --danger: #dc2626;
  --notice-text: #8a5a00;
  --notice-bg: rgba(251, 191, 36, 0.14);
  --notice-border: rgba(251, 191, 36, 0.45);

  --code-text: #1e40af;
  --code-bg: rgba(37, 99, 235, 0.08);
  --code-border: rgba(37, 99, 235, 0.20);
  --code-block-bg: #f7f9fd;
  --code-block-text: #334155;

  --fill-subtle: rgba(16, 24, 40, 0.03);
  --header-bg: rgba(255, 255, 255, 0.88);
  --glow-1: rgba(37, 99, 235, 0.10);
  --glow-2: rgba(14, 143, 174, 0.07);
  --dot-off: #c6d0e0;
  --check-border: #97a5bb;
  --check-text: #0b6b52;
  --promo-text: #1740a8;
  --ai-text: #0d5f6e;
  --ai-miss-text: #8a5a00;
  --doc-text: #334155;
  --cover-bg-1: #e6eefb;
  --cover-bg-2: #f2f6fc;

  --shadow-1: 0 1px 2px rgba(18, 23, 42, 0.06);
  --shadow-2: 0 6px 24px rgba(18, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.22), 0 16px 40px -20px rgba(37, 99, 235, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

/* 移动端：去掉系统默认蓝灰点击色块，改用主题色轻底反馈（与桌面 hover 语汇一致） */
@media (hover: none) {
  a, button, summary, .check-item { -webkit-tap-highlight-color: transparent; }
  .btn:active:not([disabled]) { background: var(--surface-3); }
  .nav a:active { background: var(--surface-2); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 12% -8%, var(--glow-1), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, var(--glow-2), transparent 60%);
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  color: var(--code-text);
  padding: 0.12em 0.42em;
  border-radius: var(--radius-xs);
  word-break: break-word;
}

::selection { background: var(--accent-glow); }

/* 键盘可达性：全站交互元素统一 focus-visible 外环（仅键盘触发，不影响鼠标点击）。
   已自带 :focus 样式的表单控件（.ai-input-row input / .tool-input 等）不受影响 */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* W0: 全站统一容器宽度，与 site-shell 的 .ss-wrap(max-width:1140px) 对齐 */
.wrap {
  width: 100%;
  max-width: var(--maxw, 1140px);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
/* 区块自身也收进同一列宽：券位 / 广告位 / 小程序码位由运行时组件渲染，
   只约束内层 .wrap 时，组件拿到全宽父级会比页头页脚宽出一截，看起来「中间歪的」。 */
.section {
  width: 100%;
  max-width: var(--maxw, 1140px);
  margin-left: auto;
  margin-right: auto;
}
/* 券位 / 码位 / 图片位的内容在 Shadow DOM 内，但文字色从宿主继承；
   显式钉到主题前景色，避免旧组件副本在暗色主题下沿用深字看不见标题。 */
[data-coupon-slot], [data-mp-slot], [data-img-slot], [data-ad-slot] {
  color: var(--text) !important;
}
/* capabilities.js 把跨站入口卡直接挂到 <main> 末尾（不在 .wrap/.section 内），
   所以必须单独收进同一列宽，否则它会铺满屏宽、比页头页脚宽一截。 */
main > .cap-block {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--maxw, 1140px);
  margin: 1.5rem auto;
}
/* docs.js 同样把「公共文档 · 帮助」直接挂到 <main>，需要一起收进同一列宽 */
main > .docs-block {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--maxw, 1140px);
  margin: 18px auto 0;
}
/* 两个组件都用 auto-fill：卡片不足时会留空轨道，右侧出现大块空白。
   auto-fit 会折叠空轨道，让 4 张卡片撑满整列。 */
main > .cap-block .cap-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
main > .docs-block .docs-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------------------------------- 顶部栏 --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--on-accent);
  background: linear-gradient(140deg, var(--accent-solid), var(--accent-strong));
  box-shadow: 0 6px 18px -8px var(--accent-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-base), color var(--dur-base);
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.is-active { background: var(--accent-soft); color: var(--accent-text); }

.nav a.nav-cta {
  color: var(--accent-text-strong);
  background: linear-gradient(140deg, rgba(79, 140, 255, 0.22), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--accent-glow);
}
.nav a.nav-cta:hover { border-color: rgba(79, 140, 255, 0.7); }

/* 桌面顶栏：1140px 容器内已有 10 个入口 + 主题按钮；运行期 site-enhance 再注入
   193px 搜索框会把主题按钮挤出容器，造成整页横向滚动。站内搜索本身已在 nav 里，
   桌面宽度隐藏注入框；窄屏抽屉里仍保留（site-enhance 的 max-width:880 规则）。 */
@media (min-width: 881px) {
  .site-header .nav { gap: 2px; }
  .site-header .nav a { padding: 8px 10px; font-size: 0.88rem; }
  .site-header .nav form.nav-search { display: none !important; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--dur-fast), background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

.btn-primary {
  background: linear-gradient(140deg, var(--accent-solid), var(--accent-strong));
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 10px 26px -12px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-solid); box-shadow: 0 14px 32px -12px var(--accent-glow); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-block { width: 100%; }

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

.section { padding: 36px 0; }

.section-head { margin-bottom: 18px; }
.section-head h2 {
  font-size: 1.45rem;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.section-head p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.notice {
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  color: var(--notice-text);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------------------------------- 首页 Hero ------------------------------ */

.hero {
  padding: 44px 0 26px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-grad-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 18px;
  color: var(--text-dim);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-width: 118px;
}
.hero-stat b { display: block; font-size: 1.25rem; color: var(--text); }
.hero-stat span { font-size: 0.8rem; color: var(--text-mute); }

/* 新手 / 老手双路径 */
.hero-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: left;
}
.hero-path {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
}
.hero-path h3 { margin: 8px 0 6px; font-size: 1.05rem; line-height: 1.4; }
.hero-path p { margin: 0 0 12px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; flex: 1; }
.path-tag {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.hero-path-new .path-tag { color: #fff; background: var(--accent-solid); }
.hero-path-pro .path-tag { color: var(--accent-2); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.3); }
.hero-path-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-path .btn { align-self: flex-start; }

/* ------------------------------- 场景卡片网格 ------------------------------ */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) ease, border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.scenario-card:hover,
.scenario-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
}

.scenario-cover {
  position: relative;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--cover-bg-1), var(--cover-bg-2));
  overflow: hidden;
}
.scenario-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.scenario-cover .cover-icon {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 1.625rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.scenario-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }

.scenario-body h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

.scenario-body p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
  flex: 1;
}

.scenario-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.dots { display: inline-flex; gap: 3px; }
.dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--dot-off); }
.dot.on { background: var(--accent); }

.scenario-foot { display: flex; align-items: center; gap: 10px; }
.progress-mini { flex: 1; font-size: 0.8rem; color: var(--text-mute); }

/* --------------------------------- 推广位 --------------------------------- */

/* WO-263：键盘跳转主内容。默认移出视口，获得焦点时落到左上角。 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--accent-solid, #1d4ed8);
  color: #fff;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.promo-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 140, 255, 0.28);
  background: linear-gradient(100deg, rgba(79, 140, 255, 0.13), rgba(34, 211, 238, 0.07));
  font-size: 0.92rem;
}
.promo-strip .label { color: var(--accent-text); flex: 1; }

/* --------------------------------- 向导布局 -------------------------------- */

.wizard-hero {
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--border-soft);
}

.crumbs { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 12px; }
.crumbs a { color: var(--text-dim); }

.wizard-hero h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.05rem); letter-spacing: -0.5px; }
.wizard-hero .lead { margin: 0 0 18px; color: var(--text-dim); font-size: 0.96rem; max-width: 720px; }

.wizard-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.wizard-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0 40px;
  align-items: start;
}

/* 步骤导航 */
.steps-nav {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 14px;
}

.steps-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 12px;
  border-bottom: 1px dashed var(--border-soft);
  margin-bottom: 10px;
}
.steps-nav-head b { font-size: 0.9rem; }
.steps-nav-head span { font-size: 0.78rem; color: var(--text-mute); }

.progress-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
  margin: 0 6px 14px;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--dur-slow) ease;
}

.steps-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.step-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.87rem;
  line-height: 1.5;
  border: 1px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.step-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.step-link.is-current {
  background: var(--accent-soft);
  border-color: rgba(79, 140, 255, 0.34);
  color: var(--accent-text-strong);
}
.step-link.is-done .step-num { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.45); color: var(--success); }

.step-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin-top: 2px;
}
.step-link.is-current .step-num { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }

/* 步骤内容面板 */
.step-panel { padding: 20px 24px 24px; }

.step-head { border-bottom: 1px solid var(--border-soft); padding-bottom: 14px; margin-bottom: 16px; }
.step-head .kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 1px;
  color: var(--accent-2);
  text-transform: uppercase;
}
.step-head h2 { margin: 8px 0 6px; font-size: 1.42rem; letter-spacing: -0.4px; }
.step-head .summary { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

.richtext { font-size: 0.97rem; color: var(--text-body); overflow-wrap: break-word; }
.richtext p { margin: 0 0 16px; }
.richtext ul, .richtext ol { margin: 0 0 16px; padding-left: 22px; }
.richtext li { margin-bottom: 6px; }
.richtext strong { color: var(--text-strong); }
.richtext code { font-size: 0.86em; }

.richtext a {
  /* 正文内链加下划线：不单独依赖颜色传达可点击（色弱 / 亮暗双态一致性） */
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.richtext a:hover { text-decoration-color: var(--accent); }

.richtext pre.code-block,
.script-block pre {
  margin: 0 0 16px;
  padding: 15px 16px;
  background: var(--code-block-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--code-block-text);
}
/* 长命令行未换行时：把横向滚动条加粗到可点尺寸，避免用户以为内容被截断 */
.richtext pre.code-block::-webkit-scrollbar,
.script-block pre::-webkit-scrollbar { height: 8px; }
.richtext pre.code-block::-webkit-scrollbar-thumb,
.script-block pre::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-pill);
}
.richtext pre code, .script-block pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* 自查清单 */
.block {
  margin-top: 26px;
  border-top: 1px dashed var(--border-soft);
  padding-top: 22px;
}
.block-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.block-title .ico { font-size: 1rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 0.91rem;
  color: var(--text-dim);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.check-item:hover { border-color: var(--border-strong); }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-item .box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--check-border);
  margin-top: 3px;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  color: transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.check-item.is-checked { border-color: rgba(52, 211, 153, 0.42); background: rgba(52, 211, 153, 0.07); color: var(--check-text); }
.check-item.is-checked .box { background: var(--success); border-color: var(--success); color: var(--on-success); }

/* 脚本块 */
.script-block { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.script-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.script-head .file { font-family: var(--mono); color: var(--code-text); }
.script-head .spacer { flex: 1; }
.script-block pre { margin: 0; border: none; border-radius: 0; max-height: 420px; overflow: auto; }

/* 推广卡片 */
.promo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 140, 255, 0.32);
  background: linear-gradient(105deg, rgba(79, 140, 255, 0.14), rgba(34, 211, 238, 0.06));
}
.promo-card .promo-text { flex: 1; font-size: 0.94rem; color: var(--promo-text); }

/* 相关问题 */
.related-list { display: flex; flex-wrap: wrap; gap: 9px; }
.related-chip {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.related-chip:hover { color: var(--accent-text); border-color: var(--accent-border); background: var(--accent-soft); text-decoration: none; }

/* AI 辅助问答 */
.ai-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-soft));
  padding: 18px 20px;
}
.ai-input-row { display: flex; gap: 10px; }
.ai-input-row input {
  flex: 1;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.ai-input-row input::placeholder { color: var(--text-mute); }
.ai-input-row input:focus { border-color: rgba(79, 140, 255, 0.65); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14); }

.quick-asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick-asks button {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.quick-asks button:hover { color: var(--accent-text); border-color: var(--accent-border); }

.ai-answer {
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.07);
  font-size: 0.92rem;
  color: var(--ai-text);
  line-height: 1.8;
  display: none;
}
.ai-answer.show { display: block; animation: fade-in 0.25s ease; }
.ai-answer .ai-label { font-size: 0.74rem; letter-spacing: 0.8px; color: var(--accent-2); display: block; margin-bottom: 6px; }

.ai-answer.is-miss { border-color: var(--notice-border); background: var(--notice-bg); color: var(--ai-miss-text); }

/* 上一步 / 下一步 */
.step-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.step-footer .spacer { flex: 1; }

.done-banner {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: linear-gradient(120deg, rgba(52, 211, 153, 0.12), rgba(34, 211, 238, 0.06));
  text-align: center;
}
.done-banner h3 { margin: 0 0 8px; font-size: 1.15rem; }
.done-banner p { margin: 0 0 16px; color: var(--text-dim); font-size: 0.92rem; }

/* --------------------------------- 页脚 ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 14px 0 10px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  align-items: start;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.footer-brand .brand-text { font-size: 0.92rem; }
.footer-brand p { margin: 3px 0 0; font-size: 0.78rem; color: var(--text-mute); line-height: 1.4; }

.footer-col h4 { color: var(--text); font-size: 0.82rem; font-weight: 600; margin: 0 0 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.footer-col a {
  color: var(--text-mute);
  font-size: 0.82rem;
  display: inline-block;
  padding: 2px 0 2px 8px;
  border-left: 2px solid transparent;
  transition: all var(--dur-fast) ease;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 12px;
}

.footer-contact { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.footer-contact h4 { color: var(--text); font-size: 0.78rem; font-weight: 600; margin: 0 0 6px; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.footer-contact a {
  color: var(--text-mute);
  font-size: 0.78rem;
  display: inline-block;
  padding: 2px 0 2px 8px;
  border-left: 2px solid transparent;
  transition: all var(--dur-fast) ease;
}
.footer-contact a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 12px;
}

.footer-bottom {
  border-top: 1px dashed var(--border-soft);
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-bottom .legal { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--accent); }

/* 移动端触控区放大：保证主要可点元素最小 36px（体验审计 P2） */
@media (max-width: 600px) {
  .nav a,
  .footer-col a,
  .footer-contact a,
  .daily-nav-links button,
  .quick-asks button,
  .btn-sm {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .footer-col a,
  .footer-contact a { padding: 8px 0 8px 8px; }
  .daily-nav-links { gap: 8px; }
  .quick-asks { gap: 8px; }
}

/* --------------------------------- 关于页 -------------------------------- */

.doc { max-width: 820px; margin: 0 auto; padding: 28px 0 16px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 10px; letter-spacing: -0.6px; }
.doc h2 { font-size: 1.16rem; margin: 38px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.doc p, .doc li { color: var(--doc-text); font-size: 0.96rem; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 7px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.info-item {
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.info-item span { display: block; font-size: 0.76rem; color: var(--text-mute); margin-bottom: 3px; }
.info-item b { font-size: 0.93rem; font-weight: 600; color: var(--text); word-break: break-all; }

/* ------------------------ 静态区块（场景速览 / FAQ） ----------------------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.guide-card { padding: 20px 20px 18px; }
.guide-card h3 { margin: 0 0 10px; font-size: 1.02rem; letter-spacing: -0.2px; }
.guide-card p { margin: 0 0 12px; color: var(--text-dim); font-size: 0.92rem; line-height: 1.8; }
.guide-card ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-mute); font-size: 0.88rem; }
.guide-card li { margin-bottom: 5px; }
.guide-card a { color: var(--accent-2); font-weight: 600; font-size: 0.9rem; }
/* 英文 CTA 文案很长，.btn 的 nowrap 会把三列卡片撑破；卡片内按钮允许折行 */
.guide-card .btn,
.scenario-card .btn { white-space: normal; overflow-wrap: anywhere; }

.faq-list { display: grid; gap: 10px; }

.faq-item {
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border-radius: var(--radius);
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; color: var(--accent-2); margin-right: 8px; }
.faq-item[open] summary::before { content: "－"; }
.faq-answer {
  margin-top: 10px;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.85;
}
.faq-more { margin: 18px 0 0; color: var(--text-dim); font-size: 0.9rem; }
.faq-more a { color: var(--accent-2); }

/* --- 场景落地页 FAQ / 相关场景（seo-prerender.js 生成）
       外层 .card 此前无内边距：标题、列表贴着卡片边缘，且与相邻模块仅靠
       .section 上下 36px 堆叠，间距观感失控。这里统一：卡片内边距 + 模块间距收紧；
       FAQ 每条问答不再二次套卡（卡中卡边框叠色脏），改为分隔线列表 + 悬停底色。 --- */
#seo-faq .card, #seo-related .card { padding: 22px 24px; }
#seo-faq, #seo-related { padding: 14px 0; }
#seo-faq .card > h2, #seo-related .card > h2 { margin: 0 0 14px; font-size: 1.25rem; letter-spacing: -0.2px; }
.static-faq { list-style: none; margin: 0; padding: 0; }
.static-faq > li { padding: 12px 12px; margin: 0 -12px; border-radius: var(--radius-sm, 10px); transition: background var(--dur-fast) ease; }
.static-faq > li + li { border-top: 1px solid var(--border-soft); }
.static-faq > li:hover { background: var(--surface-3); }
.static-faq h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--text); }
.static-faq h3::before { content: "Q"; color: var(--accent-2); font-weight: 800; margin-right: 8px; }
.static-faq p { margin: 0; padding-left: 22px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.85; }
#seo-related .card > p { margin: 0 0 10px; color: var(--text-dim); font-size: 0.92rem; line-height: 1.8; }
#seo-related .card > ul { margin: 0 0 14px; padding-left: 22px; font-size: 0.92rem; line-height: 1.9; }
#seo-related .card > ul li + li { margin-top: 4px; }
#seo-related .card > p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  #seo-faq .card, #seo-related .card { padding: 18px 16px; }
}

/* --- 标准 About 页面组件 --- */
.section-head.left { justify-content: flex-start; }
.section-desc { color: var(--text-dim); font-size: 0.95rem; max-width: 640px; margin-top: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 10px; border-radius: var(--radius-sm);
  background: var(--accent-soft, rgba(99,102,241,.12)); font-size: 1.2rem;
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }
.cta-band {
  margin: 28px 0; padding: 32px 24px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); text-align: center;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }
details.faq { border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
details.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.25rem; font-weight: 700; }
details.faq[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 16px 14px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; }
@media (max-width: 768px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.seo-links { margin: 14px 0 0; padding-left: 20px; font-size: 0.9rem; }
.seo-links li { margin-bottom: 6px; }
.seo-links a { color: var(--accent-2); }

/* --- 向导页静态全文速览（seo-prerender.js 生成，折叠展示、爬虫可读） --- */
.static-guide { margin-top: 8px; }
.static-guide-card { padding: 20px 22px; }
.static-guide-card summary {
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
.static-guide-card summary::-webkit-details-marker { display: none; }
.static-guide-card summary::after {
  content: "展开全文 ▾";
  display: inline-block;
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--text-mute);
  vertical-align: 2px;
}
.static-guide-card[open] summary::after { content: "收起 ▴"; }
.static-guide-card summary h2 { display: inline; font-size: 1.25rem; margin: 0; letter-spacing: -0.2px; }
.static-guide-card summary .eyebrow { display: block; margin-bottom: 8px; }
.static-guide-card summary p { margin: 8px 0 0; color: var(--text-dim); font-size: 0.88rem; }

.static-guide-body { margin-top: 22px; border-top: 1px dashed var(--border-soft); padding-top: 22px; }
.static-scenario { padding: 0 0 26px; }
.static-scenario + .static-scenario { border-top: 1px solid var(--border-soft); padding-top: 26px; }
.static-scenario h3 { font-size: 1.1rem; margin: 0 0 8px; }
.static-scenario-summary { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 16px; }

.static-steps { list-style: none; margin: 0; padding: 0; counter-reset: static-step; }
.static-steps > li { padding: 16px 0 14px 40px; position: relative; }
.static-steps > li + li { border-top: 1px dashed var(--border-soft); }
.static-steps > li::before {
  counter-increment: static-step;
  content: counter(static-step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}
.static-steps h4 { font-size: 0.98rem; margin: 0 0 6px; }
.static-steps h4 a { color: var(--text); text-decoration: none; }
.static-steps h4 a:hover { color: var(--accent-2); }
.static-steps h5 { font-size: 0.82rem; color: var(--text-mute); margin: 14px 0 6px; }
.static-step-summary { color: var(--text-dim); font-size: 0.86rem; margin: 0 0 10px; }
.static-steps .richtext { font-size: 0.9rem; color: var(--text-dim); }
.static-steps .richtext p { margin: 0 0 10px; }
.static-checks { margin: 0; padding-left: 18px; font-size: 0.86rem; color: var(--text-dim); }
.static-checks li { margin-bottom: 4px; }

/* --------------------------------- 骨架/状态 ------------------------------ */

.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--surface) 25%, var(--surface-2) 42%, var(--surface) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
  min-height: 240px;
}

.empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-mute);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.empty b { color: var(--text-dim); display: block; margin-bottom: 8px; font-size: 1rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 16px);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base), transform var(--dur-base);
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --------------------------- 收藏本站提示卡 ------------------------------ */

.bookmark-prompt {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 150;
  max-width: 320px;
  padding: 16px 20px 15px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 140, 255, 0.35);
  background: linear-gradient(150deg, var(--surface-2), var(--bg-soft));
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease;
  font-size: 0.9rem;
  line-height: 1.7;
}
.bookmark-prompt.show { opacity: 1; transform: none; pointer-events: auto; }
.bookmark-prompt .bookmark-title {
  font-weight: 700;
  color: var(--accent-text-strong);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.bookmark-prompt .bookmark-text { color: var(--text-dim); font-size: 0.86rem; padding-right: 6px; }
.bookmark-prompt .bookmark-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 1.15rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
.bookmark-prompt .bookmark-close:hover { color: var(--text); }

/* --------------------------------- AI 日报 -------------------------------- */

/* 日报版块导航（吸顶，位于站点头部之下） */
.daily-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.daily-nav .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;   /* 窄屏横滑版块 chips：松手吸附到整颗 chip */
}
.daily-nav .wrap::-webkit-scrollbar { display: none; }

.daily-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mute);
  white-space: nowrap;
  padding-right: 6px;
}
.daily-nav-brand .live {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}

.daily-nav-links { display: flex; align-items: center; gap: 6px; }
.daily-nav-links button {
  scroll-snap-align: start;
  appearance: none;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.daily-nav-links button:hover { color: var(--text); border-color: var(--border-strong); }
.daily-nav-links button.is-active {
  color: var(--accent-text-strong);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.daily-nav-links button b {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mute);
}
.daily-nav-links button.is-active b { color: var(--accent-2); }

.daily-refresh {
  appearance: none;
  margin-left: auto;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.daily-refresh:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.daily-refresh[disabled] { opacity: 0.5; cursor: default; }

/* Hero 内的日期胶囊 */
.daily-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.daily-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.daily-stat {
  min-width: 112px;
  padding: 13px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-soft);
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.daily-stat:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.daily-stat.is-total {
  border-color: rgba(79, 140, 255, 0.4);
  background: linear-gradient(170deg, rgba(79, 140, 255, 0.16), var(--bg-soft));
}
.daily-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}
.daily-stat.is-total b {
  background: linear-gradient(120deg, var(--accent-grad-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.daily-stat span { font-size: 0.78rem; color: var(--text-mute); }

/* 版块 */
.daily-section { padding: 24px 0 8px; scroll-margin-top: calc(var(--header-h) + 60px); }

.daily-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-soft);
}
.daily-section-head .icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(79, 140, 255, 0.28), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(79, 140, 255, 0.32);
}
.daily-section-head .icon svg { width: 17px; height: 17px; }
.daily-section-head h2 { margin: 0; font-size: 1.2rem; letter-spacing: -0.3px; }
.daily-section-head .count { margin-left: auto; }

.daily-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.daily-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 17px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--dur-base) ease, border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.daily-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) ease;
}
.daily-card:hover,
.daily-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
}
.daily-card:hover::before { transform: scaleX(1); }

.daily-card-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-mute);
}
.daily-card h3 {
  margin: 0 44px 10px 0;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.2px;
}
.daily-card .daily-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.daily-card .daily-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-card p {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  flex: 1;
}
.daily-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; }
.daily-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-2);
}
.daily-actions a:hover { text-decoration: none; color: var(--accent-2); }
.daily-actions a.is-alt { color: var(--text-mute); font-weight: 500; }
.daily-actions a.is-alt:hover { color: var(--text-dim); }
.daily-actions svg { width: 13px; height: 13px; transition: transform var(--dur-base) ease; }
.daily-actions a:hover svg { transform: translate(2px, -2px); }

/* 来源说明 */
.daily-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 14px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--fill-subtle);
  font-size: 0.85rem;
  color: var(--text-mute);
}
.daily-footer-note .num { font-family: var(--mono); font-weight: 700; color: var(--accent-2); }
.daily-footer-note a { color: var(--accent); }
.daily-footer-note[hidden] { display: none; }

/* ----------------------------- AI 论文档案库 ----------------------------- */

.paper-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.paper-toolbar[hidden] { display: none; }
.paper-toolbar .spacer { flex: 1; }

.paper-chips { display: flex; align-items: center; gap: 6px; }
.paper-chip {
  appearance: none;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.paper-chip:hover { color: var(--text); border-color: var(--border-strong); }
.paper-chip.is-active {
  color: var(--accent-text-strong);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.paper-chip b {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mute);
}
.paper-chip.is-active b { color: var(--accent-2); }

/* 时间轴：左侧日期 + 右侧卡片 */
.paper-timeline { position: relative; }
.paper-timeline::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent-2), var(--accent) 45%, rgba(79, 140, 255, 0.12));
}

.paper-day {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 26px;
  padding: 4px 0 26px;
}
.paper-day-rail { position: relative; }
.paper-day-date {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  text-align: right;
  padding: 14px 20px 0 0;
}
.paper-day-date .d {
  display: block;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.paper-day-date .w { font-size: 0.75rem; color: var(--text-mute); }
.paper-day-node {
  position: absolute;
  left: 88px;
  top: 18px;
  transform: translate(-50%, 0);
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.14);
  z-index: 2;
}
.paper-day.is-today .paper-day-node {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.18);
}

.paper-day-body { min-width: 0; }
.paper-day-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.paper-day-meta h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.3px; }
.paper-day-meta .count { margin-left: auto; }

.paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.paper-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 15px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease, border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.paper-card.is-in { opacity: 1; transform: none; }
.paper-card:hover,
.paper-card:focus-within { border-color: var(--accent-border); box-shadow: var(--shadow-glow); }
.paper-card.is-featured { border-color: rgba(251, 191, 36, 0.32); }
.paper-card.is-featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--warn), var(--accent-2));
}
.paper-index {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-mute);
}
.paper-card h3 {
  margin: 0 46px 8px 0;
  font-size: 0.97rem;
  line-height: 1.55;
  letter-spacing: -0.2px;
}
.paper-card h3 a { color: var(--text); }
.paper-card h3 a:hover { color: var(--accent-2); text-decoration: none; }

.paper-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.paper-tags .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.paper-badge-featured {
  color: var(--notice-text);
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-mute);
}
.paper-mute { color: var(--text-mute); font-size: 0.82rem; }
.paper-sum {
  margin: 0 0 12px;
  flex: 1;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.8;
}
.paper-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; }
.paper-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-2);
}
.paper-actions a:hover { color: var(--accent-2); text-decoration: none; }
.paper-actions a.is-alt { color: var(--text-mute); font-weight: 500; }
.paper-actions a.is-alt:hover { color: var(--text-dim); }
.paper-actions svg { width: 13px; height: 13px; transition: transform var(--dur-base) ease; }
.paper-actions a:hover svg { transform: translate(2px, -2px); }

/* 锚点直达时目标不被吸顶导航遮挡：落地页步骤锚点在 li#step-N、场景锚点在
   .static-scenario，另给标题类保底（仅作为跳转目标时生效，无副作用） */
[id], h2, h3, h4 { scroll-margin-top: calc(var(--header-h) + 20px); }

/* --------------------------------- 响应式 -------------------------------- */

@media (max-width: 880px) {
  .wizard-layout { grid-template-columns: 1fr; gap: 18px; }
  .steps-nav { position: static; }
  .steps-nav ol { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .paper-timeline::before { left: 7px; }
  .paper-day { grid-template-columns: 1fr; padding-left: 26px; }
  .paper-day-date {
    position: static;
    text-align: left;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
  }
  .paper-day-date .d { font-size: 0.95rem; }
  .paper-day-node { left: 7px; top: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 0.9375rem; }
  .hero { padding: 34px 0 20px; }
  .section { padding: 26px 0; }
  .step-panel { padding: 22px 18px 26px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .nav a { padding: 11px var(--space-3); font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .brand span.brand-text { font-size: 0.95rem; }
  .ai-input-row { flex-direction: column; }
  .bookmark-prompt { left: 20px; right: 20px; max-width: none; }
  .daily-cards { grid-template-columns: 1fr; gap: 14px; }
  .paper-grid { grid-template-columns: 1fr; gap: 14px; }
  .daily-nav .wrap { height: 48px; }
  .daily-stat { min-width: 96px; padding: 11px 16px; }
  .daily-stat b { font-size: 1.3rem; }
  /* 触控目标放大：WO-197 统一后不再缩回 40px（与 visitor / coupon / color-tool 同口径 ≥ 44px） */
  .nav-toggle, .theme-toggle { width: 44px; height: 44px; }
  .daily-refresh { padding: 8px 14px; }
  .paper-chip { padding: 8px 15px; }
  .glossary-filter-btn, .guide-filter-btn { padding: 9px 16px; }
}

/* ------------------------- 本地收藏 ------------------------- */
.bookmark-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .8rem;
  cursor: pointer;
}
.bookmark-toggle:hover { border-color: var(--accent-solid); color: var(--accent-text); }
.bookmark-toggle.is-on { border-color: var(--accent-solid); background: var(--accent-soft); color: var(--accent-text); }
.bookmark-list { display: grid; gap: 10px; }
.bookmark-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--border-soft);
  border-radius: var(--radius); background: var(--surface);
}
.bookmark-item a { flex: 1; min-width: 180px; color: var(--text); text-decoration: none; }
.bookmark-item a:hover { color: var(--accent-text); text-decoration: underline; }

/* ------------------------- 选型页本地上下文 ------------------------- */
.picker-context {
  margin-bottom: 18px; padding: 14px 16px;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background: var(--surface);
}
.picker-context-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.picker-context-head span { color: var(--text-mute); font-size: .78rem; }
.picker-context-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.picker-context-item {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 6px 12px; border: 1px solid var(--border-soft);
  border-radius: 999px; color: var(--text); text-decoration: none; font-size: .85rem;
}
.picker-context-item span { color: var(--accent-text); }
.picker-context-note { margin: 10px 0 0; color: var(--text-mute); font-size: .82rem; }

/* ------------------------- 方案对比 / 案例卡 ------------------------- */
.table-scroll { overflow-x: auto; margin-top: 18px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 760px; }
.compare-table th, .compare-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.compare-table th { color: var(--text-dim); font-weight: 600; background: var(--surface-2); }
.compare-table a { color: var(--accent-text); text-decoration: none; }
.compare-table a:hover { text-decoration: underline; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.case-card { padding: 16px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.case-card h3 { margin: 0 0 8px; font-size: 1rem; }
.case-card h3 a { color: var(--text); text-decoration: none; }
.case-card h3 a:hover { color: var(--accent-text); }
.case-card p { margin: 6px 0; color: var(--text-mute); font-size: .86rem; line-height: 1.6; }
.case-scene { color: var(--text-dim) !important; }
.case-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; color: var(--accent-text); font-size: .78rem; }

/* ------------------------- 更新日志 ------------------------- */
.changelog-timeline { display: grid; gap: 16px; }
.changelog-entry {
  position: relative; padding: 18px 20px 18px 24px;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  border-left: 3px solid var(--accent-solid); background: var(--surface);
}
.changelog-entry time { color: var(--accent-text); font-size: .8rem; }
.changelog-entry h2 { margin: 6px 0 10px; font-size: 1.1rem; }
.changelog-entry ul { margin: 0; padding-left: 20px; color: var(--text-mute); font-size: .9rem; line-height: 1.8; }
.changelog-entry a { color: var(--accent-text); }

/* ------------------------- 自营广告位（ad-slots.js 渲染） ------------------------- */

/* 容器未取到广告时彻底不占位，避免出现空白框 */
.ad-slot:empty { display: none; }
/* 首屏下方的运营位容器先预留高度：组件在 load 后注入，预留可避免顶动正文（CLS） */
.slot-reserve { min-height: 80px; }
.slot-reserve-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ad-card {
  display: block;
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}

.ad-card:hover,
.ad-card:focus-within { border-color: var(--accent); transform: translateY(-1px); }

.ad-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

.ad-eyebrow {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

/* 广告图：来自 ad-slots.json 的 image 字段，加载完成才显示，避免破图占位 */
.ad-image {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 8px 0 2px;
  opacity: 0;
  transition: opacity var(--dur-base);
}

.ad-image[data-loaded="1"] { opacity: 1; }

.ad-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.ad-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 6px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }
.ad-cta { display: block; margin-top: 10px; font-size: 0.86rem; color: var(--accent); }

[data-ad-slot="footer"] { margin-top: 24px; }
[data-ad-slot="inline"] { margin: 4px 0 24px; }

@media (max-width: 640px) {
  .ad-card { padding: 14px; }
}

/* --------------------------- SEO 工具页 ---------------------------------- */

.tool-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: var(--space-5);
}
.tool-card > h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tool-card > .tool-desc { margin: 0 0 var(--space-4); color: var(--text-dim); font-size: 0.92rem; line-height: 1.7; }

.tool-field { margin-bottom: var(--space-4); }
.tool-field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }

.tool-input,
.tool-textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.tool-textarea { min-height: 110px; font-family: var(--mono); font-size: 0.84rem; resize: vertical; }
.tool-input:focus,
.tool-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.tool-out { margin-top: 6px; font-size: 0.86rem; min-height: 20px; }
.tool-empty { color: var(--text-mute); font-size: 0.88rem; padding: 10px 0; }

.tool-rows { display: flex; flex-direction: column; gap: var(--space-2); }
.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.tool-row-main { min-width: 0; flex: 1; }
.tool-row-main b { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.tool-code {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  word-break: break-all;
  background: var(--code-block-bg);
  border-color: var(--code-border);
  color: var(--code-block-text);
}

.tool-verdict { flex: 0 0 auto; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.tool-verdict.is-ok { color: var(--success); }
.tool-verdict.is-warn { color: var(--notice-text); }
.tool-verdict.is-bad { color: var(--danger); }

.tool-code-block {
  margin: 0;
  padding: 12px 14px;
  background: var(--code-block-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--code-block-text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.tool-gap { margin-top: var(--space-4); }
.tool-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 10px; }

/* --------------------------- 建站选型向导（picker.html） ------------------- */
.picker-q { margin-bottom: var(--space-4); }
.picker-q > h3 { margin: 0 0 10px; font-size: 1rem; }
.picker-opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.picker-opt.is-active { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.tool-checklist { margin: 0; padding: 0; list-style: none; }
.tool-checklist li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.7;
}
.tool-checklist li:last-child { border-bottom: 0; }
.tool-checklist .num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
}
.tool-checklist code { font-size: 0.84em; }

@media (max-width: 640px) {
  .tool-card { padding: var(--space-4); }
  .tool-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

/* ---------------------- 工具类：替代 HTML 里的内联样式 ---------------------- */

.top-gap { padding-top: var(--space-5); }
.section-flush { padding-top: 0; }
.muted-sm { color: var(--text-mute); font-size: 0.82rem; }
.muted-xs { color: var(--text-mute); font-size: 0.86rem; }
.notice-gap { margin-top: var(--space-5); }

/* --------------------------- 主题切换按钮 -------------------------------- */

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* 触控目标 ≥44px（审计 T5，与 visitor / coupon 等站同口径；原 34px 偏小） */
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.theme-toggle:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .theme-toggle-icon { font-size: 0.9375rem; }
/* WO-197：按钮内容只剩「按模式渲染的图标」，原 .theme-toggle-text（模式名文字标签）与运行期两套口径，已下线 */

/* 页脚里的宽版：只放宽内边距，高度仍跟 44px 触控目标对齐 */
.theme-toggle.is-wide { width: auto; padding: 0 13px; }

/* --------------------------- 导航汉堡菜单 -------------------------------- */

.nav-toggle {
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.nav-toggle:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }

@media (max-width: 880px) {
  /* 汉堡按钮在窄屏顶到最右侧；导航本体此时已变成抽屉，不参与 flex 排列 */
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-header .wrap { gap: var(--space-3); }

  /* 导航变抽屉：不再靠 .nav-hide-sm 直接隐藏，全部项都能进菜单 */
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: var(--space-3) var(--space-5) var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-2);
  }
  .nav.is-open { display: flex; }

  .nav a {
    padding: 11px var(--space-3);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    background: transparent;
  }
  .nav a.is-active { background: var(--accent-soft); }
  .nav a.nav-cta { justify-content: center; margin-top: var(--space-1); }
  .nav .theme-toggle { width: 100%; justify-content: flex-start; padding: 0 var(--space-3); height: 38px; }
}

/* --------------------------- 加载态 / 占位 -------------------------------- */

/* 封面图加载失败：保留渐变并把图标居中放大，不出现空白块 */
.scenario-cover.is-fallback { display: grid; place-items: center; }
.scenario-cover.is-fallback .cover-icon { position: static; font-size: 2.625rem; opacity: 0.95; }

/* 卡片内的文本骨架（比整块骨架更接近真实排版） */
.skeleton-line {
  height: 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(100deg, var(--surface-2) 25%, var(--surface-3) 42%, var(--surface-2) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skeleton-line + .skeleton-line { margin-top: var(--space-2); }
.skeleton-line.is-short { width: 55%; }
.skeleton-line.is-title { height: 15px; width: 70%; }

/* 骨架卡：结构与真实场景卡一致（封面块 + 标题 + 两行摘要），加载完不跳版 */
.skeleton-card { padding-bottom: var(--space-4); }
.skeleton-cover {
  aspect-ratio: 16 / 7;
  background: linear-gradient(100deg, var(--surface-2) 25%, var(--surface-3) 42%, var(--surface-2) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skeleton-card .skeleton-body { padding: var(--space-4); }
.skeleton-card .skeleton-body .skeleton-line:last-child { margin-top: var(--space-3); }

/* WO-264：wizard 面板骨架 + 稳定容器高度。
   骨架按真实 step-head / richtext / 脚本块 / 自查清单的排版占位，容器先撑到
   常见成稿高度；JS 注入 step 内容后不再从 300px 突跳到整屏，压低 CLS。 */
.step-panel { min-height: 680px; }
.panel-skeleton { min-height: 0; padding: 4px 0 12px; }
.panel-skeleton .skeleton-block {
  height: 420px;
  margin: 18px 0;
  border-radius: var(--radius-sm, 10px);
  background: linear-gradient(100deg, var(--surface-2) 25%, var(--surface-3) 42%, var(--surface-2) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: var(--dur-fast) !important; }
  html { scroll-behavior: auto; }
  /* 无限循环动画（骨架屏 shimmer / 实时绿点 pulse）在 reduced-motion 下直接暂停：
     若只缩时长不取消循环，0.01ms 周期会变成持续高频闪烁，比不动更刺眼 */
  .skeleton, .skeleton-line, .skeleton-cover, .panel-skeleton .skeleton-block, .daily-nav-brand .live { animation: none; }
}

/* ==========================================================================
   英文版排版增强（仅 html[lang="en"] 生效）
   英文页与中文页共用一套主题；这里只调整字体/度量/间距，不动配色体系。
   ========================================================================== */
html[lang="en"] {
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
html[lang="en"] body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* 标题两端平衡，长句断行更自然（现代浏览器支持，其余优雅降级） */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] .section-head h2 { text-wrap: balance; }
html[lang="en"] p,
html[lang="en"] .hero-sub,
html[lang="en"] .section-head p { text-wrap: pretty; }
/* 顶部导航：英文标签更长，收紧字号与间距，避免撑爆换行 */
html[lang="en"] .nav a { font-size: 0.85rem; padding: 8px 10px; }
html[lang="en"] .nav { gap: 2px; }
/* Hero：长标题更舒展的行长与字距 */
html[lang="en"] .hero h1 { letter-spacing: -0.02em; }
html[lang="en"] .hero-sub { max-width: 720px; font-size: 1.06rem; }
/* 正文与卡片：英文换行更多，行高与内边距给足 */
html[lang="en"] .card { line-height: 1.7; }
html[lang="en"] .section-head p { font-size: 1rem; }


/* 返回顶部按钮（跨站统一） */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-base) ease, visibility var(--dur-base) ease, transform var(--dur-base) ease, background var(--dur-base) ease;
  z-index: var(--z-dropdown);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-strong, var(--accent)); }
.back-to-top:focus-visible { outline: 2px solid var(--accent-strong, var(--accent)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

/* --------------------------- 通用：筛选隐藏 --------------------------- */
.is-hidden { display: none !important; }

/* ------------------------- 建站成本计算器（cost.html）---------------------- */

.cost-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: var(--space-4); }
.cost-bar label { font-size: 0.84rem; font-weight: 600; color: var(--text-dim); }
.cost-bar select { min-width: 240px; }

.cost-field { margin-bottom: var(--space-4); }
.cost-field > label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.cost-select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.cost-hint { margin-top: 5px; font-size: 0.8rem; color: var(--text-mute); line-height: 1.6; }

.cost-summary {
  position: sticky; bottom: 0; margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.cost-total-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cost-total-num { font-size: 2rem; font-weight: 800; color: var(--accent-text); line-height: 1; letter-spacing: -1px; }
.cost-total-unit { font-size: 0.9rem; color: var(--text-dim); }
.cost-month-line { font-size: 0.9rem; color: var(--text-mute); margin-bottom: 14px; }
.cost-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cost-price { flex: 0 0 auto; font-weight: 700; color: var(--accent-text); white-space: nowrap; }

/* --------------------------- 建站术语表（glossary.html）------------------- */

.glossary-search {
  width: 100%; max-width: 520px; padding: 12px 15px;
  font-family: inherit; font-size: 0.98rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.glossary-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.glossary-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin: 16px 0 4px; }
.glossary-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.glossary-filter-btn {
  border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text-dim);
  border-radius: var(--radius-pill); padding: 6px 14px; font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.glossary-filter-btn:hover { color: var(--text); border-color: var(--accent); }
.glossary-filter-btn.is-active { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.glossary-count { font-size: 0.82rem; color: var(--text-mute); margin-left: auto; }

.glossary-cat { margin-top: var(--space-5); }
.glossary-cat > h2 {
  font-size: 1.08rem; margin: 0 0 12px; padding-left: 11px;
  border-left: 3px solid var(--accent);
}
.glossary-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.glossary-item {
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  padding: 15px 16px;
}
.glossary-term { display: block; font-size: 1rem; font-weight: 700; color: var(--text); }
.glossary-en { display: block; font-size: 0.78rem; color: var(--accent-2); font-weight: 600; margin: 2px 0 8px; }
.glossary-def { font-size: 0.9rem; color: var(--text-dim); line-height: 1.75; }


/* ── footer 响应式 ── */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── footer 列过多时自动分两列 ── */
.footer-col ul.is-split { display: block; column-count: 2; column-gap: 1.2rem; }
.footer-col ul.is-split a { font-size: 0.8rem; }
@media (max-width: 720px) {
  .footer-col ul.is-split { column-count: 1; }
}

/* ==========================================================================
   以下原为 optimize.css 补丁层（2026-09-30），2026-10 合并回主样式表收口：
   补丁层叠在 style.min.css 之后易与主表互相覆盖、且仅 index 页加载造成风格漂移。
   ========================================================================== */

/* 1) 锚点跳转不被吸顶导航遮挡：用 scroll-padding-top 全站统一解决 */
html {
  scroll-padding-top: calc(var(--header-h, 64px) + 16px);
}

/* 2) 渐变标题回退：不支持 background-clip:text 的浏览器显示纯色文字而非透明不可见 */
.hero h1 .grad {
  color: var(--text);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .grad {
    background: linear-gradient(120deg, var(--accent-grad-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* 3) 导航图标：替换 ☰ / ☀️ emoji 为内联 SVG（line 图标跟随 currentColor 主题化）。
   WO-197：主题控件是例外 —— 七站统一为「按模式渲染的 emoji 三态图标」（🌗 / ☀ / 🌙），
   图标内容由 theme.js 写入 .theme-toggle-icon，因此按文本行高排版（原先的 line-height:0
   是为内联 SVG 设的，套在 emoji 上会把字形压扁裁切），同时删往期的 CSS 二态显隐规则
   —— 二态显隐只能表达亮/暗，无法表达 auto，与三态循环冲突 */
.nav-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}
.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* 4) 20 张 guide-card 分类筛选（默认全部显示；JS 失效 / 无 JS 时不影响阅读） */
.guide-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}
.guide-filter-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.guide-filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.guide-filter-btn.is-active {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: #fff;
}
.guide-card.is-hidden {
  display: none;
}
@media (max-width: 480px) {
  .guide-filter-btn {
    padding: 6px 13px;
    font-size: 13px;
  }
}

/* 5) 场景向导组件样式收口：原散落各页的内联 style 抽成工具类（避免重复与维护漂移） */
.wizard-filter { padding:10px 6px 4px; border-top:1px dashed var(--border-soft); margin-top:10px; }
.wizard-filter-label { font-size:0.78rem; color:var(--text-mute); display:block; margin-bottom:6px; }
.wizard-select { width:100%; font-family:inherit; font-size:0.85rem; padding:9px 10px; border-radius: var(--radius-sm); background:var(--bg); color:var(--text); border:1px solid var(--border); outline:none; }
.wizard-skeleton { min-height:300px; }
.wizard-empty { text-align:left; }

/* ==========================================================================
   UI-REFRESH-2026 · 视觉精修（aiWeb 试点，2026-11）
   目标：不动 HTML 结构 / 文案 / 数据，仅提升视觉层次与质感。
   约束：全部走既有语义令牌，亮/暗双主题自动适配；
        不触碰 --accent-solid / --primary 等 WCAG 门禁令牌；不改共享 tokens.css。
   ========================================================================== */

/* 1) Hero：柔和光晕底板 + 更舒展的标题节奏 */
.hero {
  position: relative;
  isolation: isolate;
  padding: 58px 0 32px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(680px 260px at 50% 0%, var(--accent-glow), transparent 72%),
    linear-gradient(180deg, var(--surface), transparent 88%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -1.4px;
  line-height: 1.14;
}
.hero-sub { font-size: 1.08rem; line-height: 1.8; }
.hero-stat {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.hero-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* 2) 章节：统一留白 + 标题强调短线（inline-block，不改标题结构） */
.section { padding: 44px 0; }
.section-head h2 { font-size: 1.6rem; letter-spacing: -0.4px; }
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.95em;
  margin-right: 10px;
  vertical-align: -0.12em;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* 3) 场景卡片：更有呼吸感的封面与更明确的悬浮反馈 */
.scenario-grid { gap: 18px; }
.scenario-card {
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-1);
}
.scenario-card:hover,
.scenario-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-2);
}
.scenario-cover { aspect-ratio: 16 / 8; }
.scenario-cover img { transition: transform var(--dur-slow) var(--ease); }
.scenario-card:hover .scenario-cover img { transform: scale(1.06); }
.scenario-body { padding: 16px 18px 18px; }

/* 4) 主按钮：细腻高光 + 发光阴影 */
.btn-primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  box-shadow: 0 8px 22px -10px var(--accent-glow);
}

/* 5) 指南卡 / FAQ：轻 hover 反馈，强化可交互暗示 */
.guide-card,
.faq-item {
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-2);
}
.faq-item:hover { border-color: var(--border-strong); }

/* ============================ 布局优化（2026-11） ============================
   宽屏下 Hero 和主要 section 收进 1140px 舒适列宽，grid 卡片不再无限拉伸。
   页头 / 页脚 / 广告条仍保持满宽。与 zangeng/history 的处理口径一致。 */
.hero .wrap,
.section .wrap {
  max-width: var(--maxw, 1140px);
}
/* Hero 内部内容块独立居中（标题、按钮、stats 原本就是 text-align:center，这里保持） */
.hero h1,
.hero .hero-sub,
.hero .hero-actions,
.hero .hero-stats { margin-left: auto; margin-right: auto; }

/* scenario-grid / guide-grid：宽屏强制 3 列，避免 auto-fill 在 1440px 下算出 4 列导致卡片过窄。
   用 minmax(0,1fr) 而非 1fr：英文长词会把 1fr 轨道撑到 min-content 之外，导致整页横向溢出。 */
@media (min-width: 1200px) {
  .scenario-grid,
  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .guide-card,
  .scenario-card { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .hero { padding: 42px 0 24px; }
  .section { padding: 34px 0; }
  .scenario-grid { gap: 14px; }
}

/* ------------------------- 首页工具展示区（toolbox） -------------------------
   参考姊妹站 color-tool：工具清单静态内嵌、分类锚点直达。
   复用 .card / .tag / --accent-* 变量，不引入新 UI 库。 */
.tool-showcase-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tool-showcase-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur-base) ease, color var(--dur-base) ease, background var(--dur-base) ease;
}
.tool-showcase-nav a:hover,
.tool-showcase-nav a:focus-visible {
  border-color: var(--accent-border);
  color: var(--accent-text);
  background: var(--accent-soft);
}
.tool-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.tool-showcase-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-base) ease, border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.tool-showcase-card:hover,
.tool-showcase-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
}
.tool-showcase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 1.35rem;
  line-height: 1;
}
.tool-showcase-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}
.tool-showcase-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}
.tool-showcase-meta { display: flex; flex-wrap: wrap; gap: 6px; }
#toolbox .tool-showcase-grid + .eyebrow { margin-top: 28px; }
.tool-showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 600;
}
@media (min-width: 1200px) {
  .tool-showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tool-showcase-grid { grid-template-columns: 1fr; gap: 12px; }
}