/* ============================================================
   AgentHub · 全类目智能体合集 — 专业运营版样式
   ============================================================ */

:root {
  /* 声明"仅日间"配色：显式退出 Chrome/Edge「自动深色模式」；夜间由 [data-theme="dark"] 接管 */
  color-scheme: only light;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-dark: #4f46e5;
  --accent: #d946ef;
  --green: #10b981;
  --amber: #f59e0b;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e9f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --card-2: #f8f9fd;
  --chip-bg: #eef0f7;
  --header-bg: rgba(255, 255, 255, .86);
  --input-bg: #f1f3f9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 6px 20px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .20);
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%);

  /* Hero 面板配色 · 日间为浅色光晕质感 */
  --hero-bg: linear-gradient(135deg, #eef1ff 0%, #f7f1ff 52%, #ecf6ff 100%);
  --hero-glow1: rgba(139, 92, 246, .20);
  --hero-glow2: rgba(14, 165, 233, .18);
  --hero-ink: #1e1b4b;
  --hero-muted: #5b5f8f;
  --hero-line: rgba(99, 102, 241, .16);
  --hero-grid: rgba(30, 27, 75, .05);
  --hero-grad-text: linear-gradient(100deg, #4f46e5, #c026d3 55%, #0284c7);
  --hero-chip-bg: rgba(255, 255, 255, .72);
  --hero-chip-line: rgba(99, 102, 241, .22);
  --hero-chip-ink: #4b4f86;
  --hero-card-bg: rgba(255, 255, 255, .80);
  --hero-card-line: rgba(99, 102, 241, .18);
  --hero-card-shadow: 0 10px 30px rgba(79, 70, 229, .13);
  --hero-panel-shadow: 0 24px 60px rgba(99, 102, 241, .16);
  --hero-search-shadow: 0 16px 40px rgba(79, 70, 229, .16);
  --orb-opacity: .40;
  /* 页面环境光 · 日间：低饱和冷色晕染，不与前景抢焦点 */
  --bg-glow1: rgba(99, 102, 241, .07);
  --bg-glow2: rgba(14, 165, 233, .06);
  --bg-glow3: rgba(217, 70, 239, .045);
  --hero-glow3: rgba(14, 165, 233, .14);
}

/* ---------- 夜间主题 ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8ecf6;
  --ink-2: #c3cad9;
  --muted: #8a94a8;
  --line: #2a3145;
  --bg: #0b1020;
  --card: #141a2e;
  --card-2: #1a2138;
  --chip-bg: #1d2438;
  --header-bg: rgba(13, 18, 36, .86);
  --input-bg: #1a2138;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);

  /* 页面环境光 · 夜间 */
  --bg-glow1: rgba(99, 102, 241, .13);
  --bg-glow2: rgba(14, 165, 233, .08);
  --bg-glow3: rgba(217, 70, 239, .06);

  /* Hero 面板配色 · 夜间深蓝黑 + 青色冷光点缀，降饱和不压前景 */
  --hero-bg: linear-gradient(155deg, #0d1226 0%, #121932 46%, #1a2244 82%, #16203e 100%);
  --hero-glow1: rgba(99, 102, 241, .26);
  --hero-glow2: rgba(45, 212, 191, .13);
  --hero-glow3: rgba(217, 70, 239, .10);
  --hero-ink: #ffffff;
  --hero-muted: rgba(203, 213, 240, .78);
  --hero-line: rgba(148, 163, 184, .16);
  --hero-grid: rgba(148, 163, 184, .07);
  --hero-grad-text: linear-gradient(100deg, #a5b4fc, #e879f9 60%, #7dd3fc);
  --hero-chip-bg: rgba(148, 163, 184, .12);
  --hero-chip-line: rgba(148, 163, 184, .26);
  --hero-chip-ink: #d7dcef;
  --hero-card-bg: rgba(148, 163, 184, .11);
  --hero-card-line: rgba(148, 163, 184, .24);
  --hero-card-shadow: 0 10px 30px rgba(0, 0, 0, .30);
  --hero-panel-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  --hero-search-shadow: 0 16px 44px rgba(0, 0, 0, .35);
  --orb-opacity: .38;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 10% -6%, var(--bg-glow1), transparent 62%),
    radial-gradient(900px 460px at 104% 14%, var(--bg-glow2), transparent 60%),
    radial-gradient(1100px 620px at 50% 120%, var(--bg-glow3), transparent 66%),
    var(--bg);
  line-height: 1.6;
  overflow-x: clip; /* 兜底：窄视口不产生横向滚动 */
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
::selection { background: rgba(99, 102, 241, .25); }

.container { width: min(1200px, 92%); margin: 0 auto; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px;
  /* 背景定位区与绘制区统一取 border-box：避免渐变在 1px 透明边框处回卷、露出洋红/靛蓝色边 */
  background-origin: border-box; background-clip: border-box;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn.full { width: 100%; }
.btn-primary { background: var(--grad); background-origin: border-box; color: #fff; box-shadow: 0 6px 16px rgba(99, 102, 241, .32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(99, 102, 241, .45); }
.btn-outline { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(99, 102, 241, .09); color: var(--primary); }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-mark.small { width: 28px; height: 28px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 16px; }
.lg-row { display: flex; align-items: baseline; gap: 3px; }
.lg-cn {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-text em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); }

.nav { display: flex; gap: 4px; margin-left: 6px; flex: none; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; flex: none;
  transition: all .16s;
}
.nav-link:hover, .nav-link.is-active { color: var(--primary); background: rgba(99, 102, 241, .09); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.mini-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--input-bg); border: 1px solid transparent; border-radius: 10px;
  padding: 8px 12px; width: 190px; transition: all .18s;
}
.mini-search:focus-within { background: var(--card); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.mini-search .icon { color: var(--muted); }
.mini-search input { border: 0; background: transparent; outline: 0; font-size: 14px; width: 100%; color: var(--ink); }

/* ---------- 主题开关 ---------- */
.theme-toggle {
  position: relative; width: 56px; height: 30px; border-radius: 999px; flex: none;
  border: 1px solid var(--line); background: var(--input-bg);
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 0 7px; transition: all .2s;
}
.theme-toggle:hover { border-color: var(--primary); }
.tt-ico { font-size: 12px; line-height: 1; opacity: .55; transition: opacity .2s; }
.knob {
  position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 12px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(99, 102, 241, .45);
  transition: transform .22s cubic-bezier(.5, 1.6, .4, 1);
}
[data-theme="dark"] .knob { transform: translateX(26px); }
[data-theme="dark"] .tt-sun { opacity: .3; }
[data-theme="dark"] .tt-moon { opacity: 1; }
[data-theme="light"] .tt-moon { opacity: .3; }

/* ---------- 定制化部署入口 + 二维码弹层 ---------- */
.custom-wrap { position: relative; }
.btn-enter {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  background-origin: border-box;
  color: #fff; box-shadow: 0 6px 16px rgba(14, 165, 233, .30);
}
.btn-enter:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(14, 165, 233, .42); }
.custom-pop {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 95;
  width: 300px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97);
  transition: all .2s cubic-bezier(.4, 1.4, .5, 1);
  pointer-events: none;
}
.custom-pop.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.custom-pop::before {
  content: ""; position: absolute; top: -6px; right: 26px;
  width: 12px; height: 12px; background: var(--card);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.cp-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.cp-head strong { font-size: 15px; color: var(--ink); }
.cp-head span { font-size: 12px; color: var(--muted); }
.cp-qr {
  display: grid; place-items: center; gap: 8px;
  padding: 16px; border: 2px dashed var(--line); border-radius: 12px;
  background: var(--card-2); margin-bottom: 10px;
}
.qr-pattern { width: 132px; height: 132px; color: var(--muted); opacity: .8; }
.cp-qr img { width: 200px; height: auto; max-width: 100%; border-radius: 10px; display: block; }
.qr-tip { font-size: 12px; color: var(--muted); }
.cp-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }

/* ---------- 需求提交 + 打赏 ---------- */
.btn-reward-mini {
  width: 34px; height: 34px; flex: none; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  color: #fff; border: none; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(244, 63, 94, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-reward-mini:hover { transform: translateY(-1px) scale(1.06); box-shadow: 0 8px 18px rgba(244, 63, 94, .45); }

.request-modal { max-width: 480px; }
.req-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.req-mine { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rm-head b { font-size: 13px; color: var(--ink); }
.rm-head span { font-size: 12px; color: var(--muted); }
.rm-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.rm-item { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rm-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-t b { font-size: 13px; color: var(--ink); }
.rm-del {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 12px; padding: 2px 6px; border-radius: 6px; flex: none;
}
.rm-del:hover { color: #f43f5e; background: rgba(244, 63, 94, .1); }
.rm-item p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin: 4px 0; word-break: break-word; }
.rm-time { font-size: 11px; color: var(--muted); }

.reward-modal { max-width: 420px; text-align: center; }
.reward-qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 12px; }
.reward-qr {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px; border: 2px dashed var(--line); border-radius: 12px;
  background: var(--card-2); margin: 0;
}
.reward-qr img { width: 132px; height: 132px; object-fit: contain; border-radius: 8px; }
.reward-qr .qr-pattern { width: 132px; height: 132px; }
.reward-qr figcaption { font-size: 12px; color: var(--muted); }
.reward-modal .cp-note { margin-top: 4px; }

/* ---------- 已登录用户徽章 ---------- */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 6px 5px 5px;
}
.uc-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.uc-name { font-size: 13px; font-weight: 600; color: var(--ink); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-logout {
  border: 0; background: transparent; color: var(--muted); font-size: 12px;
  padding: 3px 8px; border-radius: 999px; transition: all .15s;
}
.uc-logout:hover { background: rgba(239, 68, 68, .1); color: #ef4444; }

/* ============================================================
   Hero · 专业运营版头图面板
   ============================================================ */
.hero { padding: 26px 0 8px; }
.hero-panel {
  position: relative; overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--hero-line);
  background:
    radial-gradient(1000px 480px at 88% -14%, var(--hero-glow1), transparent 62%),
    radial-gradient(780px 420px at -8% 114%, var(--hero-glow2), transparent 60%),
    radial-gradient(640px 340px at 56% 120%, var(--hero-glow3), transparent 66%),
    var(--hero-bg);
  color: var(--hero-ink);
  padding: 64px 56px 60px;
  box-shadow: var(--hero-panel-shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
  isolation: isolate;
}
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(64px); opacity: var(--orb-opacity);
  animation: orbFloat 9s ease-in-out infinite alternate;
}
.orb-1 { width: 360px; height: 360px; left: -90px; top: -130px; background: rgba(99, 102, 241, .75); }
.orb-2 { width: 300px; height: 300px; right: -70px; top: 8%; background: rgba(139, 92, 246, .5); animation-delay: -3s; }
.orb-3 { width: 280px; height: 280px; right: 22%; bottom: -150px; background: rgba(45, 212, 191, .42); animation-delay: -6s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 24px) scale(1.12); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 42% 38%, #000 22%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 85% at 42% 38%, #000 22%, transparent 72%);
}

/* 漂浮小卡 · 右侧弹性条带：数量自适应，无需逐卡定位 */
.hero-float {
  position: absolute; top: 0; bottom: 0; right: 0; width: 30%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  gap: clamp(14px, 3vh, 22px);
  padding-right: clamp(16px, 3.5%, 44px);
  pointer-events: none; z-index: 1;
  overflow: clip; /* 兜底：极端数量时干净裁切，不产生滚动条、不遮挡内容 */
}
.hf-card {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--hero-card-bg); border: 1px solid var(--hero-card-line);
  backdrop-filter: blur(8px); border-radius: 12px; padding: 8px 12px;
  animation: hfBob 6s ease-in-out infinite alternate;
  box-shadow: var(--hero-card-shadow);
}
.hf-card:nth-child(even) { margin-right: clamp(20px, 4%, 62px); }
.hf-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex: none; }
.hf-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hf-txt b { font-size: 12px; font-weight: 600; color: var(--hero-ink); white-space: nowrap; }
.hf-txt i { font-style: normal; font-size: 11px; color: var(--hero-muted); }
@keyframes hfBob {
  from { translate: 0 0; }
  to { translate: 0 -12px; }
}
/* 错落感：相邻小卡反向微倾（rotate 与位移动画分离，互不干扰） */
.hf-card:nth-child(3n+1) { rotate: -1.2deg; }
.hf-card:nth-child(3n+2) { rotate: 1.3deg; }

