/* ============================================================
   ai.byb8.com 前台设计系统 R4「星蓝 · STELLAR BLUE」
   ------------------------------------------------------------
   深蓝品牌系：与 LOGO 品牌蓝统一，科技导航站现代极简风格。
   纯色按钮（无渐变）、无玻璃拟态、无光晕脉冲，去 AI 味。
   全局背景图：亮色=浅蓝云海网格，暗色=深空星野极光。
   三档布局：PC(≥1024) / 平板(768–1023) / 手机(<768)。
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #EEF2F9;
  --bg-2: #E4EAF5;
  --surface: rgba(255, 255, 255, .35);
  --surface-2: rgba(243, 246, 252, .45);
  --ink: #16233C;
  --ink-2: #46557A;
  --muted: #7C8AA8;
  --accent: #3D6FE0;
  --accent-strong: #2A54BE;
  --accent-deep: #1C3D93;
  --accent-soft: rgba(61, 111, 224, .08);
  --accent-soft-2: rgba(61, 111, 224, .16);
  --on-accent: #FFFFFF;
  --seal: #1C3D93;
  --seal-soft: rgba(28, 61, 147, .08);
  --ok: #2E9E6B;
  --ok-soft: rgba(46, 158, 107, .10);
  --warn: #C08A2E;
  --warn-soft: rgba(192, 138, 46, .11);
  --danger: #D6504C;
  --danger-soft: rgba(214, 80, 76, .09);
  --star: #EE9E2E;
  --border: #DEE6F1;
  --border-2: #C2CEE4;
  --header-bg: rgba(255, 255, 255, .90);
  --shadow-sm: 0 1px 2px rgba(22, 35, 60, .05);
  --shadow-md: 0 4px 14px -2px rgba(22, 35, 60, .10), 0 1px 3px rgba(22, 35, 60, .05);
  --shadow-lg: 0 18px 44px -14px rgba(22, 35, 60, .20);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1080px;
  --header-h: 64px;
  --bnav-h: 58px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  --bg-img: url("/static/img/bg/day_bg.jpg");
}

html[data-theme="dark"] {
  --bg: #0C1526;
  --bg-2: #0F1A30;
  --surface: rgba(19, 31, 56, .30);
  --surface-2: rgba(25, 39, 67, .45);
  --ink: #E7EDFB;
  --ink-2: #A5B3D4;
  --muted: #7482A6;
  --accent: #5F8BFF;
  --accent-strong: #7BA1FF;
  --accent-deep: #9FB8FF;
  --accent-soft: rgba(95, 139, 255, .12);
  --accent-soft-2: rgba(95, 139, 255, .22);
  --on-accent: #0C1526;
  --seal: #7BA1FF;
  --seal-soft: rgba(123, 161, 255, .12);
  --ok: #3FBE84;
  --ok-soft: rgba(63, 190, 132, .13);
  --warn: #D8A44E;
  --warn-soft: rgba(216, 164, 78, .13);
  --danger: #E06A64;
  --danger-soft: rgba(224, 106, 100, .13);
  --star: #F0B04A;
  --border: #22304F;
  --border-2: #33456F;
  --header-bg: rgba(12, 21, 38, .88);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .28);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 44px -12px rgba(0, 0, 0, .55);
  --bg-img: url("/static/img/bg/night_bg.jpg");
  --bg-tint: rgba(7,13,31,.55);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 全局背景图：固定一层，不随滚动，性能友好 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--bg-tint, rgba(246,249,253,.80));
  background-blend-mode: lighten;
  animation: bgKenBurns 45s ease-in-out infinite alternate;
  pointer-events: none;
}



/* 动态层：白天大光斑横扫 */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 140%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 25% at 30% 40%, rgba(91,141,239,.55), transparent 70%),
    radial-gradient(ellipse 25% 20% at 70% 60%, rgba(143,123,255,.45), transparent 70%);
  animation: bgSweep 12s ease-in-out infinite alternate;
  opacity: .85;
}
@keyframes bgSweep {
  0%   { transform: translate(-15%, 0) scale(1); }
  100% { transform: translate(15%, 5%) scale(1.15); }
}
/* 暗色：极光帘幕呼吸流动 */
html[data-theme="dark"] body::after {
  background:
    linear-gradient(90deg, transparent 10%, rgba(62,240,165,.35) 35%, rgba(143,123,255,.30) 60%, transparent 90%);
  animation: auroraBreath 8s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 1;
}
@keyframes auroraBreath {
  0%   { transform: translateX(-10%) skewX(-8deg) scaleY(1); opacity: .4; }
  50%  { opacity: .9; }
  100% { transform: translateX(10%) skewX(6deg) scaleY(1.2); opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none !important; }
}

@keyframes bgKenBurns {
  0%   { transform: scale(1.05) translate(0, 0); }
  50%  { transform: scale(1.10) translate(-1.2%, -0.8%); }
  100% { transform: scale(1.05) translate(1%, 1%); }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--accent-soft-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.dot { color: var(--muted); margin: 0 2px; }
.sep { color: var(--muted); margin: 0 8px; opacity: .6; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.main-body { padding: 26px 0 56px; min-height: 55vh; }

/* 空状态 */
.empty { text-align: center; color: var(--muted); padding: 56px 20px; font-size: 14.5px; }

/* ---------- 3. 品牌标识 / 徽章 / 标签 ---------- */
.logo-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #FFFFFF;
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  letter-spacing: 0; line-height: 1;
  box-shadow: 0 1px 2px rgba(22, 35, 60, .12);
  flex-shrink: 0;
}
html[data-theme="dark"] .logo-seal { color: #0C1526; }
.logo-word {
  font-family: var(--font-display); font-size: 19px; font-weight: 800;
  letter-spacing: .01em; color: var(--ink); white-space: nowrap;
}

.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1;
  white-space: nowrap; letter-spacing: .02em;
}
.badge-free, .badge-green { background: var(--ok-soft); color: var(--ok); }
.badge-freemium, .badge-amber { background: var(--warn-soft); color: var(--warn); }
.badge-paid, .badge-blue { background: var(--accent-soft); color: var(--accent); }
.badge-gray { background: var(--bg-2); color: var(--ink-2); }
.badge-red { background: var(--danger-soft); color: var(--danger); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 6px; font-size: 12px; line-height: 1;
  background: var(--bg-2); color: var(--ink-2); white-space: nowrap;
}
.tag-cat { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* ---------- 4. 按钮（纯色系） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--surface);
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s, transform .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(22, 35, 60, .14);
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 9px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.btn-clear { color: var(--danger); border-color: var(--border-2); background: var(--surface); }
.btn-clear:hover { border-color: var(--danger); color: var(--danger); }

/* ---------- 5. 提示条 ---------- */
.alert, .flash {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 16px; border-radius: 8px;
  font-size: 14px; line-height: 1.6; margin: 0 0 18px;
  border: 1px solid transparent;
}
.alert-ok, .flash-ok { background: var(--ok-soft); color: var(--ok); }
.alert-err, .flash-error, .flash-err { background: var(--danger-soft); color: var(--danger); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- 6. 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 34px 0 6px; }
.pg-num, .pg-btn, .pg-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; min-width: 34px; padding: 0 8px;
  border-radius: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.pg-num { background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); transition: border-color .15s, color .15s; }
