/* ==========================================================================
   优优工具网 · 前台站点样式
   设计基准：1536 × 1024（设计稿 首页.png / 工具列表.png）
   品牌色：#1e6dfe（设计稿取色）；页面底色 #f4f6fa；卡片纯白
   ========================================================================== */

/* 手写体：马善政毛笔楷书（按站内固定文案子集化，64KB） */
@font-face {
  font-family: "Ma Shan Zheng";
  src: url("./fonts/mashanzheng-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1e6dfe;
  --brand-600: #1660ea;
  --brand-700: #0f52d1;
  --brand-50: #eaf1ff;
  --brand-100: #dfe9ff;
  --brand-200: #c7d9ff;

  --bg: #f4f6fa;
  --card: #ffffff;
  --card-2: #f6f8fd;

  --text: #1b263e;
  --text-1: var(--text); /* 兼容别名：部分工具页以 --text-1 表示主文字色 */
  --text-2: #52647c;
  --text-3: #6f7d92;
  --text-4: #8f9bad;

  --line: #e9edf5;
  --line-2: #dfe5ef;

  --success: #23c343;
  --danger: #ff5a5a;
  --warning: #ff9f43;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(24, 45, 84, .04);
  --shadow-sm: 0 4px 14px rgba(24, 45, 84, .05);
  --shadow: 0 8px 26px rgba(24, 45, 84, .07);
  --shadow-lg: 0 16px 44px rgba(24, 45, 84, .12);

  --topbar-h: 72px;
  --shell-max: 1536px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Ma Shan Zheng", "STKaiti", "KaiTi", "Kaiti SC", "楷体", cursive;

  --hover: #f6f9fd;
  --gold: #f0a92e;
  --gold-text: #b07a1a;
  --gold-weak: #fff7e8;
  --gold-weak2: #ffeccb;
  --danger-weak: #fff1f1;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
::selection { background: var(--brand-100); color: var(--brand-700); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d9e0ec; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #c3ccdc; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 通用 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 20px;
}
.handwrite { font-family: var(--font-hand); font-weight: 400; }
.text-muted { color: var(--text-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: block;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  line-height: 1.25;
}
.brand-text small {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-center { flex: 1; display: flex; justify-content: center; min-width: 0; }
.topbar-search {
  position: relative;
  width: min(520px, 100%);
  height: 40px;
  background: var(--card-2);
  border: 1px solid transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.topbar-search:focus-within {
  background: var(--card);
  border-color: var(--brand-200);
  box-shadow: 0 0 0 4px rgba(30, 109, 254, .08);
}
.topbar-search i { font-size: 16px; color: var(--text-4); }
.topbar-search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--text);
}
.topbar-search input::placeholder { color: var(--text-4); }
.topbar-search kbd {
  font-family: var(--font);
  font-size: 11px;
  color: var(--text-4);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 19px;
  color: #f5a623;
  background: var(--gold-weak);
  transition: transform .18s, background .18s;
}
.icon-btn:hover { transform: rotate(18deg); background: var(--gold-weak2); }

.btn-login {
  height: 38px;
  padding: 0 18px;
  border-radius: 19px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
  transition: background .18s, color .18s, box-shadow .18s;
}
.btn-login:hover { background: var(--brand-100); box-shadow: 0 4px 12px rgba(30, 109, 254, .14); }
.btn-login i { font-size: 16px; }

/* 登录后用户区 */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 4px;
  border-radius: 19px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.user-chip:hover { border-color: var(--brand-200); background: var(--card); }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(145deg, #4d8bff, var(--brand));
  color: #fff; font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
}
.user-chip .name { font-size: 13px; font-weight: 600; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .caret { font-size: 15px; color: var(--text-3); margin-left: -2px; transition: transform .18s ease; }
.user-menu.is-open .user-chip .caret { transform: rotate(180deg); }
.user-chip .logout {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-3); font-size: 15px;
}
.user-chip .logout:hover { background: var(--card); color: var(--danger); }

/* ---------- 用户下拉菜单 ---------- */
.user-menu { position: relative; }
.user-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 204px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 80;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.user-drop.show { opacity: 1; transform: translateY(0); }
.user-drop-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 9px 10px;
  min-width: 0;
}
.user-drop-head .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, #4d8bff, var(--brand));
  color: #fff; font-size: 13.5px; font-weight: 700;
  display: grid; place-items: center;
}
.user-drop-id { min-width: 0; }
.user-drop-id b { display: block; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-drop-id em { display: block; font-style: normal; font-size: 11px; color: var(--text-4); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-drop-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 9px;
  border-radius: 9px;
  font-size: 12.5px; font-family: inherit; text-align: left;
  color: var(--text-2);
  transition: background .14s, color .14s;
}
.user-drop-item i { font-size: 15px; color: var(--text-3); transition: color .14s; }
.user-drop-item:hover { background: var(--hover); color: var(--text); }
.user-drop-item.is-static { cursor: default; }
.user-drop-item.is-static:hover { background: none; color: var(--text-2); }
.user-drop-item .coin { color: var(--gold); }
.user-drop-pts { margin-left: auto; font-weight: 700; color: var(--gold-text); }
.user-drop-sep { height: 1px; background: var(--line); margin: 5px 7px; }
.user-drop-item.is-danger:hover { background: var(--danger-weak); color: var(--danger); }
.user-drop-item.is-danger:hover i { color: var(--danger); }

/* ==========================================================================
   Layout：左导航 + 主区 + 右侧栏（设计稿三栏）
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 348px;
  gap: 16px;
  align-items: start;
  padding-bottom: 40px;
}
.layout.no-aside { grid-template-columns: 236px minmax(0, 1fr); }

.main-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }

/* ---------- Sidebar ----------
   外层 .sidebar 拉伸占满 layout 全高（钉住区=整页高），
   内层 .side-sticky 才是 sticky 元素：滚动到底也不会被父容器边界顶走。 */
.sidebar {
  align-self: stretch;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
}
.side-sticky {
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
  max-height: calc(100vh - var(--topbar-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e5 transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* sticky 容器给出与页面一致的实底，滚动时内容不会透出下层 */
  background: var(--bg);
}
.side-sticky::-webkit-scrollbar { width: 6px; }
.side-sticky::-webkit-scrollbar-thumb { background: #cbd5e5; border-radius: 6px; border: 1px solid var(--bg); }
.side-sticky::-webkit-scrollbar-track { background: transparent; }
/* flex 纵向布局下禁止卡片被压扁（内容超高时应滚动，而不是裁切） */
.side-sticky > * { flex: 0 0 auto; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 14px;
  color: var(--text-2);
  transition: background .16s, color .16s;
}
.side-nav a i { font-size: 18px; color: var(--text-3); transition: color .16s; }
.side-nav a:hover { background: var(--card); color: var(--brand); }
.side-nav a:hover i { color: var(--brand); }
.side-nav a.active {
  background: var(--brand-50);
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30, 109, 254, .08);
}
.side-nav a.active i { color: var(--brand); }

.side-card {
  background: linear-gradient(180deg, #eef5ff 0%, #e9f1ff 100%);
  border-radius: var(--radius-lg);
  padding: 16px 15px 15px;
  text-align: center;
}
.side-card .side-illus {
  width: 54px; height: 54px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: var(--card);
  color: var(--brand);
  font-size: 27px;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(30, 109, 254, .14);
}
.side-card h4 { font-size: 13.5px; font-weight: 700; color: var(--text); }
.side-card p { font-size: 11.5px; line-height: 1.65; color: #7c8ba3; margin-top: 4px; }
.side-card .btn-primary {
  margin-top: 12px;
  width: 100%;
  height: 34px;
  border-radius: 17px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(30, 109, 254, .28);
  transition: background .16s, transform .16s;
}
.side-card .btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }

.side-foot {
  text-align: center;
  font-size: 11px;
  color: var(--text-4);
  line-height: 1.9;
  padding: 2px 8px 12px;
}
.side-foot .heart { color: #ff8a8a; margin-right: 3px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 308px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #d8e9ff 0%, #e9f3ff 46%, #f3f9ff 100%);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; object-position: center 72%; }
.hero-glow {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .5) 42%, rgba(255, 255, 255, .06) 72%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
}
.hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.hero h1 {
  font-family: var(--font-hand);
  font-size: 42px;
  line-height: 1.22;
  font-weight: 400;
  color: #17335c;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .55);
}
.hero-sub {
  margin-top: 9px;
  font-size: 14px;
  color: #4d6c93;
  letter-spacing: .4px;
}
.hero-note {
  position: relative;
  flex: 0 0 auto;
  margin-top: 2px;
  margin-right: 8px;
  font-family: var(--font-hand);
  font-size: 15px;
  line-height: 1.35;
  color: #4b7099;
  text-align: center;
  transform: rotate(-6deg);
  opacity: .92;
}
.hero-note svg { margin: 2px auto 0; display: block; }

.hero-search {
  margin-top: auto;
  height: 50px;
  width: min(620px, 100%);
  background: var(--card);
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 18px;
  box-shadow: 0 12px 30px rgba(24, 78, 160, .14);
}
.hero-search > i { font-size: 18px; color: var(--text-3); flex: 0 0 auto; }
.hero-search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--text);
}
.hero-search input::placeholder { color: var(--text-4); }
.hero-search .btn-search {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 26px;
  border-radius: 19px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background .16s;
}
.hero-search .btn-search:hover { background: var(--brand-600); }

.hero-hot {
  margin-top: 12px;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .9);
  flex-wrap: wrap;
  padding: 6px 11px;
  border-radius: 12px;
  background: rgba(18, 46, 78, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 3px rgba(18, 46, 78, .38);
}
.hero-hot .label { color: rgba(255, 255, 255, .7); }
.hero-hot a { color: #fff; transition: color .16s; }
.hero-hot a:hover { color: #d9ecff; }

/* ==========================================================================
   区块标题
   ========================================================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--text); }
.section-title i { font-size: 18px; color: var(--brand); }
.section-more {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12.5px; color: var(--text-3);
  transition: color .16s;
}
.section-more:hover { color: var(--brand); }
.section-more i { font-size: 14px; }

/* ==========================================================================
   精选工具网格（5 列 × 2 行）
   ========================================================================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.tool-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 15px 15px 32px;
  min-height: 128px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(238, 241, 247, .9);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}
.tool-ico {
  --c: var(--brand);
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 17%, transparent);
  font-size: 20px;
  margin-bottom: 10px;
  transition: transform .18s ease, background .18s ease;
}
.tool-card:hover .tool-ico { transform: translateY(-1px) scale(1.04); }
.tool-card h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-card .go {
  position: absolute;
  right: 11px; bottom: 11px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--text-3);
  display: grid; place-items: center;
  font-size: 13px;
  transition: background .16s, color .16s;
}
.tool-card:hover .go { background: var(--brand); color: #fff; }

/* ==========================================================================
   使用场景
   ========================================================================== */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.scene-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  min-height: 98px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid rgba(233, 240, 250, .95);
  box-shadow: var(--shadow-xs);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.scene-text h4 { font-size: 13.5px; font-weight: 700; color: var(--text); }
.scene-text p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scene-text .scene-count {
  margin-top: 6px;
  display: inline-block;
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-50);
  border-radius: 8px;
  padding: 1px 7px;
}
.scene-illus {
  --c: var(--brand);
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 17%, transparent);
}

/* ==========================================================================
   右侧栏
   ========================================================================== */
.aside {
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
  max-height: calc(100vh - var(--topbar-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e5 transparent;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside::-webkit-scrollbar { width: 6px; }
.aside::-webkit-scrollbar-thumb { background: #cbd5e5; border-radius: 6px; border: 1px solid var(--bg); }
.aside::-webkit-scrollbar-track { background: transparent; }
.aside > * { flex: 0 0 auto; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(238, 241, 247, .9);
  box-shadow: var(--shadow-xs);
  padding: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.card-head .t { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--text); }
.card-head .t i { font-size: 17px; }
.card-head .t .fire { color: #ff7a45; }
.card-head .t .chart { color: var(--brand); }
.card-head .link { font-size: 11.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 2px; }
.card-head .link:hover { color: var(--brand); }

/* 今日推荐 */
.rec-list { display: flex; flex-direction: column; }
.rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  border-radius: 8px;
  transition: background .16s;
}
.rec-item:last-child { border-bottom: 0; }
.rec-item:hover { background: var(--hover); }
.rec-ico {
  --c: var(--brand);
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 17%, transparent);
  font-size: 17px;
}
.rec-body { flex: 1; min-width: 0; }
.rec-body h5 {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec-body p {
  font-size: 11.5px; color: var(--text-3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec-item > i { font-size: 14px; color: var(--text-4); }

/* 热门排行 */
.rank-list { display: flex; flex-direction: column; gap: 1px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s;
}
.rank-item:hover { background: var(--hover); }
.rank-no {
  flex: 0 0 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #b8c2d1;
  font-variant-numeric: tabular-nums;
}
.rank-item:nth-child(1) .rank-no { color: #ff5c3d; }
.rank-item:nth-child(2) .rank-no { color: #ff9f2e; }
.rank-item:nth-child(3) .rank-no { color: #f2b02e; }
.rank-name {
  flex: 1; min-width: 0;
  font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-heat {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.rank-foot {
  margin-top: 8px;
  width: 100%;
  height: 34px;
  border-radius: 10px;
  background: var(--card-2);
  color: var(--text-2);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .16s, color .16s;
}
.rank-foot:hover { background: var(--brand-50); color: var(--brand); }

/* ==========================================================================
   工具列表页
   ========================================================================== */
.page-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(120deg, #dbeaff 0%, #eaf3ff 52%, #f4f9ff 100%);
  padding: 30px 36px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.page-banner .banner-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; object-fit: cover; object-position: center 60%; }
.page-banner .banner-glow {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.42) 55%, rgba(255,255,255,0) 85%);
}
.page-banner .banner-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-banner h1 { font-size: 32px; font-weight: 800; letter-spacing: .5px; color: #16305a; }
.page-banner .desc { margin-top: 8px; font-size: 13px; line-height: 1.7; color: #55718f; max-width: 470px; }
.page-banner .hand-note {
  position: absolute; right: 46px; top: 30px;
  font-family: var(--font-hand);
  font-size: 17px;
  color: #4d729c;
  transform: rotate(-5deg);
  opacity: .9;
}
.banner-search {
  position: relative; z-index: 2;
  margin-top: 18px;
  width: min(520px, 100%);
  height: 46px;
  background: var(--card);
  border-radius: 23px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 16px;
  box-shadow: 0 10px 26px rgba(24, 78, 160, .12);
}
.banner-search i { font-size: 17px; color: var(--text-3); }
.banner-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.banner-search .btn-search {
  height: 34px; padding: 0 22px; border-radius: 17px;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 33px;
  padding: 0 16px;
  border-radius: 17px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .16s;
}
.pill:hover { color: var(--brand); border-color: var(--brand-200); }
.pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(30, 109, 254, .26);
}
.pill .count { font-size: 10.5px; opacity: .7; }

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  transition: opacity .16s ease;
}
.list-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(238, 241, 247, .9);
  box-shadow: var(--shadow-xs);
  padding: 16px 16px 40px;
  position: relative;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex;
  flex-direction: column;
  min-height: 164px;
}
.list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.list-card .top { display: flex; align-items: flex-start; gap: 11px; }
.list-card .tool-ico { width: 44px; height: 44px; border-radius: 13px; font-size: 22px; margin: 0; }
.list-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin-top: 2px; }
.list-card .cat { font-size: 11.5px; color: var(--text-4); margin-top: 2px; }
.list-card .desc {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.list-card .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-size: 11px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--card-2);
  color: var(--text-2);
}
.tag-pill.hot { background: #fff1ec; color: #ff6b3d; }
.tag-pill.free { background: #eefaf0; color: #1fa93a; }
.tag-pill.cost { background: #fff7e8; color: #b07a1a; }
.list-card .go {
  position: absolute; right: 14px; bottom: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 15px;
  transition: background .16s, color .16s;
}
.list-card:hover .go { background: var(--brand); color: #fff; }
.list-card .price {
  position: absolute; left: 16px; bottom: 16px;
  font-size: 11.5px; color: var(--gold-text);
  display: inline-flex; align-items: center; gap: 3px;
}
.list-card .price i { font-size: 12px; color: var(--gold); }
.list-card .price.free { color: #1fa93a; }

/* 最近使用（列表页右栏） */
.recent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.recent-item:last-child { border-bottom: 0; }
.recent-item .time { font-size: 10.5px; color: var(--text-4); }
.fav-card {
  background: linear-gradient(140deg, #2f7bff 0%, #1656e0 100%);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(24, 82, 200, .28);
}
.fav-card h4 { font-size: 14px; font-weight: 700; }
.fav-card p { margin-top: 4px; font-size: 11.5px; opacity: .82; }
.fav-card button,
.fav-card .fav-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  transition: transform .16s, background .16s;
}
.fav-card .fav-cta:hover { background: #fff; transform: translateY(-1px); }

/* 结果为空 */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--text-3);
  background: var(--card);
  border-radius: var(--radius-lg, 16px);
  border: 1px dashed var(--line-2);
  font-size: 13px;
}
.empty i { display: block; font-size: 34px; color: #c8d2e2; margin-bottom: 8px; }

/* 加载骨架 */
.skeleton {
  background: linear-gradient(90deg, #f1f4f9 25%, #f8fafd 37%, #f1f4f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 8px;
}
html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1d2740 25%, #273451 37%, #1d2740 63%);
  background-size: 400% 100%;
}
.user-chip.is-skeleton { pointer-events: none; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ==========================================================================
   表单 / 认证页
   ========================================================================== */
.auth-wrap {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 80px;
  position: relative;
  overflow: hidden;
}
.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .55;
  pointer-events: none;
}
.auth-bg-orb.a { width: 420px; height: 420px; left: -120px; top: -80px; background: radial-gradient(circle, #d8e8ff, transparent 68%); }
.auth-bg-orb.b { width: 520px; height: 520px; right: -160px; bottom: -180px; background: radial-gradient(circle, #e6efff, transparent 70%); }

.auth-card {
  position: relative;
  width: min(430px, 100%);
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(238, 241, 247, .9);
  padding: 34px 34px 28px;
}
.auth-card .auth-logo {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, #3f83ff, var(--brand) 60%, #0f56e0);
  color: #fff;
  font-size: 26px;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  box-shadow: 0 10px 22px rgba(30, 109, 254, .3);
}
.auth-card h2 { text-align: center; font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.auth-card .sub { text-align: center; font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.auth-tabs {
  margin: 22px 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-2);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.auth-tabs a {
  height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-2);
  transition: all .16s;
}
.auth-tabs a.active { background: var(--card); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-xs); }
.register-form { margin-top: 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field label .opt { color: var(--text-4); font-weight: 400; }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid transparent;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.input-wrap:focus-within { background: var(--card); border-color: var(--brand-200); box-shadow: 0 0 0 4px rgba(30, 109, 254, .08); }
.input-wrap > i { position: absolute; left: 13px; font-size: 16px; color: var(--text-4); }
.input-wrap input {
  width: 100%; height: 100%;
  padding: 0 14px 0 38px;
  border: 0; outline: 0; background: transparent;
  font-size: 13.5px; color: var(--text);
}
.input-wrap input::placeholder { color: #aab4c4; }
.pw-toggle {
  position: absolute; right: 8px;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-4); font-size: 16px;
}
.pw-toggle:hover { color: var(--text-2); background: var(--hover); }

/* 邮箱验证码 */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row .input-wrap { flex: 1; min-width: 0; }
.btn-code {
  flex: 0 0 112px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .16s, border-color .16s, opacity .16s;
}
.btn-code:hover:not(:disabled) { background: var(--brand-100); }
.btn-code:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 400px) { .btn-code { flex-basis: 104px; font-size: 12px; } }

.form-err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #d93a3a;
  background: var(--danger-weak);
  border: 1px solid #ffdada;
  border-radius: 10px;
  padding: 8px 11px;
  margin-bottom: 12px;
}
.form-err.show { display: flex; }

.btn-primary {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 8px 18px rgba(30, 109, 254, .28);
  transition: background .16s, transform .16s, opacity .16s;
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  transition: all .16s;
}
.btn-ghost:hover { border-color: var(--brand-200); color: var(--brand); }

.auth-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 16px; }
.auth-foot a { color: var(--brand); font-weight: 500; }
.auth-tip {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.7;
  background: var(--hover);
  border-radius: 10px;
  padding: 10px 12px;
}
.auth-tip b { color: var(--text-2); font-weight: 600; }

/* ==========================================================================
   用户中心
   ========================================================================== */
.uc-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0 48px;
  align-items: start;
}
.uc-side { display: flex; flex-direction: column; gap: 16px; }
.uc-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.profile-card { text-align: center; padding: 24px 18px 20px; }
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(145deg, #4d8bff, var(--brand));
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(30, 109, 254, .28);
}
.profile-card h3 { font-size: 17px; font-weight: 700; }
.profile-card .uid { font-size: 11.5px; color: var(--text-4); margin-top: 3px; }
.profile-card .joined { font-size: 11.5px; color: var(--text-3); margin-top: 10px; }
.profile-actions { display: flex; gap: 8px; margin-top: 16px; }
.profile-actions .btn-ghost { flex: 1; height: 36px; font-size: 12.5px; }
.profile-actions .btn-primary { flex: 1; height: 36px; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.profile-actions .btn-primary i { font-size: 14px; }

/* 默认头像图标（顶栏 / 下拉 / 移动抽屉 / 个人中心） */
.user-chip .avatar i { font-size: 15px; }
.user-drop-head .avatar i { font-size: 16px; }
.profile-avatar i { font-size: 30px; }
.m-user .avatar i { font-size: 18px; }
/* 自定义头像图片：填满圆形容器 */
.user-chip .avatar img,
.user-drop-head .avatar img,
.profile-avatar img,
.m-user .avatar img,
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.user-chip .avatar,
.user-drop-head .avatar,
.profile-avatar,
.m-user .avatar { overflow: hidden; }

/* 编辑资料弹窗 */
.edit-profile-form { display: flex; flex-direction: column; }
.edit-profile-form .ep-avatar-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.edit-profile-form .ep-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  overflow: hidden;
  background: linear-gradient(145deg, #4d8bff, var(--brand));
  color: #fff; font-size: 28px;
  display: grid; place-items: center;
}
.edit-profile-form .ep-avatar-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.edit-profile-form .ep-avatar-side .btn-ghost {
  height: 32px; padding: 0 13px; font-size: 12px;
  display: inline-flex; align-items: center; gap: 5px;
}
.edit-profile-form .ep-avatar-tip { font-size: 11px; color: var(--text-4); }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 12px 0 6px; }
.edit-profile-form .field-label:first-of-type { margin-top: 12px; }
.edit-profile-form .input-wrap input { padding-left: 14px; }
.edit-profile-form .ep-sep {
  display: flex; align-items: baseline; gap: 8px;
  margin: 18px 0 2px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.edit-profile-form .ep-sep span { font-size: 11px; font-weight: 400; color: var(--text-4); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .9s linear infinite; }

.points-card {
  background: linear-gradient(145deg, #2f7bff 0%, #1656e0 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  box-shadow: 0 16px 34px rgba(24, 82, 200, .3);
  position: relative;
  overflow: hidden;
}
.points-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -50px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.points-card .label { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 5px; }
.points-card .amount { margin-top: 6px; font-size: 36px; font-weight: 800; letter-spacing: 1px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.points-card .amount small { font-size: 13px; font-weight: 500; opacity: .8; margin-left: 4px; }
.points-card .meta { display: flex; gap: 18px; margin-top: 12px; font-size: 11.5px; opacity: .88; }
.points-card .recharge-btn {
  margin-top: 14px;
  width: 100%;
  height: 38px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .96);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pkg-card {
  position: relative;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  background: var(--card);
  transition: border-color .16s, box-shadow .16s, transform .16s;
  cursor: pointer;
}
.pkg-card:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(30, 109, 254, .14); transform: translateY(-2px); }
.pkg-card.popular { border-color: var(--brand); background: linear-gradient(180deg, #f6faff, #fff); }
.pkg-card.popular::before {
  content: "最超值";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: 10px; padding: 2px 10px; border-radius: 9px;
  white-space: nowrap;
}
.pkg-card h4 { font-size: 13px; color: var(--text-2); font-weight: 600; }
.pkg-card .pts { margin-top: 8px; font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: .5px; }
.pkg-card .pts small { font-size: 11px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.pkg-card .bonus { margin-top: 4px; font-size: 11px; color: #ff7a45; height: 16px; }
.pkg-card .price { margin: 10px 0 12px; font-size: 19px; font-weight: 700; color: var(--brand); }
.pkg-card .price small { font-size: 12px; font-weight: 600; }
.pkg-card .btn-buy {
  width: 100%; height: 32px; border-radius: 16px;
  background: var(--brand-50); color: var(--brand);
  font-size: 12px; font-weight: 600;
  transition: background .16s, color .16s;
}
.pkg-card:hover .btn-buy { background: var(--brand); color: #fff; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11.5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--hover); }
.tx-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-amount.plus { color: #1fa93a; }
.tx-amount.minus { color: #e05252; }
.tx-type {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  background: var(--card-2); color: var(--text-2);
}
.tx-type.recharge { background: #eef4ff; color: var(--brand); }
.tx-type.spend { background: #fff3ee; color: #f0703c; }
.tx-type.register_gift { background: #eefaf0; color: #1fa93a; }

.mini-tool {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mini-tool:last-child { border-bottom: 0; }
.mini-tool .tool-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; margin: 0; }
.mini-tool .mt-body { flex: 1; min-width: 0; }
.mini-tool .mt-body h5 { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-tool .mt-body p { font-size: 10.5px; color: var(--text-3); }
.mini-tool .fav-btn {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-4); font-size: 15px;
}
.mini-tool .fav-btn:hover { background: #fff3f3; color: #ff6b6b; }
.mini-tool .fav-btn.on { color: #ff6b6b; }

.tabs-line { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tabs-line button {
  position: relative;
  padding: 0 0 11px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.tabs-line button.active { color: var(--brand); font-weight: 600; }
.tabs-line button.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--brand);
}

/* ==========================================================================
   Toast / Modal
   ========================================================================== */
.toast-host {
  position: fixed;
  top: 96px; left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  min-width: 200px;
  max-width: 86vw;
  background: rgba(28, 39, 64, .94);
  color: #fff;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgba(14, 25, 45, .28);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in .22s ease both;
  pointer-events: auto;
}
.toast i { font-size: 17px; flex: 0 0 auto; }
.toast.ok i { color: #5ee08a; }
.toast.err i { color: #ff8d8d; }
.toast.warn i { color: #ffd166; }
.toast.out { animation: toast-out .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }

.modal-host {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(17, 28, 48, .45);
  backdrop-filter: blur(3px);
}
.modal-host.show { display: flex; }
.modal {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: toast-in .2s ease both;
}
.modal h3 { font-size: 16px; font-weight: 700; }
.modal .modal-body { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.modal .modal-foot { margin-top: 20px; display: flex; gap: 10px; }
.modal .modal-foot .btn-primary { flex: 1; height: 40px; font-size: 13.5px; box-shadow: none; }
.modal .modal-foot .btn-ghost { flex: 1; height: 40px; }
.pay-link {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f4f8ff;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 12px 14px;
}
.pay-link .ol { font-size: 11.5px; color: var(--text-3); }
.pay-link .on { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
.pay-link a {
  height: 34px; padding: 0 14px; border-radius: 9px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 40px 0 26px;
  margin-top: 8px;
}
.site-foot .inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.foot-brand .foot-logo { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .foot-logo .brand-logo { width: 32px; height: 32px; }
.foot-brand .foot-logo strong { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.foot-slogan {
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: .5px;
}
.foot-desc { margin-top: 8px; font-size: 12px; color: var(--text-3); line-height: 1.7; max-width: 300px; }
.foot-col h5 { margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: .6px; }
.foot-col a { display: block; padding: 5px 0; font-size: 12px; color: var(--text-3); transition: color .16s; }
.foot-col a:hover { color: var(--brand); }
.site-foot .copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 16px;
  font-size: 11.5px;
  color: var(--text-4);
}
.site-foot .copy .heart { color: #ff8a8a; margin: 0 3px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1480px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr) 330px; }
  /* 主列约 800px 时 5 列会把描述压到每行 8 个字：退到 4 列，只保留 8 张（两行整齐） */
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-grid .tool-card:nth-child(n+9) { display: none; }
  .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .aside { display: none; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid .tool-card:nth-child(n+10) { display: none; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --topbar-h: 64px; }
  .shell { padding: 0 14px; }
  .layout, .layout.no-aside { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar-search { display: none; }
  .brand-text small { display: none; }
  .hero { height: 280px; }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 24px 22px; }
  .hero-note { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-layout { grid-template-columns: minmax(0, 1fr); }
  .page-banner { padding: 24px 22px; }
  .page-banner h1 { font-size: 26px; }
  .page-banner .hand-note { display: none; }
}
@media (max-width: 560px) {
  .tool-grid, .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .tool-card { padding: 12px 12px 28px; min-height: 108px; }
  .scene-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .hero-search { flex-wrap: nowrap; }
  .hero-search .btn-search { padding: 0 16px; }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { padding: 26px 20px 22px; }
}

/* 矮屏（笔记本 1366×768 / 缩放 125% 等）：收纳侧栏装饰性内容，
   保证侧栏自身高度不超过可视区，滚动时 sticky 全程钉住不抖动 */
@media (max-height: 920px) {
  .sidebar .side-deco,
  .sidebar .side-foot,
  .aside .fav-card { display: none; }
  .ov-foot,
  .fav-hint { display: none; }
  .ov-card { padding: 11px 12px 9px; }
  .side-sticky { gap: 10px; }
  body[data-page="home"] .side-sticky { gap: 10px; }
  .sidebar .side-card { padding: 10px 12px; }
}

/* ---------- 布局细节：滚动稳定 / 页尾贴底 ---------- */
html { scrollbar-gutter: stable; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > .shell { flex: 1 0 auto; width: 100%; }
.site-foot { flex: 0 0 auto; margin-top: auto; }

/* ---------- 侧边栏细节 ---------- */
.side-nav { gap: 3px; }
.side-nav a { position: relative; height: 42px; border-radius: 10px; }
.side-nav a::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 18px;
  border-radius: 3px;
  background: var(--brand);
  transition: transform .18s ease;
}
.side-nav a.active::before { transform: translateY(-50%) scaleY(1); }
.side-nav a i { transition: transform .16s ease, color .16s; }
.side-nav a:hover i { transform: scale(1.08); }
.side-illus-img {
  width: 132px;
  max-width: 90%;
  margin: 0 auto 4px;
  display: block;
}
.side-plane-img { width: 120px; display: block; margin: 2px auto 0; }

/* ---------- 场景卡片插画 ---------- */
.scene-illus-img {
  flex: 0 0 58px;
  width: 58px;
  filter: drop-shadow(0 6px 12px rgba(24, 45, 84, .10));
}
@media (max-width: 560px) { .scene-illus-img { width: 52px; flex-basis: 52px; } }

/* ---------- 空态插画 ---------- */
.empty-illus { width: 150px; margin: 0 auto 10px; opacity: .95; }

/* ---------- 收藏卡插画 ---------- */
.fav-illus { position: absolute; right: 6px; bottom: 4px; width: 92px; opacity: .95; pointer-events: none; }
.fav-card { position: relative; overflow: hidden; }

/* ==========================================================================
   深色主题（顶栏太阳按钮切换）—— 令牌驱动，全面重修
   ========================================================================== */
html[data-theme="dark"] {
  --bg: #0e1422;
  --card: #161e2e;
  --card-2: #1d2740;
  --text: #e9eef7;
  --text-2: #b3bfd2;
  --text-3: #8b98ad;
  --text-4: #66738a;
  --line: #242f47;
  --line-2: #2d3a56;
  --brand-50: #172a52;
  --brand-100: #1c3160;
  --brand-200: #2a4378;
  --hover: #1d2740;
  --gold: #f0b95c;
  --gold-text: #f2c063;
  --gold-weak: #33270f;
  --gold-weak2: #3d2f13;
  --danger-weak: #3a1e22;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .38);
  --shadow: 0 8px 26px rgba(0, 0, 0, .45);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .topbar {
  background: rgba(16, 23, 38, .88);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .icon-btn { background: var(--gold-weak); color: var(--gold); }
html[data-theme="dark"] .icon-btn:hover { background: var(--gold-weak2); }

/* Hero */
html[data-theme="dark"] .hero { background: linear-gradient(180deg, #16223c 0%, #1b2a48 48%, #20304f 100%); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .hero-scene { filter: brightness(.68) saturate(.9); }
html[data-theme="dark"] .hero-glow { background: linear-gradient(100deg, rgba(14, 20, 34, .78) 0%, rgba(14, 20, 34, .38) 45%, rgba(14, 20, 34, 0) 74%); }
html[data-theme="dark"] .hero h1 { color: #eaf2ff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
html[data-theme="dark"] .hero-sub { color: #b7c9e2; }
html[data-theme="dark"] .hero-note { color: #a9c4e4; }
html[data-theme="dark"] .hero-hot { color: #a9c0de; }
html[data-theme="dark"] .hero-hot .label { color: #9db4d2; }
html[data-theme="dark"] .hero-hot a { color: #d3e4fa; }
html[data-theme="dark"] .hero-hot a:hover { color: #ffffff; }
html[data-theme="dark"] .hero-search { background: var(--card); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .hero-search input { color: var(--text); }
html[data-theme="dark"] .hero-search input::placeholder { color: var(--text-4); }

/* 列表页 Banner */
html[data-theme="dark"] .page-banner { background: linear-gradient(120deg, #17233e 0%, #1c2b4a 52%, #223356 100%); }
html[data-theme="dark"] .page-banner .banner-scene { filter: brightness(.62) saturate(.88); }
html[data-theme="dark"] .page-banner .banner-glow { background: linear-gradient(95deg, rgba(14, 20, 34, .8) 0%, rgba(14, 20, 34, .4) 55%, transparent 85%); }
html[data-theme="dark"] .page-banner h1 { color: #eaf2ff; }
html[data-theme="dark"] .page-banner .desc { color: #b3c6de; }
html[data-theme="dark"] .page-banner .hand-note { color: #a9c4e4; }
html[data-theme="dark"] .banner-search { background: var(--card); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .banner-search input { color: var(--text); }
html[data-theme="dark"] .banner-search input::placeholder { color: var(--text-4); }
html[data-theme="dark"] .topbar-search { background: var(--card-2); }
html[data-theme="dark"] .topbar-search kbd { background: var(--card); border-color: var(--line-2); }
html[data-theme="dark"] .topbar-search input { color: var(--text); }

/* 侧边栏 */
html[data-theme="dark"] .side-nav a:hover { background: var(--card-2); }
html[data-theme="dark"] .side-card { background: linear-gradient(180deg, #1a2440 0%, #172a52 100%); }
/* 「简单好用」等朴素装饰卡：暗色下同样保持透明，不套卡片底色 */
html[data-theme="dark"] .side-card.side-card-plain { background: none; }
html[data-theme="dark"] .side-card p { color: #93a5c4; }
html[data-theme="dark"] .side-foot { color: var(--text-4); }

/* 卡片与文字（令牌已覆盖大部分，这里补足特例） */
html[data-theme="dark"] .tool-card, html[data-theme="dark"] .list-card,
html[data-theme="dark"] .card, html[data-theme="dark"] .modal,
html[data-theme="dark"] .pkg-card, html[data-theme="dark"] .auth-card {
  border-color: var(--line);
}
html[data-theme="dark"] .tool-card .go { background: var(--card-2); color: var(--text-3); }
html[data-theme="dark"] .rec-item, html[data-theme="dark"] .rank-item,
html[data-theme="dark"] .mini-tool, html[data-theme="dark"] .data-table td { border-bottom-color: var(--line); }
html[data-theme="dark"] .rec-item:hover, html[data-theme="dark"] .rank-item:hover,
html[data-theme="dark"] .mini-tool:hover { background: var(--hover); }
html[data-theme="dark"] .rank-foot { background: var(--card-2); color: var(--text-2); }
html[data-theme="dark"] .rank-foot:hover { background: var(--brand-50); color: var(--brand); }
html[data-theme="dark"] .data-table tr:hover td { background: var(--hover); }

/* 场景卡（深色渐变 + 插画不突兀） */
html[data-theme="dark"] .scene-card {
  background: linear-gradient(135deg, #1b2740 0%, #16223c 100%);
  border-color: var(--line);
}
html[data-theme="dark"] .scene-illus-img { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); }
/* 浅色插画在深色底上略微降亮，避免刺眼 */
html[data-theme="dark"] .side-illus-img,
html[data-theme="dark"] .side-plane-img,
html[data-theme="dark"] .fav-guide-illus,
html[data-theme="dark"] .fav-empty-illus,
html[data-theme="dark"] .empty-illus { filter: brightness(.9) saturate(.94); }
html[data-theme="dark"] .fav-card { background: linear-gradient(140deg, #2456c9 0%, #143c96 100%); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }

/* 表单 */
html[data-theme="dark"] .input-wrap { background: var(--card-2); }
html[data-theme="dark"] .input-wrap:focus-within { background: var(--card); }
html[data-theme="dark"] .input-wrap input { color: var(--text); }
html[data-theme="dark"] .pw-toggle:hover { background: var(--hover); color: var(--text-2); }
html[data-theme="dark"] .auth-tabs { background: var(--card-2); }
html[data-theme="dark"] .auth-tabs a.active { background: var(--card); }
html[data-theme="dark"] .btn-ghost { background: transparent; border-color: var(--line-2); }
html[data-theme="dark"] .auth-tip { background: var(--card-2); }
html[data-theme="dark"] .pay-link { background: var(--brand-50); border-color: var(--brand-200); }
html[data-theme="dark"] .auth-bg-orb.a { background: radial-gradient(circle, #1a2c55, transparent 68%); }
html[data-theme="dark"] .auth-bg-orb.b { background: radial-gradient(circle, #1d2a4a, transparent 70%); }

/* 组件杂项 */
html[data-theme="dark"] .pill { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .tag-pill { background: var(--card-2); color: var(--text-2); }
html[data-theme="dark"] .tag-pill.hot { background: #3a1e22; color: #ff9d8a; }
html[data-theme="dark"] .tag-pill.free { background: #14301e; color: #55d97a; }
html[data-theme="dark"] .tag-pill.cost { background: #33270f; color: #f2c063; }
html[data-theme="dark"] .user-chip { background: var(--card-2); border-color: var(--line); }
html[data-theme="dark"] .pkg-card.popular { background: linear-gradient(180deg, #172a52, #161e2e); }
html[data-theme="dark"] .tx-type { background: var(--card-2); color: var(--text-2); }
html[data-theme="dark"] .tx-type.recharge { background: var(--brand-50); color: #7fa9ff; }
html[data-theme="dark"] .tx-type.spend { background: #3a2214; color: #ffab7a; }
html[data-theme="dark"] .tx-type.register_gift { background: #14301e; color: #55d97a; }
html[data-theme="dark"] .points-card { background: linear-gradient(145deg, #2456c9 0%, #143c96 100%); }
html[data-theme="dark"] .mini-tool .fav-btn:hover { background: var(--danger-weak); }
html[data-theme="dark"] .empty { background: var(--card); }
html[data-theme="dark"] .site-foot { background: var(--card); border-top-color: var(--line); }
html[data-theme="dark"] .toast { background: rgba(233, 238, 247, .97); color: #16223c; }
.auth-logo-img {
  width: 66px;
  height: 56px;
  display: block;
  object-fit: contain;
  margin: 0 auto 14px;
}
/* ---------- 顶栏导航（首页） ---------- */
.top-nav { display: flex; align-items: center; gap: 30px; }
.top-nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 4px 0;
  transition: color .16s;
}
.top-nav a:hover { color: var(--brand); }
.top-nav a.active { color: var(--brand); font-weight: 600; }
.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 18px; height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
@media (max-width: 900px) { .top-nav { display: none; } }

/* ---------- 首页侧栏：站点概览 / 热门标签 / 收藏 / 装饰 ----------
   站点概览 = 迷你数据面板：渐变底板 + 四格大数字瓷砖 + 实时徽标，
   用低饱和的蓝 / 绿 / 橙 / 紫做区分，饱和度压住，与 Hero 蓝色场景同频。 */

/* 站点概览 */
.ov-card {
  position: relative;
  overflow: hidden;
  padding: 13px 12px 10px;
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(30, 109, 254, .11) 0%, rgba(30, 109, 254, 0) 58%),
    linear-gradient(165deg, #eff4ff 0%, #f8fbff 52%, #eefaf4 100%);
  border-color: #e2eaf8;
}
.ov-card::before {
  content: "";
  position: absolute;
  top: -48px; right: -40px;
  width: 118px; height: 118px;
  border: 13px solid rgba(30, 109, 254, .07);
  border-radius: 50%;
  pointer-events: none;
}
.ov-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.ov-head .t { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text); }
.ov-tchip {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(145deg, #4d8bff 0%, #1e6dfe 60%, #0f56e0 100%);
  box-shadow: 0 4px 10px rgba(30, 109, 254, .3);
}
.ov-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #0c9d6c;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(18, 183, 106, .25);
}
.ov-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #12b76a;
  animation: ovPulse 1.8s ease-out infinite;
}
@keyframes ovPulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .4); }
  70% { box-shadow: 0 0 0 5px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}
.ov-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.ov-tile {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(24, 45, 84, .06);
  animation: ovIn .5s cubic-bezier(.22, .85, .35, 1) both;
  transition: transform .18s, box-shadow .18s;
}
.ov-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(24, 45, 84, .11); }
@keyframes ovIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.ov-tile.is-skel { animation: none; gap: 7px; padding: 13px 14px; }
.ov-tile-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ov-ico {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.ov-ico.a { background: #e7efff; color: #2f6fe4; }
.ov-ico.b { background: #e3f6ed; color: #0e9f6e; }
.ov-label {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-num {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.ov-num span { margin-left: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--text-4); }
/* 主指标（使用次数）：更大 + 品牌渐变数字 */
.ov-tile.is-hero .ov-num {
  font-size: 32px;
  background: linear-gradient(135deg, #2f7bff 0%, #1e5fe0 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ov-foot {
  position: relative;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed rgba(30, 109, 254, .2);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-4);
}
.ov-foot i { font-size: 11px; color: #12b76a; }
.ov-foot[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ov-tile, .ov-live i { animation: none; }
  .ov-tile { transition: none; }
}
.ov-fail {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 4px;
  font-size: 11.5px;
  color: var(--text-4);
}
.ov-fail i { font-size: 13px; }
.ov-skel { display: flex; align-items: center; gap: 8px; padding: 5px 4px; }
.ov-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }

/* 收藏 */
.fav-card-mod { padding: 11px 13px; }
.fav-head { margin-bottom: 5px; }
.fav-head .t { font-size: 13.5px; }
.fav-head .t i { font-size: 15px; color: #b19a72; }
.fav-count {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  color: var(--text-3);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
}
.fav-body { display: flex; flex-direction: column; gap: 1px; }
.fv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 3px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s;
}
.fv-item:hover { background: var(--hover); }
.fv-ico {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-3);
  background: var(--card-2);
  border: 1px solid var(--line);
}
.fv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fv-main b {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fv-main em {
  font-style: normal;
  font-size: 10px;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fv-item > i { font-size: 13px; color: var(--text-4); }
.fav-more {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-3);
  transition: color .16s;
}
.fav-more:hover { color: var(--text); }
.fav-more i { font-size: 13px; }
.fav-more[hidden] { display: none; }
.fav-empty-wrap { padding: 1px 0 0; }
.fav-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 0;
}
.fav-empty-illus { flex: 0 0 50px; width: 50px; opacity: .92; }
.fav-empty-text { flex: 1; min-width: 0; }
.fav-empty-text b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fav-empty-text em {
  margin-top: 3px;
  display: block;
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-4);
}
.fav-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 0;
}
.fav-guide-illus { flex: 0 0 62px; width: 62px; opacity: .94; }
.fav-guide-text { flex: 1; min-width: 0; }
.fav-guide-text b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fav-guide-text em {
  margin-top: 3px;
  display: block;
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-4);
}
.fav-soft-btn {
  margin-top: 8px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--card-2);
  border: 1px solid var(--line-2);
  transition: background .16s, border-color .16s, color .16s;
}
.fav-soft-btn:hover { background: #f1f5fc; border-color: #dbe4f2; color: var(--text); }
.fav-soft-btn i { font-size: 13px; color: var(--text-3); }
.fav-hint {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-4);
}
.fav-hint i { font-size: 11px; }

/* 收藏卡（工具页右栏）：右下角插画装饰 */
.fav-card { position: relative; overflow: hidden; }
/* 朴素版装饰卡：不自带背景，继承页面卡片底色 */
.side-card-plain { background: none; padding: 10px 6px 0; text-align: left; }

/* 首页侧栏深色主题 */
html[data-theme="dark"] .ov-card {
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(72, 128, 255, .15) 0%, rgba(72, 128, 255, 0) 58%),
    linear-gradient(165deg, #1a2440 0%, #161e31 52%, #14231e 100%);
  border-color: #253154;
}
html[data-theme="dark"] .ov-card::before { border-color: rgba(93, 140, 255, .09); }
html[data-theme="dark"] .ov-tchip { box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .ov-live {
  color: #3ddba0;
  background: rgba(17, 32, 27, .75);
  border-color: rgba(34, 197, 138, .3);
}
html[data-theme="dark"] .ov-tile {
  background: rgba(24, 34, 56, .92);
  border-color: rgba(255, 255, 255, .05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .ov-tile:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .42); }
html[data-theme="dark"] .ov-ico.a { background: #1c2c50; color: #7ea6f5; }
html[data-theme="dark"] .ov-ico.b { background: #173327; color: #4ecf9a; }
html[data-theme="dark"] .ov-tile.is-hero .ov-num {
  background: linear-gradient(135deg, #79adff 0%, #3d7eff 78%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="dark"] .ov-foot { border-top-color: rgba(93, 140, 255, .22); }
html[data-theme="dark"] .fav-count { background: var(--card-2); border-color: var(--line-2); }
html[data-theme="dark"] .fav-head .t i { color: #b7a37c; }
html[data-theme="dark"] .fv-ico { background: var(--card-2); border-color: var(--line-2); }
html[data-theme="dark"] .fv-item:hover { background: var(--hover); }
html[data-theme="dark"] .fav-soft-btn { background: var(--card-2); border-color: var(--line-2); color: var(--text-2); }
html[data-theme="dark"] .fav-soft-btn:hover { background: var(--hover); border-color: var(--line); color: var(--text); }

.side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tag {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--card-2);
  color: var(--text-2);
  font-size: 12px;
  transition: all .16s;
}
.side-tag:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(30, 109, 254, .26);
  transform: translateY(-1px);
}

.side-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 4px;
}
.side-deco .side-plane-img { width: 56px; margin: 0; flex: 0 0 56px; }
.side-deco-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
  letter-spacing: .3px;
  text-align: left;
}

/* 首页侧栏 5 块内容偏多，行距略收紧，1280×800 下也能整屏放下 */

/* ==========================================================================
   细节精修：图标 / 顶栏按钮 / 焦点态 / 面包屑 / 页头 / 移动抽屉 / 登录品牌区
   ========================================================================== */

/* 彩色工具图标在深色主题下降低刺眼感 */
html[data-theme="dark"] .tool-ico,
html[data-theme="dark"] .rec-ico,
html[data-theme="dark"] .scene-illus,
html[data-theme="dark"] .st-icon,
html[data-theme="dark"] .fv-ico {
  background: color-mix(in srgb, var(--c, var(--brand)) 20%, transparent);
  border-color: color-mix(in srgb, var(--c, var(--brand)) 26%, transparent);
  color: color-mix(in srgb, var(--c, var(--brand)) 68%, #ffffff);
}
html[data-theme="dark"] .side-sticky { scrollbar-color: #3a4763 transparent; }
html[data-theme="dark"] .side-sticky::-webkit-scrollbar-thumb { background: #3a4763; border-color: var(--bg); }
html[data-theme="dark"] .aside { scrollbar-color: #3a4763 transparent; }
html[data-theme="dark"] .aside::-webkit-scrollbar-thumb { background: #3a4763; border-color: var(--bg); }

/* 顶栏图标按钮改为中性色，避免黄色/红色圆点抢走视觉焦点 */
.icon-btn {
  color: var(--text-2);
  background: var(--card-2);
  border: 1px solid var(--line);
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { color: var(--brand); background: var(--brand-50); border-color: var(--brand-200); transform: rotate(12deg); }
html[data-theme="dark"] .icon-btn { background: var(--card-2); color: var(--text-2); border-color: var(--line); }
html[data-theme="dark"] .icon-btn:hover { background: var(--brand-50); color: #9dbdff; border-color: var(--brand-200); }
.icon-btn.is-logout { color: var(--text-3); }
.icon-btn.is-logout:hover { color: var(--danger); background: var(--danger-weak); border-color: #ffd2d2; transform: none; }
html[data-theme="dark"] .icon-btn.is-logout:hover { background: var(--danger-weak); color: #ff9d9d; border-color: #5a2b31; }

/* 键盘可达性 */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.tool-card:focus-visible, .list-card:focus-visible, .rec-item:focus-visible,
.rank-item:focus-visible, .scene-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 面包屑 */
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 2px 2px 0;
  font-size: 12px;
  color: var(--text-3);
}
.crumbs a { color: var(--text-3); transition: color .16s; }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: 13px; color: var(--text-4); }
.crumbs .cur { color: var(--text-2); font-weight: 500; }

/* 页面标题（个人中心等内页） */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 2px 2px;
}
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: .3px; color: var(--text); }
.page-head .ph-sub { margin-top: 7px; font-size: 13px; color: var(--text-3); }
.page-head .ph-side { font-size: 12px; color: var(--text-3); }

/* 侧栏分组标题 */
.side-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--text-4);
}
.side-group-title a { color: var(--text-4); font-weight: 500; letter-spacing: 0; }
.side-group-title a:hover { color: var(--brand); }

/* 移动端汉堡按钮与抽屉 */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  place-items: center;
  font-size: 19px;
  color: var(--text-2);
  background: var(--card-2);
  border: 1px solid var(--line);
  transition: background .16s, color .16s;
}
.nav-toggle:hover { color: var(--brand); background: var(--brand-50); }
.mobile-drawer-host { position: fixed; inset: var(--topbar-h) 0 0; z-index: 95; display: none; }
.mobile-drawer-host.show { display: block; }
.mobile-mask {
  position: absolute; inset: 0;
  background: rgba(15, 26, 46, .42);
  backdrop-filter: blur(2px);
  animation: mask-in .2s ease both;
}
.mobile-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(84vw, 340px);
  height: 100%;
  background: var(--card);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 50px rgba(17, 30, 55, .18);
  padding: 16px 14px 20px;
  overflow: hidden;
  animation: drawer-in .24s cubic-bezier(.22, .85, .35, 1) both;
}
.m-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e5 transparent;
}
.m-scroll::-webkit-scrollbar { width: 5px; }
.m-scroll::-webkit-scrollbar-thumb { background: #cbd5e5; border-radius: 5px; }
html[data-theme="dark"] .m-scroll { scrollbar-color: #3a4763 transparent; }
html[data-theme="dark"] .m-scroll::-webkit-scrollbar-thumb { background: #3a4763; }
@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { opacity: .4; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.m-user {
  display: flex; align-items: center; gap: 11px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.m-user .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, #4d8bff, var(--brand));
  color: #fff; font-size: 16px; font-weight: 700;
  display: grid; place-items: center;
}
.m-user .m-name { font-size: 14px; font-weight: 600; color: var(--text); }
.m-user .m-meta { margin-top: 3px; font-size: 11.5px; color: var(--gold-text); }
.m-user .m-meta i { margin-right: 2px; }
.m-group-title { margin: 16px 14px 7px; font-size: 11px; font-weight: 600; letter-spacing: .8px; color: var(--text-4); }
.mobile-drawer .side-nav { gap: 3px; }
.mobile-drawer .side-nav a { height: 44px; }
.mobile-drawer .m-actions { flex: 0 0 auto; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mobile-drawer .m-actions a,
.mobile-drawer .m-actions button {
  width: 100%; height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
}
.mobile-drawer .m-login { background: var(--brand); color: #fff; }
.mobile-drawer .m-center { background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); }
.mobile-drawer .m-logout { background: transparent; color: var(--text-3); }
.mobile-drawer .m-logout:hover { color: var(--danger); background: var(--danger-weak); }
body.drawer-open { overflow: hidden; }

/* 登录 / 注册页：品牌叙事 + 表单双栏 */
.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 68px;
  align-items: center;
  width: min(1080px, 100%);
}
.auth-brand { position: relative; padding: 10px 0 30px; }
.auth-brand .ab-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 12px; font-weight: 600;
  letter-spacing: .4px;
}
.auth-brand h2 {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: 48px;
  line-height: 1.28;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 1px;
}
.auth-brand .ab-desc { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--text-2); max-width: 400px; }
.auth-points { display: flex; gap: 30px; margin-top: 30px; }
.auth-points div b { display: block; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.auth-points div span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.auth-brand-illus {
  position: absolute;
  right: 4px; bottom: -6px;
  width: 150px;
  opacity: .92;
  pointer-events: none;
}
.auth-brand-illus.plane { width: 128px; right: 36px; bottom: 6px; }
.auth-brand .ab-note {
  position: absolute;
  right: 76px; top: 132px;
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-3);
  transform: rotate(-6deg);
  text-align: center;
}
.auth-brand .ab-note svg { margin: 2px auto 0; display: block; }

/* 顶栏：登录 / 注册页不再重复显示入口 */
body[data-page="login"] #authZone,
body[data-page="register"] #authZone { display: none !important; }

/* 深色：登录品牌区 / 抽屉 */
html[data-theme="dark"] .mobile-drawer { box-shadow: 18px 0 50px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .auth-brand-illus { filter: brightness(.92) saturate(.94); }
html[data-theme="dark"] .m-user { background: var(--card-2); }

/* 响应式补充 */
@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; }
  .auth-brand h2 { font-size: 38px; }
  .auth-brand-illus { width: 120px; }
  .auth-brand .ab-note { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; order: -1; }
  .topbar-inner { gap: 12px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); width: min(430px, 100%); }
  .auth-brand { display: none; }
  .site-foot .inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .site-foot .foot-slogan { margin-top: 12px; }
  .page-head { padding-top: 16px; }
  .page-head h1 { font-size: 23px; }
}
@media (max-width: 560px) {
  .user-chip .name { display: none; }
  .user-chip { padding-right: 4px; }
  .site-foot { padding: 30px 0 22px; }
  .site-foot .inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .site-foot .copy { margin-top: 22px; }
}

/* 首页骨架：与真实卡片同高，避免加载完成后的布局跳动 */
.skeleton-card { min-height: 158px; pointer-events: none; }
.skeleton-card:hover { transform: none; box-shadow: var(--shadow-xs); border-color: rgba(238, 241, 247, .9); }
html[data-theme="dark"] .skeleton-card:hover { box-shadow: var(--shadow-xs); border-color: var(--line); }
/* 工具列表页骨架：与 .list-card（实测 181~183px）等高 */
.list-card.skeleton-card { min-height: 182px; }
.list-card.skeleton-card .sk-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}
.list-card.skeleton-card .skeleton { animation-duration: 1.6s; }

/* 矮屏首页侧栏：压缩到一屏内（9 个分类 + 概览 + 收藏） */
@media (max-height: 920px) {
  .sidebar .ov-foot,
  .sidebar .fav-hint { display: none; }
}
.side-nav-home a { height: 38px; }
.side-nav-home { gap: 2px; }
body[data-page="home"] .ov-card { padding: 10px 12px 8px; }
body[data-page="home"] .ov-card .ov-tile { padding: 11px 13px 10px; gap: 5px; }
body[data-page="home"] .ov-card .ov-num { font-size: 25px; }
body[data-page="home"] .ov-card .ov-tile.is-hero .ov-num { font-size: 29px; }
body[data-page="home"] .fav-card-mod { padding: 10px 12px; }
body[data-page="home"] .fav-guide-illus { width: 50px; flex-basis: 50px; }
body[data-page="home"] .fav-soft-btn { margin-top: 6px; height: 28px; }

/* 列表页 Banner：桌面只保留顶栏搜索，移动端才使用 Banner 内搜索，避免双搜索框 */
.banner-search { display: none; }
.page-banner { min-height: 172px; padding: 28px 36px; }
@media (max-width: 900px) {
  .page-banner { min-height: 236px; padding: 24px 22px; }
  .banner-search { display: flex; }
}

/* 数据表格数字对齐 */
.data-table { font-variant-numeric: tabular-nums; }

/* 首页侧栏再收紧 20px，保证 900 高度下一屏完整（含收藏按钮） */
body[data-page="home"] .fav-card-mod { padding: 5px 12px; }
body[data-page="home"] .fav-soft-btn { margin-top: 2px; }
body[data-page="home"] .fav-empty { padding: 0 2px; }
body[data-page="home"] .side-sticky { gap: 5px; }

/* 空场景（0 个工具）：保留卡片完整性，降权且不可点击 */
.scene-card.is-empty { opacity: .68; cursor: default; }
.scene-card.is-empty:hover { transform: none; box-shadow: var(--shadow-xs); border-color: rgba(233, 240, 250, .95); }
html[data-theme="dark"] .scene-card.is-empty:hover { border-color: var(--line); }

/* 个人中心：右栏表格较长时，左侧资料/积分卡保持可见 */
@media (min-width: 901px) {
  .uc-side { position: sticky; top: calc(var(--topbar-h) + 18px); align-self: start; }
}

/* 移动端：筛选条单行横滑，避免 4 行筛选把工具列表挤出首屏 */
@media (max-width: 900px) {
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar .pill { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .list-card { padding: 14px 14px 38px; }
  .list-card .top { gap: 9px; }
  .list-card .tool-ico { width: 40px; height: 40px; border-radius: 11px; font-size: 20px; }
  .list-card h3 { font-size: 15px; }
}

/* 工具页：1200 以下把「同类 / 热门工具」移到主内容下方，移动端也能发现相关推荐 */
@media (max-width: 1200px) {
  .tool-aside {
    display: flex;
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
    padding-top: 0;
  }
  .tool-aside .card { width: 100%; }
}

/* 移动端页头：右侧辅助信息让位给标题 */
@media (max-width: 560px) {
  .page-head .ph-side { display: none; }
}

/* 移动端 Hero：热门搜索落在浅色湖面上，加半透明深色胶囊保证可读 */
@media (max-width: 900px) {
  .hero-hot {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(18, 46, 78, .34);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .hero-hot .label,
  .hero-hot a { color: #fff; }
}

/* ==========================================================================
   SEO / GEO 内容区块（服务端渲染内容；样式与现网视觉体系一致）
   ========================================================================== */

/* 列表页简介 */
.list-intro {
  margin: 12px 2px 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-3);
}

/* 首页「关于优优工具网」 */
.seo-about {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid rgba(233, 240, 250, .95);
  box-shadow: var(--shadow-xs);
}
.seo-about h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.seo-about h2::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand);
}
.seo-about p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-2);
}
.seo-about-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--brand);
}
.seo-about-more:hover { color: var(--brand-600); }

/* 工具详情页：介绍 / FAQ / 相关工具 */
.tool-seo-card { margin-top: 14px; padding: 20px 22px; }
.tool-seo-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-seo-card h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--brand);
}
.tool-seo-card h3 {
  margin: 18px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.tool-seo-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-2);
}
.tool-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 16px 0 4px;
  padding: 0;
  list-style: none;
}
.tool-facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
}
.tool-facts .tf-k { flex: 0 0 62px; color: var(--text-4); }
.tool-facts .tf-v { color: var(--text-2); min-width: 0; }
.tool-facts .tf-link { color: var(--brand); }
.tool-facts .tf-link:hover { text-decoration: underline; }
.tool-steps {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: decimal;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--text-2);
}

/* FAQ */
.tool-faq { display: grid; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  padding: 0 14px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 500;
  color: var(--text-4);
  transition: transform .16s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a {
  padding: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-3);
}

/* 相关工具 */
.tool-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tool-rel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  transition: border-color .16s, background .16s, transform .16s;
}
.tool-rel-card:hover {
  border-color: var(--brand-200);
  background: var(--hover);
  transform: translateY(-1px);
}
.tool-rel-card .tool-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.trc-body { flex: 1; min-width: 0; }
.trc-body b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trc-body em { font-style: normal; font-size: 11px; color: var(--text-4); }
.tool-rel-card > i { font-size: 14px; color: var(--text-4); }

/* 说明页 / 404 */
.page-narrow { max-width: 880px; margin: 0 auto; padding: 20px 0 40px; }
.prose {
  margin-top: 12px;
  padding: 30px 36px 34px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-2);
}
.prose h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: .3px; }
.prose h2 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; color: var(--text); }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 5px 0; }
.prose a { color: var(--brand); }
.prose a:hover { text-decoration: underline; }
.prose b { color: var(--text); }
.prose-meta { font-size: 12px; color: var(--text-4); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}
.as-item {
  padding: 14px 10px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  text-align: center;
}
.as-item b { display: block; font-size: 24px; font-weight: 800; color: var(--brand); letter-spacing: .5px; }
.as-item span { font-size: 11.5px; color: var(--text-3); }

.notfound { max-width: 720px; margin: 36px auto 10px; padding: 44px 32px 38px; text-align: center; }
.nf-illus { width: 120px; height: auto; opacity: .9; }
.nf-code { margin-top: 6px; font-size: 62px; font-weight: 800; line-height: 1; letter-spacing: 4px; color: var(--brand-200); }
.notfound h1 { margin: 10px 0 0; font-size: 20px; font-weight: 700; color: var(--text); }
.notfound p { max-width: 460px; margin: 10px auto 20px; font-size: 13px; line-height: 1.85; color: var(--text-3); }
.nf-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nf-actions .btn-primary, .nf-actions .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; flex: 0 0 auto;
  height: 40px; padding: 0 22px; border-radius: 20px; font-size: 13px;
}
.nf-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 24px; font-size: 12px; color: var(--text-4);
}
.nf-links a { color: var(--text-2); }
.nf-links a:hover { color: var(--brand); }

/* 页脚多一列「关于」/「友情链接」时保持栅格整齐 */
.site-foot .inner { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.site-foot .inner.with-links { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
.site-foot .copy .icp { color: var(--text-3); }
.site-foot .copy .icp:hover { color: var(--brand); }

/* 暗色主题 */
html[data-theme="dark"] .seo-about { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .tool-facts li,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .tool-rel-card,
html[data-theme="dark"] .as-item { background: var(--card-2); border-color: var(--line); }
html[data-theme="dark"] .tool-rel-card:hover { background: var(--hover); border-color: var(--brand-200); }
html[data-theme="dark"] .seo-about p { color: var(--text-2); }
html[data-theme="dark"] .nf-code { color: #2b4677; }

/* 响应式 */
@media (max-width: 900px) {
  .tool-facts { grid-template-columns: minmax(0, 1fr); }
  .tool-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose { padding: 22px 20px 26px; }
  .page-narrow { padding: 14px 0 30px; }
  .seo-about { padding: 16px; }
  .site-foot .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .inner.with-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tool-rel-grid { grid-template-columns: minmax(0, 1fr); }
  .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .as-item b { font-size: 19px; }
  .nf-code { font-size: 50px; }
  .notfound { padding: 30px 18px 26px; }
  .site-foot .inner,
  .site-foot .inner.with-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