.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hero-chip-bg); color: var(--hero-chip-ink);
  border: 1px solid var(--hero-chip-line);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-title { margin-top: 20px; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.16; color: var(--hero-ink); }
.hero-title .grad { background: var(--hero-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 14px; max-width: 620px; color: var(--hero-muted); font-size: 15.5px; line-height: 1.75; }

.hero-search {
  margin-top: 28px; width: min(640px, 100%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .98); border: 1px solid var(--hero-line);
  border-radius: 15px; padding: 8px 8px 8px 16px;
  box-shadow: var(--hero-search-shadow);
  transition: box-shadow .2s, transform .2s;
}
.hero-search:focus-within { box-shadow: 0 20px 54px rgba(99, 102, 241, .45); transform: translateY(-2px); }
.hero-search .icon { color: #94a3b8; }
.hero-search input { flex: 1; border: 0; outline: 0; font-size: 15.5px; background: transparent; color: #0f172a; padding: 9px 0; min-width: 0; }

.hot-words { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.hot-label { color: var(--hero-muted); }
.hot-word {
  border: 1px solid var(--hero-chip-line); background: var(--hero-chip-bg);
  color: var(--hero-chip-ink); padding: 5px 13px; border-radius: 999px; font-size: 13px;
  transition: all .16s; backdrop-filter: blur(4px);
}
.hot-word:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

.hero-ticker {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-line);
  border-radius: 999px; padding: 7px 15px; font-size: 12.5px; color: var(--hero-muted);
  max-width: 100%; overflow: hidden;
}
.tick-ico { font-size: 13px; }
.tick-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tickIn .5s ease; }
@keyframes tickIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   数据条
   ============================================================ */
.stats { padding: 0; margin-top: -30px; position: relative; z-index: 3; }
.stats-inner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 18%; height: 64%;
  width: 1px; background: var(--line);
}
.stat strong { display: block; font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat:first-child strong {
  font-size: 31px; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat strong.free { color: var(--green); }
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* ============================================================
   区块标题
   ============================================================ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.section-title.center, .section-desc.center { text-align: center; justify-content: center; }
.section-desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
/* 眉题：小字距标签，制造标题区的视觉层次 */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.kicker.center { display: flex; width: 100%; justify-content: center; }
.kicker.center::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }

.title-ico {
  width: 40px; height: 40px; border-radius: 12px; font-size: 20px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(217, 70, 239, .14));
  border: 1px solid rgba(99, 102, 241, .22);
}

.sort-wrap { display: flex; align-items: center; gap: 8px; flex: none; }
.sort-label { font-size: 13px; color: var(--muted); }
.select {
  appearance: none; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 9px 34px 9px 14px; font-size: 14px; color: var(--ink-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
  transition: border-color .16s;
}
.select:focus { outline: none; border-color: var(--primary); }
.select.full-w { width: 100%; }

/* ============================================================
   下载排行榜
   ============================================================ */
.rank { padding: 46px 0 24px; }
.rank-list {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.rank-row {
  display: grid;
  grid-template-columns: 44px 46px minmax(0, 1fr) 96px 64px 150px;
  align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer; transition: all .16s;
}
.rank-row:hover { background: var(--card-2); border-color: var(--line); transform: translateX(3px); }
/* 前三名行微着色，与奖牌位呼应 */
.rank-row:nth-child(-n+3) { background: color-mix(in srgb, var(--primary) 3%, transparent); }

.rk-no {
  font-size: 16px; font-weight: 800; color: var(--muted); text-align: center;
  width: 32px; height: 32px; line-height: 32px; border-radius: 9px;
  background: var(--chip-bg); font-variant-numeric: tabular-nums;
}
.rk-no.medal { color: #fff; }
.rk-no.m1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 4px 12px rgba(245, 158, 11, .4); }
.rk-no.m2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); box-shadow: 0 4px 12px rgba(148, 163, 184, .4); }
.rk-no.m3 { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 4px 12px rgba(180, 83, 9, .35); }
.rk-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 20px; color: #fff; flex: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
}
.rk-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-name {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.rk-down { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rk-down b { color: var(--primary); font-weight: 700; }
.rk-star { font-size: 13px; color: var(--amber); font-weight: 600; text-align: center; }
.rk-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ============================================================
   浏览区 · 维度切换 / 分类 chips（前置标识）/ 工具条
   ============================================================ */
.browse { padding: 48px 0 32px; }
.dimension-tabs { display: inline-flex; gap: 6px; background: var(--chip-bg); padding: 5px; border-radius: 12px; }
.dim-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: var(--ink-2);
  padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; transition: all .18s;
}
.dim-tab .dim-ico { font-size: 15px; }
.dim-tab.is-active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13.5px; transition: all .16s;
}
.chip-ico {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px;
  background: color-mix(in srgb, var(--c, #6366f1) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #6366f1) 35%, transparent);
}
.chip-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip.is-active {
  border-color: var(--primary); color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--primary) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary); font-size: 13px; font-weight: 600;
  padding: 5px 6px 5px 12px; border-radius: 999px;
}
.filter-pill button {
  border: 0; background: rgba(99, 102, 241, .14); color: var(--primary);
  width: 18px; height: 18px; border-radius: 50%; font-size: 10px; line-height: 1;
  display: grid; place-items: center; transition: all .15s;
}
.filter-pill button:hover { background: var(--primary); color: #fff; }
.fp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.free-tag {
  font-size: 12.5px; color: var(--green); font-weight: 600;
  background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .25);
  padding: 5px 12px; border-radius: 999px;
}
.clear-btn {
  border: 0; background: transparent; color: var(--muted); font-size: 13px;
  padding: 5px 10px; border-radius: 8px; transition: all .15s;
}
.clear-btn:hover { color: #ef4444; background: rgba(239, 68, 68, .08); }

/* ============================================================
   智能体卡片
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 20px;
  width: 38px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--grad); opacity: .9;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px 130px at 85% -10%, rgba(99, 102, 241, .08), transparent 70%);
  opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card-rank {
  position: absolute; top: 0; right: 14px;
  font-size: 11px; font-weight: 800; color: #fff;
  padding: 4px 9px 6px; border-radius: 0 0 8px 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 10px rgba(245, 158, 11, .35);
}
.card-rank.r2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); box-shadow: 0 4px 10px rgba(148, 163, 184, .35); }
.card-rank.r3 { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 4px 10px rgba(180, 83, 9, .3); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 24px; color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .2);
}
.card-name-wrap { min-width: 0; flex: 1; }
.card-name {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
}
.card-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.badge-free {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--green); flex: none;
  background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3);
  padding: 1px 7px; border-radius: 999px;
}
.badge-kind {
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); flex: none;
  background: var(--chip-bg); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 999px;
}
.badge-kind.up {
  color: #d97706; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35);
}
.card-cat { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--ink-2);
  background: var(--chip-bg); border-radius: 999px; padding: 2px 9px;
}
.cat-pill i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.card-desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.65; min-height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px; color: var(--muted);
  background: var(--chip-bg); padding: 2px 9px; border-radius: 6px;
}
.card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px dashed var(--line);
}
.card-metrics { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-metrics .star { color: var(--amber); font-weight: 600; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  display: grid; place-items: center; transition: all .16s;
}
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(99, 102, 241, .08); transform: translateY(-1px); }
.btn-deploy {
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
  color: var(--primary); font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 9px; transition: all .16s; white-space: nowrap;
}
.btn-deploy:hover {
  background: var(--grad); background-origin: border-box; color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35); transform: translateY(-1px);
}
/* 首卡精选：宽幅跨两列，制造版面节奏焦点 */
@media (min-width: 1081px) {
  .grid .card:first-child { grid-column: span 2; }
  .grid .card:first-child .card-icon { width: 56px; height: 56px; font-size: 28px; border-radius: 15px; }
  .grid .card:first-child .card-name { font-size: 17px; }
  .grid .card:first-child .card-desc { -webkit-line-clamp: 3; min-height: 66px; }
}

/* 空状态 / 加载更多 */
.empty { text-align: center; padding: 60px 20px; }
.empty-ico { font-size: 44px; margin-bottom: 12px; }
.empty h3 { font-size: 18px; color: var(--ink); }
.empty p { font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.load-hint { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   大神上传
   ============================================================ */
.upload { padding: 42px 0 20px; }
.upload-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(16, 185, 129, .18), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(99, 102, 241, .16), transparent 60%),
    var(--card);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 38px 36px; box-shadow: var(--shadow-sm);
}
.ub-deco {
  position: absolute; right: -60px; top: -84px; width: 250px; height: 250px;
  border-radius: 50%; border: 26px solid rgba(16, 185, 129, .08); pointer-events: none;
  rotate: 18deg; border-top-color: rgba(99, 102, 241, .10);
}
.ub-left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ub-left .section-desc { margin-top: 8px; max-width: 480px; }
.ub-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.ub-step {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card-2); border: 1px solid var(--line);
  padding: 7px 14px 7px 7px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.ub-step i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}