a.pg-num:hover { border-color: var(--accent); color: var(--accent); }
.pg-num.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pg-btn { gap: 4px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); font-size: 13px; }
a.pg-btn:hover { border-color: var(--accent); color: var(--accent); }
.pg-btn svg { width: 13px; height: 13px; }
.pg-btn.is-disabled { opacity: .45; cursor: default; }
.pg-ellipsis { color: var(--muted); border: 0; }
.pager-info { color: var(--muted); font-size: 13px; }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 2px 0 18px; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.breadcrumb a { color: var(--ink-2); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 8. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo-img { height: 32px; width: auto; display: block; }
html[data-theme="dark"] .site-logo-img-light { display: none; }
html[data-theme="light"] .site-logo-img-dark { display: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #FFFFFF;
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  box-shadow: 0 1px 2px rgba(22, 35, 60, .12);
}
html[data-theme="dark"] .logo-mark { color: #0C1526; }
.logo-text { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.logo-text small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: 0; }
.main-nav a {
  position: relative; padding: 8px 13px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.4;
  transition: color .15s, background-color .15s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-2); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 0; flex-shrink: 0; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* 汉堡按钮（平板与手机） */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 4.5px;
  width: 38px; height: 38px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer;
}
.burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; opacity: 1 !important; }
.burger { background: var(--surface); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 菜单按钮：SVG 汉堡图标显式样式（兼容 SVG/span 两种结构） */
.burger svg { display: block; width: 20px; height: 16px; color: var(--ink); }
.burger { color: var(--ink); }
.burger svg path { stroke: currentColor; }
.burger.open svg { opacity: .85; }

/* 移动端抽屉菜单 */
.mobile-nav { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.mobile-nav.open { visibility: visible; }
.mn-mask {
  position: absolute; inset: 0; background: rgba(10, 18, 34, .46);
  opacity: 0; transition: opacity .22s;
}
.mobile-nav.open .mn-mask { opacity: 1; }
.mn-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 296px; max-width: 86vw;
  background: var(--surface); border-left: 1px solid var(--border);
  transform: translateX(102%); transition: transform .24s ease;
  display: flex; flex-direction: column; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-nav.open .mn-panel { transform: none; }
.mn-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.mn-head .site-logo-img { height: 28px; }
.mn-close {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--ink-2); font-size: 19px; line-height: 1; cursor: pointer;
}
.mn-link {
  display: block; padding: 12px 12px; margin: 2px 0; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.mn-link:hover { background: var(--bg-2); color: var(--ink); }
.mn-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------- 9. 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--accent); opacity: .9; pointer-events: none;
}
.hero-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 60px 24px 56px;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center;
}
.hero-kicker, .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent);
}
.hero-kicker::before, .kicker::before { content: ""; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; opacity: .8; }
.hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 14px; line-height: 1.28; }
.hero h1 .hl { font-style: normal; color: var(--accent); box-shadow: inset 0 -0.32em 0 var(--accent-soft); }
.hero-sub { font-size: 16px; color: var(--ink-2); max-width: 30em; }
.hero-search {
  position: relative; margin-top: 26px; max-width: 520px;
  display: flex;
}
.hero-search input {
  width: 100%; height: 52px; padding: 0 118px 0 18px;
  border: 1px solid var(--border-2); border-radius: 10px;
  background: var(--surface); font-size: 15px; color: var(--ink);
  box-shadow: var(--shadow-md); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2), var(--shadow-md); }
