/* =========================================================================
   AI+ 工具脉冲索引 — 设计系统 v2
   方向：石墨底 / 黄铜单强调色 / Inter 可变字体 + 中文系统字
   原则：字号够大、层级清楚、装饰只留一处（脉冲线 + HOT 环绕光）
   ========================================================================= */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 设计令牌 ---------- */
:root {
  /* 石墨中性色：低饱和、靠明度分层，不靠彩度 */
  --ink: #0a0b0d;
  --ink-soft: #0c0e11;
  --surface: #111316;
  --surface-2: #16191d;
  --surface-3: #1d2126;
  --line: #23272c;
  --line-2: #313640;
  --text: #f0f1f2;
  --text-2: #a6acb4;
  /* 三级文字：原 #737a83 在 --surface-2 上仅 4.06:1，未达 WCAG AA 4.5:1 */
  --text-3: #8a9199;
  /* 榜单图标统一尺寸：所有排行榜共用同一档，避免 30/32/34 混用 */
  --logo-sm: 32px;
  /* 主强调：钢蓝（仅用于链接、选中、关键数字） */
  --brass: #9dbedd;
  --brass-hi: #e3edf7;
  --brass-dim: rgba(157, 190, 221, 0.1);
  --brass-line: rgba(157, 190, 221, 0.3);
  /* 辅助：灰紫 / 沙金，只在徽标与极少数标记上出现 */
  --violet: #b4a7d0;
  --violet-hi: #d3cae4;
  --pink: #d2a97e;
  --violet-dim: rgba(180, 167, 208, 0.12);
  --violet-line: rgba(180, 167, 208, 0.3);
  --jade: #9bb8ae;
  --slate: #8fa9c9;
  --rose: #c79fa8;
  --on-brass: #0a0b0d;
  --holo: linear-gradient(100deg, #e3edf7 0%, #9dbedd 58%, #d2a97e 100%);

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 9px;
  --r-lg: 12px;
  --r-xl: 16px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 32px 80px -32px rgba(0, 0, 0, 0.8);

  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: rgba(157, 190, 221, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

/* 数字统一等宽对齐 */
.hero-stats strong, .group-count, .side-all b, .result-count b, .pager-info b,
.pg-btn, .ri-no, .ec-no, .repo-meta, .rating-summary strong, .top-count, .rank-item b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c333b; border: 2px solid var(--ink); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3b444f; }

/* ---------- 背景层 ---------- */
.bg-canvas { position: fixed; inset: 0; z-index: -3; pointer-events: none; width: 100%; height: 100%; }
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 8%, transparent 78%);
}
.grid-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 34% at 82% -6%, rgba(157, 190, 221, 0.13), transparent 70%),
    radial-gradient(ellipse 40% 36% at 62% 8%, rgba(180, 167, 208, 0.11), transparent 72%),
    radial-gradient(ellipse 44% 40% at 2% 46%, rgba(96, 165, 250, 0.07), transparent 74%);
}
.scanline { display: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 64px; padding: 0 32px;
  display: flex; align-items: center; gap: 28px;
  background: rgba(11, 12, 14, 0.84);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { color: var(--brass); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small {
  font-size: 10px; color: var(--text-3); letter-spacing: 0.14em; font-weight: 500;
}

.main-tabs { display: flex; align-items: center; gap: 4px; height: 64px; }
.main-tabs .tab {
  position: relative; display: flex; align-items: center;
  height: 64px; padding: 0 14px; background: none; border: 0;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color 0.18s var(--ease);
}
.main-tabs .tab i { display: none; }
.main-tabs .tab::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.main-tabs .tab:hover { color: var(--text); }
.main-tabs .tab.active { color: var(--text); font-weight: 600; }
.main-tabs .tab.active::after { transform: scaleX(1); }
/* 板块导航由 button 改为真链接：去掉默认下划线，视觉与按钮状态完全一致 */
.main-tabs a.tab { text-decoration: none; cursor: pointer; }

.top-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.top-links button {
  padding: 7px 12px; background: none; border: 0; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px; transition: 0.16s var(--ease);
}
.top-links button:hover { color: var(--text); background: var(--surface-2); }
.top-links .top-count {
  display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px;
  font-size: 11px; line-height: 17px; font-weight: 700; text-align: center;
  color: var(--on-brass); background: var(--brass); border-radius: 9px;
}
.top-links .top-count[data-zero="1"] { display: none; }

/* 右上角语言切换：中文 / EN */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; padding: 2px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.02);
}
.lang-switch .lang-opt {
  padding: 4px 10px; border: 0; border-radius: 999px; background: none;
  color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.35;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.lang-switch .lang-opt:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.lang-switch .lang-opt.on,
.lang-switch .lang-opt.on:hover { color: #0c0e11; background: var(--brass); }

.menu-langs {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.menu-langs-label { font-size: 12.5px; color: var(--text-3); }
.menu-langs .lang-switch { margin-left: 0; }

/* 英文模式：正文仍是中文时的说明条 */
.locale-note {
  margin: 2px 0 16px; padding: 10px 14px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-3); font-size: 12.5px; line-height: 1.6;
}

.top-status, .mobile-nav, .mobile-actions { display: none; }
.side-mask { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 120% at 82% -20%, rgba(157, 190, 221, 0.11), transparent 62%),
    radial-gradient(ellipse 60% 100% at 8% 120%, rgba(154, 180, 228, 0.07), transparent 65%),
    linear-gradient(180deg, #101318, var(--ink));
}
.hero-bg { display: none; }
.hero-veil { display: none; }

/* 右侧脉冲线：全站唯一的“动态科幻”装饰 */
.hero-visual {
  position: absolute; right: 0; top: 12px; bottom: 60px; width: 47%;
  pointer-events: none; opacity: 0.85;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 82%, transparent);
}
.hero-visual svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(157, 190, 221, 0.3)); }
.pulse-base { fill: none; stroke: rgba(157, 190, 221, 0.26); stroke-width: 1.4; }
.pulse-run {
  fill: none; stroke: url(#pulseGrad); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 130 1600; animation: pulseRun 4.4s linear infinite;
}
@keyframes pulseRun { from { stroke-dashoffset: 1730; } to { stroke-dashoffset: 0; } }
.pulse-tick { stroke: rgba(255, 255, 255, 0.055); stroke-width: 1; }
.pulse-scan { display: none; }
.pulse-label { fill: var(--text-3); font-size: 10px; letter-spacing: 0.12em; }

.hero-inner {
  position: relative; z-index: 2; max-width: 1560px; margin: 0 auto;
  padding: 48px 32px 0; min-height: 300px; display: flex; align-items: flex-start;
}
.hero-copy { max-width: 600px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 0; color: var(--text-3); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass);
  box-shadow: 0 0 0 3px rgba(157, 190, 221, 0.14);
}
.hero h1 {
  margin: 16px 0 16px; font-size: clamp(36px, 4.1vw, 54px); font-weight: 680;
  letter-spacing: -0.032em; line-height: 1.08; color: var(--text);
}
.hero h1 span {
  background: linear-gradient(96deg, #e3edf7 0%, #9dbedd 28%, #dfa994 58%, #a8b6de 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin: 0 0 28px; color: var(--text-2); font-size: 15px; line-height: 1.78;
  max-width: 470px;
}

.search-wrap {
  width: 440px; max-width: 100%; height: 48px; position: relative;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.search-wrap:hover { border-color: #46505c; }
.search-wrap:focus-within { border-color: var(--brass); background: rgba(157, 190, 221, 0.04); }
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search-wrap input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14.5px;
}
.search-wrap input::placeholder { color: #8b929d; }
.search-wrap kbd {
  font-family: var(--font); font-size: 11px; color: var(--text-3);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 7px; background: var(--surface-2);
}

.hero-stats {
  position: relative; z-index: 2; margin-top: 44px;
  border-top: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.5);
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  max-width: 1560px; margin-left: auto; margin-right: auto;
  padding: 0 32px;
}
.hero-stats div {
  display: flex; align-items: baseline; gap: 10px;
  padding: 17px 40px 17px 0; margin-right: 40px;
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong {
  font-size: 26px; font-weight: 650; color: var(--brass); letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-stats span { font-size: 13px; color: var(--text-3); }

/* ---------- 布局 ---------- */
.shell {
  max-width: 1560px; margin: 0 auto; padding: 36px 32px 72px;
  display: flex; align-items: flex-start; gap: 28px;
}
.content { flex: 1; min-width: 0; }
.view-panel { display: none; }
.view-panel.active { display: block; animation: panelIn 0.24s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 侧栏 ---------- */
.sidebar {
  position: sticky; top: 88px; width: 236px; flex-shrink: 0;
  max-height: calc(100vh - 112px); overflow-y: auto;
  padding: 14px 10px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: width 0.24s var(--ease), padding 0.24s var(--ease);
  scrollbar-width: thin; scrollbar-color: #333c47 transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 4px 8px 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.side-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.side-title > span { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.side-title small { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.1em; }
.side-toggle {
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-2);
  color: var(--text-2); transition: 0.16s var(--ease);
}
.side-toggle .toggle-chev { display: block; font-size: 17px; line-height: 1; transform: translateY(-1px); transition: transform 0.22s var(--ease); }
.side-toggle:hover { color: var(--brass); border-color: var(--brass-line); }

.side-all {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text-2); text-align: left;
  font-size: 14px; text-decoration: none; transition: 0.16s var(--ease);
}
.side-all:hover { background: var(--surface-2); color: var(--text); }
.side-all.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.all-icon { color: var(--brass); font-size: 13px; width: 18px; text-align: center; }
.side-all b, .group-count {
  margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--text-3);
}
.side-all.active b { color: var(--brass); }

.side-groups { margin-top: 8px; display: flex; flex-direction: column; gap: 1px; }
.group { border-radius: var(--r-sm); }
.group-head {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; background: none; border: 0; border-radius: var(--r-sm);
  color: var(--text-2); text-align: left; font-size: 14px; text-decoration: none;
  transition: 0.16s var(--ease);
}
.group-head:hover { background: var(--surface-2); color: var(--text); }
.group-head.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.g-icon {
  width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: var(--accent, var(--brass));
  border: 1px solid color-mix(in srgb, var(--accent, var(--brass)) 34%, transparent);
  border-radius: 5px; background: color-mix(in srgb, var(--accent, var(--brass)) 10%, transparent);
}
.group-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: #5d6570; font-size: 11px; transition: transform 0.2s var(--ease); }
.group.open .chev { transform: rotate(90deg); }
.group-sub { display: none; padding: 2px 0 6px 39px; }
.group.open .group-sub { display: block; }
.group-sub a, .group-sub button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; background: none; border: 0; border-radius: 6px;
  color: var(--text-3); font-size: 13px; text-align: left; transition: 0.14s var(--ease);
  cursor: pointer; box-sizing: border-box; text-decoration: none;
}
.group-sub a:hover, .group-sub button:hover { color: var(--text); background: var(--surface-2); }
.group-sub a.active, .group-sub button.active { color: var(--brass); background: rgba(157, 190, 221, 0.07); }
.group-sub b { font-size: 11.5px; font-weight: 500; color: #7b838e; }
.side-foot {
  margin-top: 16px; padding: 12px 8px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 10.5px; color: #7b838e; letter-spacing: 0.03em;
}
.side-foot-line { display: none; }

/* 收起态 */
.sidebar.collapsed { width: 64px; padding: 14px 8px; overflow-x: hidden; }
.sidebar.collapsed .side-title,
.sidebar.collapsed .side-label,
.sidebar.collapsed .side-all b,
.sidebar.collapsed .group-label,
.sidebar.collapsed .group-count,
.sidebar.collapsed .chev,
.sidebar.collapsed .group-sub,
.sidebar.collapsed .side-foot { display: none; }
.sidebar.collapsed .side-head { justify-content: center; padding: 4px 0 12px; }
.sidebar.collapsed .side-all { justify-content: center; padding: 9px 0; }
.sidebar.collapsed .group-head { justify-content: center; padding: 9px 0; }
.sidebar.collapsed .toggle-chev { transform: rotate(180deg); }

/* ---------- 板块头 ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 9px; font-size: 12px; font-weight: 550;
  color: var(--text-3); letter-spacing: 0.04em;
}
.eyebrow::before {
  content: ""; width: 14px; height: 1px; background: var(--brass); flex-shrink: 0;
}
.section-head h2 { font-size: 26px; font-weight: 640; letter-spacing: -0.025em; }
.section-head p { margin-top: 8px; color: var(--text-2); font-size: 14px; max-width: 640px; }
.result-count { font-size: 13px; color: var(--text-3); white-space: nowrap; padding-bottom: 3px; }
.result-count b { font-size: 16px; font-weight: 650; color: var(--brass); margin: 0 2px; }

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 11px 16px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.crumb { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.crumb span:first-child { color: var(--text); font-weight: 550; }
.crumb i { color: #5b636e; font-style: normal; }
.toggles { display: flex; align-items: center; gap: 18px; }
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider {
  width: 32px; height: 18px; border-radius: 99px; background: var(--surface-3);
  border: 1px solid var(--line-2); position: relative; transition: 0.18s var(--ease); flex-shrink: 0;
}
.slider::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: #98a1ac; top: 2px; left: 2px; transition: 0.18s var(--ease);
}
.switch input:checked + .slider { background: rgba(157, 190, 221, 0.28); border-color: var(--brass); }
.switch input:checked + .slider::after { transform: translateX(14px); background: var(--brass); }
.switch em { font-style: normal; }
.switch input:checked ~ em { color: var(--text); }
.switch input:focus-visible + .slider { outline: 2px solid var(--brass); outline-offset: 2px; }

select {
  appearance: none; padding: 7px 30px 7px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background-color: var(--surface-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%238b929d' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center;
  font-size: 13px; color: var(--text-2); outline: none; transition: 0.16s var(--ease);
}
select:hover { border-color: #46505c; color: var(--text); }
select:focus { border-color: var(--brass); }
.repo-note-inline { font-size: 12.5px; color: var(--text-3); }

/* ---------- 二级细分 ---------- */
.sub-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.sub-tab {
  padding: 7px 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: 0.16s var(--ease);
}
.sub-tab:hover { color: var(--text); border-color: #4a545f; background: var(--surface-2); }
.sub-tab.active {
  color: var(--on-brass); font-weight: 600;
  background: var(--brass); border-color: var(--brass);
}

/* ---------- 卡片 ---------- */
.tool-grid, .repo-grid, .flow-grid { display: grid; gap: 16px; }
.tool-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.repo-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.flow-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.tool-card, .repo-card, .flow-card {
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.tool-card:hover, .repo-card:hover, .flow-card:hover {
  border-color: var(--line-2); background: var(--surface-2);
  transform: translateY(-2px);
}
.tool-card:focus-visible, .repo-card:focus-visible, .flow-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 46px; }
.logo-tile {
  position: relative; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent, var(--line-2)) 38%, var(--line-2));
  border-radius: 10px; overflow: hidden;
  background: #f7f7f5; color: #2b3138; font-size: 11px; font-weight: 700;
}
.logo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.logo-fallback { line-height: 1; }
/* 图标盒：图片绝对定位覆盖在 fallback 之上，避免两者各占一个 grid 行 */
.card-name { font-size: 16px; font-weight: 650; color: var(--text); letter-spacing: -0.012em; line-height: 1.35; }
.card-tagline {
  margin-top: 2px; font-size: 13px; color: var(--text-3); line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-desc {
  font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 12px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 5px;
  font-size: 12px; font-weight: 500; line-height: 1.5;
  color: var(--text-2); background: var(--surface-3); border: 1px solid transparent;
}
.tag.cn { color: #9fd3b8; background: rgba(124, 194, 160, 0.1); }
.tag.overseas { color: #b3c4ea; background: rgba(154, 180, 228, 0.11); }
.tag.free { color: #edcda2; background: rgba(157, 190, 221, 0.11); }
.tag.niche { color: #e6bda9; background: rgba(223, 169, 148, 0.11); }

.card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.price { font-size: 13px; color: var(--text-2); font-weight: 500; }
.card-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.card-more { font-size: 12.5px; color: var(--brass); font-weight: 550; white-space: nowrap; }
.tool-card:hover .card-more, .repo-card:hover .repo-link span:last-child, .flow-card:hover .flow-foot span:first-child { color: var(--brass-hi); }
.fav-btn {
  position: relative; width: 28px; height: 28px; flex: none; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); border-radius: 7px; background: transparent;
  color: var(--text-3); font-size: 14px; line-height: 1; transition: 0.16s var(--ease);
}
.fav-btn:hover { color: var(--rose); border-color: rgba(223, 169, 148, 0.5); }
.fav-btn.on { color: var(--rose); border-color: rgba(223, 169, 148, 0.55); background: rgba(223, 169, 148, 0.1); }
/* 触屏：视觉尺寸不变，向外扩 8px 命中区，达到 44px 最小点按范围 */
@media (pointer: coarse) {
  .fav-btn::after { content: ""; position: absolute; inset: -8px; }
}
.cmp-btn {
  width: 68px; padding: 4px 0; text-align: center; border-radius: 6px;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--text-3); font-size: 12px; font-weight: 500; line-height: 1.6;
  white-space: nowrap; transition: 0.15s var(--ease);
}
.cmp-btn:hover { color: var(--text); border-color: #4c5763; }
.cmp-btn.on { color: #c2d1f0; border-color: rgba(154, 180, 228, 0.45); background: rgba(154, 180, 228, 0.11); }
.visit { font-size: 13px; color: var(--brass); }

/* 开源卡片 */
.repo-name {
  font-family: var(--mono); font-size: 15.5px; font-weight: 650; color: var(--text);
  letter-spacing: -0.01em; word-break: break-word; padding-right: 46px; line-height: 1.4;
}
.repo-meta {
  display: flex; align-items: center; gap: 14px; margin: 10px 0 0;
  font-size: 13px; color: var(--text-2);
}
.repo-star { color: var(--brass); font-weight: 650; }
.repo-lang { display: flex; align-items: center; gap: 6px; }
.repo-lang i { width: 7px; height: 7px; border-radius: 50%; background: var(--lang-color); display: inline-block; }
.repo-license { color: var(--text-3); }
.repo-desc {
  font-size: 13px; line-height: 1.6; color: var(--text-2); margin: 12px 0 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.repo-link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-3);
}
.repo-link span:last-child { color: var(--brass); font-weight: 550; }

/* 工作流卡片 */
.flow-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 12px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.02em;
}
.flow-card h3 { font-size: 16px; font-weight: 650; color: var(--text); letter-spacing: -0.012em; padding-right: 46px; }
.flow-card > p { margin: 6px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.55; }
.flow-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.flow-steps li {
  display: flex; align-items: center; gap: 9px; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2);
}
.flow-steps span { font-size: 11.5px; font-weight: 600; color: var(--brass); flex-shrink: 0; }
.flow-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--brass); font-weight: 550;
}
.flow-foot .duration { color: var(--text-3); font-weight: 400; }

/* ---------- HOT ---------- */
.hot-badge {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--brass); background: rgba(157, 190, 221, 0.1);
  border: 1px solid var(--brass-line); border-radius: 5px; padding: 2px 7px;
}
.hot-flame { font-size: 7px; color: var(--brass); }
.tool-card.is-hot, .repo-card.is-hot, .flow-card.is-hot {
  border-color: rgba(157, 190, 221, 0.28);
  background: linear-gradient(180deg, rgba(157, 190, 221, 0.055), var(--surface) 42%);
}
/* 环绕流光：一圈细光沿边框跑 */
.tool-card.is-hot::after, .repo-card.is-hot::after, .flow-card.is-hot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 13px; padding: 1px;
  background: conic-gradient(from var(--hot-angle, 0deg), transparent 0deg, transparent 292deg,
    rgba(157, 190, 221, 0.55) 322deg, #e3edf7 344deg, rgba(247, 224, 192, 0.65) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 2; animation: hotOrbit 5.5s linear infinite;
}
@property --hot-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes hotOrbit { to { --hot-angle: 360deg; } }
.tool-card.is-hot:hover, .repo-card.is-hot:hover, .flow-card.is-hot:hover {
  border-color: rgba(157, 190, 221, 0.45);
}

/* ---------- 分页 ---------- */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
}
.pager-info { font-size: 13px; color: var(--text-3); }
.pager-info b { font-weight: 650; color: var(--text); padding: 0 1px; }
.pager-ctrl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn {
  min-width: 36px; height: 36px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: 0.15s var(--ease);
}
.pg-btn:hover:not(.disabled):not(.active) { color: var(--text); border-color: #4c5763; background: var(--surface-2); }
.pg-btn.active { color: var(--on-brass); background: var(--brass); border-color: var(--brass); font-weight: 650; }
.pg-btn.disabled { opacity: 0.35; cursor: not-allowed; }
.pg-gap { color: #6d7681; padding: 0 3px; font-size: 13px; }
.empty { padding: 64px 0; text-align: center; color: var(--text-3); font-size: 14px; }

/* ---------- 说明区 ---------- */
.section.about {
  margin-top: 56px; padding: 32px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface);
}
.about-grid { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 48px; align-items: start; }
.about h2 { font-size: 22px; margin-bottom: 10px; }
.about p { color: var(--text-2); font-size: 13.5px; line-height: 1.75; }
.rules { display: flex; flex-direction: column; }
.rules div {
  display: flex; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.65;
}
.rules div:first-child { padding-top: 0; }
.rules div:last-child { border-bottom: 0; padding-bottom: 0; }
.rules b { font-size: 11.5px; font-weight: 600; color: var(--brass); flex-shrink: 0; padding-top: 3px; font-variant-numeric: tabular-nums; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-soft); margin-top: 64px; }
.footer-inner { max-width: 1560px; margin: 0 auto; padding: 48px 32px 24px; }
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 48px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { font-size: 20px; font-weight: 700; color: var(--brass); letter-spacing: -0.02em; }
.footer-brand span { font-size: 13px; color: var(--text-2); }
.footer-col-brand p { max-width: 360px; font-size: 13px; color: var(--text-3); line-height: 1.8; }
.footer-col h4 { margin-bottom: 14px; font-size: 13px; font-weight: 650; color: var(--text); }
.footer-col button, .footer-col a {
  display: block; width: fit-content; margin: 0 0 9px; padding: 0; background: none; border: 0;
  color: var(--text-3); font-size: 13px; text-align: left; transition: color 0.15s var(--ease);
}
.footer-col button:hover { color: var(--brass); }
.footer-col a { color: var(--brass); }
.footer-col a:hover { text-decoration: underline; }
.footer-index {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  border-top: 1px solid var(--line); padding-top: 18px;
  font-size: 12px; color: #7b838e;
}
.footer-index span { color: #565e68; letter-spacing: .12em; font-size: 10.5px; }
.footer-index a { color: #939ba6; border-bottom: 1px solid transparent; }
.footer-index a:hover { color: var(--brass); border-bottom-color: rgba(210, 169, 126, .4); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: 12px; color: #7b838e; line-height: 1.7;
}
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 40;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(20, 23, 27, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text-2); font-size: 15px;
  opacity: 0; pointer-events: none; transition: 0.2s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--brass); border-color: var(--brass-line); }

