/* ==========================================================================
   造物集 MadeWithAI — Design System
   高端极简工业风 / 亮色为主 / 科技蓝点缀 / 预留暗色主题
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f6f7f9;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f1f3f6;
  --text: #0b1220;
  --text-2: #33415c;
  --muted: #6b7688;
  --line: rgba(11, 18, 32, .08);
  --line-strong: rgba(11, 18, 32, .14);
  --brand: #1f5eff;
  --brand-dark: #1648cc;
  --brand-2: #12b8c8;
  --brand-soft: rgba(31, 94, 255, .08);
  --brand-line: rgba(31, 94, 255, .24);
  --ok: #0e8f5c;
  --ok-soft: rgba(14, 143, 92, .1);
  --warn: #b06b12;
  --warn-soft: rgba(176, 107, 18, .1);
  --danger: #d64545;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px -8px rgba(16, 24, 40, .16);
  --shadow-md: 0 12px 32px -18px rgba(16, 24, 40, .28), 0 2px 6px rgba(16, 24, 40, .04);
  --shadow-lg: 0 40px 80px -40px rgba(16, 24, 40, .38);
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --max: 1200px;
  --nav-h: 70px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0a0d12;
  --bg-elev: #0f141b;
  --surface: #11161e;
  --surface-2: #0d1218;
  --surface-3: #161c25;
  --text: #eff3f9;
  --text-2: #c2cbd8;
  --muted: #8b96a7;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --brand: #6f96ff;
  --brand-dark: #4c7dff;
  --brand-2: #3fd6e4;
  --brand-soft: rgba(111, 150, 255, .14);
  --brand-line: rgba(111, 150, 255, .3);
  --ok: #38c98d;
  --ok-soft: rgba(56, 201, 141, .12);
  --warn: #e0a44a;
  --warn-soft: rgba(224, 164, 74, .12);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px -10px rgba(0, 0, 0, .8);
  --shadow-md: 0 16px 40px -20px rgba(0, 0, 0, .9);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(31, 94, 255, .18); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head__copy { max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.section-title {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.03em;
}
.section-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 550;
  color: var(--brand);
  white-space: nowrap;
  transition: gap .2s ease;
}
.link-more:hover { gap: 10px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 4. Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #2b6bff, #0ea5e9 65%, #22d3ee);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px -4px rgba(31, 94, 255, .6);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 16px; font-weight: 680; letter-spacing: -.02em; }
.brand-sub {
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 550;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  font-size: 14px;
  font-weight: 520;
  color: var(--text-2);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-3); }
.nav a.is-active { color: var(--text); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .16s ease, background .18s ease, box-shadow .2s ease, border-color .18s ease, color .18s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #2a67ff, var(--brand-dark));
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), 0 8px 20px -10px rgba(31, 94, 255, .7);
}
.btn-primary:hover {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), 0 12px 26px -10px rgba(31, 94, 255, .85);
  filter: brightness(1.04);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-line);
}
.btn-soft:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 8%); }

.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .9; }

.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--r); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-xs); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn svg { width: 17px; height: 17px; }

.menu-btn { display: none; }

/* mobile menu */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 10px 0 16px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 11px 28px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: var(--r-xs);
}
.mobile-menu a:hover { background: var(--surface-3); color: var(--text); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.glow {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .4;
  background: radial-gradient(circle, rgba(31, 94, 255, .42), transparent 66%);
  pointer-events: none;
}
.glow--a { top: -340px; left: -120px; }
.glow--b {
  top: -260px;
  right: -200px;
  background: radial-gradient(circle, rgba(18, 184, 200, .3), transparent 66%);
  opacity: .5;
}
html[data-theme="dark"] .glow { opacity: .3; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 620px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
}
.pill b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.hero-title {
  margin: 22px 0 20px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hero-title .grad {
  background: linear-gradient(105deg, var(--brand) 8%, #0ea5e9 58%, #22d3ee 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 540px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 7px 7px 7px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  max-width: 520px;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.hero-search:focus-within {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-sm);
}
.hero-search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 14.5px;
  padding: 10px 0;
}
.hero-search input::placeholder { color: var(--muted); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta b { color: var(--text); font-weight: 620; font-variant-numeric: tabular-nums; }

/* hero visual */
.hero-visual { position: relative; }

.glass {
  position: relative;
  border-radius: var(--r-xl);
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
html[data-theme="dark"] .glass { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06); }

.mini-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 14px;
}
.mini-dots { display: flex; gap: 5px; }
.mini-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.mini-dots i:first-child { background: #ff5f57; opacity: .8; }
.mini-dots i:nth-child(2) { background: #febc2e; opacity: .8; }
.mini-dots i:nth-child(3) { background: #28c840; opacity: .8; }
.mini-url {
  flex: 1;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}

.mini-app {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.mini-app-head { display: flex; align-items: center; justify-content: space-between; }
.mini-app-title { font-size: 13px; font-weight: 620; letter-spacing: -.01em; }
.mini-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--ok-soft);
  color: var(--ok);
  letter-spacing: .02em;
}
.mini-row { display: flex; gap: 8px; align-items: center; }
.mini-input {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
}
.mini-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2a67ff, var(--brand-dark));
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -8px rgba(31, 94, 255, .8);
}
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-metric {
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 11px;
}
.mini-metric span { display: block; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.mini-metric b {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 660;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.mini-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--brand), rgba(31, 94, 255, .25));
  display: block;
}

.float-card {
  position: absolute;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.float-card b { font-size: 12.5px; font-weight: 620; display: block; }
.float-card small { color: var(--muted); font-size: 11px; }
.float-card--1 { left: -34px; bottom: 42px; }
.float-card--2 { right: -22px; top: -22px; }
.float-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.float-icon svg { width: 15px; height: 15px; }

/* ---------- 7. Trust strip ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elev);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item b {
  display: block;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- 8. Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-sm);
}
.cat-card:hover::after { opacity: 1; }
.cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-2);
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
}
.cat-icon svg { width: 18px; height: 18px; }
.cat-card:hover .cat-icon { background: var(--brand-soft); color: var(--brand); }
.cat-name { font-size: 14px; font-weight: 580; letter-spacing: -.01em; }
.cat-count { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ---------- 9. Tool cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tool-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .26s ease, border-color .22s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}

.tc-cover {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tc-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .35;
  mix-blend-mode: overlay;
}
html[data-theme="dark"] .tc-cover::before { opacity: .07; }
.tc-glyph {
  position: relative;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}
.tc-cover--a { background: linear-gradient(135deg, #2a5cff, #0ea5e9); }
.tc-cover--b { background: linear-gradient(135deg, #0f766e, #22d3ee); }
.tc-cover--c { background: linear-gradient(135deg, #4338ca, #8b5cf6); }
.tc-cover--d { background: linear-gradient(135deg, #0c4a6e, #0ea5e9); }
.tc-cover--e { background: linear-gradient(135deg, #155e75, #14b8a6); }
.tc-cover--f { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.tc-cover--g { background: linear-gradient(135deg, #374151, #64748b); }
.tc-cover--h { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.tc-cover--i { background: linear-gradient(135deg, #1e293b, #475569); }
.tc-cover--j { background: linear-gradient(135deg, #5b21b6, #a78bfa); }


.tc-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tc-price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  color: #0b1220;
  font-size: 12px;
  font-weight: 660;
  letter-spacing: -.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  backdrop-filter: blur(6px);
}

.tc-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.tc-title {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.015em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tc-title a { display: inline-flex; align-items: center; gap: 6px; }
.tc-title a:hover { color: var(--brand); }
.tc-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
}
.tc-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tc-author { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.tc-author:hover { color: var(--brand); }
.tc-stats { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; color: var(--muted); }
.tc-stats span { display: inline-flex; align-items: center; gap: 4px; }
.tc-stats svg { width: 13px; height: 13px; opacity: .8; }

/* avatar */
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, #2a5cff, #12b8c8);
  flex-shrink: 0;
  letter-spacing: 0;
}
.avatar--lg { width: 84px; height: 84px; font-size: 30px; border-radius: 24px; }
.avatar--md { width: 34px; height: 34px; font-size: 14px; }
.avatar--sm { width: 26px; height: 26px; font-size: 11px; }
.avatar--b { background: linear-gradient(135deg, #4338ca, #8b5cf6); }
.avatar--c { background: linear-gradient(135deg, #0f766e, #22d3ee); }
.avatar--d { background: linear-gradient(135deg, #b45309, #f59e0b); }
.avatar--e { background: linear-gradient(135deg, #0c4a6e, #38bdf8); }

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge--demo { background: var(--warn-soft); color: var(--warn); border-color: rgba(176, 107, 18, .18); }
.badge--complete { background: var(--ok-soft); color: var(--ok); border-color: rgba(14, 143, 92, .18); }
.badge--web { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.badge--exe { background: var(--surface-3); color: var(--text-2); border-color: var(--line-strong); }
.badge--portable { background: var(--surface-3); color: var(--text-2); border-color: var(--line-strong); }
.badge--free { background: var(--ok-soft); color: var(--ok); }
.badge--ghost { background: var(--surface-3); color: var(--text-2); border-color: var(--line); }
.badge--new { background: rgba(31, 94, 255, .9); color: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
}

/* ---------- 10. Filter bar & sidebar layout ---------- */
.page-head {
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 68%);
  pointer-events: none;
}
.page-title { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.page-desc { margin-top: 12px; color: var(--muted); max-width: 660px; font-size: 15px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span.sep { opacity: .5; }

.layout-sidebar {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 32px 0 72px;
}
.layout-aside-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; }

.side-block {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.side-title {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.filter-list { display: grid; gap: 1px; }
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  color: var(--text-2);
  text-align: left;
  transition: background .16s ease, color .16s ease;
}
.filter-item:hover { background: var(--surface-3); color: var(--text); }
.filter-item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 570;
}
.filter-item em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.filter-item.is-active em { color: var(--brand); opacity: .8; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar-count { font-size: 13px; color: var(--muted); margin-right: auto; }
.toolbar-count b { color: var(--text); font-weight: 620; font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 520;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* inputs */
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.select {
  appearance: none;
  padding-right: 32px;
  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 fill='none' stroke='%236b7688' stroke-width='1.6' stroke-linecap='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.65; }

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 0 12px;
  height: 36px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-field:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-field svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.search-field input { border: none; outline: none; background: none; font-size: 13.5px; width: 100%; min-width: 0; }

/* ---------- 11. Detail page ---------- */
.detail-head { padding: 18px 0 26px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.detail-title {
  font-size: clamp(26px, 3.2vw, 37px);
  letter-spacing: -.035em;
  line-height: 1.22;
}
.detail-lead { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 760px; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.detail-meta .author-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 550;
}
.detail-meta .author-inline:hover { color: var(--brand); }
.meta-sep { width: 1px; height: 14px; background: var(--line-strong); }
.detail-stats { display: inline-flex; gap: 16px; font-variant-numeric: tabular-nums; }

.panel {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-size: 14.5px; font-weight: 620; }
.panel-body { padding: 18px; }

/* tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  overflow-x: auto;
}
.tab {
  position: relative;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 520;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); font-weight: 600; border-bottom-color: var(--brand); }
.tab span.n {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* preview window */
.preview-window {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}
.preview-url {
  flex: 1;
  height: 27px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.preview-url svg { width: 11px; height: 11px; color: var(--ok); flex-shrink: 0; }
.preview-actions { display: flex; gap: 4px; }
.pv-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .16s ease, color .16s ease;
}
.pv-btn:hover { background: var(--surface); color: var(--text); }
.pv-btn svg { width: 13px; height: 13px; }

.preview-body { position: relative; height: 520px; background: #fff; }
.preview-body iframe { width: 100%; height: 100%; border: 0; display: block; }
html[data-theme="dark"] .preview-body { background: #0b0f15; }

.preview-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.preview-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--brand); }

/* prose */
.prose { font-size: 14.6px; line-height: 1.85; color: var(--text-2); }
.prose > * + * { margin-top: 14px; }
.prose h3 {
  font-size: 16px;
  margin-top: 26px;
  letter-spacing: -.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prose h3::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--brand);
}
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}
.prose strong { color: var(--text); font-weight: 620; }
.prose code {
  font-family: var(--mono);
  font-size: 12.8px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--line);
}
.prose blockquote {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  color: var(--text-2);
  font-size: 13.5px;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left;
  font-weight: 520;
  color: var(--muted);
  padding: 11px 0;
  width: 132px;
  vertical-align: top;
}
.spec-table td { padding: 11px 0; color: var(--text); }

/* buy card */
.buy-card {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.buy-card__top { padding: 20px 20px 18px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.price small { font-size: 15px; font-weight: 600; margin-right: 1px; }
.price-orig { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.buy-actions { display: grid; gap: 9px; margin-top: 16px; }

.feature-list { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.8px;
  color: var(--text-2);
  line-height: 1.6;
}
.feature-list svg { width: 14px; height: 14px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }

.buy-card__foot {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 12px 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.author-card { padding: 18px 20px; }
.author-card__row { display: flex; align-items: center; gap: 11px; }
.author-card__name { font-size: 14.5px; font-weight: 620; }
.author-card__sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.author-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.author-card__stats div { text-align: center; }
.author-card__stats b {
  display: block;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.author-card__stats span { font-size: 11px; color: var(--muted); }

/* comments */
.comment { display: flex; gap: 11px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment__head b { font-weight: 600; }
.comment__head span { color: var(--muted); font-size: 11.5px; }
.comment__text { margin-top: 5px; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.comment__actions { display: flex; gap: 14px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.comment__actions button:hover { color: var(--brand); }

/* ---------- 12. Author page ---------- */
.author-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 40px 0 0;
}
.author-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  background:
    radial-gradient(ellipse 60% 100% at 20% 0%, var(--brand-soft), transparent 70%),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}
.author-hero__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}
.author-id { display: flex; align-items: flex-end; gap: 18px; }
.author-id__text h1 { font-size: 27px; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; }
.author-id__text p { margin-top: 7px; color: var(--muted); font-size: 13.5px; max-width: 520px; }
.author-badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.author-stats { display: flex; gap: 30px; }
.author-stats .kpi b {
  display: block;
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.author-stats .kpi span { font-size: 12px; color: var(--muted); }

/* ---------- 13. Forms / upload ---------- */
.form-card {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.form-section { padding: 24px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.form-section__num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 680;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.form-section__title { font-size: 15.5px; font-weight: 620; letter-spacing: -.015em; }
.form-section__hint { font-size: 12.5px; color: var(--muted); margin-left: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.label { font-size: 13px; font-weight: 560; color: var(--text); display: flex; align-items: center; gap: 5px; }
.label .req { color: var(--danger); font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 14px 15px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .2s ease, background .18s ease;
}
.radio-card:hover { border-color: var(--brand-line); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card__mark {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: border-color .18s ease;
}
.radio-card__mark::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  transform: scale(0);
  transition: transform .18s ease;
}
.radio-card input:checked ~ .radio-card__mark { border-color: var(--brand); }
.radio-card input:checked ~ .radio-card__mark::after { transform: scale(1); }
.radio-card:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface));
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.radio-card__title { font-size: 13.8px; font-weight: 580; display: flex; align-items: center; gap: 7px; }
.radio-card__desc { font-size: 12.3px; color: var(--muted); margin-top: 3px; line-height: 1.6; }

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r);
  padding: 34px 20px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { width: 26px; height: 26px; color: var(--muted); margin-bottom: 10px; }
.dropzone b { display: block; font-size: 13.8px; font-weight: 580; }
.dropzone span { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }

.notice {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  font-size: 12.8px;
  line-height: 1.7;
  color: var(--text-2);
}
.notice svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.notice--warn { background: var(--warn-soft); border-color: rgba(176, 107, 18, .22); }
.notice--warn svg { color: var(--warn); }

.check-list { display: grid; gap: 9px; }
.check-list li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.check-list svg { width: 14px; height: 14px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

/* ---------- 14. Search page ---------- */
.search-hero { padding: 46px 0 34px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.search-big {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin-top: 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-big:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-sm); }
.search-big svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.search-big input { flex: 1; border: none; outline: none; background: none; font-size: 16px; padding: 10px 0; min-width: 0; }
.search-tip { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.search-tip b { color: var(--text-2); font-weight: 550; }

.result-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
.result-row:hover { background: var(--surface-2); }
.result-thumb {
  width: 96px;
  height: 96px;
  border-radius: var(--r);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.05em;
  box-shadow: var(--shadow-xs);
}
.result-body { flex: 1; min-width: 0; }
.result-title { font-size: 16px; font-weight: 620; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-title a:hover { color: var(--brand); }
.result-desc { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.result-meta { margin-top: 9px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
mark { background: rgba(31, 94, 255, .16); color: var(--brand); border-radius: 3px; padding: 0 2px; }

.empty {
  text-align: center;
  padding: 72px 20px;
  color: var(--muted);
}
.empty svg { width: 40px; height: 40px; opacity: .35; margin-bottom: 14px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

/* ---------- 15. CTA / footer ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 52px 48px;
  background: linear-gradient(120deg, #0b1220, #14224a 55%, #0e3b63);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 100% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .34), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}
.cta__copy { position: relative; max-width: 560px; }
.cta__copy h2 { color: #fff; font-size: clamp(23px, 2.6vw, 30px); letter-spacing: -.03em; }
.cta__copy p { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.75; }
.cta__actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-on-dark {
  background: #fff;
  color: #0b1220;
  border-color: #fff;
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .5);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, .9); }
.btn-outline-light {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); }

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}
.footer-about p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 13.2px; color: var(--text-2); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.3px;
  color: var(--muted);
}
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 16. Terms page ---------- */
.terms-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 44px;
  padding: 40px 0 80px;
  align-items: start;
}
.toc { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 3px; }
.toc a {
  padding: 7px 12px;
  border-radius: var(--r-xs);
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: all .18s ease;
}
.toc a:hover { color: var(--text); background: var(--surface-3); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); font-weight: 550; }
.terms-body { max-width: 780px; }
.terms-body section { padding-bottom: 40px; }
.terms-body h2 {
  font-size: 22px;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.terms-body h3 { font-size: 15px; margin: 22px 0 8px; color: var(--text); }
.terms-body p, .terms-body li { font-size: 14px; line-height: 1.85; color: var(--text-2); }
.terms-body p + p { margin-top: 12px; }
.terms-body ul { display: grid; gap: 7px; margin-top: 10px; }
.terms-body ul li { position: relative; padding-left: 16px; }
.terms-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .5;
}

/* ---------- 17. Utilities / motion ---------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 520;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .float-card--1 { left: -12px; bottom: 20px; }
  .float-card--2 { right: -8px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid, .tool-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-aside-right { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .terms-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border-left: 0; border: 1px solid var(--line); }
  .toc a.is-active { border-color: var(--brand-line); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .topbar-actions .btn-ghost { display: none; }
  .preview-body { height: 420px; }
  .author-stats { gap: 22px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-title { font-size: clamp(29px, 8vw, 38px); }
  .hero-sub { font-size: 15px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 18px 16px; }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .tool-grid, .tool-grid--4, .tool-grid--2 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; border-radius: var(--r-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .result-row { gap: 12px; }
  .result-thumb { width: 64px; height: 64px; font-size: 16px; border-radius: 10px; }
  .author-hero__inner { align-items: flex-start; }
  .author-id { align-items: flex-start; }
  .avatar--lg { width: 62px; height: 62px; font-size: 22px; border-radius: 18px; }
  .author-id__text h1 { font-size: 22px; }
  .float-card--2 { display: none; }
  .toolbar { gap: 8px; }
  .toolbar-count { width: 100%; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .detail-meta { gap: 8px 14px; font-size: 12.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 6px 14px; font-size: 12px; }
}

/* print */
@media print {
  .topbar, .footer, .buy-card, .hero-visual, .cta { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   20. 布局补全：详情 / 上传 / 作者 / 搜索 / 条款
   ========================================================================== */
.content-col { min-width: 0; }

.layout-aside {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.layout-aside.detail-layout,
.layout-aside.form-layout {
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 36px;
}

.aside { display: grid; gap: 16px; align-content: start; }
.aside--sticky { position: sticky; top: calc(var(--nav-h) + 20px); }

.doc-layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 34px 0 84px;
}

.breadcrumb .current { color: var(--text); font-weight: 560; }
.dot-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  vertical-align: middle;
}

.page-head__row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.page-head__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.page-head__stat b {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.page-head__stat span { font-size: 12px; color: var(--muted); }

.icon-btn--sm { width: 27px; height: 27px; border-radius: 7px; }
.icon-btn--sm svg { width: 13px; height: 13px; }

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.side-divider { height: 1px; background: var(--line); margin: 14px -16px; }
.side-block--plain {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 2px 0;
}
.side-block--plain .side-title { padding-left: 2px; }

.side-list { display: grid; gap: 1px; }
.side-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  transition: background .16s ease, color .16s ease;
}
.side-list li:hover { background: var(--surface-3); color: var(--text); }
.side-list li b { color: var(--text); font-weight: 600; }
.side-list li .muted { margin-left: auto; font-size: 11.5px; }
.side-list a { color: inherit; }

.kv-list { display: grid; gap: 10px; }
.kv-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.8px;
  color: var(--muted);
}
.kv-list li b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  padding: 11px 16px;
  text-align: left;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: middle;
}
.data-table tbody td:first-child { color: var(--text); font-weight: 520; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: var(--surface-2); }

.loadmore-wrap {
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 30px 0 4px;
}
.loadmore-wrap .hint { margin: 0; }

.tool-grid--mini { grid-template-columns: 1fr; gap: 10px; }
.tool-grid--mini .tool-card { border-radius: 13px; }

/* 长文排版 */
.article { min-width: 0; }
.article h2 {
  font-size: 21px;
  letter-spacing: -.025em;
  margin: 34px 0 12px;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.012em;
  margin: 24px 0 9px;
}
.article h4 { font-size: 13.8px; font-weight: 600; }
.article p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
  margin-bottom: 12px;
}
.article p:last-child { margin-bottom: 0; }
.article ul, .article ol { margin: 12px 0; }
.article a { color: var(--brand); }
.article--doc { padding: 4px 0 20px; }
.article--doc section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.article--doc section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.article--doc h2 { margin-top: 0; font-size: 22px; }

/* ==========================================================================
   21. 工具列表页
   ========================================================================== */
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.toolbar-row--chips {
  padding-top: 13px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.chip-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.input-search { position: relative; flex: 1; min-width: 220px; }
.input-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.input-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input-search input::placeholder { color: var(--muted); }
.input-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input-search--lg { min-width: 260px; }
.input-search--lg input { height: 42px; font-size: 14px; }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  padding: 0 34px 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .16s ease;
}
.select-wrap select:hover { color: var(--text); }
.select-wrap select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.select-wrap > svg {
  position: absolute;
  right: 11px;
  width: 13px;
  height: 13px;
  color: var(--muted);
  pointer-events: none;
}
.select-wrap--block { display: block; width: 100%; }
.select-wrap--block select { width: 100%; }

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}
.result-head__left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.result-head__title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 17px;
  letter-spacing: -.02em;
}
.result-kw { color: var(--brand); }
.result-list { display: grid; gap: 12px; }

/* ==========================================================================
   22. 作品详情页
   ========================================================================== */
.preview-shell {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.preview-shell iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #fff;
}
.preview-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}
.preview-foot b { color: var(--text); font-weight: 580; }
.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
  flex-shrink: 0;
}

.comment-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.comment-input { flex: 1; min-width: 0; }
.comment-input textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.72;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.comment-input textarea::placeholder { color: var(--muted); }
.comment-input textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.comment-input-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}
.comment-list { margin-top: 4px; }

.buy-head {
  padding: 20px 20px 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-soft), transparent 78%);
}
.buy-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.buy-price small { font-size: 15px; font-weight: 620; letter-spacing: 0; }
.buy-note {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}
.buy-meta {
  display: grid;
  gap: 9px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
}
.buy-meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.buy-meta li svg { width: 13px; height: 13px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }
.buy-guarantee {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11.8px;
  color: var(--muted);
}
.buy-guarantee svg { width: 13px; height: 13px; color: var(--ok); flex-shrink: 0; }

.buy-card .buy-head + .buy-actions { margin-top: 0; }
.buy-card .buy-actions { padding: 0 20px 18px; margin-top: 16px; }

.author-card__head { display: flex; align-items: center; gap: 11px; }
.author-card__bio {
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}
.author-card__tag { margin-top: 3px; font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   23. 作者主页
   ========================================================================== */
.profile-hero {
  position: relative;
  padding: 30px 0 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}
.profile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}
.profile__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 26px;
  box-shadow: 0 22px 44px -26px rgba(16, 24, 40, .45);
}
.profile__main { flex: 1; min-width: 280px; display: grid; gap: 10px; }
.profile__name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile__name-row h1 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.035em; }
.profile__bio {
  max-width: 640px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.78;
}
.profile__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.profile__actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
.profile__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  align-self: flex-start;
}
.profile__stats .kpi { text-align: center; }
.profile__stats .kpi b {
  display: block;
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.profile__stats .kpi span { font-size: 11.5px; color: var(--muted); }
.badges { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ==========================================================================
   24. 上传表单
   ========================================================================== */
.form-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.form-card__head h2 { font-size: 15.5px; letter-spacing: -.015em; display: flex; align-items: center; gap: 6px; }
.form-card__head p { margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.62; }
.form-card__head .req { color: var(--danger); }

.step-index {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 20px -12px var(--brand);
}

.form-card > .field,
.form-card > .field-row,
.form-card > .radio-cards,
.form-card > .sub-section,
.form-card > .notice,
.form-card > .check-list-box,
.form-card > .form-actions,
.form-card > .timeline,
.form-card > p.hint,
.form-card > .grid-2 { margin: 18px 22px; }
.form-card > *:last-child { margin-bottom: 24px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.sub-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.sub-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.sub-title .hint { font-weight: 400; }

.radio-card__body { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; }
.radio-card__top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.radio-card b { font-size: 13.4px; font-weight: 580; color: var(--text); }
.radio-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio-card--sm {
  flex-direction: column;
  gap: 6px;
  padding: 13px;
}
.radio-card--sm .radio-card__body { gap: 3px; }
.radio-card--sm b { font-size: 12.8px; }
.radio-card--sm .radio-card__desc { font-size: 11.8px; }

.input-affix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input-affix span {
  display: grid;
  place-items: center;
  padding: 0 13px;
  background: var(--surface-3);
  border-right: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.input-affix input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  padding: 0 12px;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
}
.input-affix input:focus { outline: none; }
.input-affix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.dropzone__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.dropzone__icon svg { width: 22px; height: 22px; margin: 0; color: currentColor; }

.check-list-box {
  display: grid;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.72;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .16s ease, border-color .16s ease;
}
.checkbox input:checked { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.checkbox input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.notice--ok { background: var(--ok-soft); border-color: rgba(14, 143, 92, .22); }
.notice--ok svg { color: var(--ok); }

.timeline { display: grid; gap: 0; padding-left: 5px; }
.timeline li {
  position: relative;
  padding: 0 0 17px 22px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.72;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.timeline li b { color: var(--text); font-weight: 600; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

/* ==========================================================================
   25. 搜索页
   ========================================================================== */
.search-hero {
  position: relative;
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}
.search-hero__title { position: relative; margin-top: 16px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.search-hero__desc { position: relative; margin-top: 10px; max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 7px 7px 7px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .2s ease;
}
.search-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-bar input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { outline: none; }
.search-bar__icon { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search-bar--lg { max-width: 720px; }

.hot-words {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12.5px;
}
.hot-words__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.hot-words a {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.hot-words a:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

mark {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

/* ==========================================================================
   26. 规则 / 条款页
   ========================================================================== */
.toc__title {
  padding-left: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 20px; }
.rule-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.rule-card h4 { margin-top: 10px; font-size: 13.8px; }
.rule-card p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.72; }

.fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 20px; }
.fee-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.fee-item b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.fee-item span { display: block; margin-top: 4px; font-size: 11.8px; color: var(--muted); }

.num-list { display: grid; gap: 11px; margin: 14px 0 18px; counter-reset: num; }
.num-list li {
  position: relative;
  padding-left: 30px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.82;
}
.num-list li::before {
  counter-increment: num;
  content: counter(num);
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lead-quote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--brand-soft);
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.82;
}
.check-list--no svg { color: var(--danger); }
.check-list--no li { color: var(--text-2); }

/* ==========================================================================
   27. 杂项与响应式补充
   ========================================================================== */
.empty__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--muted);
}
.empty__icon svg { width: 21px; height: 21px; opacity: .8; margin: 0; }

.news-list { display: grid; }
.news-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  transition: color .16s ease;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { color: var(--text); }
.news-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item .muted { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.nowrap { white-space: nowrap; }

@media (max-width: 1180px) {
  .layout-aside,
  .detail-layout,
  .form-layout,
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .aside--sticky { position: static; }
  .doc-layout .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc__title { width: 100%; padding-left: 0; }
  .profile__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
}

@media (max-width: 860px) {
  .radio-cards--3 { grid-template-columns: 1fr; }
  .rule-grid,
  .fee-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .profile { gap: 18px; }
  .profile__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .preview-shell iframe { height: 400px; }
  .page-head__row { align-items: flex-start; }
}

@media (max-width: 640px) {
  .form-card > .field,
  .form-card > .field-row,
  .form-card > .radio-cards,
  .form-card > .sub-section,
  .form-card > .notice,
  .form-card > .check-list-box,
  .form-card > .form-actions,
  .form-card > .timeline,
  .form-card > p.hint { margin-left: 15px; margin-right: 15px; }
  .form-card__head { padding: 16px 15px; }
  .search-bar { padding: 6px 6px 6px 13px; border-radius: 14px; }
  .search-bar input { height: 36px; font-size: 14px; }
  .preview-shell iframe { height: 330px; }
  .data-table { font-size: 12.5px; }
  .data-table thead th,
  .data-table tbody td { padding: 10px 12px; }
  .buy-price { font-size: 28px; }
}

/* ===================== 广告位（对应后台「广告位管理」） =====================
   默认 window.ADS 全部为空 → 前端不生成任何广告节点，版面不出现空框；
   后台在对应位置填入联盟代码 / 自定义 HTML 后，该位置才会出现容器。
   广告样式不遮挡预览、下载、购买等核心操作。 */
.ad-slot {
  position: relative;
  margin: 22px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ad-slot:empty { display: none; }
.ad-slot__tag {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
}
.ad-slot img { display: block; max-width: 100%; height: auto; }
.ad-slot iframe { display: block; width: 100%; border: 0; }
.side-block .ad-slot { margin: 0; }
@media (max-width: 768px) {
  .ad-slot { margin: 18px 0; border-radius: var(--r); }
}