.hero-search button {
  position: absolute; top: 6px; right: 6px; bottom: 6px;
  padding: 0 22px; border: 0; border-radius: 7px;
  background: var(--accent); color: var(--on-accent);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: background-color .15s;
}
.hero-search button:hover { background: var(--accent-strong); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-tags a {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--ink-2);
  transition: border-color .15s, color .15s, background-color .15s;
}
.hero-tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Hero 右侧面板：最新工具 */
.hero-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px 18px 6px;
}
.hp-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; border-bottom: 1px solid var(--border); }
.hp-title { font-size: 15.5px; font-weight: 800; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; }
.hp-title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.hp-more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.hp-more:hover { color: var(--accent); }
.hp-list { display: flex; flex-direction: column; }
.hp-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 9px;
  transition: background-color .15s;
}
.hp-item:hover { background: var(--surface-2); }
.hp-idx { font-size: 12.5px; font-weight: 700; color: var(--muted); width: 20px; text-align: center; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.hp-ic, .pick-mark, .tool-card-mark {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  font-size: 16px; font-weight: 700;
  background: var(--bg-2); color: var(--ink-2);
  overflow: hidden; border: 1px solid var(--border);
}
.hp-ic img, .pick-mark img, .tool-card-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hp-ic.has-glyph, .pick-mark.has-glyph, .tool-card-mark.has-glyph { font-size: 19px; }
.hp-body { flex: 1; min-width: 0; }
.hp-name { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-meta { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px dashed var(--border-2); margin: 10px -18px 0; padding: 14px 18px 12px;
}
.hp-stat { text-align: center; position: relative; display: flex; flex-direction: column; gap: 2px; }
.hp-stat + .hp-stat::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.hp-stat span { font-size: 12px; color: var(--muted); order: 1; }
.hp-stat b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.3; order: 2; }

/* 字母头像分色（mark-c0..5，品牌色可由内联样式覆盖） */
.mark-c0 { background: #3D6FE0; color: #FFFFFF; border-color: transparent; }
.mark-c1 { background: #37A3A3; color: #FFFFFF; border-color: transparent; }
.mark-c2 { background: #E2A03C; color: #FFFFFF; border-color: transparent; }
.mark-c3 { background: #6E7FE8; color: #FFFFFF; border-color: transparent; }
.mark-c4 { background: #3E8EBC; color: #FFFFFF; border-color: transparent; }
.mark-c5 { background: #8B6FD8; color: #FFFFFF; border-color: transparent; }
html[data-theme="dark"] .mark-c0 { background: #4E7CE8; }
html[data-theme="dark"] .mark-c1 { background: #3AAFA9; }
html[data-theme="dark"] .mark-c2 { background: #E5AB4B; }
html[data-theme="dark"] .mark-c3 { background: #7B8CF0; }
html[data-theme="dark"] .mark-c4 { background: #4D9CCD; }
html[data-theme="dark"] .mark-c5 { background: #977DE0; }

/* ---------- 10. 区块通用 ---------- */
.section { margin-top: 52px; }
.section-alt {
  margin-top: 52px; padding: 40px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.section-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.section-head p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.more-link { flex-shrink: 0; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.more-link:hover { color: var(--accent); }
.section-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.section-cols .col { min-width: 0; }

/* ---------- 11. 分类导航 / 标签页 ---------- */
.cat-flow { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s, background-color .15s;
}
.cat-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.cc-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; color: #FFFFFF;
}
.cc-ic svg { width: 15px; height: 15px; }
.catm-0 { background: #3D6FE0; } .catm-1 { background: #37A3A3; } .catm-2 { background: #E2A03C; }
.catm-3 { background: #6E7FE8; } .catm-4 { background: #3E8EBC; } .catm-5 { background: #8B6FD8; }
html[data-theme="dark"] .catm-0 { background: #4E7CE8; } html[data-theme="dark"] .catm-1 { background: #3AAFA9; }
html[data-theme="dark"] .catm-2 { background: #E5AB4B; } html[data-theme="dark"] .catm-3 { background: #7B8CF0; }
html[data-theme="dark"] .catm-4 { background: #4D9CCD; } html[data-theme="dark"] .catm-5 { background: #977DE0; }
.cat-svg { display: inline-flex; }
.cat-svg svg { width: 15px; height: 15px; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; }
.cat-tab {
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-2);
  transition: border-color .15s, color .15s, background-color .15s;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- 12. 本周精选（PC 三卡同行，卡片紧凑） ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.pick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pick-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.pick-card h3 { font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.pick-meta { font-size: 12px; color: var(--muted); }
.pick-intro { font-size: 13px; color: var(--ink-2); line-height: 1.65; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pick-card .btn { margin-top: 12px; height: 34px; font-size: 13px; }

/* 评分（数字 + 星级） */
.tool-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.tool-rating b { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.star { color: var(--border-2); font-size: 12px; line-height: 1; }
.star.on { color: var(--star); }
.star.half { position: relative; color: var(--border-2); }
.star.half::before { content: "★"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--star); }

/* ---------- 13. 数据横幅 ---------- */
.data-banner {
  margin-top: 52px; padding: 26px 32px;
  border-radius: var(--radius-lg);
  background: #16233C; color: rgba(238, 244, 255, .92);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
html[data-theme="dark"] .data-banner { background: var(--surface); border: 1px solid var(--border); color: var(--ink); box-shadow: var(--shadow-sm); }
.db-title { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.db-title b { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.db-title span { font-size: 12.5px; opacity: .55; }
.db-item { text-align: center; min-width: 96px; }
.db-item b { display: block; font-size: 31px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; color: #8FB0FF; }
html[data-theme="dark"] .db-item b { color: var(--accent); }
.db-item span { font-size: 12.5px; opacity: .6; }

/* ---------- 14. 工具卡片 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.tool-card-mark { width: 44px; height: 44px; border-radius: 10px; font-size: 18px; }
.tool-card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tool-title { font-size: 15.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.tool-intro {
  font-size: 13px; color: var(--ink-2); line-height: 1.65; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.tool-foot .tag { font-size: 11.5px; height: 21px; }
.tool-go {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.tool-go::after { content: "→"; font-size: 13px; transition: transform .15s; }
.tool-card:hover .tool-go::after { transform: translateX(3px); }

/* ---------- 15. 行列表（提示词 / 资讯） ---------- */
.row-list { display: flex; flex-direction: column; gap: 6px; }
.row-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.row-item:hover { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.row-ico {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
}
.row-ico svg { width: 17px; height: 17px; }
.row-body { flex: 1; min-width: 0; }
.row-body h3 { font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-item:hover h3 { color: var(--accent); }
.row-excerpt { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.news-row .row-ico { background: var(--seal-soft); color: var(--seal); }

/* ---------- 16. 工具箱 CTA ---------- */
.cta-card {
  padding: 36px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px dashed var(--border-2);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cta-copy { flex: 1 1 320px; }
.cta-copy h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; }
.cta-copy p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.cta-tools { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 300px; }
.cta-chip {
  padding: 7px 15px; border-radius: 999px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.cta-chip:hover { border-color: var(--accent); color: var(--accent); }
.cta-card .btn { flex-shrink: 0; }

/* ---------- 17. 列表页头（面板化） ---------- */
.page-hero {
  padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.ph-inner h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.ph-kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.page-sub { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.page-sub b { color: var(--accent); font-weight: 800; background: var(--accent-soft); padding: 1px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.page-sub .more-link { margin-left: 6px; color: var(--accent); }
/* 流程徽标链（如广告合作步骤） */
.flow-tags { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.flow-tags i { font-style: normal; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12.5px; }
.flow-tags i:last-child { background: var(--accent); color: var(--on-accent); }
.flow-tags em { font-style: normal; color: var(--border-2); font-size: 12px; }
.ph-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ph-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.ph-stat {
  min-width: 118px; padding: 12px 18px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.ph-stat b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--accent); line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-stat span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- 18. 列表布局（侧栏 + 主区） ---------- */
.tools-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; margin-top: 26px; align-items: start; }
.tools-side { position: sticky; top: calc(var(--header-h) + 18px); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; box-shadow: var(--shadow-sm); }
.side-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); padding: 4px 10px 10px; }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); line-height: 1.4;
  transition: background-color .15s, color .15s;
}
.side-link:hover { background: var(--bg-2); color: var(--ink); }
.side-link.current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-link .cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-link.current .cnt { color: var(--accent); }

.tools-main { min-width: 0; }
.tools-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.tools-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ink-2);
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tools-count b { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.list-search { display: flex; gap: 8px; }
.list-search input {
  width: 240px; max-width: 60vw; height: 38px; padding: 0 14px;
  border: 1px solid var(--border-2); border-radius: 8px;
  background: var(--surface); font-size: 13.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.list-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.list-search button {
  height: 38px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.list-search button:hover { background: var(--accent-strong); }
.search-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- 19. 提示词卡片 ---------- */
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.prompt-card {
  padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.prompt-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.pc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
}
.pc-ico svg { width: 16px; height: 16px; }
.pc-title { font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.pc-excerpt {
  font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-top: -4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 41px;
}
.pc-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.pc-usages { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 20. 资讯卡片 ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.art-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.art-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.art-thumb { aspect-ratio: 16 / 9; background: var(--bg-2); position: relative; overflow: hidden; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.art-card:hover .art-thumb img { transform: scale(1.04); }
.art-thumb-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: var(--muted); opacity: .45;
}
.art-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.art-body h3 { font-size: 15px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-card:hover .art-body h3 { color: var(--accent); }
.art-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.art-go { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- 21. 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 20px; align-items: start; }
.detail-main {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 34px; min-width: 0;
  box-shadow: var(--shadow-sm);
}
.detail-head h1 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.detail-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.copy-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 22px;
  border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background-color .15s;
}
.copy-btn:hover { background: var(--accent-strong); }
.copy-btn.copied { background: var(--ok); }
.copy-tip { font-size: 13px; color: var(--ok); opacity: 0; transition: opacity .2s; }
.copy-tip.show { opacity: 1; }

.prompt-box {
  margin-top: 20px; padding: 20px 22px;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  color: var(--ink); user-select: all;
}
.prompt-example { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.prompt-example-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.prompt-example-head h2 { font-size: 17px; font-weight: 800; }
.prompt-example-head .muted { font-size: 12.5px; }
.prompt-example-figure { margin: 0 0 14px; }
.prompt-example-figure img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.prompt-example-figure figcaption { font-size: 12px; margin-top: 7px; }
.prompt-example-body { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.prompt-example-body p { margin: 0 0 10px; }

.detail-content { margin-top: 20px; font-size: 15.5px; line-height: 1.9; color: var(--ink); }
.detail-content p { margin: 0 0 15px; }
.detail-content p:last-child { margin-bottom: 0; }
.detail-content p.content-h {
  font-size: 18px; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink); margin: 26px 0 12px; padding-left: 12px;
  border-left: 3px solid var(--accent); line-height: 1.5;
}
.detail-content p.content-h:first-child { margin-top: 4px; }
.detail-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-soft-2); }
.detail-content a:hover { text-decoration-color: var(--accent); }
.detail-content strong, .detail-content b { font-weight: 700; color: var(--ink); }
.detail-content ul, .detail-content ol { margin: 0 0 15px; padding-left: 24px; }
.detail-content li { margin: 4px 0; }
.detail-content blockquote {
  margin: 0 0 15px; padding: 12px 18px;
  background: var(--surface-2); border-left: 3px solid var(--border-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.detail-content blockquote p:last-child { margin-bottom: 0; }
.detail-content code {
  font-family: var(--mono); font-size: .9em;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; color: var(--ink);
}
.detail-content pre {
  margin: 0 0 15px; padding: 14px 16px; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.detail-content pre code { background: none; border: 0; padding: 0; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 0 0 15px; font-size: 14px; }
.detail-content th, .detail-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.detail-content th { background: var(--surface-2); font-weight: 600; }
.detail-content img { border-radius: var(--radius-sm); border: 1px solid var(--border); max-width: 100%; height: auto; }
.detail-content hr { border: 0; border-top: 1px dashed var(--border-2); margin: 22px 0; }

.detail-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 18px); }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.aside-card h4 { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.block-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.aside-kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.aside-kv:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-kv span { color: var(--muted); flex-shrink: 0; }
.aside-kv b, .aside-kv span:last-child { color: var(--ink); font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.aside-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
}
.aside-link:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-link:hover { color: var(--accent); }
.aside-link b { color: var(--muted); font-family: var(--mono); font-size: 12.5px; font-weight: 600; flex-shrink: 0; padding-top: 1px; }
.aside-link span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 22. 在线工具箱 ---------- */
.tb-wrap { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 24px; margin-top: 26px; align-items: start; }
.tb-nav {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-h) + 18px);
}
.tb-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.tb-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.tb-nav a:hover { background: var(--bg-2); color: var(--ink); }
.tb-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tb-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; min-width: 0;
  box-shadow: var(--shadow-sm);
}
.tb-panel h3 { font-size: 19px; font-weight: 800; }
.tb-tip { font-size: 13px; color: var(--muted); margin: 8px 0 14px; line-height: 1.7; }
.tb-input {
  width: 100%; padding: 12px 14px; margin-bottom: 4px;
  border: 1px solid var(--border-2); border-radius: 9px;
  background: var(--surface-2); color: var(--ink);
  font-size: 13.5px; line-height: 1.7; outline: none; resize: vertical;
  font-family: var(--mono);
  transition: border-color .15s, box-shadow .15s;
}
.tb-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); background: var(--surface); }
textarea.tb-input { min-height: 130px; }
input.tb-input { min-height: 44px; }
.result-box { margin-top: 14px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.form-actions label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.form-actions input[type="range"] { accent-color: var(--accent); }
.form-actions input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.form-actions input[type="number"] { width: 74px; height: 32px; padding: 0 8px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface-2); font-size: 13.5px; outline: none; }
.form-actions input[type="color"] { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface); cursor: pointer; }
.code-area { font-family: var(--mono); font-size: 12.5px; }

/* ---------- 23. 步骤条 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; }
.steps-centered { max-width: 880px; margin-left: auto; margin-right: auto; }
.step {
  display: flex; flex-direction: column; gap: 3px;
  padding: 18px 18px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 26px; height: 26px; border-radius: 7px; margin-bottom: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.step b { font-size: 14.5px; font-weight: 700; }
.step p { font-size: 12.5px; color: var(--muted); }

/* ---------- 24. 赞助 ---------- */
.donate-card {
  max-width: 620px; margin: 30px auto 0; padding: 34px 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.donate-icon {
  width: 52px; height: 52px; border-radius: 999px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--seal-soft); color: var(--seal);
  font-size: 24px; font-weight: 800;
}
.donate-card h2 { text-align: center; font-size: 21px; font-weight: 800; }
.donate-ok { text-align: center; color: var(--ok); font-size: 14px; }
.donate-error {
  text-align: center; font-size: 13.5px; color: var(--warn);
  background: var(--warn-soft); border-radius: 8px; padding: 10px 14px; line-height: 1.7;
}
.donate-submit { text-align: center; }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.amount-item { position: relative; display: block; cursor: pointer; }
.amount-item input { position: absolute; opacity: 0; pointer-events: none; }
.amount-item span {
  display: flex; align-items: center; justify-content: center;
  height: 46px; border-radius: 9px; border: 1px solid var(--border-2);
  background: var(--surface-2); font-size: 15px; font-weight: 800; color: var(--ink-2);
  transition: border-color .15s, color .15s, background-color .15s;
}
.amount-item input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.amount-custom { margin-top: 10px; }
.amount-custom input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border-2); border-radius: 9px;
  background: var(--surface-2); font-size: 14px; outline: none;
}
.amount-custom input:focus { border-color: var(--accent); }
.pay-types { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-type {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--surface-2);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: border-color .15s, color .15s, background-color .15s;
}
.pay-type input { position: absolute; opacity: 0; pointer-events: none; }
.pay-type:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* USDT 收款 */
.usdt-card { text-align: center; }
.usdt-qr { display: flex; justify-content: center; padding: 18px; margin: 18px auto 6px; background: #FFFFFF; border-radius: var(--radius); width: fit-content; border: 1px solid var(--border); }
.usdt-qr img, .usdt-qr canvas { display: block; }
.usdt-addr-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.usdt-addr {
  font-family: var(--mono); font-size: 13px; word-break: break-all;
  background: var(--surface-2); border: 1px dashed var(--border-2);
  border-radius: 9px; padding: 12px 14px; color: var(--ink);
}
.usdt-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.usdt-box { display: flex; gap: 24px; align-items: flex-start; margin-top: 16px; flex-wrap: wrap; }
.usdt-box .usdt-qr { margin: 0; }
.usdt-addr { text-align: left; flex: 1; min-width: 240px; }
.usdt-address { background: transparent; border: 0; padding: 0; }
.usdt-actions { justify-content: flex-start; }

/* ---------- 25. 广告合作 ---------- */
.adbuy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; margin-top: 26px; align-items: start; }
.adbuy-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.adbuy-positions { display: flex; flex-direction: column; gap: 10px; }
.adbuy-positions label.adbuy-card {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 17px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--border-2); box-shadow: none; background: var(--surface-2);
  transition: border-color .15s, background-color .15s;
}
.adbuy-positions label.adbuy-card:hover { border-color: var(--accent); }
.adbuy-positions label.adbuy-card.on { border-color: var(--accent); background: var(--accent-soft); }
.adbuy-positions label.adbuy-card b { font-size: 14.5px; }
.adbuy-positions label.adbuy-card .dur-price { flex-shrink: 0; text-align: right; font-size: 19px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.adbuy-form { position: sticky; top: calc(var(--header-h) + 18px); }
.adbuy-form .tb-input { min-height: 46px; margin-bottom: 0; font-family: var(--font); }
.adbuy-form textarea.tb-input { min-height: 74px; }
.adbuy-durs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dur-item {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 13px 15px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--surface-2);
  transition: border-color .15s, background-color .15s;
}
.dur-item input { position: absolute; opacity: 0; pointer-events: none; }
.dur-item b { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dur-item .dur-price { font-size: 15px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.dur-item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.dur-item:has(input:checked) b, .dur-item:has(input:checked) .dur-price { color: var(--accent); }
.adbuy-price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 4px; font-size: 13px; color: var(--muted); }
.adbuy-price b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.adbuy-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-radius: 9px; margin: 10px 0 16px;
  background: var(--accent-soft); font-size: 13.5px; color: var(--ink-2);
}
.adbuy-total .total-num { font-size: 21px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.result-icon {
  width: 54px; height: 54px; border-radius: 999px; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.result-icon svg { width: 25px; height: 25px; }
.result-closed .result-icon { background: var(--warn-soft); color: var(--warn); }
.result-wait { text-align: center; color: var(--warn); font-size: 14px; }
.adbuy-card h2 { text-align: center; font-size: 21px; font-weight: 800; }

/* ---------- 26. 广告位 ---------- */
.ad-block { margin: 26px auto 0; max-width: var(--wrap); padding: 0 16px; box-sizing: border-box; }
@media (max-width: 767px) { .ad-block { padding: 0 12px; } }
.ad-block:empty { display: none; }
.ad-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.ad-item + .ad-item { margin-top: 10px; }
.ad-tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-size: 10.5px; line-height: 1; padding: 4px 7px;
  border-radius: 0 0 8px 0; background: rgba(22, 35, 60, .5); color: #FFFFFF;
}
.ad-item img.ad-img-banner, .ad-item img { display: block; width: 100%; height: auto; border-radius: inherit; }

/* ---------- 27. 404 ---------- */
.notfound { text-align: center; padding: 64px 20px 40px; }
.notfound-code {
  font-size: clamp(72px, 14vw, 120px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 2px var(--border-2);
  font-variant-numeric: tabular-nums;
}
.notfound h1 { font-size: 24px; margin-top: 18px; }
.notfound p { color: var(--muted); font-size: 14.5px; max-width: 26em; margin: 10px auto 0; }
.notfound-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- 28. 页脚（多栏） ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 24px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 38px 24px 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
}
.footer-col { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  font-size: 13.5px; font-weight: 800;
  letter-spacing: .06em; color: var(--ink); margin: 0 0 4px;
}
.footer-col a { font-size: 13.5px; color: var(--muted); transition: color .15s; width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .site-logo-img { height: 28px; }
.footer-brand .logo-seal { width: 26px; height: 26px; font-size: 12px; }
.footer-brand .logo-word { font-size: 16px; }
.footer-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-top: 2px; max-width: 30em; }
.footer-fine { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 30em; }
.footer-legal {
  margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-legal-note { font-size: 12px; opacity: .8; }
/* 兼容旧结构（404 页） */
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { font-size: 13.5px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- 29. 移动端底部导航 ---------- */
.bottom-nav { display: none; }

/* ============================================================
   响应式：平板（768–1023）
   ============================================================ */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger { display: flex; margin-left: auto; }
  .header-actions { margin-left: auto; }
  .header-inner { gap: 14px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 44px 24px 46px; }
  .hero-panel { max-width: 640px; }

  .section-alt { padding: 30px 24px; }
  .section-cols { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .pick-grid, .art-grid { grid-template-columns: repeat(2, 1fr); }
  .prompt-grid { grid-template-columns: repeat(2, 1fr); }

  .tools-layout { grid-template-columns: 1fr; gap: 16px; }
  .tools-layout > * { min-width: 0; }
  .tools-side { position: static; min-width: 0; }
  .side-card { padding: 10px; min-width: 0; }
  .side-title { padding: 4px 8px 8px; }
  .side-links { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; min-width: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .side-links::-webkit-scrollbar { display: none; }
  .side-link { white-space: nowrap; border: 1px solid var(--border); flex-shrink: 0; padding: 7px 12px; border-radius: 999px; font-size: 13px; }
  .side-link.current { border-color: transparent; }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .detail-main { padding: 24px 22px; }

  .tb-wrap { grid-template-columns: 1fr; gap: 14px; }
  .tb-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 8px; }
  .tb-nav::-webkit-scrollbar { display: none; }
  .tb-nav a { white-space: nowrap; flex-shrink: 0; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
  .tb-nav a.on { border-color: transparent; }
  .tb-panel { padding: 22px 20px; }

  .adbuy-layout { grid-template-columns: 1fr; }
  .adbuy-form { position: static; }

  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   响应式：手机（<768）
   ============================================================ */
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .main-body { padding: 18px 0 40px; }
  .header-inner { padding: 0 16px; }
  .site-logo-img { height: 28px; }
  .theme-toggle { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
  .logo-seal { width: 27px; height: 27px; font-size: 12.5px; }
  .logo-word { font-size: 17px; }

  .hero-inner { padding: 36px 16px 38px; gap: 32px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .hero-sub { font-size: 14.5px; }
  .hero-search input { height: 48px; padding-right: 98px; font-size: 14px; }
  .hero-search button { padding: 0 18px; font-size: 13.5px; }
  .hero-panel { padding: 14px 14px 4px; }
  .hp-item { padding: 9px 6px; }
  .hp-ic { width: 34px; height: 34px; border-radius: 8px; }
  .hp-foot { margin: 8px -14px 0; padding: 12px 14px 10px; }
  .hp-stat b { font-size: 19px; }

  .section { margin-top: 38px; }
  .section-alt { margin-top: 38px; padding: 24px 18px; }
  .section-head { margin-bottom: 16px; padding-bottom: 12px; }
  .section-head h2 { font-size: 19.5px; }

  .pick-grid { grid-template-columns: 1fr; gap: 12px; }
  .pick-intro { min-height: 0; }
  .data-banner { margin-top: 38px; padding: 16px 14px; display: flex; align-items: center; gap: 6px; }
  .db-title { flex: 0 0 auto; margin-right: auto; padding-right: 8px; }
  .db-title b { font-size: 14px; }
  .db-title span { font-size: 10.5px; }
  .db-item { flex: 1; min-width: 0; text-align: center; }
  .db-item b { font-size: 20px; }
  .db-item span { font-size: 10.5px; white-space: nowrap; }

  .tool-grid { grid-template-columns: 1fr; gap: 12px; }
  .prompt-grid { grid-template-columns: 1fr; gap: 10px; }
  .pc-title { min-height: 0; }
  .art-grid { grid-template-columns: 1fr; gap: 12px; }

  .cat-tabs { gap: 7px; padding-right: 52px; }
  .cat-tab { padding: 6px 13px; font-size: 13px; }
  .hero-tags, .cat-flow { justify-content: center; }
  .cat-chip { padding: 7px 13px 7px 8px; font-size: 13.5px; }

  .list-search { width: 100%; }
  .list-search input { flex: 1; width: auto; max-width: none; }
  .tools-bar { gap: 10px; }

  .page-hero { padding: 18px 16px; border-radius: var(--radius); }
  .ph-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
  .ph-stat { min-width: 0; padding: 10px 12px; text-align: center; }
  .ph-stat b { font-size: 17px; }
  .flow-tags i { padding: 3px 10px; font-size: 12px; }

  .detail-main { padding: 20px 16px; border-radius: var(--radius); }
  .detail-aside { grid-template-columns: 1fr; }
  .detail-actions { flex-wrap: wrap; }
  .copy-btn { flex: 1; justify-content: center; }

  .tb-panel { padding: 18px 15px; }
  .tb-panel h3 { font-size: 17px; }
  .form-actions .btn { flex: 1 1 auto; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .step { padding: 15px 13px 13px; min-height: 116px; align-items: center; text-align: center; }
  .step-num { width: 24px; height: 24px; font-size: 12px; }
  .step b { font-size: 13.5px; }
  .step p { font-size: 12px; line-height: 1.6; }

  .donate-card { padding: 24px 18px; margin-top: 20px; }
  .donate-amounts { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .adbuy-card { padding: 18px 16px; }
  .adbuy-durs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .adbuy-positions label.adbuy-card { flex-wrap: wrap; }
  .usdt-box { gap: 14px; }

  .footer-inner { padding: 26px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; gap: 4px; }

  /* 底部导航 */
  .bottom-nav {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bnav-grid { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--bnav-h); }
  .bnav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10.5px; color: var(--muted); position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .bnav-item svg { width: 21px; height: 21px; }
  .bnav-item.active { color: var(--accent); font-weight: 600; }
  .bnav-item.active::before {
    content: ""; position: absolute; top: 0; width: 18px; height: 2.5px;
    border-radius: 0 0 3px 3px; background: var(--accent);
  }

  .pager { gap: 6px; margin-top: 26px; }
  .pg-btn span { display: none; }
  .pg-btn { min-width: 38px; height: 38px; }
  .pg-num { height: 38px; min-width: 38px; }
}

/* 超小屏（<380）：步骤条保持 2×2 四方格，仅压缩内部 */
@media (max-width: 379px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .step { padding: 12px 10px 10px; min-height: 0; }
  .step-num { width: 22px; height: 22px; font-size: 11.5px; }
  .step b { font-size: 13px; }
  .step p { font-size: 11px; line-height: 1.55; }
  .hp-foot { grid-template-columns: repeat(3, 1fr); }
  .hp-stat span { font-size: 11px; }
}

/* 动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   细节润色层（R4e+）
   ============================================================ */
/* 本周精选按钮通栏，三卡更整齐 */
.pick-card .btn { display: flex; width: 100%; justify-content: center; }

/* 详情页表格窄屏横向滚动，防溢出 */
.detail-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 768px) {
  .detail-content table { display: table; }
}

/* 底部导航按压反馈 */
.bnav-item:active { transform: scale(.94); }

/* 卡片图片占位更精致 */
.art-thumb-ph { letter-spacing: .02em; }

/* 工具卡 hover 时图标微放大（仅装饰） */
.tool-card:hover .tool-card-mark { transform: scale(1.04); }
.tool-card-mark, .pick-mark, .hp-ic { transition: transform .18s ease; }

/* 区块标题与小标题层级 */
.section-head .kicker { margin-bottom: 6px; }

/* hero 标签胶囊点击反馈 */
.hero-tags a:active, .cat-chip:active, .cat-tab:active, .cta-chip:active { transform: scale(.96); }
.hero-tags a, .cat-chip, .cat-tab, .cta-chip { transition: transform .12s ease, border-color .15s, color .15s, background-color .15s; }

/* 分页按钮统一最小宽度防跳动 */
.pg-num, .pg-btn { font-variant-numeric: tabular-nums; }

/* 空搜索/空列表态间距 */
.search-empty { padding: 18px 16px; }

/* 提示词卡片标题字号与行高微调（多行更稳） */
.pc-title { font-size: 14px; letter-spacing: .01em; }

/* 移动端 hero 搜索按钮圆角一致 */
.hero-search button { -webkit-tap-highlight-color: transparent; }

/* 广告位卡片价格行基线对齐 */
.adbuy-positions label.adbuy-card .dur-price { align-self: center; }


/* ---------- 液态毛玻璃 Glassmorphism v2 ---------- */
.hp-stat, .latest-tools, .data-banner, .tool-card, .tool-item, .cat-panel, .ad-card,
.ph-step, .ph-panel, .prompt-card, .news-card, .box, .panel, .card,
.list-search input, .tool-search input, .form-input, .search-box,
.cat-chip, .cat-tab, .pg-btn, .pg-num, .btn-clear {
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
}
/* 液态玻璃：顶部高光 + 内渐变 + 半透白边 */
.latest-tools, .data-banner, .tool-card, .tool-item, .cat-panel, .ad-card, .ph-step, .ph-panel,
.prompt-card, .news-card, .box, .panel, .card {
  background-image: linear-gradient(135deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 50%);
  border: 1px solid rgba(255,255,255,.45) !important;
  box-shadow: 0 8px 32px rgba(31,38,135,.15), inset 0 1px 0 rgba(255,255,255,.5);
}
html[data-theme="dark"] .latest-tools,
html[data-theme="dark"] .data-banner,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .tool-item,
html[data-theme="dark"] .cat-panel,
html[data-theme="dark"] .ad-card,
html[data-theme="dark"] .ph-step,
html[data-theme="dark"] .ph-panel,
html[data-theme="dark"] .box,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card {
  background-image: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 50%);
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.15);
}
.site-header, .header-inner {
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  backdrop-filter: blur(28px) saturate(200%);
}
.btn {
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  backdrop-filter: blur(10px) saturate(180%);
}


/* ---------- 工具详情页 ---------- */
.tool-detail-head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.tool-detail-mark { width: 72px; height: 72px; border-radius: 18px; flex: 0 0 auto; }
.tool-detail-info { min-width: 0; }
.tool-detail-info h1 { font-size: 26px; margin-bottom: 8px; }
.tool-detail-body { padding: 22px 0 6px; }
.tool-detail-body h2 { font-size: 16px; color: var(--ink-2); margin: 22px 0 10px; }
.tool-detail-body h2:first-child { margin-top: 0; }
.tool-detail-intro { font-size: 15px; line-height: 1.8; color: var(--ink); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tags .tag { padding: 5px 12px; font-size: 13px; }
.detail-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .tool-detail-head { gap: 14px; }
  .tool-detail-mark { width: 56px; height: 56px; border-radius: 14px; }
  .tool-detail-info h1 { font-size: 21px; }
  .tool-grid { grid-template-columns: 1fr !important; }
}


/* ---------- 顶栏搜索框 ---------- */
.header-search { display: flex; align-items: center; margin-left: auto; }
.header-search input {
  width: 220px; height: 36px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: 18px 0 0 18px; background: var(--bg-2); color: var(--ink);
  font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.header-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.header-search button {
  height: 36px; width: 42px; border: 1px solid var(--border); border-left: 0;
  border-radius: 0 18px 18px 0; background: var(--accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.header-search button svg { width: 15px; height: 15px; }

/* 顶栏搜索框三级自适应：1280+ 完整 / 1100-1279 收窄 / <1100 隐藏（导航7项优先） */
@media (max-width: 1279px) {
  .header-search input { width: 170px; }
}
@media (max-width: 1099px) {
  .header-search { display: none; }
}
@media (max-width: 991px) { .header-search { display: none; } }

/* ---------- 排行榜页 ---------- */
.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.rank-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.rank-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.rank-head .rank-medal { font-size: 20px; }
.rank-head h2 { font-size: 18px; }
.rank-head small { color: var(--muted); font-size: 12px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .2s; }
.rank-item:hover { background: var(--bg-2); }
.rank-no { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rank-no.top { background: var(--accent); color: #fff; }
.rank-ic { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.rank-body { min-width: 0; flex: 1; }
.rank-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-stars { font-size: 12px; color: var(--warn); font-weight: 600; flex: 0 0 auto; }
@media (max-width: 991px) { .rank-grid { grid-template-columns: 1fr; } }

/* ---------- 提交收录页 ---------- */
.submit-success { text-align: center; padding: 46px 20px; }
.ss-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.submit-success h1 { font-size: 24px; margin-bottom: 10px; }
.submit-success p { color: var(--ink-2); line-height: 1.8; max-width: 480px; margin: 0 auto; }
.submit-rules { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--ink-2); line-height: 2; }
.submit-rules li::before { content: '·'; color: var(--accent); font-weight: 700; margin-right: 6px; }
.alert-error { background: var(--danger-soft, #fdecec); color: var(--danger, #d64545); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

/* ---------- 搜索页 ---------- */
.search-bar { margin: 18px 0 0; }
.search-form-lg { display: flex; gap: 0; }
.search-form-lg input { flex: 1; height: 48px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: 12px 0 0 12px; background: var(--surface); color: var(--ink); font-size: 15px; outline: none; }
.search-form-lg input:focus { border-color: var(--accent); }
.search-form-lg button { height: 48px; padding: 0 26px; border: 0; border-radius: 0 12px 12px 0; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.search-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 6px; }
.search-tabs a { padding: 7px 16px; border-radius: 20px; background: var(--bg-2); color: var(--ink-2); font-size: 13px; text-decoration: none; border: 1px solid transparent; }
.search-tabs a.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.search-sec-title { font-size: 17px; margin: 26px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.search-sec-title small { color: var(--muted); font-size: 12px; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 14px; }
.prompt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; display: block; transition: border-color .2s, transform .2s; }
.prompt-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.prompt-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.prompt-card-head h3 { font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-idx { font-size: 12px; color: var(--accent); font-weight: 700; }
.prompt-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prompt-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; }
.prompt-go { color: var(--accent); font-weight: 600; }
.art-list { display: flex; flex-direction: column; gap: 12px; }
.art-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-decoration: none; color: inherit; transition: border-color .2s; }
.art-card:hover { border-color: var(--accent); }
.art-card .art-thumb { width: 120px; height: 68px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.art-card .art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-card .art-body { min-width: 0; }
.art-card .art-body h3 { font-size: 15px; margin-bottom: 4px; }
.art-card .art-body p { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 6px; }
.art-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
@media (max-width: 767px) {
  .art-card .art-thumb { width: 90px; height: 60px; }
  .prompt-grid { grid-template-columns: 1fr; }
}


/* ---------- 前台表单控件统一美化 ---------- */
/* select 下拉：对齐 tb-input，去掉原生箭头，用 SVG 箭头 */
.cfg-field select, .adbuy-form select, .form-select,
select[name="cat_id"], select[name="price"] {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: 100%; min-height: 44px; padding: 7px 38px 7px 14px;
  border: 1px solid var(--border-2); border-radius: 10px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23899' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  color: var(--ink); font-size: 14px; line-height: 1.5; outline: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.cfg-field select:hover, .adbuy-form select:hover { border-color: var(--accent); }
.cfg-field select:focus, .adbuy-form select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); background-color: var(--surface);
}
/* 空值占位灰 */
.cfg-field select:invalid { color: var(--muted); }
.cfg-field select option { color: var(--ink); background: var(--surface); }

/* cfg-field 表单区（submit 页）：label 与提示文字统一 */
.cfg-field { margin-bottom: 18px; }
.cfg-field > label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.cfg-field .field-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.cfg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 767px) { .cfg-row { grid-template-columns: 1fr; } }

/* 前台其他 select（如存在）兜底 */
select:not([class]) { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 7px 34px 7px 12px; border: 1px solid var(--border-2); border-radius: 8px; background-color: var(--surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23899' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; color: var(--ink); font-size: 13.5px; cursor: pointer; outline: none; }


/* ---------- 工具箱：文件上传 + 滑块美化 ---------- */
input[type="file"] { font-size: 13px; color: var(--ink-2); cursor: pointer; width: 100%; }
input[type="file"]::file-selector-button {
  height: 38px; padding: 0 18px; margin-right: 12px;
  border: 1px solid var(--border-2); border-radius: 8px;
  background: var(--bg-2); color: var(--ink);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 160px; height: 6px; margin: 0 8px; vertical-align: middle;
  border-radius: 3px; background: var(--border-2);
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(22,35,60,.25);
  cursor: pointer; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(22,35,60,.25); cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--border-2); }

/* 收录规则折叠 */
.submit-rules-fold { margin-top: 20px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.submit-rules-fold summary { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.submit-rules-fold summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .2s; }
.submit-rules-fold[open] summary::before { transform: rotate(45deg); }
.submit-rules-fold .submit-rules { margin: 0; padding: 0 14px 12px; }
.submit-rules-fold .submit-rules li { font-size: 13px; }
/* 移动端：提交按钮全宽竖排 */
@media (max-width: 767px) {
  #submitForm .form-actions { flex-direction: column; }
  #submitForm .form-actions .btn { width: 100%; height: 46px; font-size: 15px; }
  #submitForm .form-actions .btn.btn-primary { box-shadow: 0 4px 14px var(--accent-soft); }
}


/* 移动端：提交表单操作区吸附底部导航上方 */
@media (max-width: 1023px) {
  #submitForm .form-actions {
    position: sticky; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 10px);
    margin: 18px 0 0; padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border-2); border-radius: 14px;
    box-shadow: 0 6px 24px rgba(22,35,60,.14);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    z-index: 60;
  }
}


/* ---------- 首页赞助横幅 ---------- */
.section-donate { margin-top: 6px; }
.donate-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 34px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--accent-soft), var(--surface) 55%, var(--warn-soft));
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.donate-banner::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-soft-2), transparent 70%);
  pointer-events: none;
}
.donate-copy { max-width: 560px; }
.donate-copy h2 { font-size: 24px; margin: 8px 0 6px; }
.donate-copy p { color: var(--ink-2); font-size: 14px; }
.donate-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.ds-item { display: flex; flex-direction: column; gap: 2px; }
.ds-item b { font-size: 19px; color: var(--accent); }
.ds-item span { font-size: 12px; color: var(--muted); }
.donate-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 767px) {
  .donate-banner { padding: 22px 20px; }
  .donate-copy h2 { font-size: 20px; }
  .donate-actions .btn { flex: 1; justify-content: center; }
}


/* ---------- 赞助者名单横向滚动 ---------- */
.donor-wall { margin-top: 22px; }
.donor-wall-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.donor-wall-title .dw-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #f43f5e, #fb7185); }
.donor-wall-title .dw-sub { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.donor-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.donor-track { display: flex; gap: 10px; width: max-content; animation: donorScroll 36s linear infinite; }
.donor-track:hover { animation-play-state: paused; }
@keyframes donorScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.donor-card { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); white-space: nowrap; flex: none; }
.donor-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg-2); flex: none; }
.donor-fallback { display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #7c9cf0); }
.donor-name { font-size: 13px; color: var(--ink-2); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.donor-amt { font-size: 12.5px; font-weight: 700; color: #f43f5e; }

/* 头像叠放容器 */
.donor-avatar-wrap { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; }
.donor-avatar-wrap .donor-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 本周精选评分 */
.hp-rt { font-size: 12.5px; color: #f59e0b; display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; letter-spacing: 1px; }

/* ========== Hero 高级玻璃拟态（r59 视觉升级） ========== */
.hero-panel {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.6));
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  box-shadow: 0 24px 60px -18px rgba(22,35,60,.3), inset 0 1px 0 rgba(255,255,255,.85);
  padding: 22px 20px 12px;
  overflow: hidden;
}
[data-theme='dark'] .hero-panel {
  background: linear-gradient(160deg, rgba(24,34,58,.85), rgba(14,20,36,.72));
  border-color: rgba(130,150,210,.28);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-panel::before {
  content: ""; position: absolute; top: -70px; right: -40px; z-index: 0;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.32), transparent 68%);
  pointer-events: none;
}
.hero-panel::after {
  content: ""; position: absolute; bottom: -60px; left: -30px; z-index: 0;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.22), transparent 68%);
  pointer-events: none;
}
.hp-head { position: relative; z-index: 1; padding: 2px 4px 14px; }
.hp-title { font-size: 16px; font-weight: 800; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 9px; }
.hp-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), #38bdf8); box-shadow: 0 0 12px rgba(99,102,241,.55); }
.hp-more {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .15s, box-shadow .15s;
}
.hp-more:hover { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px var(--accent); }
.hp-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.hp-item {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 4px 14px -6px rgba(22,35,60,.1);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hp-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.85); box-shadow: 0 14px 30px -10px rgba(22,35,60,.22); }
[data-theme='dark'] .hp-item {
  background: rgba(34,46,76,.5); border-color: rgba(130,150,210,.16);
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.4);
}
[data-theme='dark'] .hp-item:hover { background: rgba(44,58,92,.62); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.hp-idx { font-size: 13px; font-weight: 800; color: var(--accent); width: 22px; text-align: center; }
.hp-ic, .hp-ic.has-glyph {
  width: 46px; height: 46px; border-radius: 12px;
  font-size: 18px; box-shadow: 0 6px 16px -6px rgba(22,35,60,.35);
  border-color: rgba(255,255,255,.7);
}
[data-theme='dark'] .hp-ic { border-color: rgba(130,150,210,.25); }
.hp-name { font-size: 15px; font-weight: 700; }
.hp-meta { font-size: 12.5px; line-height: 1.45; }
.hp-rt {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 800;
  box-shadow: 0 5px 12px -4px rgba(245,158,11,.55);
  letter-spacing: .5px;
}
.hp-foot { position: relative; z-index: 1; margin: 14px -20px 0; padding: 16px 20px 12px; background: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.6); }
[data-theme='dark'] .hp-foot { background: rgba(24,34,58,.4); border-top-color: rgba(130,150,210,.15); }
.hp-stat span { font-size: 12px; color: var(--muted); }
.hp-stat b {
  font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme='dark'] .hp-stat b { background: linear-gradient(135deg, #8ea2ff, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 左侧文案升级 */
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--accent);
}
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-search input { border-radius: 999px 0 0 999px; }
.hero-search button { border-radius: 0 999px 999px 0; }
.hero-tags a {
  border-radius: 999px; border: 1px solid var(--border-2);
  background: rgba(255,255,255,.55); backdrop-filter: blur(8px);
  padding: 7px 14px; font-size: 13px; color: var(--ink-2);
  transition: border-color .15s, color .15s, background .15s;
}
[data-theme='dark'] .hero-tags a { background: rgba(20,28,48,.45); border-color: rgba(130,150,210,.2); }
.hero-tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.hp-rt::before { content: "★"; font-size: 11px; margin-right: 3px; }

/* Hero 比例修正：左宽右窄 */
.hero-inner { grid-template-columns: 1.3fr .72fr; gap: 44px; align-items: center; }
.hero-panel { width: 100%; max-width: 520px; margin-left: auto; }
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { max-width: 640px; margin: 0 auto; }
}

/* 底部统计：恢复上下两行布局 + 边缘分隔美化 */
.hp-foot { display: flex; align-items: stretch; padding: 18px 14px 15px; border-radius: 0 0 24px 24px; }
.hp-stat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.hp-stat + .hp-stat { border-left: 1px solid var(--border-2); }
[data-theme='dark'] .hp-stat + .hp-stat { border-left-color: rgba(130,150,210,.18); }
.hp-stat span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.hp-stat b { font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }

/* 圆角统一加强 */
.hero-panel { border-radius: 26px; }
.hp-item { border-radius: 16px; }
.hp-foot { border-radius: 0 0 26px 26px; }
.hp-ic, .hp-ic.has-glyph { border-radius: 14px; }
.hp-rt { border-radius: 999px; }
.hp-more { border-radius: 999px; }

/* 赞助数据区：圆角微卡润色 */
.ds-item {
  flex-direction: column; gap: 2px;
  padding: 11px 18px; border-radius: 14px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 4px 14px -6px rgba(22,35,60,.08);
}
[data-theme='dark'] .ds-item { background: rgba(24,34,58,.45); border-color: rgba(130,150,210,.18); }
.donate-stats { gap: 12px; }
.ds-item b { font-size: 18px; }

/* 赞助数据三列圆角润色 */
.donate-stats { gap: 12px; }
.ds-item {
  padding: 11px 18px; border-radius: 15px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 14px -8px rgba(22,35,60,.15), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s, box-shadow .15s;
}
.ds-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(22,35,60,.25); }
[data-theme='dark'] .ds-item { background: rgba(30,42,70,.55); border-color: rgba(130,150,210,.2); box-shadow: 0 4px 14px -8px rgba(0,0,0,.4); }
[data-theme='dark'] .ds-item:hover { background: rgba(42,56,90,.6); }

/* ===== 工具箱：加密解密 + SEO 查询 ===== */
.seo-tbl { width:100%; border-collapse:collapse; font-size:13px; }
.seo-tbl th, .seo-tbl td { padding:9px 12px; border-bottom:1px solid var(--border-2, rgba(128,128,128,.18)); text-align:left; vertical-align:top; }
.seo-tbl th { color:var(--muted, #8b93a1); font-weight:600; white-space:nowrap; }
.seo-tbl a { color:var(--accent, #4f7cff); text-decoration:none; word-break:break-all; }
.seo-tbl a:hover { text-decoration:underline; }
.mono { font-family:ui-monospace,SFMono-Regular,Consolas,Menlo,monospace; word-break:break-all; font-size:12px; line-height:1.7; }
.seo-w { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#4f7cff,#38bdf8); color:#fff; font-size:16px; font-weight:800; margin-left:8px; box-shadow:0 4px 12px rgba(79,124,255,.35); }
#panel-crypto .result-box textarea { font-family:ui-monospace,SFMono-Regular,Consolas,Menlo,monospace; font-size:12px; }
#crypto-file { margin-bottom:10px; }

/* 文件上传样式化 */
.file-upload { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.file-upload input[type="file"] { display: none; }
.file-upload .fu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px dashed var(--border-2, rgba(128,128,128,.35)); border-radius: 10px; background: var(--surface-2, #f3f6fc); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.file-upload .fu-btn:hover { border-color: var(--accent); background: var(--accent-soft, rgba(61,111,224,.08)); }
.file-upload .fu-name { font-size: 12px; color: var(--muted, #8b93a1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
/* SEO 结果表横滑 */
.seo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid var(--border-2, rgba(128,128,128,.18)); }
.seo-scroll .seo-tbl { min-width: 560px; margin: 0; }

.tb-select { width: auto; min-width: 170px; height: 40px; padding: 0 12px; }
.tb-num { width: 90px; min-height: 40px; }

.donor-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 1px dashed var(--border-2); border-radius: 12px; color: var(--muted); font-size: 13px; background: var(--surface-2); }