.ub-arrow { color: var(--muted); }
.ub-right { margin-top: 22px; }
.ub-right h4 { font-size: 15px; margin-bottom: 14px; color: var(--ink); }
.community-grid { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow: auto; padding-right: 4px; }
.community-card {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 13px; transition: all .16s;
}
.community-card:hover { border-color: var(--primary); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.cc-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 18px; color: #fff;
}
.cc-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cc-name { font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-author { font-size: 12px; color: var(--muted); }
.cc-down { font-size: 12.5px; color: var(--primary); font-weight: 600; flex: none; }
.community-more {
  border: 1px dashed var(--line); background: transparent; color: var(--muted);
  padding: 10px; border-radius: 10px; font-size: 13px; transition: all .15s;
}
.community-more:hover { color: var(--primary); border-color: var(--primary); }
.community-empty {
  text-align: center; padding: 34px 16px;
  border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 13.5px;
}
.ce-ico { font-size: 30px; margin-bottom: 8px; }

/* ============================================================
   使用指南
   ============================================================ */
.how { padding: 56px 0 36px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; align-items: start; }
.how-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: all .2s;
}
.how-card::after {
  content: ""; position: absolute; right: -36px; bottom: -36px;
  width: 140px; height: 140px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .10), transparent);
}
/* 阶梯错落：中卡下沉、右卡微抬（仅桌面端） */
@media (min-width: 861px) {
  .how-card:nth-child(2) { margin-top: 22px; }
  .how-card:nth-child(3) { margin-top: 10px; }
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.how-num {
  font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.how-card h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.how-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--card); }