/* ---------- 详情页 ---------- */
.detail { position: fixed; inset: 0; z-index: 100; overflow-y: auto; }
.detail-mask { position: fixed; inset: 0; background: rgba(6, 7, 9, 0.78); backdrop-filter: blur(12px); }
.detail-panel {
  position: relative; z-index: 1; width: min(940px, calc(100% - 32px)); margin: 36px auto 64px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-3);
  animation: modalIn 0.26s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.995); } to { opacity: 1; transform: none; } }

.detail-cover {
  position: relative; height: 208px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 140% at 88% 0%, rgba(157, 190, 221, 0.16), transparent 62%),
    linear-gradient(160deg, #1a2027, #12151a 60%);
}
.detail-cover-art {
  position: absolute; inset: 0; opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(105deg, transparent 20%, #000 70%);
  -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 70%);
}
.detail-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--surface) 2%, rgba(20, 23, 27, 0.35) 46%, transparent 82%);
}
.detail-cover-copy { position: absolute; z-index: 3; left: 36px; right: 36px; bottom: 22px; }
.detail-kicker {
  font-size: 12px; font-weight: 550; color: var(--brass);
  letter-spacing: 0.06em; margin-bottom: 10px;
}
.detail-cover h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.022em; margin-bottom: 8px; word-break: break-word; }
.detail-cover p { color: var(--text-2); font-size: 14.5px; }
.detail-close {
  position: absolute; z-index: 5; top: 18px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 12, 15, 0.62);
  backdrop-filter: blur(6px);
  color: var(--text); font-size: 20px; line-height: 1; transition: 0.16s var(--ease);
}
.detail-close:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

.detail-body { padding: 30px 36px 44px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 36px; align-items: start; }
.detail-main { min-width: 0; }
.detail-aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.aside-card h3 {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 14px; font-weight: 650; color: var(--text);
}
.aside-card h3::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--brass); }
.related-list { display: flex; flex-direction: column; gap: 4px; }
.related-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm);
  background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer;
  transition: background 0.15s var(--ease);
}
.related-item:hover { background: rgba(255, 255, 255, 0.05); }
/* 相关推荐里的前三个是推荐位，用金色竖条 + 角标与普通条区分 */
.related-item.is-promo {
  position: relative; padding-left: 12px;
  background: linear-gradient(90deg, rgba(210, 169, 126, 0.085), transparent 72%);
}
.related-item.is-promo::before {
  content: ""; position: absolute; left: 3px; top: 9px; bottom: 9px; width: 2px;
  border-radius: 2px; background: linear-gradient(180deg, #f4dfb8, #d2a97e);
}
.related-item.is-promo:hover { background: linear-gradient(90deg, rgba(210, 169, 126, 0.14), rgba(255, 255, 255, 0.03) 72%); }
.promo-chip {
  margin-left: auto; flex: none; font-style: normal;
  font-size: 9px; font-weight: 700; letter-spacing: 0.05em; line-height: 1;
  color: #241505; background: linear-gradient(135deg, #f4dfb8, #d2a97e);
  border-radius: 3px; padding: 3px 5px;
}
.related-logo {
  position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px;
  background: #f7f7f5; display: grid; place-items: center; overflow: hidden;
  font-size: 10px; font-weight: 700; color: #333a42;
}
.related-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.related-copy { min-width: 0; flex: 1; }
.related-copy strong { display: block; font-size: 13.5px; font-weight: 550; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-copy span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rating-summary { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.rating-summary strong { font-size: 30px; font-weight: 650; color: var(--brass); line-height: 1; letter-spacing: -0.02em; }
.rating-summary span { font-size: 12.5px; color: var(--text-3); }
.stars-input { display: flex; gap: 4px; margin-bottom: 10px; }
.star-btn { padding: 0; background: none; border: 0; color: #565f6b; font-size: 22px; line-height: 1; transition: color 0.12s; }
.star-btn.on { color: var(--brass); }
.star-btn:hover { color: var(--brass-hi); }
.review-input {
  width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--ink-soft);
  color: var(--text); font-size: 13px; line-height: 1.6; outline: none; transition: border-color 0.15s;
}
.review-input::placeholder { color: #7b838e; }
.review-input:focus { border-color: var(--brass); }
.review-submit {
  width: 100%; margin-top: 10px; padding: 9px; border-radius: var(--r-sm);
  border: 1px solid var(--brass-line); background: var(--brass-dim); color: var(--brass);
  font-size: 13px; font-weight: 600; transition: 0.15s var(--ease);
}
.review-submit:hover { background: rgba(157, 190, 221, 0.2); }
.review-list { margin-top: 14px; max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.review-item { padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.review-item .rv-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.review-item .rv-stars { color: var(--brass); letter-spacing: 1px; }
.review-item p { margin-top: 6px; font-size: 12.5px; color: var(--text-2); word-break: break-word; line-height: 1.6; }
.review-empty { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.rating-note { margin-top: 10px; font-size: 11.5px; color: #7b838e; line-height: 1.6; }

.long-text { font-size: 15px; line-height: 1.95; color: var(--text-2); white-space: pre-line; }
.step-text { color: var(--text-2); }
.step-text::first-line { color: var(--text); }
.copy-manual {
  position: fixed; z-index: 500; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(680px, calc(100% - 40px)); height: 50vh; padding: 16px;
  border: 1px solid var(--brass); border-radius: var(--r); background: var(--surface);
  color: var(--text); font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  resize: vertical; outline: none; box-shadow: var(--shadow-3);
}
.copy-manual-label {
  position: fixed; z-index: 501; left: 50%; top: calc(50% - 25vh - 46px); transform: translateX(-50%);
  padding: 9px 16px; border-radius: var(--r-sm); background: var(--brass); color: var(--on-brass);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.shot-grid a { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.shot-grid a:hover { border-color: var(--line-2); }
.shot-grid img { width: 100%; height: 190px; object-fit: contain; object-position: center; background: #0a0c10; padding: 4px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative; padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); line-height: 1.75;
}
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.feature-list b { color: var(--text); font-weight: 600; }

.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.detail-lede { font-size: 16px; line-height: 1.85; color: var(--text-2); margin-bottom: 28px; }
.detail-visual {
  position: relative; height: 150px; margin-bottom: 28px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 70% 50%, color-mix(in srgb, var(--accent, var(--brass)) 16%, transparent), transparent 60%), var(--ink-soft);
}
.detail-visual svg { width: 100%; height: 100%; }
.detail-visual-label { position: absolute; left: 16px; bottom: 12px; font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }
.detail-sec { margin-bottom: 30px; }
.detail-sec h3 {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-size: 15px; font-weight: 650; color: var(--text);
}
.detail-sec h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brass); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text-2); font-size: 13px;
}
.chip.alt { border-color: rgba(154, 180, 228, 0.28); background: rgba(154, 180, 228, 0.08); color: #c3d2f0; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.meta-cell { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.meta-cell span { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; }
.meta-cell b { font-size: 14px; font-weight: 550; color: var(--text); }
.tip-box {
  padding: 14px 18px; border-left: 3px solid var(--brass); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(157, 190, 221, 0.07); font-size: 13.5px; color: #e8d3b4; line-height: 1.75;
}
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-list li {
  position: relative; padding: 12px 0 12px 46px; margin-left: 13px;
  border-left: 1px solid var(--line); font-size: 14px; color: var(--text-2); line-height: 1.75;
}
.step-list li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: -14px; top: 12px; width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.step-list b { color: var(--text); margin-right: 8px; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.related-card {
  position: relative;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; background: var(--surface-2); transition: 0.15s var(--ease);
}
.related-card:hover { border-color: var(--line-2); background: var(--surface-3); }
.related-card strong { display: block; font-size: 13.5px; font-weight: 550; color: var(--text); }
.related-card span { font-size: 12px; color: var(--text-3); }

/* 同分类工具：换一批 + 首个推荐位 */
.detail-sec .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-sec .sec-head h3 { margin-bottom: 0; }
.shuffle-btn {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: 12px; font-weight: 500;
  transition: 0.16s var(--ease);
}
.shuffle-btn:hover { color: var(--text); border-color: rgba(210, 169, 126, 0.5); background: var(--surface-2); }
.shuffle-btn:active { transform: scale(0.97); }
.related-card.is-promo {
  border-color: rgba(210, 169, 126, 0.5);
  background: linear-gradient(180deg, rgba(210, 169, 126, 0.075), var(--surface-2) 62%);
  box-shadow: inset 0 0 0 1px rgba(210, 169, 126, 0.16), 0 0 18px -10px rgba(210, 169, 126, 0.7);
}
.related-card.is-promo:hover { border-color: rgba(210, 169, 126, 0.75); }
.promo-flag {
  position: absolute; top: 8px; right: 8px;
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  color: #241505; background: linear-gradient(135deg, #f4dfb8, #d2a97e);
  border-radius: 3px; padding: 2px 5px; line-height: 1;
}

.detail-actions {
  position: sticky; bottom: 0; z-index: 4; margin-top: 32px; padding: 16px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, var(--surface) 78%, transparent);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  transition: 0.16s var(--ease); border: 1px solid transparent;
}
.btn-primary { background: var(--brass); color: var(--on-brass); border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { border-color: #4c5763; color: var(--text); background: var(--surface-2); }
.detail-disclaimer { margin-top: 14px; font-size: 12px; color: #7b838e; line-height: 1.7; }

/* ---------- Markdown ---------- */
.md-body { font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.md-body h1 { font-size: 24px; color: var(--text); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.md-body h2 { font-size: 18px; color: var(--text); margin: 28px 0 12px; padding-left: 12px; border-left: 3px solid var(--brass); }
.md-body h3 { font-size: 15.5px; color: var(--text); margin: 20px 0 10px; }
.md-body p { margin: 10px 0; }
.md-body blockquote {
  margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--brass);
  background: rgba(157, 190, 221, 0.06); color: #d9c6a9; font-size: 13.5px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.md-body ul, .md-body ol { padding-left: 24px; margin: 10px 0; }
.md-body li { margin: 5px 0; }
.md-body li.task { list-style: none; margin-left: -20px; }
.md-body code {
  font-family: var(--mono); font-size: 13px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.07); color: #e8d3b4;
}
.md-body pre {
  margin: 14px 0; padding: 16px; border-radius: var(--r-sm);
  background: #0a0c0f; border: 1px solid var(--line); overflow-x: auto;
}
.md-body pre code { background: none; padding: 0; color: #cfd6de; white-space: pre; }
.md-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.md-body th, .md-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.md-body th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.md-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.md-body a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); z-index: 200;
  padding: 11px 20px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--line-2);
  color: var(--text); font-size: 13.5px; box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: 0.22s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.tray-on .toast { bottom: 108px; }
/* 对比台是 fixed 定位，滑到页底会盖住版权行；按托盘高度给页面补底部留白 */
body.tray-on { padding-bottom: 96px; }
@media (max-width: 760px) { body.tray-on { padding-bottom: 148px; } }

/* ---------- 广告位 ---------- */
.ad-slot {
  position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(100deg, rgba(157, 190, 221, 0.07), var(--surface) 55%);
}
.ad-badge {
  position: absolute; top: 10px; right: 14px;
  font-size: 10px; letter-spacing: 0.08em; color: var(--text-3);
}
.ad-body { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.ad-mark {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 11px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--brass); background: rgba(157, 190, 221, 0.1); border: 1px solid var(--brass-line);
}
.ad-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-copy strong { font-size: 15px; font-weight: 600; color: var(--text); }
.ad-copy span { font-size: 13px; color: var(--text-3); }
.ad-cta {
  flex-shrink: 0; padding: 9px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--brass-line); background: transparent;
  color: var(--brass); font-size: 13px; font-weight: 600; transition: 0.16s var(--ease);
}
.ad-cta:hover { background: rgba(157, 190, 221, 0.12); border-color: var(--brass); }

/* ---------- 信息面板 ---------- */
.info-modal { position: fixed; inset: 0; z-index: 120; overflow-y: auto; }
.info-mask { position: fixed; inset: 0; background: rgba(6, 7, 9, 0.8); backdrop-filter: blur(12px); }
.info-panel {
  position: relative; z-index: 1; width: min(880px, calc(100% - 32px)); margin: 44px auto 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-3); animation: modalIn 0.26s var(--ease);
}
.info-close {
  position: absolute; z-index: 5; top: 18px; right: 20px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 12, 15, 0.6);
  color: var(--text); font-size: 20px; line-height: 1; transition: 0.16s var(--ease);
}
.info-close:hover { background: rgba(255, 255, 255, 0.08); }
.info-head {
  padding: 44px 44px 28px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 100% at 92% -20%, rgba(157, 190, 221, 0.1), transparent 70%);
}
.info-head .eyebrow { font-size: 12px; color: var(--brass); margin-bottom: 10px; }
.info-head h2 { font-size: 30px; margin-bottom: 10px; }
.info-head p { color: var(--text-2); font-size: 14px; max-width: 620px; line-height: 1.8; }
.info-body { padding: 32px 44px 44px; }
.info-lead { font-size: 15px; line-height: 1.9; color: var(--text-2); margin-bottom: 28px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 28px; }
.info-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.info-num { font-size: 12px; font-weight: 600; color: var(--brass); font-variant-numeric: tabular-nums; }
.info-card h4 { margin: 8px 0 8px; font-size: 15px; color: var(--text); }
.info-card p { font-size: 13px; line-height: 1.75; color: var(--text-2); }
.info-h3 { display: flex; align-items: center; gap: 9px; margin: 28px 0 12px; font-size: 17px; color: var(--text); }
.info-h3::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--brass); }
.info-p { margin-bottom: 18px; font-size: 14px; line-height: 1.85; color: var(--text-2); }
.info-note {
  margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--brass);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(157, 190, 221, 0.06);
  font-size: 13px; line-height: 1.8; color: #dcc9ac;
}
.info-contact {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px;
  border: 1px solid var(--brass-line); border-radius: var(--r); background: rgba(157, 190, 221, 0.05);
}
.info-contact > div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.info-contact span { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.04em; }
.info-contact strong { font-size: 17px; font-weight: 650; color: var(--brass); letter-spacing: -0.01em; }
.info-copy, .info-mail {
  padding: 10px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  transition: 0.15s var(--ease);
}
.info-copy { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); }
.info-copy:hover { color: var(--text); border-color: #4c5763; }
.info-mail { border: 1px solid var(--brass); background: var(--brass); color: var(--on-brass); }
.info-mail:hover { background: var(--brass-hi); }

/* ================= 帮我选 / 收藏 / 对比 / 提交 ================= */
body.picks-view .sidebar { display: none; }

.picks-block { margin-bottom: 40px; }
.picks-block-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 18px; }
.picks-block-head h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.picks-block-head h3 span { display: none; }
.picks-block-head p { font-size: 13.5px; color: var(--text-3); }

.editor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.editor-card {
  position: relative; padding: 18px; border-radius: var(--r); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  transition: 0.18s var(--ease);
}
.editor-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.ec-top { display: flex; align-items: center; gap: 11px; }
.ec-no { font-size: 12px; font-weight: 600; color: var(--brass); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ec-logo {
  position: relative; width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 8px; background: #f7f7f5; overflow: hidden;
}
.ec-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ec-logo .logo-fallback { font-size: 10px; font-weight: 700; color: #333a42; }
.ec-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ec-name strong { font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-name span { font-size: 12px; color: var(--text-3); }
.ec-why { margin: 12px 0 14px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.ec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ec-price { font-size: 12.5px; color: var(--text-3); }
.ec-acts { display: flex; align-items: center; gap: 8px; }

.rank-list { display: grid; gap: 16px; }
.rank-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.rank-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.rank-head h3 { font-size: 16px; font-weight: 650; }
.rank-head p { margin-top: 5px; font-size: 13px; color: var(--text-3); }
.rank-scene {
  flex-shrink: 0; padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2);
}
.rank-items { list-style: none; margin: 0; padding: 0; }
.rank-item {
  display: grid; grid-template-columns: 26px var(--logo-sm) minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 12px 20px;
  cursor: pointer; border-bottom: 1px solid var(--line); transition: background 0.15s var(--ease);
}
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { background: var(--surface-2); }
.rank-item:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.ri-no { font-size: 14px; font-weight: 650; color: #7b838e; text-align: center; font-variant-numeric: tabular-nums; }
.ri-no.top { color: var(--brass); }
.ri-logo {
  position: relative; width: var(--logo-sm); height: var(--logo-sm); flex: none; display: grid; place-items: center;
  border-radius: 8px; background: #f7f7f5; overflow: hidden;
}
.ri-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.ri-logo .logo-fallback { font-size: 10px; font-weight: 700; color: #333a42; line-height: 1; }
.ri-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ri-main strong { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--text); }
.ri-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-first {
  flex: none; padding: 2px 7px; border-radius: 4px; font-size: 10.5px; font-style: normal; font-weight: 600;
  color: var(--on-brass); background: var(--brass);
}
.ri-why { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.ri-meta { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.ri-acts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 104px; flex: none; }

.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.recent-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); transition: 0.16s var(--ease);
}
.recent-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.recent-date { font-size: 11.5px; color: var(--brass); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.recent-item strong { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-tag { margin-left: auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

/* ---------- 对比台 ---------- */
.compare-tray {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: min(1040px, calc(100% - 32px)); padding: 12px 18px;
  border-radius: var(--r-lg); background: rgba(20, 23, 27, 0.96);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
  backdrop-filter: blur(16px); animation: panelIn 0.2s var(--ease);
}
.tray-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.tray-label span { display: none; }
.tray-label b { font-size: 14px; color: var(--brass); font-weight: 650; }
.tray-items { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tray-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px;
  border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2);
  font-size: 12.5px; color: var(--text-2);
}
.tray-chip button {
  width: 17px; height: 17px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--text-3); font-size: 11px; line-height: 1;
}
.tray-chip button:hover { background: rgba(223, 169, 148, 0.5); color: #fff; }
.tray-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.tray-actions .btn-primary, .tray-actions .btn-ghost { padding: 9px 15px; font-size: 13px; }
.tray-actions .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 通用面板 ---------- */
.sheet { position: fixed; inset: 0; z-index: 130; }
.sheet-mask { position: absolute; inset: 0; background: rgba(6, 7, 9, 0.82); backdrop-filter: blur(12px); }
.sheet-panel {
  position: relative; z-index: 1; width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 72px); margin: 36px auto; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-3); animation: modalIn 0.24s var(--ease);
}
.sheet-close {
  position: absolute; top: 16px; right: 18px; z-index: 2; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 12, 15, 0.6);
  color: var(--text-2); font-size: 19px; line-height: 1; transition: 0.15s;
}
.sheet-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.sheet-head { padding: 30px 32px 20px; border-bottom: 1px solid var(--line); }
.sheet-head .eyebrow { font-size: 12px; color: var(--brass); margin-bottom: 10px; }
.sheet-head h2 { font-size: 24px; font-weight: 650; }
.sheet-head p { margin-top: 8px; font-size: 13.5px; color: var(--text-2); }
.sheet-body { padding: 24px 32px 32px; }
.sheet-tools { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.sheet-tools .btn-ghost { padding: 8px 14px; font-size: 12.5px; }
.sheet-empty { padding: 48px 10px; text-align: center; color: var(--text-3); font-size: 14px; line-height: 1.8; }

.fav-list { display: grid; gap: 9px; }
.fav-row {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.fav-logo {
  position: relative; width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 8px; background: #f7f7f5; overflow: hidden;
}
.fav-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.fav-logo .logo-fallback { font-size: 10px; font-weight: 700; color: #333a42; }
.fav-main { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.fav-main strong { font-size: 14px; font-weight: 550; }
.fav-main span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-main:hover strong { color: var(--brass); }
.fav-acts { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.fav-go { font-size: 12.5px; color: var(--brass); }
.fav-del {
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-3); font-size: 12px; transition: 0.15s;
}
.fav-del:hover { color: var(--rose); border-color: rgba(223, 169, 148, 0.5); }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.cmp-table th, .cmp-table td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; }
.cmp-table thead th:first-child, .cmp-table tbody th, .cmp-table tfoot th {
  color: var(--text-3); font-weight: 500; font-size: 12.5px; white-space: nowrap;
}
.cmp-name { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.cmp-del {
  padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-3); font-size: 11.5px;
}
.cmp-del:hover { color: var(--rose); border-color: rgba(223, 169, 148, 0.5); }
.cmp-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.cmp-table td { color: var(--text-2); line-height: 1.65; }
.cmp-go {
  display: inline-flex; padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--brass); color: var(--on-brass); font-size: 12.5px; font-weight: 600;
}
.cmp-note { margin-top: 14px; font-size: 12px; color: var(--text-3); }

.submit-form { display: grid; gap: 16px; }
.sf-row { display: grid; gap: 8px; }
.sf-row label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.sf-row label i { color: var(--rose); font-style: normal; }
.sf-row select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%238b929d' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 34px;
}
.sf-row input, .sf-row select, .sf-row textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--ink-soft);
  color: var(--text); font-size: 14px; font-family: var(--font); outline: none;
  transition: border-color 0.15s;
}
.sf-row textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.sf-row input::placeholder, .sf-row textarea::placeholder { color: #7b838e; }
.sf-row input:focus, .sf-row select:focus, .sf-row textarea:focus { border-color: var(--brass); }
.sf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sf-note { font-size: 12px; color: var(--text-3); line-height: 1.7; }

.menu-list { display: grid; gap: 10px; }
.menu-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text); text-align: left; transition: 0.15s;
}
.menu-list button:hover { border-color: var(--line-2); background: var(--surface-3); }
.menu-list strong { font-size: 14.5px; font-weight: 550; }
.menu-list span { font-size: 12.5px; color: var(--text-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .hero-visual { width: 46%; opacity: 0.7; }
  .top-links button { padding: 7px 9px; font-size: 13px; }
}
@media (max-width: 1080px) {
  .topbar { padding: 0 20px; gap: 16px; }
  .shell { padding: 28px 20px 56px; gap: 20px; }
  .hero-inner { padding: 44px 20px 0; }
  .hero-stats { padding: 0 20px; }
  .hero-stats div { padding-right: 26px; margin-right: 26px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
}
@media (max-width: 900px) {
  .main-tabs {
    margin-left: 0; overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
  }
  .main-tabs::-webkit-scrollbar { display: none; }
  .main-tabs .tab { padding: 0 11px; font-size: 13.5px; white-space: nowrap; }
  .brand-text small { display: none; }
  .top-links { display: none; }
  .mobile-actions {
    display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: none;
    color: var(--text-2); font-size: 18px; line-height: 1;
  }
  .mobile-actions:hover { color: var(--brass); }
  .hero-visual { display: none; }
  .hero-inner { min-height: 0; padding: 34px 20px 0; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 14px; margin-bottom: 20px; }
  .hero-stats {
    margin-top: 28px; padding: 0 20px 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    max-width: 100%;
  }
  .hero-stats div {
    padding: 12px 0; margin: 0; border-right: 0;
    border-top: 1px solid var(--line);
  }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-stats div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 12px; }
  .hero-stats div:nth-child(even) { padding-left: 16px; }
  .hero-stats strong { font-size: 21px; }
  .hero-stats span { font-size: 12px; }
  .search-wrap { width: 100%; }

  .sidebar {
    position: fixed; top: 64px; left: 0; bottom: 0; z-index: 60; width: 272px; max-height: none;
    border-radius: 0; border-left: 0; border-top: 0; transform: translateX(-102%);
    transition: transform 0.24s var(--ease); background: var(--surface);
  }
  .sidebar.open { transform: translateX(0); }
  .side-mask { display: block; position: fixed; inset: 64px 0 0; z-index: 55; background: rgba(0, 0, 0, 0.62); opacity: 0; pointer-events: none; transition: 0.24s; }
  .side-mask.show { opacity: 1; pointer-events: auto; }

  .section-head h2 { font-size: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .detail-panel { width: 100%; margin: 0; min-height: 100vh; border-radius: 0; border: 0; }
  .detail-cover { height: 210px; }
  .detail-cover h2 { font-size: 26px; }
  .detail-body { padding: 24px 20px 40px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .detail-aside { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col-brand { grid-column: 1 / -1; }
  .info-panel { width: 100%; margin: 0; min-height: 100vh; border-radius: 0; border: 0; }
  .info-head { padding: 38px 22px 24px; }
  .info-head h2 { font-size: 26px; }
  .info-body { padding: 26px 22px 44px; }
  .info-cards { grid-template-columns: 1fr; }

  .rank-item { grid-template-columns: 24px 30px minmax(0, 1fr); row-gap: 8px; }
  .ri-meta { display: none; }
  .ri-acts { grid-column: 3; justify-content: flex-start; }
  .compare-tray { left: 10px; right: 10px; transform: none; max-width: none; bottom: 10px; padding: 12px; }
  .tray-actions { margin-left: 0; width: 100%; }
  .tray-actions .btn-primary, .tray-actions .btn-ghost { flex: 1; }
  .sheet-head { padding: 24px 20px 16px; }
  .sheet-body { padding: 18px 20px 26px; }
  .sheet-panel { margin: 12px auto; max-height: calc(100vh - 24px); }
  .fav-row { flex-wrap: wrap; }
  .fav-acts { width: 100%; justify-content: flex-end; }
  .top-links button[data-info="about"] { display: none; }
}
@media (max-width: 600px) {
  .topbar { height: 58px; padding: 0 14px; gap: 10px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand-text strong { font-size: 18px; }
  .main-tabs .tab { padding: 0 9px; font-size: 13px; }
  .hero-inner { padding: 26px 16px 0; }
  .hero-tag { font-size: 12px; }
  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 13.5px; }
  .hero-stats { padding: 0 16px; }
  .shell { padding: 22px 16px 48px; }
  .tool-grid, .repo-grid, .flow-grid { grid-template-columns: 1fr; }
  .tool-card, .repo-card, .flow-card { padding: 16px; }
  .section-head { display: block; }
  .section-head h2 { font-size: 22px; }
  .result-count { margin-top: 10px; padding: 0; }
  .toolbar { padding: 10px 12px; }
  .toggles { gap: 14px; }
  .detail-cover-copy { left: 18px; right: 18px; }
  .detail-cover h2 { font-size: 23px; }
  .footer-inner { padding: 32px 16px 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .ad-slot { padding: 16px; padding-top: 28px; }
  .ad-badge { top: 8px; right: 12px; }
  .ad-cta { width: 100%; text-align: center; }
  .info-contact { padding: 16px; }
  .pager { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ================= v3：品牌 / 5 板块 / 3D 头部 / 横滑 / 双列榜单 ================= */
.topbar { gap: 20px; }
.brand-text strong { font-size: 19px; letter-spacing: -0.035em; }
.brand-text small { letter-spacing: 0.13em; }
.main-tabs { gap: 1px; }
.main-tabs .tab { padding: 0 12px; font-size: 13.5px; }
.main-tabs .tab.active::after { box-shadow: 0 0 14px rgba(157, 190, 221, 0.6); }

/* 板块标题：竖条 + 发光，给一点仪表盘的秩序感 */
.section-head h2 { position: relative; padding-left: 15px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brass-hi), rgba(157, 190, 221, 0.2));
  box-shadow: 0 0 12px rgba(157, 190, 221, 0.35);
}

/* ---------- Hero：3D 神经核心 ---------- */
.hero { min-height: 512px; }
.hero-inner { min-height: 392px; padding: 56px 32px 0; }
.hero-copy { position: relative; z-index: 3; max-width: 620px; }
.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 56%;
  opacity: 1; z-index: 1; pointer-events: none;
  mask-image: none; -webkit-mask-image: none;
}
#hero-core {
  display: block; width: 100%; height: 100%;
  mask-image: radial-gradient(ellipse 78% 82% at 54% 48%, #000 52%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 54% 48%, #000 52%, transparent 100%);
}
.hero-hud {
  position: absolute; display: flex; flex-direction: column; gap: 3px;
  font-size: 10px; letter-spacing: 0.16em; color: #7b838e; text-transform: uppercase;
}
.hero-hud span { color: #6f7782; }
.hero-hud b { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--brass); }
.hud-a { top: 46px; right: 40px; text-align: right; align-items: flex-end; }
.hud-b { bottom: 86px; left: 3%; }
.hud-c { bottom: 86px; right: 40px; text-align: right; align-items: flex-end; }
.hero-frame {
  position: absolute; inset: 38px 30px 78px; pointer-events: none;
  border: 1px solid rgba(157, 190, 221, 0.09); border-radius: 2px;
}
.hero-frame::before, .hero-frame::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 1px solid rgba(157, 190, 221, 0.45);
}
.hero-frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.hero-frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-quick button {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255, 255, 255, 0.02);
  color: var(--text-2); font-size: 12.5px; transition: 0.16s var(--ease);
}
.hero-quick button i { font-style: normal; font-size: 9.5px; letter-spacing: 0.13em; color: var(--brass); }
.hero-quick button:hover {
  color: var(--text); border-color: var(--brass-line); background: var(--brass-dim); transform: translateY(-1px);
}

/* ---------- 海外提示 / 开源快筛 ---------- */
.notice-bar {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 12px 16px;
  border: 1px solid var(--line); border-left: 2px solid var(--slate); border-radius: var(--r-sm);
  background: rgba(154, 180, 228, 0.05); font-size: 13px; color: var(--text-2); line-height: 1.65;
}
.notice-bar b { flex-shrink: 0; color: #b3c4ea; font-weight: 600; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.quick-chip {
  padding: 6px 13px; border-radius: 99px; cursor: pointer; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); transition: 0.15s var(--ease);
}
.quick-chip:hover { color: var(--text); border-color: #4c5763; background: var(--surface-2); }
.quick-chip.active {
  color: var(--on-brass); background: var(--brass); border-color: var(--brass); font-weight: 600;
}

/* ---------- 卡片：外链与顶部流光 ---------- */
.tool-card::before, .repo-card::before, .flow-card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(157, 190, 221, 0.65), transparent);
  transition: opacity 0.2s var(--ease); pointer-events: none;
}
.tool-card:hover::before, .repo-card:hover::before, .flow-card:hover::before { opacity: 1; }
.card-site {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 7px; color: var(--text-3);
  font-size: 13px; line-height: 1; text-decoration: none; transition: 0.16s var(--ease);
}
.card-site:hover { color: var(--brass); border-color: var(--brass-line); background: var(--brass-dim); }

/* 宽屏四列，空间用满 */
@media (min-width: 1560px) {
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 编辑推荐：横向拖动 ---------- */
.rail-wrap { position: relative; margin: 0 -4px; }
.editor-rail {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
  padding: 6px 4px 16px; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab; -ms-overflow-style: none;
}
.editor-rail::-webkit-scrollbar { display: none; }
.editor-rail .editor-card { flex: 0 0 306px; scroll-snap-align: start; }
.editor-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.editor-rail.dragging .editor-card { pointer-events: none; }
.rail-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(20, 23, 27, 0.92); color: var(--text-2);
  font-size: 20px; line-height: 1; backdrop-filter: blur(10px); box-shadow: var(--shadow-2);
  opacity: 0; transition: 0.18s var(--ease); cursor: pointer;
}
.rail-wrap:hover .rail-nav, .rail-nav:focus-visible { opacity: 1; }
.rail-nav:hover { color: var(--brass); border-color: var(--brass-line); }
.rail-nav.prev { left: -16px; }
.rail-nav.next { right: -16px; }
.rail-hint { margin-left: auto; font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-3); }
.rail-progress {
  position: relative; height: 3px; margin-top: 2px; border-radius: 2px;
  background: var(--surface-3); overflow: hidden;
}
.rail-progress i {
  position: absolute; top: 0; left: 0; height: 100%; width: 30%;
  background: linear-gradient(90deg, var(--brass), rgba(157, 190, 221, 0.28));
  border-radius: 2px; transition: left 0.12s linear, width 0.2s var(--ease);
}
.link-more {
  margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; color: var(--brass); font-weight: 550;
}
.link-more:hover { color: var(--brass-hi); }

/* ---------- 爆款开源 ---------- */
.viral-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.viral-grid .repo-card { padding: 16px; }
.viral-grid .repo-desc { margin-bottom: 14px; }
.repo-viral {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 2px;
  padding: 2px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600;
  color: #f0c9a2; background: rgba(157, 190, 221, 0.12); border: 1px solid rgba(157, 190, 221, 0.28);
}

/* ---------- 场景榜单：一排两个 ---------- */
.rank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.rank-list .rank-item { grid-template-columns: 26px var(--logo-sm) minmax(0, 1fr) auto; padding: 12px 18px; }
.rank-list .ri-meta { display: none; }
.rank-list .ri-acts { grid-column: 4; }

/* ---------- 详情：编辑深度档案 ---------- */
.profile { display: flex; flex-direction: column; gap: 12px; }
.pf-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.pf-row span { display: block; margin-bottom: 4px; font-size: 11.5px; color: var(--text-3); }
.pf-row b { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.55; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-box {
  padding: 13px 15px; border: 1px solid var(--line); border-left: 2px solid var(--jade);
  border-radius: 10px; background: rgba(124, 194, 160, 0.04);
}
.pf-box.warn { border-left-color: var(--rose); background: rgba(223, 169, 148, 0.04); }
.pf-box h4 { font-size: 12.5px; font-weight: 600; color: #9fd3b8; margin-bottom: 5px; }
.pf-box.warn h4 { color: #e6bda9; }
.pf-box p { font-size: 13px; line-height: 1.7; color: var(--text-2); }
.pf-alt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-3); }
.pf-chip {
  padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--text-2); font-size: 12.5px; transition: 0.15s var(--ease);
}
.pf-chip:hover { color: var(--brass); border-color: var(--brass-line); background: var(--brass-dim); }

/* ---------- 对比结论 / 快捷键 ---------- */
.cmp-summary {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; padding: 12px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line); border-left: 2px solid var(--brass); background: var(--surface-2);
  font-size: 13px; color: var(--text-2);
}
.cmp-summary b { color: var(--brass); font-weight: 650; padding: 0 1px; }
.cmp-tip { font-size: 12.5px; color: var(--text-3); }
.keys-list { display: flex; flex-direction: column; }
.key-row {
  display: flex; align-items: center; gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2);
}
.key-row:last-child { border-bottom: 0; }
.key-row kbd {
  min-width: 54px; padding: 3px 8px; text-align: center; border-radius: 5px;
  border: 1px solid var(--line-2); background: var(--ink-soft); color: var(--brass);
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
}
.keys-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }

