/* 全站共享样式 —— 消费级浅色主题。
   每个工具页只引这一份，不再各自内联 <style>（避免 7 份样式各漂各的）。 */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --line: #e5e7eb;
  --ink: #111827;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --ok: #059669;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

/* ★★ `hidden` 必须真的隐藏 —— 这条规则是必需的，不是可选的洁癖。
   浏览器对 `[hidden]` 的默认样式是 `display: none`，但它来自**用户代理样式表**，
   优先级低于作者样式表里任何一条 `display` 声明。于是凡是设了 display 的类，
   用 `el.hidden = true` 就**完全无效**：
     · `.field`（display:flex）  ⇒ 切片页「切成几片 / 每片时长」两个输入框无法互斥切换
     · `.preview video/audio/img`（display:block）⇒ 格式转换/音量/去静音三页的
       "视频或音频二选一预览"两个都显示，另一个是空框
   这两处都**肉眼可见**，而探针读的是 `el.hidden` 的属性值（正确地为 true），
   所以功能判据全绿 —— 只有截图能发现。用 !important 把 hidden 提到最高优先级，
   一次修掉这一类问题，以后新增元素不必再逐个人肉排查。 */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 顶部导航（由 toolkit.js 注入） ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- 主容器 ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 20px 64px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

/* ---------- 首页工具网格 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}
.tool-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #c7d2fe;
  text-decoration: none;
}
.tool-card.is-locked { opacity: .62; cursor: not-allowed; }
.tool-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tool-body { min-width: 0; }
.tool-name { font-weight: 600; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.tool-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

.pill {
  font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.pill-free { background: #ecfdf5; color: var(--ok); border-color: #a7f3d0; }
.pill-paid { background: #fffbeb; color: var(--warn); border-color: #fde68a; }
.pill-soon { background: #f3f4f6; color: var(--muted); border-color: var(--line); }
/* 需注册：免费工具里的例外（内容搜索在服务端转写）—— 用靛蓝色区别于绿色的「免费」，
   一眼能看出"这俩不是纯本地工具"，但也不至于像付费那样刺眼。 */
.pill-signup { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }

.section-title {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  margin: 30px 0 12px;
}
.section-note { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }

/* ---------- 表单控件 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > .field { flex: 1 1 160px; margin-bottom: 0; }

input[type="text"], input[type="number"], select, textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; width: 100%; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
input[type="file"] { font-size: 13px; }

.btn {
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 9px 20px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, opacity .15s;
  background: var(--brand); color: #fff;
}
.btn:hover:not(:disabled) { background: var(--brand-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: #f9fafb; }
.btn-ok { background: var(--ok); }
.btn-ok:hover:not(:disabled) { background: #047857; }

/* 拖放区 */
.drop {
  border: 1.5px dashed #cbd5e1; border-radius: var(--radius);
  padding: 30px 20px; text-align: center; color: var(--muted);
  font-size: 14px; background: #fcfcfd; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.drop strong { color: var(--ink); }

/* 状态条 */
.status {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); min-height: 22px;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: 0 0 8px; }
.status.ok .dot { background: var(--ok); }
.status.err .dot { background: var(--err); }
.status.busy .dot { background: var(--warn); }

.progress { height: 6px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }

/* 日志 */
.log {
  margin-top: 14px; background: #0b1020; color: #cbd5e1;
  border-radius: 10px; padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.55;
  max-height: 190px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
.log:empty::before { content: '处理日志会显示在这里'; color: #64748b; }

.preview { margin-top: 16px; }
.preview video, .preview audio, .preview img { max-width: 100%; border-radius: 10px; display: block; }
.result-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.result-actions .size { font-size: 12px; color: var(--muted); }

/* 字幕编辑器表格 */
table.cues { width: 100%; border-collapse: collapse; font-size: 13px; }
table.cues th, table.cues td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.cues th { font-weight: 600; font-size: 12px; color: var(--muted); background: #fafbfc; position: sticky; top: 0; }
table.cues input { padding: 5px 7px; font-size: 13px; border-radius: 6px; }
.cue-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }

.notice {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px;
}
.notice strong { color: #7c2d12; }

.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 22px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.site-footer a { color: var(--muted); }

/* 友情链接（2026-10-18）—— 与法务链接同一条视觉层级但单独成行，
   靠「友情链接」这个前缀区分语义；hover 才上品牌色，平时不抢注意力。 */
.foot-friends {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  justify-content: center; align-items: baseline;
}
.foot-friends-label {
  color: var(--muted); opacity: .75; font-size: 12px;
  padding-right: 8px; border-right: 1px solid var(--line);
}
.foot-friends a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
}
.foot-friends a:hover,
.foot-friends a:focus-visible {
  color: var(--brand); border-bottom-color: var(--brand);
}
/* 外链图标：纯 CSS 画的小箭头，不引任何外部资源（保持零第三方请求） */
.foot-friends a::after {
  content: "↗"; font-size: 11px; margin-left: 2px; opacity: .55;
}

@media (max-width: 640px) {
  .container { padding: 20px 14px 48px; }
  .card { padding: 16px; }
  .page-head h1 { font-size: 20px; }
}

/* ---------- 账号入口（导航右侧） ---------- */
.acc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink); font-weight: 500;
  max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.acc-chip:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.acc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: 0 0 7px; }