.footer-inner { display: flex; gap: 40px; padding: 40px 0 30px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; min-width: 220px; }
.footer-brand strong { font-size: 15px; color: var(--ink); }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.footer-cols { display: flex; gap: 56px; margin-left: auto; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ============================================================
   智能体详情页
   ============================================================ */
.detail-page { padding: 24px 0 40px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--primary); }
.crumbs i { font-style: normal; color: var(--line); }

.dp-hero {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.dp-icon {
  width: 84px; height: 84px; border-radius: 20px; flex: none;
  display: grid; place-items: center; font-size: 40px; color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
}
.dp-headinfo { flex: 1; min-width: 260px; }
.dp-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-title-row h1 { font-size: 26px; color: var(--ink); }
.dp-author { font-size: 13px; color: var(--muted); margin-top: 6px; }
.dp-metrics { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.dp-actions { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.dp-repo {
  font-size: 13px; color: var(--muted); text-align: center;
  padding: 8px; border-radius: 10px; border: 1px dashed var(--line); transition: all .15s;
}
.dp-repo:hover { color: var(--primary); border-color: var(--primary); }

.dp-tabs { display: flex; gap: 4px; margin: 24px 0 0; border-bottom: 2px solid var(--line); }
.dtab {
  border: 0; background: transparent; color: var(--muted);
  font-size: 14.5px; font-weight: 600; padding: 12px 18px;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .16s;
}
.dtab:hover { color: var(--ink); }
.dtab.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.dp-body {
  background: var(--card); border: 1px solid var(--line); border-radius: 0 0 18px 18px;
  border-top: 0; padding: 26px 28px; min-height: 220px;
}
.dpanel { display: none; }
.dpanel.is-active { display: block; animation: panelIn .25s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dp-h3 { font-size: 16.5px; color: var(--ink); margin: 0 0 14px; }
.dp-h3:not(:first-child) { margin-top: 26px; }
.dp-docs { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; white-space: pre-wrap; }
.dp-cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  position: relative; padding: 12px 16px 12px 42px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
.feature-list li::before {
  content: "✦"; position: absolute; left: 16px; top: 12px;
  color: var(--primary); font-size: 14px;
}
.install-steps { margin: 0; padding: 0 0 0 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.install-steps li {
  counter-increment: step; position: relative;
  padding: 12px 16px 12px 46px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
.install-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.dp-deploy-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.dp-related { margin-top: 30px; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dp-back-wrap { display: flex; justify-content: center; margin-top: 34px; }

/* ============================================================
   弹窗
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 11, 26, .62);
  backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px;
  animation: maskIn .2s ease;
}
.modal-mask[hidden] { display: none; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 460px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; box-shadow: var(--shadow-lg);
  animation: modalIn .26s cubic-bezier(.35, 1.4, .5, 1);
  max-height: calc(100vh - 40px); overflow: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--chip-bg); color: var(--muted);
  font-size: 13px; transition: all .15s;
}
.modal-close:hover { background: rgba(239, 68, 68, .12); color: #ef4444; transform: rotate(90deg); }
.deploy-modal { text-align: center; }
.deploy-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
.deploy-icon {
  width: 64px; height: 64px; border-radius: 16px; font-size: 30px; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(15, 23, 42, .25);
}
.deploy-head h3 { font-size: 17px; color: var(--ink); }
.deploy-sub { font-size: 13px; color: var(--muted); }
.deploy-steps { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.deploy-steps li {
  position: relative; padding: 10px 14px 10px 38px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 11px;
  font-size: 13.5px; color: var(--muted); transition: all .25s;
}
.deploy-steps li::before {
  content: ""; position: absolute; left: 14px; top: 16px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--line); background: transparent; transition: all .25s;
}
.deploy-steps li.is-doing { border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--ink); }
.deploy-steps li.is-doing::before {
  border-color: var(--primary); border-top-color: transparent;
  animation: spin .7s linear infinite;
}
.deploy-steps li.is-done { color: var(--ink-2); }
.deploy-steps li.is-done::before {
  border-color: var(--green); background: var(--green);
  content: "✓"; color: #fff; font-size: 9px; display: grid; place-items: center;
  animation: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.deploy-bar {
  height: 8px; border-radius: 999px; background: var(--chip-bg); overflow: hidden; margin-bottom: 18px;
}
.deploy-bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: var(--grad); transition: width .4s ease;
}
.deploy-done { display: flex; flex-direction: column; gap: 12px; }
.deploy-done[hidden] { display: none; }
.deploy-ok { font-size: 15px; font-weight: 700; color: var(--green); }
.deploy-done p { font-size: 13.5px; color: var(--muted); }
.deploy-url {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
}
.deploy-url code { font-size: 12px; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deploy-guide {
  text-align: left; font-size: 13px; color: var(--ink-2); line-height: 1.7;
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 10px; padding: 12px 14px;
}
.deploy-guide:empty { display: none; }
.deploy-done-actions { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }

/* 登录 / 上传表单 */
.login-head { text-align: center; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.login-head h3 { font-size: 19px; color: var(--ink); }
.login-head p { font-size: 13px; color: var(--muted); }
.login-form, .upload-form { display: flex; flex-direction: column; gap: 14px; }
.lf-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.lf-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lf-field input, .lf-field textarea, .lf-field select {
  border: 1px solid var(--line); background: var(--input-bg); color: var(--ink);
  border-radius: 10px; padding: 10px 13px; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .16s, box-shadow .16s; width: 100%;
}
.lf-field textarea { resize: vertical; line-height: 1.65; }
.lf-field input:focus, .lf-field textarea:focus, .lf-field select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .13);
}
.lf-err {
  font-size: 12.5px; color: #ef4444;
  background: rgba(239, 68, 68, .09); border: 1px solid rgba(239, 68, 68, .25);
  border-radius: 8px; padding: 8px 12px;
}
.lf-tip { font-size: 12px; color: var(--muted); text-align: center; }
.uf-row { display: flex; gap: 12px; }
.uf-icon { max-width: 90px; }
.upload-modal { max-width: 560px; }

/* ============================================================
   Toast / Reveal
   ============================================================ */
.toast-wrap {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  background: #111827; color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 11px 18px;
  font-size: 13.5px; box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  animation: toastIn .28s cubic-bezier(.35, 1.4, .5, 1);
  max-width: min(90vw, 560px);
}
.toast.success { border-color: rgba(16, 185, 129, .4); }
.toast.out { animation: toastOut .26s ease forwards; }
.t-ico { flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .hf-card, .pulse-dot { animation: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-panel { padding: 48px 36px 44px; }
  .hero-float { display: none; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .stats { margin-top: -24px; }
  .stat:nth-child(4)::before { display: none; }
  .rank-row { grid-template-columns: 36px 42px minmax(0, 1fr) 120px; }
  .rk-star, .rk-down { display: none; }
  .footer-cols { margin-left: 0; gap: 36px; }
}
@media (max-width: 860px) {
  .mini-search { display: none; }
  .hero-float { display: none; }
  .upload-banner { grid-template-columns: 1fr; }
  .community-grid { max-height: none; }
  .how-grid { grid-template-columns: 1fr; }
  .dp-hero { flex-direction: column; }
  .dp-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .dp-actions .btn { flex: 1; }
  .section-title { font-size: 22px; }
  .header-inner { gap: 10px; }
  .logo-text em { display: none; }
  .btn-enter { padding: 10px 12px; }
}
@media (max-width: 620px) {
  .hero-panel { padding: 36px 20px 34px; border-radius: 18px; }
  .hero-search { flex-wrap: nowrap; }
  .hero-search input { font-size: 14px; }
  .hot-words .hot-word { padding: 4px 10px; font-size: 12px; }
  .stats { margin-top: -16px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 30px 38px minmax(0, 1fr); row-gap: 6px; }
  .rk-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .btn-enter { display: none; }
  #btnRequest { display: none; }
  .custom-pop { right: 0; }
  #btnSubmit { padding: 10px 12px; font-size: 13px; }
  .uf-row { flex-direction: column; }
  .uf-icon { max-width: none; }
  .dp-body { padding: 20px 16px; }
  .dp-hero { padding: 20px; }
  .dp-icon { width: 64px; height: 64px; font-size: 30px; }
  .modal { padding: 24px 18px; }
  .footer-cols { gap: 24px; }
}
/* ============ 本地大模型板块 & 界面预览 ============ */
.badge-kind.llm {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #fff;
  border: none;
}
.dp-shot-wrap { margin-bottom: 18px; }
.dp-live-wrap {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: #0f1420; box-shadow: var(--shadow-sm);
}
#dpLive { display: block; width: 100%; height: 660px; border: 0; }
.dp-shot-tip { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* GitHub 项目介绍（详细介绍页签内） */
.dp-gh { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.dp-gh h3 { margin: 16px 0 8px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.dp-gh h4 { margin: 14px 0 6px; font-size: 14.5px; color: var(--ink); }
.dp-gh p { margin: 7px 0; }
.dp-gh ul, .dp-gh ol { margin: 6px 0 6px 22px; }
.dp-gh li { margin: 3px 0; }
.dp-gh img { max-width: 100%; border-radius: 8px; margin: 6px 0; vertical-align: middle; }
.dp-gh code { background: var(--line); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.dp-gh blockquote { border-left: 3px solid #6366f1; color: var(--muted); padding: 2px 12px; margin: 8px 0; }
.dp-gh a { color: #6366f1; }
.dp-gh-tip { color: var(--muted); font-size: 13px; }
/* ============ 我的部署记录 ============ */
.deploy-log-card {
  margin-top: 26px; padding: 22px 24px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.dep-head h3 { font-size: 16px; margin-bottom: 4px; }
.dep-head p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.dep-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dep-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
}
.dep-ic {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--line);
}
.dep-info { flex: 1; min-width: 0; }
.dep-info b { display: block; font-size: 14px; }
.dep-info small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.dep-item .btn.sm { padding: 6px 12px; font-size: 13px; flex: none; }
.dep-empty { font-size: 13.5px; color: var(--muted); padding: 8px 2px; }
[data-theme="dark"] .dep-item { background: rgba(255, 255, 255, 0.03); }

/* ============================================================
   个人工作台（舆论雷达 / 一键文案改写 / 违禁词扫描）
   ============================================================ */
.bench-tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.btab {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; cursor: pointer; transition: all .15s;
}
.btab:hover { border-color: var(--primary); color: var(--primary); }
.btab.is-active {
  background: color-mix(in srgb, var(--primary) 9%, var(--card));
  border-color: var(--primary); color: var(--primary); font-weight: 600;
}
.bpanel { display: none; }
.bpanel.is-active { display: block; }
.bench-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.bench-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.bench-card textarea {
  width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; font: inherit; color: var(--ink); resize: vertical; min-height: 120px;
}
.bench-card textarea:focus { outline: none; border-color: var(--primary); }
.bench-ops { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.bench-count { font-size: 12.5px; color: var(--muted); }
.ferr { color: #e11d48; font-size: 13px; }
.bench-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bench-frow input {
  width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; color: var(--ink);
}
.bench-frow input:focus { outline: none; border-color: var(--primary); }
.bench-result { margin-top: 4px; }
.bench-result .bench-card { margin-bottom: 14px; }
.bench-result .oc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bench-result .oc-h b { font-size: 13.5px; }
.bench-result .oc-h .btn:first-of-type { margin-left: auto; }
.outtext { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.7; color: var(--ink); }
.hide { display: none !important; }
.radar-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.radar-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.radar-stat b { display: block; font-size: 22px; margin-bottom: 4px; color: var(--ink); }
.radar-stat span { font-size: 12px; color: var(--muted); }
.radar-stat b.lv-low { color: #10b981; }
.radar-stat b.lv-mid { color: #f59e0b; }
.radar-stat b.lv-high { color: #e11d48; }
.bench-modal { width: min(520px, 94vw); }
@media (max-width: 720px) {
  .radar-top { grid-template-columns: repeat(2, 1fr); }
  .bench-frow { grid-template-columns: 1fr; }
}