/* ---------- v3 响应式 ---------- */
@media (max-width: 1400px) {
  .hero-visual { width: 54%; }
  .main-tabs .tab { padding: 0 10px; }
}
@media (max-width: 1180px) {
  .viral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { width: 58%; opacity: 0.9; }
  .hero-frame { display: none; }
  .hud-b { display: none; }
}
@media (max-width: 1080px) {
  .hero-inner { min-height: 360px; }
  .rail-hint { display: none; }
}
@media (max-width: 900px) {
  .topbar { gap: 12px; }
  .brand-text strong { font-size: 17px; }
  .main-tabs .tab { padding: 0 10px; font-size: 13px; }
  .hero { min-height: 0; }
  .hero-visual {
    display: block; width: 100%; left: 0; top: 0; bottom: 0; opacity: 0.5; z-index: 1;
  }
  .hero-hud { display: none; }
  .hero-inner { min-height: 0; padding: 34px 20px 0; }
  .hero-copy { z-index: 3; }
  .hero-quick { margin-top: 16px; }
  .hero-quick button { padding: 6px 11px; font-size: 12px; }
  .section-head h2 { padding-left: 12px; }
  .rail-nav { display: none; }
  .editor-rail .editor-card { flex: 0 0 280px; }
  .pf-rows { grid-template-columns: 1fr; }
  .pf-two { grid-template-columns: 1fr; }
  .viral-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 24px 16px 0; }
  .hero-visual { opacity: 0.38; }
  .hero-art-hint { display: none; }
  .editor-rail .editor-card { flex: 0 0 264px; }
  .hero-quick { gap: 6px; }
  .hero-quick button { font-size: 11.5px; padding: 6px 10px; }
  .hero-quick button i { display: none; }
  .cmp-summary { flex-direction: column; }
}

/* ---------- 手机端：顶栏改两行，5 个板块不再被挤压 ---------- */
@media (max-width: 900px) {
  .topbar {
    height: auto; flex-wrap: wrap; padding: 0 14px; gap: 0;
  }
  .topbar .mobile-nav { order: 1; margin-right: 10px; }
  .topbar .brand { order: 2; height: 52px; }
  .topbar .mobile-actions { order: 3; margin-left: auto; }
  .main-tabs {
    order: 4; width: calc(100% + 28px); margin: 0 -14px; padding: 0 14px;
    height: 44px; border-top: 1px solid var(--line); gap: 2px;
    -webkit-mask-image: none; mask-image: none;
  }
  .main-tabs .tab { height: 44px; padding: 0 12px; font-size: 13px; }
  .main-tabs .tab.active::after { bottom: 0; }
  .sidebar { top: 96px; }
  .side-mask { inset: 96px 0 0; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 12px; }
  .main-tabs { width: calc(100% + 24px); margin: 0 -12px; padding: 0 12px; }
  .main-tabs .tab { padding: 0 11px; }
  .sidebar { top: 94px; }
  .side-mask { inset: 94px 0 0; }
}

/* Hero 元信息与手机标签 */
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 20px;
  font-size: 12px; color: var(--text-3); letter-spacing: 0.01em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%; background: #4c5763; margin-right: 11px;
}
.hero-meta i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--jade);
  box-shadow: 0 0 0 3px rgba(124, 194, 160, 0.14);
}
.hero-meta b { color: var(--text-2); font-weight: 600; }
@media (max-width: 600px) {
  .hero-meta { margin-top: 16px; gap: 6px 12px; font-size: 11.5px; }
  .hero-meta span:nth-child(2) { display: none; }
  .main-tabs .tab { padding: 0 14px; font-size: 13.5px; }
}

/* 卡片对比图标 */
.card-cmp {
  width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); border-radius: 7px; background: transparent;
  color: var(--text-3); font-size: 14px; line-height: 1; transition: 0.16s var(--ease);
}
.card-cmp:hover { color: var(--text); border-color: #4c5763; }
.card-cmp.on { color: #c2d1f0; border-color: rgba(154, 180, 228, 0.45); background: rgba(154, 180, 228, 0.11); }

/* 上手步骤列表 */
.usage-steps { counter-reset: step; }
.usage-steps li {
  padding: 10px 0 10px 42px; margin-left: 0; border-left: 0;
  border-top: 1px solid var(--line);
}
.usage-steps li:first-child { border-top: 0; padding-top: 2px; }
.usage-steps li::before { left: 0; top: 10px; }
.usage-steps li:first-child::before { top: 2px; }

@media (max-width: 600px) {
  .rank-list .rank-item { grid-template-columns: 22px var(--logo-sm) minmax(0, 1fr); row-gap: 8px; }
  .rank-list .ri-acts { grid-column: 3; justify-self: start; width: auto; }
  .rank-list .ri-no { align-self: start; padding-top: 2px; }
}

/* 宽屏：内容区与顶栏对齐，避免两侧留白过多 */
@media (min-width: 1600px) {
  .hero-inner, .hero-stats, .shell, .footer-inner { max-width: 1720px; }
  .topbar { padding-left: max(32px, calc((100% - 1720px) / 2 + 32px)); padding-right: max(32px, calc((100% - 1720px) / 2 + 32px)); }
}

/* 散文式用法：拆成要点，避免一大段糊在一起 */
.usage-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.usage-list li {
  position: relative; padding-left: 17px; font-size: 14.5px; line-height: 1.8; color: var(--text-2);
}
.usage-list li::before {
  content: "›"; position: absolute; left: 1px; top: 0; color: var(--brass); font-weight: 700;
}

@media (max-width: 1020px) {
  .rank-list { grid-template-columns: 1fr; }
}

/* =======================================================================
   v4：机械字标 / 立体核心舞台 / 详情封面重制 / 实用专题 / 质感收口
   ======================================================================= */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/chakra-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/chakra-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --display: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif;
  --metal: linear-gradient(180deg, #fffaf1 0%, #f6e3c8 26%, #d7ad78 48%, #a97c4a 54%, #f2dcbd 62%, #c9a173 80%, #f7e8d2 100%);
}

/* ---------- 品牌字标：切角机械体 + 黄铜镀层 ---------- */
.brand { gap: 12px; }
.brand-mark { filter: drop-shadow(0 0 10px rgba(157, 190, 221, 0.22)); }
.brand-mark svg { display: block; }
.wordmark {
  position: relative; display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1;
  letter-spacing: 0.008em;
  background: linear-gradient(180deg, #fffdf8 0%, #f7e6cd 28%, #cfa273 46%, #8f6636 51%, #e9cba4 57%, #fffaf1 68%, #d9b184 84%, #fdf3e4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(8, 6, 3, 0.85)) drop-shadow(0 0 20px rgba(157, 190, 221, 0.22));
  transform: skewX(-6deg);
  padding-right: 1px;
}
.wordmark::after {
  content: ""; position: absolute; left: -2px; right: 2px; bottom: -5px; height: 1px;
  background: linear-gradient(90deg, rgba(157, 190, 221, 0.9), rgba(157, 190, 221, 0.06));
}
.brand-text small {
  font-family: var(--display); font-weight: 600; font-size: 9.5px;
  letter-spacing: 0.24em; color: #8a8272; margin-top: 2px;
}
.footer-brand .wordmark { font-size: 21px; }
.info-head .wordmark, .wordmark.inline { font-size: 1em; transform: none; }

/* ---------- 头部舞台 ---------- */
.hero { min-height: 556px; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 34% 30% at 72% 62%, rgba(157, 190, 221, 0.09), transparent 70%),
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.018) 49%, transparent 52%);
}
.hero-inner { min-height: 436px; }
.hero-visual { width: 58%; }
.hero-visual::after {
  content: ""; position: absolute; left: 16%; right: 8%; bottom: 7%; height: 26%;
  background: radial-gradient(ellipse at 50% 100%, rgba(157, 190, 221, 0.16), rgba(157, 190, 221, 0.04) 45%, transparent 72%);
  filter: blur(6px); pointer-events: none;
}
.hero-axis { position: absolute; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(157, 190, 221, 0.14), transparent); }
.hero-axis.axis-x { left: 12%; right: 6%; top: 50%; height: 1px; }
.hero-axis.axis-y {
  top: 14%; bottom: 16%; left: 54%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(157, 190, 221, 0.12), transparent);
}
.hero-hud { font-family: var(--display); font-size: 9.5px; letter-spacing: 0.1em; font-weight: 500; }
.hero-hud span { opacity: 0.75; }
.hero-hud b { font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; }
.hud-a { top: 54px; right: 44px; }
.hud-b { bottom: 92px; left: 4%; }
.hud-c { bottom: 92px; right: 44px; }
.hero-frame { inset: 44px 34px 84px; border-color: rgba(157, 190, 221, 0.12); }
.hero-frame::before, .hero-frame::after { width: 26px; height: 26px; }