/* ---------- 认证页 ---------- */
.auth-wrap { max-width: 440px; margin: 8px auto 0; }
.auth-tabs { display: flex; gap: 4px; background: #f1f3f7; padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 7px;
  font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;
  border: none; background: transparent; font-family: inherit;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.08); }

.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1 1 auto; }
.code-row .btn { flex: 0 0 auto; padding: 9px 14px; white-space: nowrap; }
.code-row .btn.is-wait { opacity: .6; }

.form-msg {
  border-radius: 9px; padding: 10px 12px; font-size: 13px;
  margin-bottom: 14px; display: none;
}
.form-msg.is-on { display: block; }
.form-msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-msg.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-msg.info { background: var(--brand-soft); border: 1px solid #bfdbfe; color: #1e40af; }

.auth-alt { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { cursor: pointer; }

/* ---------- 用户空间 ---------- */
.space-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.avatar {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 52px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 600;
}
.space-head .who { min-width: 0; }
.space-head .who h1 { font-size: 20px; margin: 0 0 2px; }
.space-head .who p { margin: 0; font-size: 13px; color: var(--muted); word-break: break-all; }
.space-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat {
  flex: 1 1 150px; border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 16px; background: #fcfcfd;
}
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 600; margin-top: 2px; letter-spacing: -.02em; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: middle; }
table.grid th { font-weight: 600; font-size: 12px; color: var(--muted); background: #fafbfc; }
table.grid tr:last-child td { border-bottom: none; }
table.grid td.num { text-align: right; white-space: nowrap; color: var(--muted); }
table.grid .acts { display: flex; gap: 6px; justify-content: flex-end; }

.mini-btn {
  font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.mini-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.mini-btn.danger:hover { border-color: var(--err); color: var(--err); }
.mini-btn:disabled { opacity: .5; cursor: not-allowed; }

.empty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.badge {
  font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-source { background: var(--brand-soft); color: var(--brand-dark); border-color: #bfdbfe; }
.badge-output { background: #ecfdf5; color: var(--ok); border-color: #a7f3d0; }
.badge-warn { background: #fffbeb; color: var(--warn); border-color: #fde68a; }

.skeleton { color: var(--muted); font-size: 13px; padding: 18px 4px; }

/* ---------- 首页内容搜索入口（两个大按钮） ---------- */
.search-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin: 14px 0 8px;
}
.search-hero-btn {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.search-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #c7d2fe;
  text-decoration: none;
}
.shb-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 23px;
}
.shb-body strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 3px; }
.shb-body small { color: var(--muted); font-size: 12.5px; line-height: 1.5; display: block; }

/* ---------- 搜索页 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row.is-sel:empty::after {
  content: '还没选搜索项 —— 点上面的常用词或自己输入'; color: var(--muted); font-size: 12px;
}
.chip {
  font: inherit; font-size: 13px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-on {
  background: var(--brand-soft); border-color: #bfdbfe; color: var(--brand-dark);
  cursor: default; display: inline-flex; align-items: center; gap: 6px;
}
.chip.is-hit { background: #ecfdf5; border-color: #a7f3d0; color: var(--ok); cursor: default; }
.chip.is-miss { background: #f3f4f6; border-color: var(--line); color: var(--muted); cursor: default; }
.chip-x { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
.chip-x:hover { color: var(--err); }

.mini-title { font-size: 14px; font-weight: 600; margin: 18px 0 10px; }
.res-head { font-size: 15px; margin-bottom: 8px; }
.res-head .res-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.res-meta { font-size: 12.5px; color: var(--muted); }

.seg-list, .proj-list { list-style: none; margin: 0; padding: 0; }
.seg {
  display: flex; gap: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line);
  font-size: 14px; cursor: pointer; border-radius: 8px;
}
.seg:hover { background: #f8fafc; }
.seg.has-hit { background: #f0fdf9; }
.seg.is-open { background: var(--brand-soft); }
.seg-time { flex: 0 0 62px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 2px; }
.seg-text { min-width: 0; }
.seg-text mark { background: #fef08a; color: inherit; border-radius: 3px; padding: 0 2px; }

.wave-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fcfcfd; }
.wave-panel canvas { width: 100%; height: 120px; display: block; border-radius: 8px; }
/* 标注条与画布同宽（都是 100%），left% = 时间占比 ⇒ 与波形线性对齐 */
.wave-marks { position: relative; height: 30px; margin-top: 6px; }
.wave-marks .wave-marker { position: absolute; top: 0; height: 30px; width: 2px; background: var(--err); }
.wave-marks .wave-marker::after {
  content: attr(data-term); position: absolute; top: 0; left: 4px;
  font-size: 10px; color: var(--err); white-space: nowrap;
}
.wave-panel audio { margin-top: 14px; width: 100%; }

.clip-list { display: grid; gap: 14px; }
.clip { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fcfcfd; }
.clip-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.clip video { max-width: 100%; border-radius: 10px; display: block; background: #000; }
.clip-wave { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.clip-wave canvas { width: 100%; height: 90px; display: block; border-radius: 8px; }
.clip-acts { margin-top: 10px; }

.tl-bar {
  margin-top: 8px; height: 18px; background: #e2e8f0; border-radius: 6px; overflow: visible; position: relative;
}
.tl-marker {
  position: absolute; top: -4px; width: 3px; height: 26px; background: var(--err);
  border-radius: 2px; cursor: pointer;
}
.tl-marker:hover { outline: 2px solid #fecaca; }

.proj { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.proj:hover { background: #f8fafc; }
.proj-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }

/* ---------------- 网站统计（首页公开聚合数字） ---------------- */
.stats-views { font-size: 15px; margin-bottom: 14px; }
.stats-views strong { font-size: 22px; color: var(--ink); }
.stats-row {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  font-size: 13.5px; border-bottom: 1px dashed var(--line);
}
.stats-row:last-child { border-bottom: none; }
.stats-name { flex: 0 0 130px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stats-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.stats-bar span { display: block; height: 100%; background: var(--accent, #2563eb); border-radius: 4px; }
.stats-num { flex: 0 0 56px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------------- 统计摘要条（首屏可见 · 高亮） ----------------
 * 「高亮」不是把边框加深，而是让它在页面上**成为唯一的饱和色块**：
 * 全站底色 #f6f7f9 浅灰、卡片纯白、按钮白卡 —— 一条品牌蓝渐变的实心条
 * 是视觉上最先被看到的东西（对比 + 层次 + 焦点，三条都占）。
 * 数字用 20px/700 + 白色压在大色块上（字号比标签大 1.4 倍，层级明确），
 * 标签降到 88% 白、单位降到 76% 白，三层灰度把注意力推到数字上。
 * ★ 判据 ST2g 就盯这两件事：与页面底的**亮度差**、数字与标签的**字号比**
 *   —— 这样「改回淡蓝底 / 把数字改小」这类退化跑不掉。 */
.stats-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 2px 0 26px; padding: 13px 20px;
  background: linear-gradient(118deg, #2563eb 0%, #3b5bfa 46%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 13.5px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .26), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: box-shadow .18s, transform .18s;
}
.stats-strip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.stats-strip .ss-item { display: inline-flex; align-items: baseline; gap: 4px; }
.stats-strip .ss-ico { font-size: 14px; opacity: .95; }
.stats-strip .ss-label { color: rgba(255, 255, 255, .88); }
.stats-strip .ss-unit { color: rgba(255, 255, 255, .76); font-size: 12.5px; }
.stats-strip strong {
  color: #fff; font-variant-numeric: tabular-nums;
  font-size: 20px; font-weight: 800; line-height: 1.1;
  letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .18);
}
.stats-strip .ss-top strong { font-size: 15px; font-weight: 700; }
.stats-strip .ss-sep { color: rgba(255, 255, 255, .34); font-size: 12px; }
.stats-strip .ss-more {
  margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; font-size: 12.5px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background .15s;
}
.stats-strip .ss-more:hover { background: rgba(255, 255, 255, .28); text-decoration: none; }
/* 失败态：换成暖色但**保持高亮** —— 错误信息更该被看见，不能退回灰底 */
.stats-strip[data-stats-state="err"] {
  background: linear-gradient(118deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 18px rgba(180, 83, 9, .26);
}
@media (max-width: 640px) {
  .stats-strip { padding: 12px 14px; gap: 8px 12px; }
  .stats-strip .ss-more { margin-left: 0; }
}

/* 明细区也提一档：访问数放大到 30px 品牌蓝，条形图改渐变 */
.stats-views strong { font-size: 30px; color: var(--brand); letter-spacing: -.02em; }
.stats-bar span { background: linear-gradient(90deg, #60a5fa, #2563eb); }
.stats-num { color: var(--brand); }
.stats-row:hover { background: #f8fafc; }