/* 头部标题：机械感断句 + 金属切面 */
.hero h1 { letter-spacing: -0.03em; }
.hero h1 span {
  background: linear-gradient(100deg, #fdf2e0 0%, #f2d4ad 24%, #d9ab77 44%, #fbeed8 58%, #e2bd90 76%, #bcc9ea 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: titleSheen 9s ease-in-out infinite;
}
@keyframes titleSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* 分类跑马灯：一条横向信息带，补足科技感 */
.ticker {
  position: relative; overflow: hidden; height: 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #101317, #0d0f12);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 0; width: max-content; height: 100%;
  animation: tickerRoll 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 9px; padding: 0 22px;
  font-family: var(--display); font-size: 11px; letter-spacing: 0.14em;
  color: #7f8792; white-space: nowrap;
}
.ticker-track span b { color: var(--brass); font-weight: 600; }
.ticker-track i {
  width: 4px; height: 4px; background: rgba(157, 190, 221, 0.5); transform: rotate(45deg); flex-shrink: 0;
}

/* ---------- 卡片：跟随指针的金属反光 ---------- */
.tool-card, .repo-card, .flow-card {
  background-color: var(--surface);
  background-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(157, 190, 221, 0.07), transparent 66%);
  background-repeat: no-repeat;
}
.tool-card:hover, .repo-card:hover, .flow-card:hover {
  background-color: var(--surface-2);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(157, 190, 221, 0.06);
}

/* ---------- 详情封面：真正的品牌头图，不再有拉伸示意图 ---------- */
.detail-cover {
  height: 306px; display: flex; align-items: flex-end;
  background:
    radial-gradient(ellipse 62% 130% at 84% -10%, color-mix(in srgb, var(--accent, #9dbedd) 26%, transparent), transparent 66%),
    radial-gradient(ellipse 50% 80% at 8% 120%, rgba(154, 180, 228, 0.10), transparent 70%),
    linear-gradient(158deg, #191d23 0%, #12151a 56%, #0e1013 100%);
}
.detail-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(14, 16, 19, 0.96) 0%, rgba(14, 16, 19, 0.42) 42%, transparent 78%),
    linear-gradient(90deg, rgba(11, 12, 14, 0.72) 0%, transparent 64%);
}
.cover-art { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.cover-art svg { width: 100%; height: 100%; display: block; }
.cover-glow {
  position: absolute; z-index: 0; right: -8%; top: -34%; width: 64%; height: 160%;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent, #9dbedd) 22%, transparent), transparent 62%);
  filter: blur(12px); pointer-events: none;
}
.detail-cover-copy {
  position: relative; z-index: 3; left: auto; right: auto; bottom: auto;
  display: flex; align-items: flex-end; gap: 22px;
  padding: 30px 40px 30px; width: 100%;
}
.cover-mark {
  width: 86px; height: 86px; flex-shrink: 0; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #f7f7f5; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.35);
  color: #2b3138; font-family: var(--display); font-size: 30px; font-weight: 700;
}
.cover-mark img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.cover-mark .logo-fallback { font-size: 26px; letter-spacing: 0.02em; }
.cover-mark.dark { background: #14171c; color: var(--accent, #9dbedd); border-color: rgba(255, 255, 255, 0.1); }
.cover-text { min-width: 0; flex: 1; padding-bottom: 2px; }
.detail-kicker {
  font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em;
  color: color-mix(in srgb, var(--accent, #9dbedd) 82%, #fff); margin-bottom: 9px;
}
.detail-cover h2 {
  font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}
.detail-cover h2.latin { font-family: var(--display); font-weight: 700; letter-spacing: 0.005em; }
.detail-cover p { color: #c3c9d2; font-size: 14.5px; max-width: 720px; }
.cover-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cover-fact {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 99px;
  background: rgba(10, 12, 15, 0.42); backdrop-filter: blur(6px);
  font-size: 11.5px; color: #d6dae1; letter-spacing: 0.01em;
}
.cover-fact b { color: var(--accent, var(--brass)); font-weight: 600; }
.cover-fact.go { color: #0f1115; background: var(--accent, var(--brass)); border-color: transparent; font-weight: 650; text-decoration: none; }
.cover-fact.go:hover { filter: brightness(1.08); }

/* ---------- 实用专题 ---------- */
.topic-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  margin: 4px 0 16px;
}
.topic-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  color: var(--text-2); font-size: 13px; transition: 0.16s var(--ease);
}
.topic-chip > i { font-style: normal; font-size: 14px; opacity: .95; }
.topic-chip b {
  font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--brass); background: rgba(157, 190, 221, 0.1); padding: 1px 6px; border-radius: 4px;
}
.topic-chip:hover { color: var(--text); border-color: #4c5763; transform: translateY(-1px); }
.topic-chip.active { color: var(--on-brass); background: var(--brass); border-color: var(--brass); font-weight: 600; }
.topic-chip.active b { color: #3b2a16; background: rgba(0, 0, 0, 0.12); }
.topic-chip .tc-sub { display: none; color: var(--text-3); font-size: 11.5px; }
.topic-chip.active .tc-sub { color: rgba(29, 19, 7, 0.62); }

/* 专题说明条 */
.topic-note {
  display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-left: 2px solid var(--brass);
  border-radius: 0 8px 8px 0; background: rgba(157, 190, 221, 0.045);
  font-size: 13px; color: var(--text-2); line-height: 1.65;
}
.topic-note b { color: var(--brass-hi); font-weight: 600; }

@media (max-width: 900px) {
  .hero { min-height: 470px; }
  .hero-inner { min-height: 390px; }
  .detail-cover { height: 250px; }
  .detail-cover-copy { padding: 20px 22px; gap: 14px; }
  .cover-hud { left: 22px; top: 18px; font-size: 8.5px; }
  .cover-mark { width: 62px; height: 62px; border-radius: 14px; }
  .cover-mark img { padding: 8px; }
  .detail-cover h2 { font-size: 28px; }
  .detail-cover p { font-size: 13.5px; }
  .cover-facts { margin-top: 10px; }
  .cover-fact:not(.go):nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .wordmark { font-size: 19px; }
  .brand-text small { display: none; }
  .hero { min-height: 430px; }
  .hero-inner { min-height: 360px; }
  .hero-axis { display: none; }
  .detail-cover { height: 216px; }
  .cover-mark { width: 52px; height: 52px; border-radius: 12px; }
  .detail-cover h2 { font-size: 23px; }
  .detail-cover p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .cover-facts { display: flex; margin-top: 10px; }
  .cover-fact:not(.go) { display: none; }
  .cover-fact.go { font-size: 11px; padding: 4px 10px; }
  .topic-chip { font-size: 12px; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero h1 span { animation: none; }
}

/* 封面细节 */
.cover-fact i { font-style: normal; color: rgba(255, 255, 255, 0.48); font-size: 10.5px; letter-spacing: 0.06em; }
.cover-fact b + i, .cover-fact b { margin-left: 0; }
.cover-hud {
  position: absolute; left: 40px; top: 24px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 9.5px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.34);
}
.cover-hud b {
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--accent, #9dbedd) 78%, #fff);
  padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.cover-mark { position: relative; }
.cover-mark img { position: absolute; inset: 0; z-index: 2; background: #f7f7f5; }
.cover-mark.dark img { background: transparent; }
.cover-mark .logo-fallback { position: relative; z-index: 1; }
.ca-orbit { animation: coverSpin 64s linear infinite; }
@keyframes coverSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ca-orbit { animation: none; } }

/* 手机端：把 3D 核心从文字背后挪出来，单独占一段舞台 */
@media (max-width: 900px) {
  #hero-core { filter: drop-shadow(0 0 24px rgba(157, 190, 221, 0.12)); }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; }
  .hero-visual {
    position: relative; order: 2; inset: auto; left: auto; right: auto; top: auto; bottom: auto;
    width: 100%; height: 250px; opacity: 1; margin: -6px 0 0;
  }
  .hero-visual::after { left: 24%; right: 24%; bottom: 6%; height: 20%; }
  .hero-stats { order: 3; }
}
@media (max-width: 600px) {
  .hero-visual { height: 208px; opacity: 1; }
}


@media (min-width: 1700px) {
  .topic-chip .tc-sub { display: inline; }
  .topic-chip { justify-content: flex-start; }
}
@media (max-width: 1180px) {
  .topic-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-chip { font-size: 12px; padding: 8px; }
}

/* =======================================================================
   v5：科幻方向 — 全息字标 / 智能体舞台 / 教程库
   ======================================================================= */

/* ---------- 字标：数据流扫过的全息白，不是金属 ---------- */
.wordmark {
  position: relative; display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05;
  letter-spacing: -0.022em; color: var(--text);
  background: none; -webkit-text-fill-color: currentColor;
  filter: none; transform: none; animation: none;
  padding-right: 0;
}
.wordmark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: linear-gradient(90deg, rgba(157, 190, 221, 0.55), rgba(157, 190, 221, 0));
}
.brand-mark { filter: none; }
.brand-text small { color: var(--text-3); letter-spacing: 0.1em; font-size: 9px; font-weight: 500; }

/* ---------- 顶栏：窄一点，给第六个板块留位置 ---------- */
@media (max-width: 1360px) {
  .main-tabs .tab { padding: 0 9px; font-size: 13px; }
  .topbar { gap: 18px; }
  .top-links { gap: 14px; }
}
@media (max-width: 1160px) {
  .top-links button[data-info="about"] { display: none; }
}

/* ---------- 头部舞台：去掉边框，做成无边的全息场 ---------- */
.hero::after { background:
    radial-gradient(ellipse 40% 34% at 70% 58%, rgba(157, 190, 221, 0.09), transparent 72%),
    radial-gradient(ellipse 30% 30% at 58% 34%, rgba(180, 167, 208, 0.08), transparent 74%),
    linear-gradient(115deg, transparent 46%, rgba(160, 230, 255, 0.015) 49%, transparent 52%);
}
.hero-visual { width: 60%; }
.hero-visual::after {
  content: ""; position: absolute; left: 14%; right: 6%; bottom: 4%; height: 26%;
  background: radial-gradient(ellipse at 50% 100%, rgba(157, 190, 221, 0.17), rgba(180, 167, 208, 0.06) 46%, transparent 74%);
  filter: blur(10px); pointer-events: none;
}
#hero-core {
  /* 边缘由 canvas 内部暗角处理；CSS mask 在部分合成场景会吞掉画布内容，这里不再使用 */
  mask-image: none;
  -webkit-mask-image: none;
  /* 强制独立合成层：否则在部分 DPR 下画布会被上层合成内容吞掉 */
  will-change: transform;
  transform: translateZ(0);
}
.hero-hud {
  font-family: var(--display); font-size: 9px; letter-spacing: 0.22em;
  color: #5f7d95;
  padding: 1px 0 1px 10px;
  border-left: 1px solid rgba(157, 190, 221, 0.28);
  background: none;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-hud b { color: var(--text); font-size: 11.5px; letter-spacing: 0.04em; text-shadow: none; }
.hud-a { top: 40px; right: 32px; }
.hud-c { bottom: 116px; right: 32px; }

/* 标题：冷色金属 → 全息高光 */
.hero h1 { letter-spacing: -0.032em; }
.hero h1 span {
  background: linear-gradient(180deg, #f4f7fa 0%, #cadcec 62%, #a8c4dd 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: none; animation: none;
}
@keyframes titleSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-tag { border-color: rgba(157, 190, 221, 0.2); }
.hero-tag .dot { box-shadow: 0 0 0 3px rgba(157, 190, 221, 0.1); }
.hero-meta b { color: var(--brass); }

/* 搜索框：聚焦时电流边框 */
.search-wrap:focus-within {
  border-color: rgba(157, 190, 221, 0.45);
  box-shadow: 0 0 0 3px rgba(157, 190, 221, 0.08);
}

/* 按钮：从黄铜实心改全息渐变 */
.btn-primary {
  background: var(--brass);
  color: #0a0b0d; border: 0;
  box-shadow: none; font-weight: 600;
}
.btn-primary:hover { background: #b3cfe8; box-shadow: none; }
.hero-quick button i { color: var(--brass); }
.hero-quick button:hover { border-color: rgba(157, 190, 221, 0.32); background: rgba(255, 255, 255, 0.03); }

/* 跑马灯：冷色分隔 */
.ticker-track i { background: rgba(157, 190, 221, 0.55); }
.ticker-track span b { color: var(--brass); }

/* 侧边栏激活项 */
.group-btn.active, .group-head.active {
  background: rgba(157, 190, 221, 0.09);
  border-color: rgba(157, 190, 221, 0.24);
}
.side-all.active { background: rgba(157, 190, 221, 0.1); }
.crumb i { color: var(--brass); }

/* 卡片：冷光描边 */
.tool-card, .repo-card, .flow-card { background-image: none; }
.tool-card:hover, .repo-card:hover, .flow-card:hover {
  box-shadow: 0 16px 36px -26px rgba(0, 0, 0, 0.9);
  border-color: var(--line-2);
}
.hot-badge { background: linear-gradient(100deg, #d2a97e, #d2a97e); color: #1a0b00; }

/* 详情封面：冷色 */
.detail-cover {
  background:
    radial-gradient(ellipse 58% 120% at 86% -14%, color-mix(in srgb, var(--accent, #9dbedd) 14%, transparent), transparent 68%),
    linear-gradient(158deg, #14171c 0%, #101317 58%, #0c0e11 100%);
}
.detail-cover::after {
  background:
    linear-gradient(0deg, rgba(7, 11, 17, 0.96) 0%, rgba(7, 11, 17, 0.4) 44%, transparent 80%),
    linear-gradient(90deg, rgba(5, 8, 13, 0.78) 0%, transparent 62%);
}
.cover-mark { border-radius: 16px; }
.cover-fact.go { box-shadow: none; }

/* ---------- 教程库 ---------- */
.tut-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tut-chip { justify-content: flex-start; }
.tut-chip > i { color: var(--tc, var(--brass)); font-size: 13px; }
.tut-chip b { color: var(--tc, var(--brass)); background: rgba(157, 190, 221, 0.07); }
.tut-chip:hover { border-color: color-mix(in srgb, var(--tc, #9dbedd) 45%, var(--line-2)); }
.tut-chip.active {
  background: linear-gradient(100deg, color-mix(in srgb, var(--tc, #9dbedd) 18%, #0a1119), rgba(180, 167, 208, 0.06));
  border-color: color-mix(in srgb, var(--tc, #9dbedd) 55%, transparent);
  color: var(--text); font-weight: 600;
  box-shadow: none;
}
.tut-chip.active b { color: var(--tc, var(--brass)); background: rgba(0, 0, 0, 0.28); }

.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(336px, 1fr)); gap: 14px; }
.tut-card {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 17px 18px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: hidden;
}
.tut-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--tc, #9dbedd), transparent 72%);
  opacity: 0.65;
}
.tut-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tc, #9dbedd) 38%, var(--line));
  box-shadow: 0 16px 34px -28px rgba(0, 0, 0, 0.9);
}
.tut-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tut-type {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 4px;
  background: color-mix(in srgb, var(--tc, #9dbedd) 16%, transparent);
  color: color-mix(in srgb, var(--tc, #9dbedd) 88%, #fff);
}
.tut-type.t-video { background: rgba(210, 169, 126, 0.14); color: #e0c8a4; }
.tut-type.t-doc { background: rgba(157, 190, 221, 0.12); color: #b5cde3; }
.tut-type.t-article { background: rgba(155, 184, 174, 0.13); color: #b4c9bd; }
.tut-lv, .tut-lang {
  font-size: 10.5px; color: var(--text-3); letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line);
}
.tut-title { font-size: 15.5px; font-weight: 650; line-height: 1.45; letter-spacing: -0.008em; color: var(--text); }
.tut-sum { font-size: 12.8px; line-height: 1.72; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tut-covers { display: flex; flex-wrap: wrap; gap: 5px; }
.tut-covers span {
  font-size: 11px; color: #9fb2c6; padding: 1.5px 7px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.05);
}
.tut-need {
  font-size: 12px; color: var(--text-3); line-height: 1.6;
  padding-top: 2px;
}
.tut-need i {
  font-style: normal; font-size: 10px; letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--tc, #9dbedd) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--tc, #9dbedd) 28%, transparent);
  padding: 1px 5px; border-radius: 3px; margin-right: 7px;
}
.tut-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--text-3);
}
.tut-src { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-dur { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tut-go {
  flex-shrink: 0; color: var(--brass); font-weight: 600; font-size: 12px;
  transition: transform 0.16s var(--ease);
}
.tut-card:hover .tut-go { transform: translateX(3px); }

@media (max-width: 1180px) {
  .tut-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tut-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tut-grid { grid-template-columns: 1fr; }
  .tut-card { padding: 15px 15px 12px; }
}

/* 教程入口在帮我选里的横条 */
.tut-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 6px 0 26px; padding: 18px 22px; border-radius: 14px;
  border: 1px solid rgba(157, 190, 221, 0.18);
  background:
    radial-gradient(600px circle at 8% 0%, rgba(157, 190, 221, 0.13), transparent 60%),
    radial-gradient(500px circle at 92% 100%, rgba(180, 167, 208, 0.12), transparent 62%),
    #0a1119;
}
.tut-cta h3 { font-size: 17px; }
.tut-cta p { font-size: 13px; color: var(--text-2); }
.tut-cta .btn-primary { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
}

/* ---------- 详情页功能结构图 ---------- */
.fg { margin: 6px 0 24px; }
.fg-svg {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(10, 18, 28, 0.7), rgba(6, 10, 16, 0.4));
  box-shadow: inset 0 0 0 1px rgba(157, 190, 221, 0.05);
}
.fg figcaption {
  margin-top: 9px; font-size: 11.5px; color: var(--text-3); letter-spacing: 0.02em;
}
.fg text { letter-spacing: 0.01em; }

@media (max-width: 600px) {
  .fg-svg { border-radius: 10px; }
  .fg figcaption { font-size: 10.5px; }
}

/* ---------- 侧边栏教程分类按钮（补齐基础样式） ---------- */
.group-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; margin: 0 0 3px;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  color: var(--text-2); font-size: 13.5px; text-align: left; line-height: 1.4;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.group-btn .group-name {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.group-btn .group-name i {
  font-style: normal; flex-shrink: 0; width: 14px; text-align: center; font-size: 12px;
}
.group-btn .group-count {
  flex-shrink: 0; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.group-btn:hover { background: rgba(255, 255, 255, 0.035); color: var(--text); }
.group-btn.active { color: var(--text); font-weight: 600; }
.group-btn.active .group-count { color: var(--brass); }

/* ---------- 手机端收口：舞台宽度、HUD、统计栏 ---------- */
@media (max-width: 900px) {
  .hero-visual { width: 100%; }
  .hero-hud { display: none; }
  .hero-stats { width: 100%; max-width: none; margin-left: 0; margin-right: 0; align-self: stretch; }
}
@media (max-width: 600px) {
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; padding: 4px 18px 10px; margin-top: 26px;
  }
  .hero-stats div {
    padding: 12px 0 10px; margin: 0; border-right: 0;
    flex-direction: column; align-items: flex-start; gap: 3px;
  }
  .hero-stats div:nth-child(even) { padding-left: 0; border-right: 0; }
  .hero-stats div:nth-child(odd) { padding-right: 0; border-right: 0; }
  .hero-stats strong { font-size: 25px; }
  .hero-stats span { font-size: 11.5px; }
  .hero-stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hero-visual { height: 218px; }
}

/* 滚动定位避开吸顶栏 */
.view-panel, .section, #view-tutorials { scroll-margin-top: 84px; }
@media (max-width: 900px) {
  .view-panel, .section, #view-tutorials { scroll-margin-top: 118px; }
}

/* 教程筛选条：左侧实时统计 + 重置 */
.crumb-sub {
  color: var(--text-3); font-size: 12.5px; letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crumb i { color: rgba(157, 190, 221, 0.45); }
.tut-reset {
  font: inherit; font-size: 12px; letter-spacing: 0.02em;
  color: var(--brass); background: rgba(157, 190, 221, 0.08);
  border: 1px solid rgba(157, 190, 221, 0.28); border-radius: 7px;
  padding: 5px 10px; cursor: pointer; white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tut-reset:hover { background: rgba(157, 190, 221, 0.16); border-color: rgba(157, 190, 221, 0.5); }
.tut-reset[hidden] { display: none; }
@media (max-width: 760px) {
  .crumb-sub { display: none; }
  .crumb i { display: none; }
}

/* 详情页功能图：跨整幅展示（不再被正文窄栏压缩） */
.detail-figure { margin: 0 0 26px; }
.detail-figure[hidden] { display: none; }
.detail-figure .fg { margin: 0; }
.detail-figure .fg-svg { border-radius: 16px; }
@media (max-width: 760px) {
  .detail-figure { margin-bottom: 20px; }
}

/* 编辑实测标记：唯一的彩色小徽标，用来区分「收录」与「我核过」 */
.tag.ed {
  color: #e0c8a4;
  border-color: rgba(210, 169, 126, 0.34);
  background: rgba(210, 169, 126, 0.1);
  font-weight: 600;
}

/* 教程步骤：卡片的核心信息，替代原来的标签堆砌 */
.tut-tool {
  margin-left: auto; font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px;
  white-space: nowrap;
}
.tut-steps {
  counter-reset: step; list-style: none; margin: 2px 0 4px; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.tut-steps li {
  counter-increment: step; position: relative; padding-left: 22px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-2);
}
.tut-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 600;
  color: color-mix(in srgb, var(--tc, #9dbedd) 82%, #fff);
  border: 1px solid color-mix(in srgb, var(--tc, #9dbedd) 30%, transparent);
  background: color-mix(in srgb, var(--tc, #9dbedd) 10%, transparent);
}
.tut-card .tut-foot { margin-top: auto; }

/* 工具栏中间：排序口径提示，避免整条工具栏空一半 */
.crumb-hint {
  margin-left: 6px; padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 12px; color: var(--text-3);
}
@media (max-width: 900px) { .crumb-hint { display: none; } }

/* ============================================================
   v6 · NEW 标记 / 广告位 / 免费榜 / 合作页
   ============================================================ */

/* ---------- NEW：金边发光 + 角标 ---------- */
.badge-new {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-family: var(--display); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; line-height: 1;
  color: #1b1307;
  background: linear-gradient(135deg, #f4dfb8 0%, #d2a97e 100%);
  border-radius: 4px; padding: 4px 6px 3px;
  box-shadow: 0 0 14px rgba(210, 169, 126, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.badge-new.inline {
  position: static; display: inline-flex; align-items: center;
  margin-left: 6px; vertical-align: 1px; padding: 2px 5px 1px; font-size: 9px;
  box-shadow: 0 0 9px rgba(210, 169, 126, 0.4);
}
.tool-card.is-new, .repo-card.is-new, .flow-card.is-new, .tut-card.is-new {
  border-color: rgba(210, 169, 126, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(210, 169, 126, 0.26),
    0 0 20px -7px rgba(210, 169, 126, 0.55),
    0 16px 34px -28px rgba(0, 0, 0, 0.9);
}
.tool-card.is-new:hover, .repo-card.is-new:hover, .flow-card.is-new:hover, .tut-card.is-new:hover {
  border-color: rgba(210, 169, 126, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(210, 169, 126, 0.4),
    0 0 28px -8px rgba(210, 169, 126, 0.7),
    0 16px 34px -26px rgba(0, 0, 0, 0.92);
}

/* ---------- 广告位通用 ---------- */
.ad-band { max-width: 1560px; margin: 0 auto; padding: 0 32px; }
.ad-slot {
  position: relative; overflow: hidden;
  border: 1px solid rgba(210, 169, 126, 0.34);
  border-radius: 12px;
  background:
    linear-gradient(100deg, rgba(210, 169, 126, 0.11) 0%, rgba(210, 169, 126, 0.035) 52%, rgba(210, 169, 126, 0.01) 100%),
    var(--surface);
}
.ad-slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px circle at 4% 50%, rgba(210, 169, 126, 0.14), transparent 62%);
}
.ad-flag {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 9px; letter-spacing: 0.1em; line-height: 1;
  color: #e6cbaa; background: rgba(10, 11, 13, 0.72);
  border: 1px solid rgba(210, 169, 126, 0.36); border-radius: 3px;
  padding: 3px 4px 2px;
}
.ad-size {
  position: absolute; right: 9px; bottom: 6px; z-index: 2;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em;
  color: rgba(230, 203, 170, 0.38);
}
.ad-link {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 20px 24px; border: 0; background: none; cursor: pointer;
  color: inherit; font: inherit; text-align: left;
}
.ad-kicker {
  flex: none; font-size: 10.5px; letter-spacing: 0.06em; color: #d2a97e;
  border-right: 1px solid rgba(210, 169, 126, 0.24); padding-right: 14px;
}
.ad-title { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.ad-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.ad-cta { margin-left: auto; flex: none; font-size: 12.5px; color: #e6cbaa; white-space: nowrap; }
.ad-link:hover .ad-title { color: #fff; }
.ad-link:hover .ad-cta { text-decoration: underline; }

.ad-leader { min-height: 108px; }
.ad-leader .ad-link { min-height: 108px; padding: 18px 96px 18px 24px; gap: 28px; }
.ad-leader .ad-title { max-width: 640px; font-size: 17px; }
.ad-leader .ad-sub { max-width: 560px; }

/* 通栏位左文案 / 右 CTA 结构，避免一条长文本撑在空盒子里 */
.ad-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ad-copy .ad-kicker { align-self: flex-start; border-right: 0; padding-right: 0; }
.ad-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: none; }
.ad-stat { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.ad-stat b { font-family: var(--display); font-size: 30px; font-weight: 700; color: #e6cbaa; letter-spacing: -0.02em; }
.ad-stat i { font-style: normal; font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
.ad-leader .ad-cta,
.ad-strip .ad-cta {
  margin-left: 0; padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(210, 169, 126, 0.46);
  background: rgba(210, 169, 126, 0.09);
  color: #e6cbaa; font-size: 12.5px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.ad-leader .ad-link:hover .ad-cta,
.ad-strip .ad-link:hover .ad-cta {
  text-decoration: none; border-color: #d2a97e; background: rgba(210, 169, 126, 0.18);
}

.ad-strip { margin: 4px 0 18px; }
.ad-strip .ad-link { padding: 15px 92px 15px 20px; min-height: 78px; gap: 24px; }
.ad-strip .ad-title { font-size: 15px; max-width: 720px; }
.ad-strip .ad-sub { font-size: 12px; max-width: 640px; }

/* A 位只在首屏类页面出现，教程页已有自己的 E 位，避免上下叠两条广告 */
body.tuts-view .ad-band,
body.coop-view .ad-band { display: none; }
/* 合作页是独立的报价页：省掉首屏大图与统计条，落地即见价格 */
body.coop-view .hero { display: none; }

.ad-box { margin-top: 14px; border-radius: 10px; }
.ad-box .ad-link { flex-direction: column; align-items: flex-start; gap: 7px; padding: 16px 14px 22px; }
.ad-box .ad-kicker { border-right: 0; padding-right: 0; font-size: 10px; }
.ad-box .ad-title { font-size: 15px; }
.ad-box .ad-sub { font-size: 11.5px; }
.ad-box .ad-cta { margin-left: 0; margin-top: 4px; font-size: 11.5px; }

.ad-detail { margin-top: 2px; }
.ad-detail .ad-link { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; padding-bottom: 24px; }
.ad-detail .ad-kicker { border: 0; padding: 0; font-size: 10px; }
.ad-detail .ad-title { font-size: 20px; font-weight: 680; color: #e6cbaa; }
.ad-detail .ad-sub { font-size: 11.5px; }
.ad-detail .ad-cta { margin-left: 0; margin-top: 2px; font-size: 11.5px; }

/* 信息流原生卡 B：跨整行，与卡片同高 */
.ad-native {
  grid-column: 1 / -1; position: relative; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px;
  padding: 18px 22px; border-radius: var(--r-lg);
  border: 1px solid rgba(210, 169, 126, 0.34);
  background:
    linear-gradient(100deg, rgba(210, 169, 126, 0.1), rgba(210, 169, 126, 0.02) 68%),
    var(--surface);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.ad-native:hover { border-color: rgba(210, 169, 126, 0.6); box-shadow: 0 0 26px -12px rgba(210, 169, 126, 0.5); }
/* 分类置顶 F：与信息流 B 位区分，底色更实，标注「推广」语义 */
.ad-cat-top {
  border-color: rgba(210, 169, 126, 0.48);
  background:
    linear-gradient(100deg, rgba(210, 169, 126, 0.16), rgba(210, 169, 126, 0.03) 66%),
    var(--surface);
}
.an-kicker { font-size: 10.5px; letter-spacing: 0.05em; color: #d2a97e; }
.an-title { grid-column: 1; font-size: 16px; font-weight: 650; color: var(--text); }
.an-sub { grid-column: 1; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.an-act {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  font-size: 12.5px; color: #e6cbaa; border: 1px solid rgba(210, 169, 126, 0.35);
  border-radius: 7px; padding: 8px 12px; white-space: nowrap;
}

/* ---------- 免费榜 ---------- */
.free-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.free-item {
  display: grid; grid-template-columns: 22px var(--logo-sm) minmax(0, 1fr) 68px 98px;
  align-items: center; column-gap: 10px; row-gap: 0; text-align: left;
  min-height: 58px; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  color: inherit; font: inherit; cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.free-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.free-item:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.fi-no {
  font-family: var(--display); font-size: 12.5px; color: var(--text-3); text-align: center;
  font-variant-numeric: tabular-nums;
}
.fi-no.top { color: #d2a97e; font-weight: 700; }
/* 图标容器：必须自建盒模型并裁切，否则图片按原始尺寸溢出圆角框、fallback 文字被挤到框外 */
.fi-logo {
  position: relative; width: var(--logo-sm); height: var(--logo-sm); flex: none;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 8px; background: #f7f7f5;
}
.fi-logo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.fi-logo .logo-fallback { font-size: 10px; font-weight: 700; color: #333a42; line-height: 1; }
.fi-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 2px; }
.fi-main strong { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.fi-main strong .badge-new { flex: none; }
.fi-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-tag { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.fi-sub {
  justify-self: stretch; width: 100%; box-sizing: border-box; text-align: center;
  font-size: 11px; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fi-price {
  justify-self: stretch; text-align: right; font-size: 11.5px; color: #d2a97e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.board-sponsor {
  margin-left: auto; flex: none; font: inherit; font-size: 11px; color: var(--text-3);
  background: none; border: 1px dashed rgba(210, 169, 126, 0.34);
  border-radius: 6px; padding: 5px 9px; cursor: pointer;
}
.board-sponsor b { color: #d2a97e; font-weight: 600; margin-right: 4px; letter-spacing: 0.04em; }
.board-sponsor:hover { border-color: rgba(210, 169, 126, 0.6); color: var(--text-2); }

/* ---------- 合作页 ---------- */
body.coop-view .sidebar { display: none; }
body.coop-view .shell { padding-top: 28px; }
.coop { max-width: 1120px; }
.coop-head h2 { margin: 12px 0 16px; font-size: clamp(27px, 3.1vw, 38px); font-weight: 680; letter-spacing: -0.03em; line-height: 1.15; }
.coop-head p { max-width: 780px; font-size: 14.5px; line-height: 1.8; color: var(--text-2); }
.coop-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 26px; background: var(--line);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.coop-stats div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); }
.coop-stats strong { font-size: 23px; font-weight: 680; letter-spacing: -0.02em; }
.coop-stats span { font-size: 11.5px; color: var(--text-3); }
.coop-note {
  display: flex; gap: 14px; align-items: flex-start; margin: 24px 0 10px;
  padding: 14px 18px; border-left: 2px solid #d2a97e;
  background: rgba(210, 169, 126, 0.055); border-radius: 0 8px 8px 0;
}
.coop-note b { flex: none; font-size: 12px; color: #e6cbaa; }
.coop-note span { font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.coop-h3 { margin: 46px 0 16px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.ad-list { display: flex; flex-direction: column; gap: 10px; }
.ad-card {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 116px; gap: 16px; align-items: center;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
}
.ad-card.is-flat { background: linear-gradient(100deg, rgba(255, 255, 255, 0.018), transparent 60%), var(--surface); }
.ad-card-id {
  display: grid; place-items: center; height: 38px;
  font-family: var(--display); font-size: 15px; font-weight: 600; color: #d2a97e;
  border: 1px solid rgba(210, 169, 126, 0.3); border-radius: 8px;
  background: rgba(210, 169, 126, 0.06);
}
.ad-card-main h4 { font-size: 15px; font-weight: 650; margin-bottom: 5px; }
.ad-card-main p { font-size: 12.8px; line-height: 1.65; color: var(--text-2); }
.ad-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ad-card-meta span { font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.ad-card-price { text-align: right; }
.ad-card-price strong { display: block; font-size: 21px; font-weight: 680; letter-spacing: -0.02em; color: #e6cbaa; }
.ad-card-price span { font-size: 11px; color: var(--text-3); }

.coop-maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.coop-map { margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.coop-map svg { display: block; width: 100%; height: auto; }
.coop-map figcaption { margin-top: 10px; font-size: 11.5px; line-height: 1.55; color: var(--text-3); }

.coop-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.coop-specs div { padding: 14px 16px; background: var(--surface); }
.coop-specs b { display: block; margin-bottom: 4px; font-size: 12px; color: #d2a97e; letter-spacing: 0.04em; }
.coop-specs span { font-size: 12.5px; line-height: 1.65; color: var(--text-2); }

.coop-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.coop-flow li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.coop-flow b { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--text); }
.coop-flow span { font-size: 12px; line-height: 1.6; color: var(--text-3); }

.coop-contact {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid rgba(210, 169, 126, 0.28); border-radius: 12px;
}
.coop-contact > div { display: flex; flex-direction: column; gap: 4px; margin-right: auto; }
.coop-contact > div span { font-size: 11px; color: var(--text-3); }
.coop-contact > div strong { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; color: #e6cbaa; }
.coop-fine { margin-top: 16px; font-size: 12px; line-height: 1.7; color: var(--text-3); }

.toggles .repo-note-inline { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1100px) {
  .coop-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coop-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ad-band { padding: 0 20px; }
  .ad-slot { padding: 0; }
  .ad-link { flex-wrap: wrap; gap: 6px 12px; padding: 16px 18px; }
  .ad-kicker { border-right: 0; padding-right: 0; width: 100%; }
  .ad-title { font-size: 14.5px; }
  .ad-leader .ad-link { padding: 16px 40px 16px 18px; min-height: 0; gap: 12px; }
  .ad-leader .ad-side,
  .ad-strip .ad-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
  .ad-leader .ad-side { margin-top: 2px; }
  .ad-stat { flex: none; white-space: nowrap; }
  .ad-stat b { font-size: 22px; }
  .ad-leader .ad-cta,
  .ad-strip .ad-cta { width: auto; flex: none; margin-left: auto; }
  .ad-strip .ad-link { padding: 14px 40px 14px 18px; }
  .ad-sub { width: 100%; }
  .ad-cta { margin-left: 0; }
  .ad-size { display: none; }
  .free-board { grid-template-columns: 1fr; }
  .coop-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-card { grid-template-columns: 44px minmax(0, 1fr); }
  .ad-card-price { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .ad-card-price strong { display: inline; font-size: 18px; }
  .coop-specs { grid-template-columns: 1fr; }
  .coop-maps { grid-template-columns: 1fr; }
  .an-act { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 6px; }
  .ad-native { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ad-band { padding: 0 16px; }
  /* 小屏收敛为单行：序号 / 图标 / 名称 / 价格，避免三行堆叠显得散 */
  .free-item { grid-template-columns: 20px 26px minmax(0, 1fr) auto; column-gap: 8px; min-height: 46px; padding: 8px 10px; }
  .fi-logo { width: 26px; height: 26px; border-radius: 7px; }
  .fi-logo img { padding: 2px; }
  .fi-tag, .fi-sub { display: none; }
  .fi-price { grid-column: 4; justify-self: end; }
  .board-sponsor { margin-left: 0; margin-top: 8px; }
  .coop-flow { grid-template-columns: 1fr; }
  .coop-stats strong { font-size: 20px; }
}

/* 英文模式：快捷入口前的英文小标与本已是英文的按钮重复，隐藏掉 */
html[lang="en"] .hero-quick i { display: none; }
/* 英文模式：免费榜行内已有细分与价格标签，省掉中文简介避免整行中文 */
html[lang="en"] .fi-tag { display: none; }
.aside-note { margin: 0 0 12px; font-size: 11.5px; padding: 8px 11px; }

/* 英文模式：分类名与价格都更长，单独给一套列宽，避免两列都被截断 */
html[lang="en"] .free-item { grid-template-columns: 22px var(--logo-sm) minmax(0, 1fr) 140px; }
html[lang="en"] .fi-sub { display: none; }
html[lang="en"] .fi-price { grid-column: 4; }

/* 英文详情页：结构化要点列表 */
.en-list { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.en-list li { font-size: 13.5px; line-height: 1.62; color: var(--text-2); }
.en-list li::marker { color: var(--brass); }

/* 英文详情页：副标题一行装不下，小屏放宽到两行 */
@media (max-width: 600px) {
  html[lang="en"] .detail-cover p { -webkit-line-clamp: 2; }
  html[lang="en"] .detail-kicker { letter-spacing: 0.12em; }
}

/* 推荐理由：每个项目一句「解决什么问题」，卡片与详情页共用 */
.why-line {
  display: flex; align-items: flex-start; gap: 8px; margin: 11px 0 0;
  padding: 7px 10px; border-radius: 6px;
  background: rgba(210, 169, 126, 0.07);
  border-left: 2px solid rgba(210, 169, 126, 0.55);
}
.why-tag {
  flex: none; display: inline-flex; align-items: center; height: 17px; padding: 0 5px;
  border-radius: 4px; background: rgba(210, 169, 126, 0.18);
  color: #d2a97e; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.why-text {
  font-size: 12.5px; line-height: 1.55; color: #dcc9ae;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html[lang="en"] .why-text { font-size: 12px; -webkit-line-clamp: 3; }

/* 详情页推荐理由：整块高亮，放在导语前 */
.detail-why {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px;
  padding: 14px 16px; border-radius: 9px;
  background: linear-gradient(100deg, rgba(210, 169, 126, 0.11), rgba(210, 169, 126, 0.03));
  border: 1px solid rgba(210, 169, 126, 0.24);
}
.detail-why .dw-ico {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 7px; background: rgba(210, 169, 126, 0.2); color: #d2a97e; font-size: 14px;
}
.detail-why .dw-body { min-width: 0; }
.detail-why .dw-label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  color: #d2a97e; text-transform: uppercase; margin-bottom: 4px;
}
.detail-why .dw-text { display: block; font-size: 14px; line-height: 1.7; color: var(--text); }

/* ---------- 头部过渡收口（UI-UX-PRO-Max：continuity / state-transition） ----------
   画布自身用 alpha 蒙版淡出四边，这里再把顶栏与 hero 的衔接做成渐变，
   避免出现「一整块深色矩形压在背景上」的硬边。 */
.topbar {
  border-bottom-color: rgba(157, 190, 221, 0.07);
  box-shadow: 0 10px 34px -24px rgba(0, 0, 0, 0.95);
}
.hero { border-bottom-color: rgba(157, 190, 221, 0.05); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 12, 14, 0.58) 0%, rgba(11, 12, 14, 0) 108px),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 12, 14, 0) 112px);
}
.hero-visual {
  -webkit-mask-image: radial-gradient(ellipse 74% 78% at 54% 50%, #000 56%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 78% at 54% 50%, #000 56%, transparent 100%);
}

/* ---------- 外部工具库（按需加载的独立索引） ---------- */
.lib-notice { margin: 2px 0 14px; }
.lib-status {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  color: var(--text-2); font-size: 13.5px;
}
.lib-status::before {
  content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%;
  border: 2px solid var(--brass); border-top-color: transparent; animation: libspin .8s linear infinite;
}
@keyframes libspin { to { transform: rotate(360deg); } }
.lib-strip { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.lib-strip .topic-chip { justify-content: flex-start; padding: 8px 10px; gap: 6px; font-size: 12.5px; }
.lib-strip .topic-chip > i { font-size: 12px; opacity: .8; }
.lib-strip .topic-chip b { font-size: 10px; padding: 1px 5px; }
.lib-toolbar { margin-top: 2px; }
.lib-search-wrap { margin: 0 0 16px; }
.lib-search {
  width: 100%; max-width: 560px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; outline: none; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.lib-search::placeholder { color: var(--text-3); }
.lib-search:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(210,169,126,.12); }
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 12px; }
.lib-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px; min-width: 0;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  color: inherit; text-decoration: none; transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.lib-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.lib-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.lib-logo {
  position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden;
  background: #f7f7f5; color: #2b3138; font-size: 15px; font-weight: 700;
}
.lib-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.lib-logo i { font-style: normal; line-height: 1; }
.lib-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lib-name {
  display: block; font-size: 14.5px; font-weight: 650; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 16px;
}
.lib-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--text-2);
}
.lib-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.lib-meta em {
  font-style: normal; font-size: 11px; line-height: 1.4; padding: 2px 7px; border-radius: 5px;
  background: var(--surface-3); color: var(--text-3);
}
.lib-meta .lib-group { color: #b3c4ea; background: rgba(154,180,228,.11); }
.lib-arrow {
  position: absolute; top: 14px; right: 14px; font-size: 14px; line-height: 1;
  color: var(--text-3); transition: color .16s var(--ease);
}
.lib-card:hover .lib-arrow { color: var(--brass-hi); }
@media (max-width: 620px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-search { max-width: none; }
}

/* ---------- 统一收录：来源提示 / 外部条目卡片 ---------- */
.catalog-note {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 9px 12px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.55; color: var(--text-3);
  background: rgba(255, 255, 255, 0.015);
}
.catalog-note i {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 3px var(--brass-dim);
}
.catalog-note.loading i { animation: catPulse 1.2s ease-in-out infinite; }
@keyframes catPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.tag.src { color: var(--text-3); background: transparent; border-color: var(--line-2); }
.tag.dir { color: #d8c39f; background: rgba(201, 169, 143, 0.1); }
.tag.off { color: #9fd3b8; background: rgba(124, 194, 160, 0.1); }
.tool-card.is-lite .card-name { font-size: 15px; }
.tool-card.is-lite .card-desc { -webkit-line-clamp: 2; min-height: 43px; }
.tool-card.is-lite .card-tags { margin-top: 12px; }
@media (max-width: 620px) {
  .catalog-note { font-size: 12px; padding: 8px 10px; }
}
.cross-hint {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 9px 12px;
  border: 1px solid var(--brass-line); border-radius: var(--r-sm);
  background: var(--brass-dim); font-size: 13px; color: var(--text-2);
}
.cross-hint button {
  padding: 3px 10px; border: 1px solid var(--brass-line); border-radius: 5px;
  background: transparent; color: var(--brass); font: inherit; font-size: 12.5px; cursor: pointer;
}
.cross-hint button:hover { background: var(--brass-dim); color: var(--brass-hi); }

/* =======================================================================
   v5：首屏压缩 / 顶栏全站搜索 / 双块分类 / 场景标签 / 排行榜
   ======================================================================= */
:root { --topbar-h: 64px; }

/* 顶栏搜索：全站搜索，不分区 */
.top-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px; margin-left: auto;
  width: min(380px, 30vw); min-width: 220px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2); border-radius: 9px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.top-search:focus-within { border-color: var(--brass); background: rgba(157, 190, 221, 0.05); }
.top-search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-size: 13px; color: var(--text); font-family: inherit;
}
.top-search input::placeholder { color: #8b929d; }
.top-search input::-webkit-search-cancel-button { filter: invert(0.6); }
.top-search kbd {
  font-family: var(--font); font-size: 10px; color: var(--text-3);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; background: var(--surface-2);
}
.topbar .top-links { margin-left: auto; }

/* 首屏：压到一条带子，进站就能看到分类 */
.hero.hero-slim { min-height: 0; padding: 0; }
.hero-slim .hero-inner { min-height: 0; }
.hero-slim #hero-core {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.2; pointer-events: none;
  mask-image: radial-gradient(ellipse 62% 120% at 50% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 62% 120% at 50% 40%, #000 10%, transparent 72%);
}
.hero-slim .hero-inner {
  display: block; min-height: 0; text-align: center;
  padding: 24px 32px 0;
}
.hero-slim .hero-tag { justify-content: center; font-size: 12px; }
.hero-slim h1 { margin: 10px 0 8px; font-size: clamp(28px, 2.7vw, 40px); }
.hero-slim .hero-sub { margin: 0 auto; max-width: 620px; font-size: 13.5px; line-height: 1.7; }
.hero-slim .hero-meta { justify-content: center; margin-top: 10px; }
.hero-slim .hero-stats {
  margin-top: 16px; justify-content: center;
  background: transparent; border-top: 1px solid var(--line);
}
.hero-slim .hero-stats div { padding: 11px 30px; margin-right: 0; }
.hero-slim .hero-stats div:first-child { padding-left: 0; }
.hero-slim .hero-stats strong { font-size: 19px; }

/* 卡片上的「国内工具 / 海外工具」标识 */
.tag.region-cn { color: #f0c9b4; border-color: rgba(223, 169, 148, 0.4); background: rgba(223, 169, 148, 0.1); }
.tag.region-intl { color: #b9cbe8; border-color: rgba(154, 180, 228, 0.36); background: rgba(154, 180, 228, 0.1); }

@media (max-width: 1180px) {
  .top-search { width: min(280px, 24vw); min-width: 180px; }
  .top-links button { padding: 7px 9px; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 112px; }
  .topbar {
    flex-wrap: wrap; height: auto; padding: 8px 16px 10px; gap: 8px 10px;
  }
  .brand { order: 1; }
  .mobile-actions { order: 2; }
  .main-tabs { order: 3; width: 100%; height: 38px; }
  .main-tabs .tab { height: 38px; }
  .top-search { order: 4; width: 100%; min-width: 0; margin-left: 0; height: 36px; }
  .sidebar { top: 0; }
  .side-mask { inset: 0; }
  .hero-slim .hero-inner { padding: 16px 20px 0; }
  .hero-slim h1 { font-size: 26px; }
  .hero-slim .hero-stats { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
  .hero-slim .hero-stats div { padding: 8px 14px; border-top: 0; border-right: 1px solid var(--line); }
  .hero-slim .hero-stats div:last-child { border-right: 0; }
}

/* 侧栏两块：工具分类 / 场景应用 */
.side-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 20px 2px 8px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
}
.side-block-head small { font-size: 9.5px; letter-spacing: 0.16em; color: var(--text-3); font-weight: 500; }
.side-scene-block .group-label { font-size: 13px; }
.side-scene-block .g-icon { border-radius: 6px; }
.side-scene-block[hidden] { display: none; }
/* 首屏占位：场景列表由 JS 填充，先按实高预留，避免加载完成时整列内容下跳（CLS） */
.side-scene-block[data-pending] { min-height: 444px; }

/* 分组折叠：分支向上收起，面板本身不再向左收 */
.sidebar.collapsed { width: auto; padding: 14px 12px; overflow-x: visible; }
.sidebar.collapsed .side-title small,
.sidebar.collapsed .side-label,
.sidebar.collapsed .group-sub,
.sidebar.collapsed .side-foot { display: none; }
.sidebar.collapsed .side-all b,
.sidebar.collapsed .group-count { display: none; }
.sidebar.collapsed .group-head { justify-content: center; }
.sidebar.collapsed .group-label,
.sidebar.collapsed .g-icon { display: none; }

/* 折叠动画（高度过渡，内容向上收） */
.group-sub {
  display: block; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.24s var(--ease), opacity 0.18s var(--ease), padding 0.24s var(--ease);
  padding: 0 0 0 39px;
}
.group.open .group-sub { max-height: 460px; opacity: 1; padding: 2px 0 6px 39px; }
.group-sub button { width: 100%; }
.group .chev { transition: transform 0.2s var(--ease); }
.group.open .chev { transform: rotate(90deg); }

/* 场景横向筛选条 */
.scene-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.scene-tabs::-webkit-scrollbar { display: none; }
.scene-tabs .sub-tab { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.scene-tabs .sub-tab b { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.scene-tabs .sub-tab.active b { color: rgba(10, 11, 13, 0.62); }
/* 场景条上的运营标记：HOT = 应用最广，NEW = 后加的分类 */
.scene-tabs .sub-tab .st-flag {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  line-height: 1; padding: 2px 4px; border-radius: 3px;
}
.scene-tabs .sub-tab .st-hot { color: #241505; background: linear-gradient(135deg, #f4dfb8, #d2a97e); }
.scene-tabs .sub-tab .st-new { color: var(--brass); background: rgba(210, 169, 126, 0.16); }
.scene-tabs .sub-tab.active .st-flag { background: rgba(10, 11, 13, 0.24); color: #f7efe2; }
.tag.fn { color: #cfd8e6; }
.tag.sc { color: #d8c3b0; border-color: rgba(210, 169, 126, 0.34); background: rgba(210, 169, 126, 0.08); }
.tag.sc::before { content: "场景 · "; color: #a98d72; }

/* 排行榜：多列并排，每列一个榜、纵向 5 行 */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.rank-grid .rank-card { background: var(--surface); }
.rank-grid .rank-head { padding: 15px 16px 12px; }
.rank-grid .rank-head h3 { font-size: 15px; }
.rank-grid .rank-head p { font-size: 12px; line-height: 1.5; }
.rank-grid .rank-item { grid-template-columns: 20px 28px minmax(0, 1fr) auto; gap: 9px; padding: 10px 14px; }
.rank-grid .ri-meta { max-width: 100%; margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.rank-grid .ri-acts { width: auto; gap: 4px; }
.rank-grid .ri-acts .fav-btn,
.rank-grid .ri-acts .cmp-btn { width: 24px; height: 24px; font-size: 11px; }
.rank-grid .ri-first { font-size: 9.5px; padding: 1px 5px; }
@media (max-width: 700px) { .rank-grid { grid-template-columns: 1fr; } }

/* 顶栏排布：标签不换行，空间不够时优先收搜索框与次要入口 */
.main-tabs { flex-shrink: 0; }
.main-tabs .tab { padding: 0 11px; }
.main-tabs .tab span { white-space: nowrap; }
.top-links button { white-space: nowrap; }
.topbar { gap: 14px; }
.top-search { width: min(330px, 24vw); min-width: 200px; }
@media (max-width: 1500px) {
  .top-search { width: 230px; min-width: 170px; }
  .main-tabs .tab { padding: 0 9px; font-size: 13.5px; }
  .top-links button { padding: 7px 8px; font-size: 13px; }
}
@media (max-width: 1320px) {
  .top-links button[data-info="about"],
  .top-links button[data-go="cooperation"] { display: none; }
  .top-search { width: 196px; min-width: 120px; }
}
.g-region {
  margin-left: 6px; padding: 1px 5px; border-radius: 4px; font-style: normal;
  font-size: 9.5px; font-weight: 500; color: var(--text-3);
  border: 1px solid var(--line-2); vertical-align: 1px;
}
@media (max-width: 1120px) {
  .topbar { gap: 8px; }
  .main-tabs .tab { padding: 0 6px; font-size: 12.5px; }
  .top-search { width: 150px; min-width: 96px; }
  .top-search kbd { display: none; }
  .top-links { gap: 0; flex-shrink: 0; }
  .top-links button { padding: 6px 6px; font-size: 12.5px; }
}

/* =========================================================================
   v6 · 编辑式版面（Editorial）
   目标：更像海外产品站点——细线分层、小字距标签、克制的强调色、留白优先
   原则：只改视觉（颜色 / 边线 / 阴影 / 字距 / 背景），不动栅格宽度
   ========================================================================= */
:root {
  --paper: #f3f0e9;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.13);
  --sand: #d2a97e;
  --sand-dim: rgba(210, 169, 126, 0.14);
  --sand-line: rgba(210, 169, 126, 0.28);
  --display: "Chakra Petch", var(--font);
}

/* ---------- 顶部：从纯黑改成有层次的幕布 ---------- */
.topbar {
  background:
    radial-gradient(120% 220% at 6% -80%, rgba(157, 190, 221, 0.18), transparent 58%),
    radial-gradient(90% 180% at 96% -110%, rgba(210, 169, 126, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(16, 19, 24, 0.96), rgba(10, 11, 13, 0.92));
  box-shadow: inset 0 -1px 0 var(--hair), 0 18px 40px -32px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px) saturate(1.15);
}
.brand-text .wordmark { letter-spacing: -0.015em; }
.brand-mark svg { display: block; }
.brand:hover .brand-mark { color: var(--brass-hi); }

.main-tabs .tab { position: relative; border-radius: 8px; color: var(--text-2); transition: color .16s var(--ease), background .16s var(--ease); }
.main-tabs .tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.main-tabs .tab.active { color: #fff; background: rgba(255, 255, 255, 0.055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.main-tabs .tab.active::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 1px; height: 1.5px;
  border-radius: 2px; background: var(--holo);
}

.top-search {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--hair-2);
  border-radius: 10px;
  padding-right: 4px;
}
.top-search:focus-within {
  border-color: rgba(157, 190, 221, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(157, 190, 221, 0.1);
}
.search-go {
  flex: none; height: 27px; padding: 0 12px; border: 0; border-radius: 7px;
  background: var(--holo); color: #0b0d10; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  transition: filter .16s var(--ease), transform .16s var(--ease);
}
.search-go:hover { filter: brightness(1.08); }
.search-go:active { transform: translateY(1px); }
.top-links button { color: var(--text-2); border-radius: 8px; }
.top-links button:hover { color: var(--text); }
.lang-switch { border: 1px solid var(--hair); border-radius: 9px; padding: 2px; }
.lang-switch .lang-opt { border-radius: 7px; }

/* ---------- 首屏：网格 + 双色光 + 水印字 ---------- */
.hero.hero-slim {
  background:
    radial-gradient(58% 120% at 14% 0%, rgba(157, 190, 221, 0.13), transparent 68%),
    radial-gradient(52% 108% at 88% 4%, rgba(210, 169, 126, 0.11), transparent 70%),
    linear-gradient(180deg, #0d1014 0%, #0a0b0d 100%);
  border-bottom: 1px solid var(--hair);
}
.hero::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 96px),
    radial-gradient(ellipse 40% 36% at 78% 70%, rgba(210, 169, 126, 0.06), transparent 72%);
}
.hero-slim .hero-inner::before {
  content: "INDEX";
  position: absolute; right: 2%; top: -46px; z-index: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(88px, 15vw, 210px); line-height: 1; letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.018); pointer-events: none; user-select: none;
}
.hero h1 { font-weight: 560; letter-spacing: -0.035em; }
.hero h1 span { letter-spacing: -0.035em; }
.hero-tag { letter-spacing: 0.01em; }
.hero-stats { border-top: 1px solid var(--hair); }
.hero-stats div { border-right: 1px solid var(--hair); }
.hero-stats strong { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.hero-stats span { letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }

/* ---------- 区块标题：编号 + 细线 ---------- */
.section-head { border-bottom: 1px solid var(--hair); padding-bottom: 16px; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.section-head h2 { font-weight: 600; letter-spacing: -0.03em; }
.section-head h2::before { background: var(--holo); opacity: .7; }
.section-head p { line-height: 1.75; }
.result-count { color: var(--text-3); font-size: 12.5px; letter-spacing: .04em; }
.result-count b { font-family: var(--display); color: var(--text); font-weight: 600; }
.crumb { letter-spacing: 0.01em; }

/* ---------- 卡片：细边 + 轻浮起 ---------- */
.tool-card, .repo-card, .flow-card, .tut-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--hair);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.tool-card:hover, .repo-card:hover, .flow-card:hover, .tut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 190, 221, 0.3);
  box-shadow: 0 26px 48px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card-name { letter-spacing: -0.015em; }
.card-desc { color: var(--text-2); }

.tag {
  background: transparent; border: 1px solid var(--hair-2);
  font-size: 11px; letter-spacing: 0.015em; padding: 2px 8px; border-radius: 5px;
  color: var(--text-2);
}
.tag.region-cn { color: #a9d6bd; border-color: rgba(124, 194, 160, 0.3); background: rgba(124, 194, 160, 0.05); }
.tag.region-intl { color: #b7c8ea; border-color: rgba(154, 180, 228, 0.3); background: rgba(154, 180, 228, 0.05); }
.tag.fn { color: var(--text-2); }
.tag.sc { color: #e2c49e; border-color: var(--sand-line); background: rgba(210, 169, 126, 0.05); }
.tag.src { color: var(--text-3); border-style: dashed; }
.card-bottom { border-top: 1px solid var(--hair); }

/* ---------- 侧栏：细线 + 选中态竖条 ---------- */
.sidebar { border-right: 1px solid var(--hair); }
.side-title { letter-spacing: 0.06em; }
.side-block-head { border-top: 1px solid var(--hair); padding-top: 14px; }
.group-head { border-radius: 8px; transition: background .16s var(--ease); }
.group-head:hover { background: rgba(255, 255, 255, 0.03); }
.group-head.active { background: rgba(157, 190, 221, 0.09); box-shadow: inset 2px 0 0 var(--brass); }
.group-count { font-family: var(--display); color: var(--text-3); }
.side-all { border-radius: 8px; }
.side-all.active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ---------- AI Skill 卡片 ---------- */
.skill-tile {
  display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, rgba(210, 169, 126, 0.2), rgba(157, 190, 221, 0.12));
  border: 1px solid var(--sand-line); border-radius: 10px;
  color: #f2e7d5; font-family: var(--display); font-size: 17px; font-weight: 700;
}
.skill-card .card-tagline { color: var(--text-3); letter-spacing: 0.01em; }

/* 部署命令块 */
.cmd-block {
  margin: 0; padding: 16px 18px; border-radius: 10px;
  background: #0a0c0f; border: 1px solid var(--hair-2);
  color: #cfe0f2; font-family: var(--mono); font-size: 12.5px; line-height: 1.95;
  white-space: pre; overflow-x: auto;
}
.cmd-acts { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cmd-note { font-size: 12.5px; color: var(--text-3); }
.skill-steps { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: var(--text-2); }
.skill-steps li::marker { color: var(--sand); font-family: var(--display); }

/* ---------- 分类广告条：比通栏更轻，和内容同一套线条 ---------- */
.ad-slot.ad-cat-strip {
  margin: 16px 0 18px; border-radius: 12px;
  border: 1px solid var(--sand-line);
  background:
    linear-gradient(90deg, rgba(210, 169, 126, 0.07), rgba(157, 190, 221, 0.035) 55%, transparent);
}
.ad-cat-strip .ad-link { padding: 12px 16px; }
.ad-cat-strip .ad-kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; }
.ad-cat-strip .ad-title { font-size: 14.5px; letter-spacing: -0.01em; }
.ad-cat-strip .ad-sub { font-size: 12.5px; color: var(--text-3); }
.ad-cat-strip .ad-stat b { font-family: var(--display); color: var(--paper); }
.ad-cat-strip .ad-stat i { font-style: normal; color: var(--text-3); }
.ad-cat-strip .ad-cta { color: var(--sand); }
.ad-cat-strip .ad-size { color: var(--text-3); }

/* ---------- 广告位清单：双币价 ---------- */
.ad-card { border-radius: 12px; border-color: var(--hair); }
.ad-card-price { text-align: right; }
.ad-card-price strong { font-family: var(--display); letter-spacing: -0.01em; }
.ad-card-price span { display: block; color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.ad-card-id { font-family: var(--display); letter-spacing: 0.02em; }

/* ---------- 可读性小修 ---------- */
.long-text { line-height: 1.85; }
.detail-lede { line-height: 1.8; }

@media (max-width: 700px) {
  .search-go { padding: 0 9px; font-size: 11.5px; }
  .hero-slim .hero-inner::before { display: none; }
  .cmd-block { font-size: 11.5px; padding: 13px 14px; }
}

/* 顶栏 7 个入口后，中小屏再收一档，保证标签不换行、页面不横向溢出 */
@media (max-width: 1240px) {
  .main-tabs .tab { padding: 0 5px; }
  .search-go { padding: 0 9px; font-size: 11.5px; }
}
@media (max-width: 1120px) {
  .main-tabs .tab { padding: 0 4px; font-size: 12px; }
  .top-search { min-width: 84px; }
}

/* v6.1：顶栏与首屏再修一版——去掉方块状选中态，改成编辑式的下划线 */
.topbar {
  background:
    radial-gradient(120% 240% at 4% -120%, rgba(157, 190, 221, 0.22), transparent 62%),
    radial-gradient(80% 200% at 100% -140%, rgba(210, 169, 126, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(18, 22, 28, 0.97), rgba(11, 13, 16, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}
.main-tabs .tab { background: transparent !important; box-shadow: none !important; }
.main-tabs .tab:hover { background: rgba(255, 255, 255, 0.03) !important; color: var(--text); }
.main-tabs .tab.active { color: #fff; }
.main-tabs .tab.active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--holo); opacity: .95;
}
.brand-mark svg { width: 38px; height: 38px; }
.brand-text strong { font-size: 19.5px; }
.brand::after {
  content: ""; width: 1px; height: 22px; margin-left: 14px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.top-search { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

/* 首屏：把网格与暖光提亮一点，和纯黑拉开层次 */
.hero.hero-slim {
  background:
    radial-gradient(56% 130% at 12% -10%, rgba(157, 190, 221, 0.16), transparent 66%),
    radial-gradient(48% 120% at 90% 0%, rgba(210, 169, 126, 0.13), transparent 68%),
    linear-gradient(180deg, #0f1216 0%, #0a0b0d 100%);
}
.hero::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 88px),
    radial-gradient(ellipse 46% 40% at 82% 76%, rgba(210, 169, 126, 0.07), transparent 74%);
}
.hero-slim .hero-inner { padding-top: 34px; }
.hero-slim .hero-tag { color: var(--text-2); }
.hero-slim .hero-tag .dot { box-shadow: 0 0 0 4px rgba(157, 190, 221, 0.12); }

@media (max-width: 700px) {
  .brand::after { display: none; }
  .brand-mark svg { width: 32px; height: 32px; }
}

/* 场景标签前缀跟随语言：英文态不出现「场景」 */
html[lang="en"] .tag.sc::before { content: "USE · "; color: #8f7a62; }

/* 分类广告条：改成单行紧凑版，价格与 CTA 并排，避免右侧出现空块 */
.ad-slot.ad-cat-strip {
  background:
    linear-gradient(90deg, rgba(210, 169, 126, 0.075), rgba(255, 255, 255, 0.012) 45%, transparent 100%);
  border-left: 2px solid var(--sand-line);
}
.ad-cat-strip .ad-link { padding: 16px 16px 14px; gap: 18px; }
.ad-cat-strip .ad-side { flex-direction: row; align-items: center; gap: 16px; }
.ad-cat-strip .ad-stat b { font-size: 21px; }
.ad-cat-strip .ad-stat i { font-size: 10.5px; }
.ad-cat-strip .ad-size { display: none; }
.ad-cat-strip .ad-flag { top: 6px; right: 10px; font-size: 8.5px; padding: 2px 4px; }
.ad-cat-strip .ad-cta { font-size: 12px; }
@media (max-width: 700px) {
  .ad-cat-strip .ad-side { flex-direction: column; align-items: flex-end; gap: 6px; }
  .ad-cat-strip .ad-stat b { font-size: 18px; }
}

/* =========================================================================
   v8 · 复核修正
   1) 顶栏搜索：改为弹性宽度，不再被 7 个导航挤成细条
   2) 侧栏：英文态不重复「标题 + 英文小标」
   3) 分类广告条：窄屏改为上下两段，价格不再压住标题
   4) 合作页：新增「分类条」报价表 + 价格区间行
   ========================================================================= */
.topbar .top-search { flex: 1 1 240px; width: auto; max-width: 360px; min-width: 210px; }
.topbar .top-search input { font-size: 13px; }
@media (max-width: 1500px) {
  .topbar .top-search { flex-basis: 210px; min-width: 195px; max-width: 300px; }
  .main-tabs .tab { padding: 0 9px; font-size: 13px; }
}
@media (max-width: 1320px) {
  .topbar .top-search { flex-basis: 190px; min-width: 172px; max-width: 240px; }
}
@media (max-width: 900px) {
  .topbar .top-search { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; margin-left: 0; }
  .topbar .top-search input { font-size: 14px; }
}

/* 侧栏标题：英文态只留一行 */
html[lang="en"] #side-section-en { display: none; }
.group-head { padding: 8px 10px; }
.group-label { font-size: 13.5px; }

/* 分类广告条：≤700 上下两段 */
@media (max-width: 700px) {
  .ad-cat-strip .ad-link { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 14px 12px; }
  .ad-cat-strip .ad-copy { display: block; }
  .ad-cat-strip .ad-title { display: block; font-size: 13.5px; line-height: 1.45; }
  .ad-cat-strip .ad-sub { display: block; margin-top: 4px; font-size: 11.5px; }
  .ad-cat-strip .ad-side {
    flex-direction: row; align-items: center; justify-content: space-between;
    width: 100%; gap: 10px; padding-top: 9px; border-top: 1px solid var(--hair);
  }
  .ad-cat-strip .ad-stat b { font-size: 16px; }
}

/* 合作页：价格区间 */
.ad-range { margin: -4px 0 16px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.ad-range b { color: var(--paper); font-weight: 600; }

/* 合作页：分类条报价表 */
.strip-block {
  margin: 20px 0 8px; padding: 18px 20px 16px;
  border: 1px solid var(--hair); border-radius: 14px;
  background: linear-gradient(180deg, rgba(210, 169, 126, 0.045), rgba(255, 255, 255, 0.012));
}
.strip-block-head h4 { font-size: 14.5px; letter-spacing: -0.01em; }
.strip-block-head p { margin-top: 6px; max-width: 720px; font-size: 12.5px; line-height: 1.65; color: var(--text-3); }
.strip-table { margin-top: 14px; border-top: 1px solid var(--hair); }
.strip-row {
  display: grid; grid-template-columns: 62px 1fr 148px 178px;
  align-items: center; gap: 12px; padding: 11px 6px;
  border-bottom: 1px solid var(--hair); font-size: 13px;
}
.strip-row:last-child { border-bottom: 0; }
.strip-row.is-head {
  padding: 9px 6px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.strip-row > b {
  font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--sand);
}
.strip-row.is-head > b { font-family: var(--font); font-size: 10px; font-weight: 500; color: var(--text-3); }
.strip-row > span { color: var(--text-2); }
.strip-row.is-head > span, .strip-row.is-head > em { color: var(--text-3); }
.strip-price {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 6px;
  font-style: normal; text-align: right;
}
.strip-price b { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--paper); }
.strip-price span { font-size: 12px; color: var(--text-2); }
.strip-price small { font-size: 10.5px; color: var(--text-3); }
.strip-row.is-head > em { font-style: normal; text-align: right; }
.strip-foot { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }

@media (max-width: 760px) {
  .strip-block { padding: 16px 14px 14px; }
  .strip-row { grid-template-columns: 46px 1fr auto; gap: 8px; font-size: 12.5px; }
  .strip-row > span:nth-child(3) { display: none; }
  .strip-price b { font-size: 14.5px; }
  .strip-price small { display: none; }
}

/* 1024–1180：英文导航更宽，顶栏改为「导航内滚动」，不再把页面撑出横向滚动条 */
@media (max-width: 1180px) {
  .topbar { gap: 10px; padding: 0 20px; }
  .main-tabs { flex-shrink: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .main-tabs::-webkit-scrollbar { display: none; }
  .main-tabs .tab { padding: 0 7px; font-size: 12.5px; }
  .topbar .top-search { flex: 1 1 150px; min-width: 140px; max-width: 220px; }
  .top-links button { padding: 6px 7px; font-size: 12px; }
}
@media (max-width: 1024px) {
  .topbar .top-search { min-width: 118px; max-width: 180px; }
  .topbar { gap: 8px; padding: 0 16px; }
}
@media (max-width: 900px) {
  .main-tabs { overflow-x: auto; }
  .topbar .top-search { flex: 1 1 auto; min-width: 0; max-width: none; }
}

/* 901–1100：次要入口收进「⋯」菜单（收藏 / 关于 / 合作 / 语言都还在菜单里），把宽度让给搜索 */
@media (min-width: 901px) and (max-width: 1200px) {
  .top-links > button { display: none; }
  .top-links { margin-left: 0; }
  .mobile-actions {
    display: grid; place-items: center; flex: none;
    width: 34px; height: 34px; margin-left: 0;
    border: 1px solid var(--line-2); border-radius: 8px;
    background: none; color: var(--text-2); font-size: 17px; line-height: 1;
  }
  .mobile-actions:hover { color: var(--brass); }
  .topbar .top-search { flex: 1 1 250px; min-width: 232px; max-width: 330px; }
  .brand-text .wordmark { font-size: 17px; }
  .main-tabs { mask-image: none; -webkit-mask-image: none; }
}

/* 报价卡：双币都在，美元不再被 "/ 月" 挤成脚注 */
.ad-card-price span { color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ad-card-price span i { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-left: 2px; }
@media (max-width: 640px) {
  .ad-card-price span { font-size: 11.5px; }
  .ad-card-price span i { font-size: 10px; }
}

/* =========================================================================
   v9 · 首屏大标题 + 居中搜索 + 网站名字水印；侧栏图标与整栏收起；站内类目推广位
   ========================================================================= */

/* ---------- 首屏 ---------- */
.hero.hero-home {
  padding: 58px 32px 0;
  border-bottom: 1px solid var(--hair);
  background:
    radial-gradient(ellipse 60% 120% at 50% -30%, rgba(157, 190, 221, 0.16), transparent 62%),
    radial-gradient(ellipse 40% 90% at 88% 110%, rgba(210, 169, 126, 0.1), transparent 66%),
    linear-gradient(180deg, #0f1216, var(--ink));
}
.hero-word {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  overflow: hidden; pointer-events: none; user-select: none;
}
.hero-word span {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(110px, 16.5vw, 260px);
  line-height: 0.82; letter-spacing: -0.05em; white-space: nowrap;
  background: linear-gradient(100deg, #dce8f5 0%, #9dbedd 44%, #d2a97e 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: 0.075;
  transform: translateY(-8%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 94%);
}
.hero-home .hero-inner {
  position: relative; z-index: 1;
  display: block; text-align: center; padding: 0;
}
.hero-home h1 {
  margin: 16px 0 12px;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.04; letter-spacing: -0.038em; font-weight: 700;
}
.hero-home .hero-tag { justify-content: center; font-size: 12.5px; }
.hero-home .hero-sub { margin: 0 auto; max-width: 640px; font-size: 15px; color: var(--text-2); }

/* 搜索框 */
.hero-search {
  display: flex; align-items: center; gap: 10px;
  width: min(780px, 94%); height: 60px;
  margin: 26px auto 0; padding: 0 8px 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--hair-2);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.hero-search:focus-within {
  border-color: rgba(157, 190, 221, 0.55);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(157, 190, 221, 0.1), 0 22px 50px -32px rgba(0, 0, 0, 0.95);
}
.hero-search .hs-icon { flex: none; color: var(--text-3); }
.hero-search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: none;
  font-family: inherit; font-size: 15.5px; color: var(--paper);
}
.hero-search input::placeholder { color: #808894; }
.hero-search input::-webkit-search-cancel-button { filter: invert(0.55); }
.hs-go {
  flex: none; height: 44px; padding: 0 28px;
  border: 0; border-radius: 12px; background: var(--holo); color: #0a0c0f;
  font-family: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; transition: filter .16s var(--ease), transform .12s var(--ease);
}
.hs-go:hover { filter: brightness(1.07); }
.hs-go:active { transform: translateY(1px); }
.hero-hints {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-3);
}
.hero-hints > span { letter-spacing: 0.06em; }
.hero-hints button {
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: rgba(255, 255, 255, 0.03);
  color: var(--text-2); font-family: inherit; font-size: 12px; cursor: pointer;
  transition: .15s var(--ease);
}
.hero-hints button:hover { color: var(--paper); border-color: var(--sand-line); background: var(--sand-dim); }
.hero-home .hero-stats { position: relative; z-index: 1; margin-top: 28px; border-top: 1px solid var(--hair); }

/* ---------- 搜索结果 ---------- */
.search-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 16px;
}
.search-region {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, 0.025);
}
.sr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border: 0; border-radius: 9px;
  background: none; color: var(--text-2);
  font-family: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
  transition: .15s var(--ease);
}
.sr-btn b { font-family: var(--display); font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.sr-btn:hover { color: var(--paper); }
.sr-btn.active { background: rgba(255, 255, 255, 0.07); color: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); }
.sr-btn.active b { color: var(--sand); }
.search-actions { display: flex; align-items: center; gap: 12px; }
.search-live { font-size: 11.5px; color: var(--text-3); }
.search-clear {
  padding: 7px 13px; border: 1px solid var(--hair-2); border-radius: 9px;
  background: none; color: var(--text-2); font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.search-clear:hover { color: var(--paper); border-color: var(--sand-line); }
body.search-view .sidebar { display: none; }
body.search-view .shell { padding-top: 26px; }
#view-search .tool-grid { margin-top: 4px; }

/* ---------- 侧栏图标与整栏收起 ---------- */
.g-icon {
  width: 27px; height: 27px; border: 0; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  color: inherit;
}
.g-icon svg { display: block; }
.group-head { gap: 11px; padding: 8px 10px; }
.side-all .all-icon { width: 27px; display: grid; place-items: center; }
.group-name .gi { display: inline-grid; place-items: center; margin-right: 7px; color: var(--brass); }
.group-name .gi svg { width: 14px; height: 14px; }

.sidebar.collapsed { width: 66px; padding: 12px 8px; overflow-x: hidden; }
.sidebar.collapsed .side-head { justify-content: center; padding: 2px 0 10px; }
.sidebar.collapsed .side-block-head,
.sidebar.collapsed .side-foot,
.sidebar.collapsed .side-all .side-label,
.sidebar.collapsed .group-count,
.sidebar.collapsed .chev,
.sidebar.collapsed .group-sub,
.sidebar.collapsed .g-icon + .group-label { display: none; }
.sidebar.collapsed .side-all { justify-content: center; padding: 8px 0; }
.sidebar.collapsed .group-head { justify-content: center; padding: 8px 0; }
.sidebar.collapsed .side-groups { margin-top: 4px; }
.sidebar.collapsed .ad-box { display: none; }
.sidebar.collapsed .toggle-chev { transform: none; }

/* ---------- 站内「热门类目」推广位 ---------- */
.ad-slot.ad-house { border-left: 2px solid var(--sand-line); background: linear-gradient(90deg, rgba(210, 169, 126, 0.06), transparent 60%); }
.ad-cat-strip.ad-house .ad-link { padding: 11px 16px; gap: 16px; align-items: center; }
.ad-cat-strip.ad-house .ad-kicker { font-size: 9.5px; letter-spacing: 0.16em; color: var(--sand); }
.ad-cat-strip.ad-house .ad-title { font-size: 14px; font-weight: 620; letter-spacing: -0.012em; }
.ad-cat-strip.ad-house .ad-title .ad-count { color: var(--text-3); font-weight: 500; font-size: 12.5px; margin-left: 2px; }
.ad-cat-strip.ad-house .ad-sub { font-size: 12px; color: var(--text-3); }
.ad-cat-strip.ad-house .ad-cta { font-size: 12px; color: var(--sand); }
.ad-cat-strip.ad-house { margin: 4px 0 18px; }
.ad-cat-strip.ad-house .ad-copy { gap: 2px; }

.ad-box.ad-house { padding: 14px; }
.ad-hot { display: flex; flex-direction: column; gap: 8px; }
.ad-hot .ad-kicker { font-size: 9.5px; letter-spacing: 0.16em; color: var(--sand); }
.ad-hot-list { display: flex; flex-direction: column; gap: 2px; }
.ad-hot-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 6px; border: 0; border-radius: 7px; background: none;
  color: var(--text-2); font-family: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
  transition: .14s var(--ease);
}
.ad-hot-row:hover { background: rgba(255, 255, 255, 0.05); color: var(--paper); }
.ad-hot-row em { font-family: var(--display); font-style: normal; font-size: 10.5px; color: var(--sand); width: 14px; flex-shrink: 0; }
.ad-hot-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-hot-row b { font-family: var(--display); font-size: 11.5px; font-weight: 600; color: var(--text-3); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ad-hot-more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--text-3); font-family: inherit; font-size: 11.5px; text-align: left; cursor: pointer; }
.ad-hot-more:hover { color: var(--sand); }

@media (max-width: 900px) {
  .hero.hero-home { padding: 34px 18px 0; }
  .hero-home h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-search { height: 54px; padding: 0 7px 0 14px; border-radius: 14px; }
  .hero-search input { font-size: 14px; }
  .hs-go { height: 40px; padding: 0 18px; font-size: 13.5px; }
  .hero-word span { font-size: 34vw; opacity: 0.06; }
  .hero-hints { display: none; }
  .search-bar { gap: 8px; }
  .sr-btn { padding: 6px 10px; font-size: 12px; }
  .search-actions { width: 100%; justify-content: space-between; }
}

/* v9 修正：首屏去掉历史 min-height，水印收紧 */
.hero.hero-home { min-height: 0; }
.hero-home .hero-inner { min-height: 0; padding: 0; }
.hero-word span {
  font-size: clamp(96px, 12.5vw, 190px);
  opacity: 0.06;
  transform: translateY(-16%);
  -webkit-mask-image: radial-gradient(ellipse 78% 120% at 50% 46%, #000 42%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 120% at 50% 46%, #000 42%, transparent 92%);
}
.hero-home .hero-stats { margin-top: 24px; }

/* v9 修正 2：水印不做遮罩，压低存在感；推广位单行更薄 */
.hero-word span {
  opacity: 0.05;
  transform: translateY(-10%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
}
.ad-cat-strip.ad-house .ad-link { padding: 13px 16px; }
.ad-cat-strip.ad-house .ad-copy { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ad-cat-strip.ad-house .ad-kicker { order: 0; }
.ad-cat-strip.ad-house .ad-title { order: 1; }
.ad-cat-strip.ad-house .ad-cta { white-space: nowrap; }

/* v9 修正 3：推广位文案一行排布（覆盖旧的纵向堆叠） */
.ad-cat-strip.ad-house .ad-copy { display: flex !important; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ad-slot.ad-cat-strip.ad-house { --pad: 13px; }
.ad-cat-strip.ad-house .ad-title { white-space: nowrap; }

/* v9 修正 4：水印整词完整呈现，不再被裁成碎片 */
.hero-word { align-items: center; }
.hero-word span {
  font-size: clamp(72px, 10.4vw, 168px);
  opacity: 0.042;
  transform: translateY(4%);
  -webkit-mask-image: none; mask-image: none;
  letter-spacing: -0.03em;
}

/* v9 修正 5：水印上移，压在大标题后面 */
.hero-word { align-items: flex-start; padding-top: 30px; }
.hero-word span { transform: none; opacity: 0.055; }
.hero-word { padding-top: 52px; }
.hero-word span { opacity: 0.05; }

/* 搜索结果页：首屏收成一条「品牌 + 搜索框」，结果上移 */
body.search-view .hero-home { padding-top: 26px; }
body.search-view .hero-tag,
body.search-view .hero-sub,
body.search-view .hero-hints,
body.search-view .hero-stats { display: none; }
body.search-view .hero-home h1 { font-size: clamp(26px, 2.4vw, 34px); margin: 0 0 14px; letter-spacing: -0.02em; }
body.search-view .hero-home h1 span { -webkit-text-fill-color: currentColor; background: none; color: var(--sand); animation: none; }
body.search-view .hero-search { margin-top: 0; height: 54px; }
body.search-view .hero-word { padding-top: 0; align-items: center; }
body.search-view .hero-word span { font-size: clamp(60px, 8vw, 120px); opacity: 0.04; }

/* 收起态：图标必须显示（旧规则把 .g-icon 一起隐藏了） */
.sidebar.collapsed .g-icon { display: grid !important; }
.sidebar.collapsed .side-all .all-icon { display: grid; }

/* v9 修正 6：英文态不再出现「Browse / BROWSE」这类重复副标 */
html[lang="en"] .side-title small,
html[lang="en"] .side-block-head small { display: none; }

/* v9 修正 7：分类条推广位压成单行（≈50px），「推广」改成左侧竖标，不再压住 CTA */
.ad-slot.ad-cat-strip.ad-house {
  padding: 0; margin: 12px 0 16px; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: 0;
}
.ad-cat-strip.ad-house .ad-flag {
  position: static; display: grid; place-items: center; margin: 0; padding: 0 9px;
  font-size: 9px; letter-spacing: 0.12em; line-height: 1.5; color: var(--sand);
  background: rgba(210, 169, 126, 0.1); border: 0; border-right: 1px solid rgba(210, 169, 126, 0.22); border-radius: 0;
}
.ad-cat-strip.ad-house .ad-link { width: auto; padding: 9px 14px; min-height: 0; gap: 14px; align-items: center; }
.ad-cat-strip.ad-house .ad-copy { flex: 1; display: flex; flex-direction: row; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.ad-cat-strip.ad-house .ad-side { flex: none; }
.ad-cat-strip.ad-house .ad-kicker { font-size: 9.5px; }
.ad-cat-strip.ad-house .ad-title { font-size: 13.5px; }
.ad-cat-strip.ad-house .ad-cta { padding: 5px 11px; font-size: 12px; }

/* v9 修正 8：≤900 顶栏行序（品牌 + ⋯ 一行，导航独占一行），移动端首屏标语不折行 */
@media (max-width: 900px) {
  .topbar .mobile-nav { order: 0; }
  .topbar .brand { order: 1; }
  .topbar .mobile-actions { order: 2; }
  .topbar .main-tabs { order: 3; width: 100%; }
}
@media (max-width: 600px) {
  .hero-home .hero-tag { display: none; }
  .hero-home .hero-sub { font-size: 13.5px; }
}

/* v9 修正 9：移动端水印整词收进屏幕，别被裁成半截压在标题上 */
@media (max-width: 600px) {
  .hero-word span { font-size: 19vw; opacity: 0.05; letter-spacing: -0.04em; }
}

/* v9 修正 10：搜索结果页不再重复报数（描述里已经有分区明细） */
body.search-view #view-search .result-count { display: none; }

/* v9 修正 11：侧栏 C 位宽度撑满（.ad-slot 是 flex，子块会被收缩成内容宽） */
.ad-box.ad-house .ad-hot { width: 100%; flex: 1; min-width: 0; }
.ad-box.ad-house .ad-hot-list { width: 100%; }

/* ===== v10：首屏水印铺满、统计带居中 ===== */
.hero-word { align-items: center; padding-top: 0; }
.hero-word span {
  font-size: min(21.6vw, 430px);
  letter-spacing: -0.045em;
  line-height: 0.8;
  opacity: 0.048;
  transform: translateY(-6%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 97%);
}
.hero-stats { justify-content: center; }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { margin-right: 0; padding-right: 0; }

@media (max-width: 600px) {
  .hero-word span { font-size: 22vw; letter-spacing: -0.05em; opacity: 0.05; }
  .hero-stats { justify-content: space-between; }
}

/* v10：排行榜每行右侧「收藏 + 对比」不再挤出卡片边框 */
.rank-grid .ri-acts { width: auto; gap: 6px; align-items: center; }
.rank-grid .ri-acts .cmp-btn.cmp-mini {
  width: auto; min-width: 46px; height: 24px; padding: 0 8px;
  font-size: 11px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}

/* v10：搜索关联词条 */
.search-rel {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 2px 0 16px; font-size: 12.5px; color: var(--text-3);
}
.search-rel[hidden] { display: none; }
.search-rel-label { margin-right: 2px; letter-spacing: 0.06em; color: var(--sand); }
.search-rel button {
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02); color: var(--text-2); font-size: 12.5px; cursor: pointer;
  transition: 0.15s var(--ease);
}
.search-rel button:hover { color: var(--paper); border-color: var(--sand-line); background: rgba(210, 169, 126, 0.1); }

/* v10：排行榜行内说明最多两行，避免把 5 行榜单拉得太高 */
.rank-grid .ri-why {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12.5px; line-height: 1.5;
}
.rank-grid .ri-acts .cmp-btn.cmp-mini { min-width: 42px; padding: 0 6px; }

/* v10：榜单行把「收藏 / 对比」并到价格行右侧，说明文字拿回整行宽度 */
.rank-grid .rank-item { grid-template-columns: 20px 28px minmax(0, 1fr); row-gap: 6px; }
.rank-grid .ri-meta { display: flex; align-items: center; gap: 10px; width: 100%; max-width: none; }
.rank-grid .ri-meta .ri-price { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-grid .ri-meta .ri-acts { margin-left: auto; flex: none; }

/* 无 JS 时的静态索引提示（只在 noscript 内出现，不影响正常访客） */
.noscript-band {
  width: min(1180px, calc(100% - 48px)); margin: 18px auto 0; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(20, 23, 27, .7);
  font-size: 14px; color: #b9c2cd; line-height: 1.75;
}
.noscript-band b { color: var(--text); }
.noscript-band p + p { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.noscript-band a { color: var(--brass); border-bottom: 1px solid rgba(210, 169, 126, .28); }

/* ---------- 统计栏：窄窗口等比收缩，不折字、不错位 ----------
   原实现 display:flex 且各项可收缩：窗口一旦不满屏，6 项被挤，
   「收录工具」「GitHub 开源」折成两行，数字与标签 baseline 错位。
   改为「字号 / 间距随视口等比缩放 + 标签不换行」，901px 以上恒为单行。 */
@media (min-width: 901px) {
  .hero-stats {
    flex-wrap: nowrap;
    padding-left: clamp(16px, 2vw, 32px);
    padding-right: clamp(16px, 2vw, 32px);
  }
  .hero-stats div {
    flex: 0 1 auto; min-width: 0;
    gap: clamp(5px, 0.62vw, 10px);
    padding-right: clamp(10px, 2.2vw, 40px);
    margin-right: clamp(10px, 2.2vw, 40px);
  }
  .hero-stats strong,
  .hero-stats span { white-space: nowrap; }
  .hero-stats strong { font-size: clamp(18px, 1.66vw, 26px); }
  .hero-stats span { font-size: clamp(10.5px, 0.85vw, 13px); }
}

/* ---------- 排行榜：同排卡片等高 ----------
   原来 .rank-grid 用 align-items:start，卡片高度取决于
   「副标题 1–2 行 + 推荐语 1–3 行」，同一排底部参差不齐。
   这里把两段文字的行数锁死，配合 stretch，同排上下都齐平。 */
.rank-grid { align-items: stretch; }
.rank-grid .rank-card { display: flex; flex-direction: column; }
.rank-grid .rank-items { flex: 1; }
.rank-grid .rank-head p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.5em * 2);
}
.rank-grid .ri-why {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.55em * 2);
}
.rank-grid .ri-meta { min-height: 1.4em; }

/* =========================================================================
   顶栏入口最终裁决（覆盖前面所有断点）
   问题：1320px 隐藏「合作咨询」、901–1200 把整条 top-links 收进「⋯」、
   ≤900 直接 display:none —— 窗口一不满屏，收藏旁边的合作咨询就"消失"。
   规则：收藏 + 合作咨询任何宽度都在；「关于我们」<1200 收进菜单；语言 <900 进菜单。
   ========================================================================= */
.topbar .top-links { flex: 0 0 auto; display: flex; align-items: center; }
.topbar .top-links button[data-sheet="fav"],
.topbar .top-links button[data-go="cooperation"] { display: inline-flex !important; align-items: center; }
/* 全大写后字标更宽：放宽字距、降一点字号，避免顶栏被顶开 */
.brand-text strong.wordmark { font-size: 19px; letter-spacing: 0.015em; }

@media (max-width: 1320px) {
  .topbar .top-links button[data-info="about"] { display: none !important; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .topbar .top-links > button { display: inline-flex !important; }
  .topbar .mobile-actions { display: none !important; }
  .topbar .top-links { margin-left: auto; }
  .main-tabs { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .main-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  .topbar .top-links { display: flex !important; margin-left: auto; gap: 0; }
  .topbar .top-links button[data-sheet="fav"],
  .topbar .top-links button[data-go="cooperation"] { padding: 6px 7px; font-size: 12.5px; }
  .topbar .top-links .lang-switch { display: none; }
  .topbar .mobile-actions { display: grid; width: 32px; height: 32px; font-size: 16px; }
  .brand-text strong.wordmark { font-size: 17px; letter-spacing: 0.01em; }
  .topbar .mobile-nav { order: 0; }
  .topbar .brand { order: 1; }
  .topbar .top-links { order: 2; }
  .topbar .mobile-actions { order: 3; margin-left: 4px; }
  .topbar .main-tabs { order: 4; width: 100%; }
}
@media (max-width: 400px) {
  .topbar .top-links button { padding: 6px 5px; font-size: 12px; }
  .brand-text strong.wordmark { font-size: 15.5px; }
  .brand-mark svg { width: 28px; height: 28px; }
}

/* A 位移到内容区顶部后：不再需要全宽容器的内边距，宽度随右半部分 */
.content > .ad-band-top {
  max-width: none; width: auto; padding: 0; margin: 0 0 22px;
}
.content > .ad-band-top .ad-leader { min-height: 96px; }
.content > .ad-band-top .ad-leader .ad-link { min-height: 96px; padding: 15px 78px 15px 20px; gap: 20px; }
.content > .ad-band-top .ad-leader .ad-title { font-size: 16px; }
@media (max-width: 900px) {
  .content > .ad-band-top { margin-bottom: 16px; }
  .content > .ad-band-top .ad-leader .ad-link { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .content > .ad-band-top .ad-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- 报价卡：已上线 / 待开放 ----------
   报价单上 5 个位置（免费榜冠名、场景榜冠名、排行榜整榜冠名、
   教程详情页底部、开源详情页右栏）页面上还没有对应元素，
   在卡片上明确标出，避免"卖不存在的位置"。 */
.ad-card.is-soon {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.012);
}
.ad-card.is-soon .ad-card-id {
  color: var(--text-3);
  border-color: var(--line);
  background: none;
}
.ad-card.is-soon .ad-card-price strong { color: var(--text-2); }
.ad-soon {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-3); border: 1px solid var(--line);
  border-radius: 4px; background: rgba(255, 255, 255, 0.03);
  vertical-align: 1.5px;
}

/* 手机端保留「试试」：原来 ≤900 直接 display:none，搜索入口少了一半
   改为单行横向滑动，不占竖向空间 */
@media (max-width: 900px) {
  .hero-hints {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    gap: 6px; margin-top: 12px; padding-bottom: 2px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hero-hints::-webkit-scrollbar { display: none; }
  .hero-hints > span { flex: 0 0 auto; font-size: 11.5px; }
  .hero-hints button { flex: 0 0 auto; padding: 3px 9px; font-size: 11.5px; }
}

/* A 位窄屏压缩：隐藏「5 个场景榜」数字，正文收 2 行，别让首屏广告占掉 1/5 屏 */
@media (max-width: 620px) {
  .content > .ad-band-top .ad-leader .ad-link { flex-wrap: nowrap; padding: 13px 14px; gap: 10px; }
  .content > .ad-band-top .ad-side { width: auto; flex-direction: column; align-items: flex-end; gap: 6px; }
  .content > .ad-band-top .ad-stat { display: none; }
  .content > .ad-band-top .ad-sub {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .content > .ad-band-top .ad-leader .ad-title { font-size: 14.5px; line-height: 1.45; }
  .content > .ad-band-top .ad-flag { font-size: 9.5px; padding: 1px 5px; }
}

/* A 位窄屏再收一档：副说明在手机上属次要信息，去掉后高度回到 ~110 */
@media (max-width: 620px) {
  .content > .ad-band-top .ad-sub { display: none; }
  .content > .ad-band-top .ad-leader .ad-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .content > .ad-band-top .ad-copy { gap: 4px; }
}

/* 报价卡：「待开放」标签跟在名称右侧，不换行 */
.ad-card .ad-card-main h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-card .ad-card-main h4 .ad-soon { margin-left: 0; }

/* ---------- 顶栏导航：禁止竖向滚动条（点击板块时不应冒出可拖动的滚动条） ---------- */
/* 原因：.main-tabs 在窄窗口 overflow-x:auto 时，y 轴会被提升为 auto；
   active 下划线 bottom:-1px 让 scrollHeight 比 clientHeight 多 1px，于是右端出现竖向拖块。 */
.main-tabs {
  overflow-y: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-tabs::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.main-tabs .tab.active::after { bottom: 0; }

/* =====================================================================
   M3 · 移动端紧凑版（仅 ≤760px 生效，桌面端零影响）
   目标：首屏可见工具卡片；顶栏 88px；分类常驻可切换
   ===================================================================== */
.m-filter { display: none; }

@media (max-width: 760px) {
  /* ---------- 1. 顶栏：48 + 40 = 88 ---------- */
  .topbar {
    height: 88px; padding: 0 10px; gap: 4px;
    flex-wrap: wrap; align-content: flex-start;
  }
  .topbar .mobile-nav, .topbar .brand, .topbar .top-links, .topbar .mobile-actions { height: 48px; }
  .brand { gap: 8px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand-text strong { font-size: 15.5px; letter-spacing: -0.02em; }
  .brand-text small { display: none; }
  .top-links { gap: 2px; margin-left: auto; }
  .top-links button, .top-links .lang-switch { display: none; }
  .top-links button[data-sheet="fav"] { display: inline-flex; font-size: 11.5px; padding: 0 6px; }
  .mobile-actions { width: 28px; height: 28px; font-size: 14px; }

  .main-tabs {
    flex: 0 0 100%; order: 9; height: 40px; margin: 0 -10px; padding: 0 10px;
    gap: 0; overflow-x: auto; overflow-y: hidden;
  }
  .main-tabs .tab { height: 40px; padding: 0 10px; font-size: 12.5px; }
  .main-tabs .tab::after { left: 10px; right: 10px; bottom: 0; height: 2px; }

  /* ---------- 2. Hero：约 210px ---------- */
  .hero, .hero-home { min-height: 0; }
  .hero-inner { display: block; min-height: 0; padding: 12px 12px 0; }
  .hero-word, .hero-visual { display: none; }
  .hero-tag, .hero-sub, .hero-hints { display: none; }
  .hero h1 { margin: 0 0 9px; font-size: 22px; line-height: 1.24; letter-spacing: -0.025em; }
  .hero-search {
    height: 42px; padding: 0 5px 0 12px; gap: 8px; border-radius: 11px;
    background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line-2);
  }
  .hero-search input { height: 40px; font-size: 12.5px; }
  .hero-search .hs-icon { width: 16px; height: 16px; }
  .hero-search .hs-go { height: 32px; padding: 0 13px; font-size: 12px; border-radius: 8px; }

  .hero-stats {
    margin: 10px 0 0; padding: 0; border-top: 0; background: none;
    display: flex; flex-wrap: nowrap; gap: 6px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  }
  .hero-stats::-webkit-scrollbar { display: none; }
  .hero-stats div {
    flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 5px;
    padding: 5px 9px 6px; margin: 0; border: 1px solid var(--line);
    border-right: 1px solid var(--line); border-radius: 8px;
    background: rgba(255, 255, 255, 0.025); white-space: nowrap;
  }
  .hero-stats strong { font-size: 14px; line-height: 1; }
  .hero-stats span { font-size: 10px; }

  /* ---------- 3. 主体容器 ---------- */
  .shell { display: block; padding: 10px 12px 44px; }

  /* ---------- 4. 移动端分类条（常驻、可横滑） ---------- */
  .m-filter {
    display: block; position: sticky; top: 88px; z-index: 45;
    margin: 0 -12px 8px; padding: 6px 12px 7px;
    background: rgba(9, 11, 15, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mf-row {
    display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .mf-row::-webkit-scrollbar { display: none; }
  .mf-row + .mf-row { margin-top: 5px; }
  .mf-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
    color: var(--text-2); font-size: 11.5px; line-height: 1.2; white-space: nowrap;
  }
  .mf-chip b { font-size: 9px; font-weight: 500; opacity: 0.55; }
  .mf-chip.active {
    border-color: rgba(157, 190, 221, 0.55); color: var(--brass);
    background: rgba(157, 190, 221, 0.11); font-weight: 600;
  }
  .mf-chip.active b { opacity: 0.8; }

  /* ---------- 5. 广告位：等比压成横向小条 ---------- */
  .ad-band { margin: 0 0 8px; }
  .ad-slot { padding: 9px 11px 10px; padding-top: 19px; border-radius: 10px; }
  .ad-flag { top: 5px; right: 7px; font-size: 8.5px; padding: 1px 5px; border-radius: 4px; }
  .ad-link { gap: 8px; align-items: center; }
  .ad-copy { gap: 1px; }
  .ad-kicker { font-size: 9px; letter-spacing: 0.08em; }
  .ad-title { font-size: 12.5px; line-height: 1.45; }
  .ad-sub, .ad-stat { display: none; }
  .ad-side { flex-direction: row; align-items: center; gap: 5px; flex-shrink: 0; }
  .ad-cta { width: auto; padding: 4px 9px; font-size: 10px; white-space: nowrap; border-radius: 6px; }
  .ad-count { font-size: 10px; margin-left: 4px; }

  /* ---------- 6. 板块标题 ---------- */
  .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 6px; }
  .section-head > div:first-child { min-width: 0; }
  .section-head .eyebrow { display: none; }
  .section-head h2 { font-size: 17px; margin: 0; padding-left: 9px; line-height: 1.3; }
  .section-head h2::before { top: 3px; bottom: 3px; width: 2.5px; }
  .section-head p { display: none; }
  .result-count { margin: 0; padding: 0; font-size: 10.5px; flex-shrink: 0; opacity: 0.75; }
  .catalog-note { font-size: 10.5px; padding: 4px 0; margin: 0; }
  .cross-hint { margin: 0 0 6px; padding: 6px 8px; font-size: 10.5px; border-radius: 8px; }

  /* ---------- 7. 工具条 ---------- */
  .toolbar {
    padding: 5px 8px; border-radius: 9px; gap: 6px;
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none;
  }
  .toolbar::-webkit-scrollbar { display: none; }
  .crumb { font-size: 10.5px; gap: 3px; white-space: nowrap; }
  .crumb-hint, .crumb-sub { display: none; }
  .toggles { gap: 8px; flex-shrink: 0; }
  .switch em { font-size: 10.5px; }
  .switch { transform: scale(0.86); transform-origin: left center; }
  .toolbar select { height: 24px; font-size: 10.5px; padding: 0 18px 0 6px; border-radius: 6px; }
  .sub-tabs { display: flex; flex-wrap: nowrap; gap: 5px; margin: 6px 0; overflow-x: auto; scrollbar-width: none; }
  .sub-tabs::-webkit-scrollbar { display: none; }
  .sub-tab { flex: 0 0 auto; font-size: 10.5px; padding: 3px 8px; }

  /* ---------- 8. 卡片：两列密集 ---------- */
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .repo-grid, .flow-grid, .tut-grid, .viral-grid { grid-template-columns: 1fr; gap: 8px; }

  .tool-card { padding: 9px; border-radius: 10px; }
  .card-top { gap: 7px; align-items: center; }
  .logo-tile { width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
  .card-name { font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-tagline {
    font-size: 10px; line-height: 1.35; margin-top: 1px; color: var(--text-3);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-desc, .why-line { display: none; }
  .card-tags { gap: 3px; margin-top: 6px; flex-wrap: nowrap; overflow: hidden; }
  .card-tags .tag { font-size: 9px; padding: 1px 4px; border-radius: 4px; flex: 0 0 auto; }
  .card-tags .tag:nth-child(n+3) { display: none; }
  .card-bottom { margin-top: 6px; padding-top: 6px; gap: 4px; }
  .price { font-size: 9.5px; }
  .card-tools { gap: 3px; }
  .card-site, .fav-btn, .card-cmp { width: 19px; height: 19px; font-size: 10px; border-radius: 5px; }
  .badge-new { font-size: 8px; padding: 0 3px; }

  .repo-card, .flow-card, .tut-card { padding: 10px; border-radius: 10px; }
  .repo-name, .flow-name { font-size: 13px; }
  .repo-meta { font-size: 10px; gap: 8px; margin: 4px 0 5px; }
  .repo-desc { font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .repo-link { font-size: 10px; margin-top: 6px; }

  .pager { gap: 4px; margin: 14px 0 0; }
  .pager button, .pager a { min-width: 26px; height: 26px; font-size: 11px; padding: 0 6px; }
  .pager-info { font-size: 10px; }

  /* ---------- 9. 详情页：压到 1–2 屏 ---------- */
  .detail-cover { height: 152px; }
  .detail-cover-copy { left: 12px; right: 12px; bottom: 10px; gap: 9px; }
  .cover-mark { width: 36px; height: 36px; border-radius: 9px; }
  .detail-kicker { font-size: 8.5px; letter-spacing: 0.14em; }
  .detail-cover h2 { font-size: 19px; line-height: 1.24; margin: 1px 0 1px; }
  #detail-tagline {
    font-size: 11px; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .cover-facts { gap: 4px; margin-top: 5px; flex-wrap: nowrap; overflow: hidden; }
  .cover-fact { font-size: 9px; padding: 2px 6px; border-radius: 5px; }
  .detail-close { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 16px; }

  .detail-body { padding: 10px 12px 40px; }
  .detail-figure { margin: 0 0 12px; }
  .fg { margin: 0; background: #0a121c; border-radius: 12px; }
  .fg-svg { border-radius: 12px; }
  .fg figcaption { font-size: 9.5px; margin-top: 4px; opacity: 0.7; }
  .detail-layout { gap: 14px; }
  .detail-main > *:first-child { margin-top: 0; }
  .detail-lede { font-size: 12px; line-height: 1.65; margin: 0 0 8px; }
  .detail-badges { gap: 4px; margin: 6px 0; }
  .detail-badges .tag { font-size: 9.5px; padding: 2px 6px; }
  .detail-actions { gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
  .detail-actions .btn, .detail-actions a, .detail-actions button { font-size: 11.5px; padding: 7px 10px; border-radius: 7px; }
  #detail h3, #detail .detail-main h3 { font-size: 14px; margin: 14px 0 6px; }
  #detail h4 { font-size: 12.5px; margin: 10px 0 4px; }
  #detail p, #detail li { font-size: 12px; line-height: 1.72; }
  #detail .step-list li { margin: 0 0 6px; }
  .aside-card { padding: 10px; border-radius: 10px; }
  .shot-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .related-card { padding: 8px; border-radius: 8px; }
  .related-copy { font-size: 10px; }
  .detail-aside { position: static; }

  /* ---------- 10. 页脚 ---------- */
  .footer-inner { padding: 22px 12px 18px; }
  .footer-cols { gap: 16px; }
  .footer-col h4 { font-size: 11.5px; margin-bottom: 6px; }
  .footer-col a { font-size: 11px; padding: 2px 0; }
}

/* ---------- M3.1 修正：覆盖后置的高优先级规则 ---------- */
@media (max-width: 760px) {
  .topbar .top-links button[data-go="cooperation"] { display: none !important; }
  .topbar .top-links { gap: 0; }

  .hero, .hero-home { display: block; align-items: stretch; }
  .hero-inner, .hero h1 { text-align: left; }
  .hero-inner { width: 100%; max-width: none; margin: 0; padding: 12px 12px 0; }
  .hero h1 { font-size: 23px; margin: 0 0 10px; }
  .hero-search { width: 100%; max-width: none; margin: 0; }
  .hero-search input::placeholder { font-size: 11.5px; }

  .tool-card .hot-badge { display: none; }

  /* A 位通栏：去掉固定 min-height 与内边距 */
  .ad-leader .ad-link, .ad-band-top .ad-link { min-height: 0 !important; padding: 0 !important; gap: 10px; }
  .ad-band-top .ad-slot { padding: 8px 11px 9px; padding-top: 18px; }
  .ad-band-top .ad-title { -webkit-line-clamp: 2; }

  /* G 位类目条：横向一行 */
  .ad-slot.ad-cat-strip { padding: 10px 11px; }
  .ad-cat-strip .ad-link { flex-direction: row; align-items: center; gap: 8px; padding: 0 !important; min-height: 0 !important; flex-wrap: nowrap; justify-content: space-between; }
  .ad-cat-strip .ad-kicker { display: none; }
  .ad-cat-strip .ad-title { font-size: 12.5px; line-height: 1.4; }
  .ad-cat-strip .ad-side { flex-direction: row; flex: 0 0 auto; width: auto; padding: 0; margin: 0; }

  .toolbar .crumb { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
  .toolbar select { max-width: 92px; }
  .toolbar .switch { transform: scale(0.8); }
}

/* M4 · 移动端不渲染「功能结构图」：竖排一整屏，信息密度低于首屏价值 */
@media (max-width: 760px) {
  #detail-figure { display: none !important; }
}

/* M5 · 移动端不展示任何信息流广告位（PC 不受影响） */
@media (max-width: 760px) {
  .ad-slot { display: none !important; }
}
