/*
 * AI 导航主题样式。
 * 字体 Inter 与 Plus Jakarta Sans 随主题一起提供（SIL OFL 1.1），不依赖外部字体服务。
 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/plus-jakarta-sans.woff2) format('woff2'); }

/* ── Tokens ── */
:root {
  --bg:        #fafbff;
  --bg-2:      #f1f3fb;
  --surface:   #ffffff;
  --surface-2: #f7f8fe;
  --border:    #e4e6f0;
  --text:      #0f0e1a;
  --text-2:    #4a4a6a;
  --text-3:    #8888aa;
  --accent:    #7c5cfc;
  --accent-2:  #9b7ffe;
  --accent-bg: #ede9ff;
  --hot:       #f97316;
  --hot-bg:    #fff4ec;
  --new:       #10b981;
  --new-bg:    #e9faf4;
  --sidebar-w: 220px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0f0e17;
    --bg-2:      #161529;
    --surface:   #1c1b2e;
    --surface-2: #24233a;
    --border:    #2e2c4a;
    --text:      #edeeff;
    --text-2:    #a8a8cc;
    --text-3:    #6060a0;
    --accent:    #8b6dff;
    --accent-2:  #a48dff;
    --accent-bg: #2a2045;
    --hot-bg:    #2d1a00;
    --new-bg:    #0a2920;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #0f0e17;
  --bg-2:      #161529;
  --surface:   #1c1b2e;
  --surface-2: #24233a;
  --border:    #2e2c4a;
  --text:      #edeeff;
  --text-2:    #a8a8cc;
  --text-3:    #6060a0;
  --accent:    #8b6dff;
  --accent-2:  #a48dff;
  --accent-bg: #2a2045;
  --hot-bg:    #2d1a00;
  --new-bg:    #0a2920;
  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-logo {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.2;
}
.logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); }

.nav-section { padding: 10px 12px 4px; flex-shrink: 0; }
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 8px;
  margin-bottom: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); }
.nav-item .icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--bg-2);
  color: var(--text-3);
  padding: 1px 6px;
  border-radius: 20px;
  flex-shrink: 0;
}
.nav-item.active .nav-count { background: var(--accent-bg); color: var(--accent); }

/* ── Header ── */
.topbar {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: var(--sidebar-w);
  right: 0;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  z-index: 90;
}

.search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-input {
  width: 100%;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 13px;
  padding: 0 12px 0 36px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-3); }
.search-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  font-size: 15px;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.topbar-btn:hover { border-color: var(--accent); color: var(--accent); }
.topbar-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.topbar-btn.primary:hover { opacity: .9; }
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── Main ── */
.main {
  margin-left: var(--sidebar-w);
  padding-top: 56px;
  min-height: 100vh;
}
.content {
  padding: 28px 28px 60px;
  max-width: 1200px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--accent-bg) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
  border-radius: 50%;
  opacity: .6;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 8px;
}
.hero p {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 20px;
}
.hero-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.hero-search input {
  flex: 1;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  padding: 0 16px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.hero-search input:focus { border-color: var(--accent); }
.hero-search input::placeholder { color: var(--text-3); }
.hero-search button {
  height: 42px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  font-family: inherit;
}
.hero-search button:hover { opacity: .88; }
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; align-items: center; gap: 6px; }
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12px; color: var(--text-3); }

/* ── Section ── */
.section { margin-bottom: 36px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.section-head .tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.tag-hot { background: var(--hot-bg); color: var(--hot); }
.tag-new { background: var(--new-bg); color: var(--new); }
.section-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }

/* ── Hot strip ── */
.hot-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hot-strip::-webkit-scrollbar { display: none; }
.hot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  width: 190px;
}
.hot-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(124,92,252,.12); }
.hot-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hot-card-text { overflow: hidden; }
.hot-card-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-card-desc {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Tool grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.tool-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tool-card:hover { border-color: var(--accent); box-shadow: 0 2px 16px rgba(124,92,252,.1); }
.tool-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tool-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tool-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.tool-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 2px;
  display: inline-block;
}
.tool-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tool-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--text-3);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .topbar { left: 0; }
  .main { margin-left: 0; }
  .content { padding: 20px 16px 80px; }
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 22px; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0px);
    left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 0 4px;
    z-index: 100;
  }
}
.bottom-nav { display: none; }
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  font-size: 10px;
  color: var(--text-3);
  cursor: pointer;
  text-decoration: none;
}
.bottom-nav-item span:first-child { font-size: 20px; }
.bottom-nav-item.active { color: var(--accent); }

/* ── Category tabs ── */
.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 14px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Scroll to section smooth ── */
html { scroll-behavior: smooth; }

/* ── Two-col panel layout ── */
.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
@media (max-width: 900px) {
  .panel-row { grid-template-columns: 1fr; }
}
.panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.panel-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.panel-more:hover { text-decoration: underline; }

/* ── News list ── */
.news-list { padding: 4px 0; }
.news-item {
  display: flex;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
  cursor: pointer;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg-2); }
.news-num {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  padding-top: 1px;
  flex-shrink: 0;
}
.news-num.n1 { color: #f97316; }
.news-num.n2 { color: #6b7280; }
.news-num.n3 { color: #b45309; }
.news-num.rest { color: var(--text-3); }
.news-body { flex: 1; overflow: hidden; }
.news-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.news-source {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 500;
}
.news-date {
  font-size: 11px;
  color: var(--text-3);
}
.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.news-tab {
  flex: 1;
  height: 36px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.news-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.news-tab:hover:not(.active) { color: var(--text-2); }

/* ── Leaderboard ── */
.leaderboard { padding: 0; }
.lb-filter {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.lb-filter::-webkit-scrollbar { display: none; }
.lb-chip {
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
}
.lb-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-chip:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
  text-decoration: none;
  color: inherit;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--bg-2); }
.lb-rank {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.lb-medal { font-size: 16px; }
.lb-model {
  flex: 1;
  min-width: 0;
}
.lb-model-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-model-maker {
  font-size: 11px;
  color: var(--text-3);
}
.lb-scores {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.lb-score-main {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 38px;
  text-align: right;
}
.lb-score-bar {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.lb-score-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.lb-trend {
  font-size: 11px;
  font-weight: 600;
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.trend-up { color: var(--new); }
.trend-dn { color: #ef4444; }
.trend-eq { color: var(--text-3); }
.lb-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}
.lb-tag-open { background: var(--new-bg); color: var(--new); }
.lb-tag-pro  { background: var(--accent-bg); color: var(--accent); }
.lb-tag-new  { background: var(--hot-bg); color: var(--hot); }

/* ── Standalone Leaderboard ── */
.lb-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
}
.lb-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.lb-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.lb-update-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--new-bg);
  color: var(--new);
  font-weight: 600;
}
.lb-source-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
}
.lb-source-link:hover { color: var(--accent); }
.lb-filter-bar {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.lb-filter-bar::-webkit-scrollbar { display: none; }
.lb-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .04em;
  white-space: nowrap;
  margin-right: 2px;
}
.lb-chip-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
}
.lb-chip-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-chip-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* Podium */
.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
@media (max-width: 600px) {
  .lb-podium { grid-template-columns: 1fr; }
  .podium-slot { min-height: 0 !important; }
}
.podium-slot {
  display: flex;
  flex-direction: column;
}
.podium-slot.gold   { min-height: 220px; }
.podium-slot.silver { min-height: 180px; }
.podium-slot.bronze { min-height: 148px; }
.podium-card {
  flex: 1;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  border: 2px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow .15s, transform .15s;
}
.podium-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.podium-card.gold   { border-color: #f59e0b; border-width: 3px; background: linear-gradient(170deg, rgba(245,158,11,.07) 0%, var(--surface) 60%); }
.podium-card.silver { border-color: #94a3b8; }
.podium-card.bronze { border-color: #cd7c30; }
/* rank badge */
.podium-rank {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  margin: 0 auto 12px;
  position: relative;
}
.podium-card.gold   .podium-rank { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 3px 10px rgba(245,158,11,.4); }
.podium-card.silver .podium-rank { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 3px 8px rgba(100,116,139,.3); }
.podium-card.bronze .podium-rank { background: linear-gradient(135deg, #cd7c30, #9a5c1a); box-shadow: 0 3px 8px rgba(180,83,9,.3); }
.podium-name { font-weight: 700; font-size: 14px; color: var(--text-1); line-height: 1.3; }
.podium-maker { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.podium-score {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.podium-card.gold   .podium-score { color: #f59e0b; }
.podium-card.silver .podium-score { color: #64748b; }
.podium-card.bronze .podium-score { color: #cd7c30; }
.podium-cat { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.podium-tag { margin-top: 10px; display: inline-block; }

/* Table */
.lb-table-wrap { overflow-x: auto; }
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lb-table th {
  background: var(--bg-2);
  color: var(--text-3);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.lb-table th:hover { color: var(--text); }
.lb-table th.col-active { color: var(--accent); }
.lb-table th.col-active::after { content: ' ↓'; font-size: 10px; }
.lb-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr { transition: background .12s; cursor: pointer; }
.lb-table tbody tr:hover { background: var(--bg-2); }
.lb-table td.col-active-cell { background: rgba(124,92,252,.05); }
.lb-rank-num { font-weight: 700; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.lb-model-cell strong { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.lb-model-cell span { font-size: 11px; color: var(--text-3); }
.lb-score-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-2);
  text-align: right;
  min-width: 46px;
}
.lb-score-num.col-active-cell {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.lb-bar-mini { width: 70px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.lb-bar-mini-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.lb-trend-num { font-size: 11px; font-weight: 600; text-align: right; min-width: 32px; }
.lb-footer { padding: 10px 20px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }

/* ── Announcement bar ── */
.announce {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 20px;
  position: relative;
  flex-shrink: 0;
}
.announce a { color: rgba(255,255,255,.85); text-decoration: underline; }

/* ── Empty state for tools ── */
.tool-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ── Open API Section ── */
.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.api-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.api-card:hover { border-color: var(--accent); box-shadow: 0 2px 16px rgba(124,92,252,.1); }
.api-card-head { display: flex; align-items: center; gap: 10px; }
.api-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.api-info { flex: 1; min-width: 0; }
.api-name { font-weight: 700; font-size: 14px; color: var(--text); }
.api-tagline { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.api-models-row { display: flex; flex-wrap: wrap; gap: 4px; }
.api-model-chip {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.api-pricing-box {
  background: var(--bg-2);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.api-price-item { display: flex; flex-direction: column; gap: 1px; }
.api-price-label { font-size: 10px; color: var(--text-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.api-price-val { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.api-price-val.cheap { color: var(--new); }
.api-feats { display: flex; flex-wrap: wrap; gap: 5px; }
.api-feat {
  font-size: 11px; padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-2); color: var(--text-3);
}
.api-feat.f-free { background: var(--new-bg); color: var(--new); font-weight: 600; }
.api-feat.f-cn   { background: var(--accent-bg); color: var(--accent); }
.api-feat.f-fast { background: var(--hot-bg); color: var(--hot); }
.api-card-footer {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.api-card-footer:hover { text-decoration: underline; }

/* ── Workflow Section ── */
.wf-section { }
.wf-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.wf-head h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; }
.wf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.wf-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.wf-card:hover { border-color: var(--accent); box-shadow: 0 2px 16px rgba(124,92,252,.1); }
.wf-card-head { display: flex; align-items: center; gap: 10px; }
.wf-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.wf-info { flex: 1; min-width: 0; }
.wf-name { font-weight: 700; font-size: 14px; color: var(--text); }
.wf-sub  { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.wf-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.wf-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.wf-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: var(--bg-2); color: var(--text-3); border: 1px solid var(--border);
}
.wf-tag.t-open   { background: var(--new-bg);    color: var(--new);    border-color: var(--new);    font-weight: 600; }
.wf-tag.t-cn     { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.wf-tag.t-free   { background: var(--hot-bg);    color: var(--hot);    border-color: var(--hot);    font-weight: 600; }
.wf-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 6px;
  border-top: 1px solid var(--border);
}
.wf-stars { font-size: 11px; color: var(--text-3); }
.wf-stars span { color: #f59e0b; margin-right: 3px; }
.wf-link {
  font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 500;
}
.wf-link:hover { text-decoration: underline; }

/* ── Cloud Hosting Section ── */
.cloud-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
}
.cloud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cloud-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.cloud-filter-bar {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.cloud-filter-bar::-webkit-scrollbar { display: none; }
.cloud-chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
}
.cloud-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cloud-chip:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.cloud-table-wrap { overflow-x: auto; }
.cloud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cloud-table th {
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.cloud-table th.num { text-align: right; }
.cloud-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}
.cloud-table tr:last-child td { border-bottom: none; }
.cloud-table tbody tr { transition: background .12s; }
.cloud-table tbody tr:hover { background: var(--bg-2); }
.cloud-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.gpu-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}
.gpu-h100 { background: #fff0f0; color: #c41818; }
.gpu-a100 { background: #fff4ec; color: #c45218; }
.gpu-h800 { background: #f0f4ff; color: #1838c4; }
.gpu-4090 { background: #f0fff4; color: #16a34a; }
.gpu-a10  { background: #fdf4ff; color: #9013c4; }
.gpu-3090 { background: var(--bg-2); color: var(--text-2); }
.provider-logo { font-size: 15px; margin-right: 4px; }
.cloud-price-main {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cloud-price-unit { font-size: 11px; color: var(--text-3); }
.cloud-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}
.cloud-tag-cn  { background: var(--accent-bg); color: var(--accent); }
.cloud-tag-int { background: var(--bg-2); color: var(--text-3); }
.cloud-tag-spot { background: var(--new-bg); color: var(--new); }
.cloud-suitable { font-size: 12px; color: var(--text-2); max-width: 180px; white-space: normal; line-height: 1.4; }
.cloud-footer { padding: 10px 20px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--border); }
.cloud-head-left { display: flex; flex-direction: column; gap: 2px; }
.cloud-head-left h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-1); }
.cloud-subtitle { font-size: 13px; color: var(--text-3); }
.cloud-updated { font-size: 11px; color: var(--text-3); align-self: flex-start; margin-top: 4px; padding: 3px 8px; background: var(--bg-2); border-radius: 20px; }
.cloud-filter-label { font-size: 12px; color: var(--text-3); white-space: nowrap; align-self: center; margin-right: 4px; }

/* ── Prompt Gallery ── */
.prompt-section { margin-bottom: 36px; }
.prompt-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.prompt-section-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-1); }
.prompt-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.prompt-cat-btn { height: 28px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--border); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; white-space: nowrap; }
.prompt-cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.prompt-cat-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.prompt-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 10px; }
.prompt-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.prompt-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.prompt-title { font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 1.4; }
.prompt-cat-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.pct-write  { background: #e8f5e9; color: #2e7d32; }
.pct-code   { background: #e3f2fd; color: #1565c0; }
.pct-image  { background: #fce4ec; color: #c2185b; }
.pct-biz    { background: #fff8e1; color: #f57f17; }
.pct-learn  { background: #f3e5f5; color: #6a1b9a; }
.pct-life   { background: #e0f7fa; color: #00695c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pct-write { background: #1b3520; color: #81c784; }
  :root:not([data-theme="light"]) .pct-code  { background: #0d253f; color: #64b5f6; }
  :root:not([data-theme="light"]) .pct-image { background: #3e1520; color: #f48fb1; }
  :root:not([data-theme="light"]) .pct-biz   { background: #3e2c00; color: #ffcc80; }
  :root:not([data-theme="light"]) .pct-learn { background: #2a1040; color: #ce93d8; }
  :root:not([data-theme="light"]) .pct-life  { background: #00312b; color: #80cbc4; }
}
:root[data-theme="dark"] .pct-write { background: #1b3520; color: #81c784; }
:root[data-theme="dark"] .pct-code  { background: #0d253f; color: #64b5f6; }
:root[data-theme="dark"] .pct-image { background: #3e1520; color: #f48fb1; }
:root[data-theme="dark"] .pct-biz   { background: #3e2c00; color: #ffcc80; }
:root[data-theme="dark"] .pct-learn { background: #2a1040; color: #ce93d8; }
:root[data-theme="dark"] .pct-life  { background: #00312b; color: #80cbc4; }
.prompt-body { font-size: 12px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; background: var(--bg-2); border-radius: 8px; padding: 10px 12px; font-family: 'Courier New', monospace; }
.prompt-footer { display: flex; align-items: center; justify-content: space-between; }
.prompt-model { font-size: 11px; color: var(--text-3); }
.prompt-copy-btn { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); background: transparent; border-radius: 6px; padding: 3px 9px; cursor: pointer; font-family: inherit; transition: all .15s; }
.prompt-copy-btn:hover { background: var(--accent); color: #fff; }

/* ── Model Comparator ── */
.compare-section { margin-bottom: 36px; }
.compare-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.compare-section-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-1); }
.compare-selector { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.compare-select-wrap { flex: 1; min-width: 180px; max-width: 260px; }
.compare-select-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.compare-select { width: 100%; height: 38px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-1); font-size: 13px; font-family: inherit; cursor: pointer; }
.compare-select:focus { outline: none; border-color: var(--accent); }
.compare-vs { display: flex; align-items: flex-end; padding-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.compare-table-wrap { overflow-x: auto; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th { background: var(--bg-2); color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th.model-col { text-align: center; }
.compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-1); vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.dim-label { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.compare-table td.model-col { text-align: center; }
.compare-bar-wrap { display: flex; align-items: center; gap: 8px; justify-content: center; }
.compare-bar { height: 8px; border-radius: 4px; background: var(--accent); min-width: 4px; transition: width .4s ease; }
.compare-bar.bar-b { background: #f59e0b; }
.compare-score { font-size: 13px; font-weight: 700; color: var(--text-1); min-width: 34px; font-variant-numeric: tabular-nums; }
.compare-winner { font-size: 10px; padding: 2px 6px; border-radius: 8px; background: var(--accent-bg); color: var(--accent); font-weight: 600; margin-left: 4px; }
.compare-dim-icon { margin-right: 5px; }

/* ── China Access Guide ── */
.access-section { margin-bottom: 36px; }
.access-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.access-section-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-1); }
.access-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.access-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.access-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.access-card-top { display: flex; align-items: center; gap: 12px; }
.access-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.access-card-info { flex: 1; min-width: 0; }
.access-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.access-maker { font-size: 12px; color: var(--text-3); }
.access-status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.st-direct { background: #e8f5e9; color: #2e7d32; }
.st-partial { background: #fff8e1; color: #e65100; }
.st-blocked { background: #fce4ec; color: #b71c1c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-direct  { background: #1b3520; color: #81c784; }
  :root:not([data-theme="light"]) .st-partial { background: #3e2c00; color: #ffcc80; }
  :root:not([data-theme="light"]) .st-blocked { background: #3e1520; color: #ef9a9a; }
}
:root[data-theme="dark"] .st-direct  { background: #1b3520; color: #81c784; }
:root[data-theme="dark"] .st-partial { background: #3e2c00; color: #ffcc80; }
:root[data-theme="dark"] .st-blocked { background: #3e1520; color: #ef9a9a; }
.access-detail { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.access-tips { display: flex; flex-wrap: wrap; gap: 5px; }
.access-tip { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); color: var(--text-2); }
.access-tip.tip-reg { color: var(--accent); background: var(--accent-bg); }

/* ══ 内页扩展样式（沿用首页 token 与组件） ══ */
:root { --text-1: var(--text); --ok: #16a34a; --warn: #d97706; --bad: #dc2626; }
.nav-item { user-select: none; }

/* 面包屑 + 页头 */
.crumb { font-size: 12px; color: var(--text-3); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--text-3); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.page-head p { color: var(--text-2); font-size: 13px; margin-top: 4px; max-width: 62ch; }
.page-head-meta { margin-left: auto; font-size: 11px; color: var(--text-3); padding: 3px 10px; background: var(--bg-2); border-radius: 20px; white-space: nowrap; }

/* 通用：筛选行、按钮、卡片 */
.filter-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-label { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; white-space: nowrap; min-width: 44px; }
.chip { height: 28px; padding: 0 12px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s; font-family: inherit; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.btn { height: 36px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { opacity: .9; color: #fff; }
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; }
.card-pad { padding: 16px 18px; }
.card-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.aside-stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--text-3); font-size: 12px; }
.empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.field { height: 36px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; padding: 0 12px; outline: none; font-family: inherit; }
.field:focus { border-color: var(--accent); }
.demo-note { margin-top: 14px; padding: 10px 14px; background: var(--bg-2); border-radius: 10px; font-size: 12px; color: var(--text-2); line-height: 1.7; }

/* ── AI 工具列表 ── */
.tl-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; flex-wrap: wrap; }
.tl-count { font-size: 12px; color: var(--text-3); }
.tl-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.tl-sort { margin-left: auto; display: flex; gap: 6px; }
.tool-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-3); }
.tool-foot .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }
.tool-foot .price { margin-left: auto; font-weight: 600; color: var(--text-2); }

/* ── 工具详情 ── */
.td-hero { display: flex; gap: 18px; align-items: flex-start; padding: 22px; margin-bottom: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--accent-bg) 0%, var(--surface) 55%); }
.td-icon { width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 36px; flex-shrink: 0; }
.td-main { flex: 1; min-width: 220px; }
.td-main h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-main p { color: var(--text-2); margin: 6px 0 10px; max-width: 60ch; }
.td-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.td-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--border); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.td-fact { background: var(--surface); padding: 12px 14px; }
.td-fact span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); text-transform: uppercase; }
.td-fact b { font-size: 13px; font-weight: 700; }
.td-section { margin-bottom: 16px; }
.td-section p { color: var(--text-2); line-height: 1.8; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.feat { background: var(--bg-2); border-radius: 9px; padding: 11px 13px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.feat b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan { border: 1.5px solid var(--border); border-radius: 10px; padding: 13px; }
.plan.rec { border-color: var(--accent); background: var(--accent-bg); }
.plan-name { font-size: 12px; font-weight: 600; color: var(--text-3); }
.plan-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.plan-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.faq p { margin-top: 6px; font-size: 12px; }
.side-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.side-row:last-child { border-bottom: none; }
.side-row:hover .side-name { color: var(--accent); }
.side-ico { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.side-name { font-size: 13px; font-weight: 600; }
.side-sub { font-size: 11px; color: var(--text-3); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--text-3); } .kv b { font-weight: 600; text-align: right; }

/* ── 资讯列表 ── */
.nw-lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 800px) { .nw-lead { grid-template-columns: minmax(0, 1fr); } }
.nw-top { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.nw-top:hover, .feed-item:hover { border-color: var(--accent); box-shadow: 0 2px 16px rgba(124,92,252,.1); }
.nw-cover { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 54px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nw-top-body { padding: 16px 18px; }
.nw-top-body h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800; line-height: 1.35; text-wrap: balance; margin-bottom: 6px; }
.nw-top-body p { font-size: 13px; color: var(--text-2); }
.nw-side { display: flex; flex-direction: column; gap: 14px; }
.nw-mini { padding: 14px 16px; text-decoration: none; color: inherit; flex: 1; display: flex; flex-direction: column; justify-content: center; transition: border-color .15s; }
.nw-mini:hover { border-color: var(--accent); }
.nw-mini h3 { font-size: 14px; font-weight: 600; line-height: 1.45; margin: 6px 0; }
.feed-day { font-size: 12px; font-weight: 700; color: var(--text-3); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.feed-day::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.feed-item { display: flex; gap: 14px; padding: 14px; margin-bottom: 10px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.feed-thumb { width: 108px; height: 76px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
.feed-body { flex: 1; min-width: 0; }
.feed-body h3 { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 4px; }
.feed-body p { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-meta { display: flex; gap: 8px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.feed-cat { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--bg-2); color: var(--text-3); }
@media (max-width: 560px) { .feed-thumb { width: 64px; height: 64px; font-size: 24px; } }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.topic { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: var(--bg-2); color: var(--text-2); cursor: pointer; border: none; font-family: inherit; }
.topic:hover { background: var(--accent-bg); color: var(--accent); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pager button { min-width: 34px; height: 34px; }

/* ── 资讯详情 ── */
.article { padding: 28px 32px; }
@media (max-width: 600px) { .article { padding: 20px 16px; } }
.art-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.35; text-wrap: balance; }
.art-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.art-summary { background: var(--accent-bg); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 14px 16px; margin-bottom: 20px; }
.art-summary b { color: var(--accent); font-size: 12px; letter-spacing: .04em; }
.art-summary ul { margin: 6px 0 0 18px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.art-body { font-size: 15px; line-height: 1.9; color: var(--text-2); max-width: 68ch; }
.art-body h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--text); margin: 28px 0 10px; scroll-margin-top: 72px; }
.art-body p { margin-bottom: 14px; }
.art-body ul { margin: 0 0 14px 20px; }
.art-body strong { color: var(--text); }
.art-tablewrap { overflow-x: auto; margin: 0 0 16px; border: 1.5px solid var(--border); border-radius: 10px; }
.art-tablewrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.art-tablewrap th { background: var(--bg-2); color: var(--text-3); font-size: 11px; font-weight: 600; padding: 9px 12px; text-align: left; white-space: nowrap; }
.art-tablewrap td { padding: 10px 12px; border-top: 1px solid var(--border); white-space: nowrap; }
.art-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.art-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.art-nav a { padding: 12px 14px; text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; line-height: 1.45; }
.art-nav a:hover { border-color: var(--accent); }
.art-nav a span { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); margin-bottom: 2px; }
.art-nav a:last-child { text-align: right; }
.toc { position: sticky; top: calc(56px + 16px + env(safe-area-inset-top, 0px)); }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--border); font-size: 12px; color: var(--text-2); text-decoration: none; }
.toc a:hover { border-left-color: var(--accent); color: var(--accent); }

/* ── 排行榜页 ── */
.rk-compare { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 20px; }
@media (max-width: 860px) { .rk-compare { grid-template-columns: minmax(0, 1fr); } }
.radar { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.radar text { font-size: 11px; fill: var(--text-2); font-family: inherit; }
.rk-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; margin-top: 6px; flex-wrap: wrap; }
.rk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.rk-row-sel { background: var(--accent-bg) !important; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.method { background: var(--bg-2); border-radius: 9px; padding: 11px 13px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.method b { display: block; color: var(--text); font-size: 13px; }
.method em { font-style: normal; float: right; font-weight: 700; color: var(--accent); }

/* ── 开放 API 页 ── */
.calc { padding: 18px 20px; margin-bottom: 20px; }
.calc-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-in label { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; margin: 10px 0 5px; }
.calc-in output { float: right; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-in input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; gap: 10px; align-items: center; padding: 5px 0; font-size: 12px; }
.calc-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.calc-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.calc-row.best .calc-bar i { background: var(--new); }
.calc-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-row.best .calc-val { color: var(--new); }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--text-3); }
.code-box { position: relative; background: #16152a; color: #e6e6ff; border-radius: 10px; padding: 14px 16px; font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.code-copy { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 3px 9px; border-radius: 6px; border: 1px solid #4a4870; background: #24233a; color: #c9c8f0; cursor: pointer; font-family: inherit; }
.tbl-link { color: var(--accent); font-weight: 600; cursor: pointer; }

/* ── 云主机页 ── */
.picker { padding: 18px 20px; margin-bottom: 20px; }
.picker-out { margin-top: 12px; padding: 12px 14px; background: var(--bg-2); border-radius: 10px; font-size: 13px; color: var(--text-2); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.picker-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.fit-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700; margin-left: 6px; }
.fit-tag.y { background: var(--new-bg); color: var(--new); } .fit-tag.n { background: var(--bg-2); color: var(--text-3); }
tr.unfit td { opacity: .45; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 20px; }
.scene { padding: 14px 16px; }
.scene h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.scene p { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 8px; }
.scene .pick { font-size: 12px; font-weight: 600; color: var(--accent); }

/* ── 提示词页 ── */
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .pp-layout { grid-template-columns: minmax(0, 1fr); } .pp-detail { position: static !important; } }
.pp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pp-item { padding: 13px 14px; cursor: pointer; transition: border-color .15s; text-align: left; font-family: inherit; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.pp-item:hover { border-color: var(--accent); }
.pp-item.active { border-color: var(--accent); background: var(--accent-bg); }
.pp-item .prompt-title { font-size: 13px; }
.pp-snip { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.pp-detail { position: sticky; top: calc(56px + 16px + env(safe-area-inset-top, 0px)); padding: 16px 18px; }
.pp-vars { display: grid; gap: 8px; margin: 10px 0 12px; }
.pp-vars label { font-size: 11px; font-weight: 600; color: var(--text-3); display: grid; gap: 4px; }
.pp-out { background: var(--bg-2); border-radius: 9px; padding: 12px 14px; font-size: 12px; line-height: 1.75; color: var(--text-2); font-family: 'Courier New', monospace; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow-y: auto; }
.pp-out mark { background: var(--hot-bg); color: var(--hot); border-radius: 3px; padding: 0 2px; }
.pp-out mark.filled { background: var(--new-bg); color: var(--new); }

/* ── 页脚 + 移动端菜单 ── */
.site-footer { margin-left: var(--sidebar-w); border-top: 1px solid var(--border); padding: 18px 28px 22px; font-size: 12px; color: var(--text-3); display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-3); text-decoration: none; } .site-footer a:hover { color: var(--accent); }
.menu-btn { display: none; }
@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .sidebar.open { display: flex; width: 240px; }
  .site-footer { margin-left: 0; padding: 16px 16px 90px; }
  .topbar { padding: 0 16px; }
  .topbar .topbar-btn:not(.primary) { display: none; }
}

/* ── 修正 ── */
/* 公告条放到顶栏下方，不再被固定顶栏盖住 */
.announce { margin-left: var(--sidebar-w); margin-top: calc(56px + env(safe-area-inset-top, 0px)); }
.main { padding-top: 0; min-height: 0; flex: 1; }
.sidebar-logo { cursor: pointer; }
.page-head > div:first-child { flex: 1; min-width: 240px; }
.page-head p { max-width: 72ch; }
.feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .feat-list { grid-template-columns: minmax(0, 1fr); } }
.tool-foot { margin-top: auto; }
.art-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .art-tools { grid-template-columns: minmax(0, 1fr); } }
.scene .pick { text-decoration: none; }
.scene a.pick:hover { text-decoration: underline; }
.crumb a, .site-footer a, .tbl-link { cursor: pointer; }

/* ══════════════════════════════════════════════════════════
   WordPress 主题补充样式：SVG 图标、文字头像、后台内容排版等
   ══════════════════════════════════════════════════════════ */

body { font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }
h1, h2, h3, .logo-text, .card-title { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
a { color: inherit; }
button { font-family: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 8px 14px; clip: auto; background: var(--accent); color: #fff; border-radius: 8px; z-index: 1000; }
section[id], [data-cloud-gpu], [data-pp-detail], .art-body h2 { scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px)); }
.admin-bar section[id], .admin-bar .art-body h2 { scroll-margin-top: 104px; }

/* ── 图标 ── */
.ico { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; vertical-align: -0.14em; }
.nav-item .icon { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.nav-item .nav-text { overflow: hidden; text-overflow: ellipsis; }
.nav-item .nav-count.is-hot { background: var(--hot-bg); color: var(--hot); }
.nav-item .nav-count.is-new { background: var(--new-bg); color: var(--new); }
.search-icon { display: flex; }
.btn .ico { font-size: 14px; }
.theme-toggle .ico { font-size: 17px; }
.theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: inline-block; }
}
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: inline-block; }
.bottom-nav-item .ico { font-size: 20px; }
.bottom-nav-item span { font-size: 10px; }

/* ── 侧边栏 / 顶栏 ── */
.sidebar-logo { text-decoration: none; color: inherit; }
.logo-img img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; display: block; }
.logo-icon { font-size: 15px; letter-spacing: -.02em; }
.sidebar nav { padding-bottom: 16px; }
.sidebar-mask { display: none; }
.topbar-btn { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.announce-spacer { height: calc(56px + env(safe-area-inset-top, 0px)); flex-shrink: 0; }
.admin-bar .sidebar, .admin-bar .topbar { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .sidebar, .admin-bar .topbar { top: 46px; }
  .admin-bar #wpadminbar { position: fixed; }
}
@media (max-width: 768px) {
  .sidebar.open { box-shadow: 4px 0 24px rgba(15, 14, 26, .18); }
  .sidebar-mask.open { display: block; position: fixed; inset: 0; background: rgba(15, 14, 26, .45); z-index: 95; }
}

/* ── 文字头像 / Logo ── */
.avatar { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif; font-weight: 800; line-height: 1; overflow: hidden; user-select: none; }
.hot-card-icon.avatar { font-size: 16px; }
.tool-icon.avatar, .api-logo.avatar { font-size: 17px; }
.wf-logo.avatar, .access-icon.avatar { font-size: 18px; }
.td-icon.avatar { font-size: 32px; }
.side-ico.avatar { font-size: 14px; }
.feed-thumb.avatar { font-size: 28px; }
.avatar.has-img { background: var(--surface-2); }
.avatar.has-img img, .feed-thumb.has-img img, .nw-cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-thumb.has-img, .nw-cover.has-img { overflow: hidden; background: var(--surface-2); }
.nw-cover span { color: #fff; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 30px; padding: 0 20px; text-align: center; line-height: 1.2; }

/* ── 通用小件 ── */
a.chip { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.chip-count { opacity: .6; font-weight: 400; }
.chip.pill { border-radius: 20px; }
.chip-set { display: contents; }
.topic { text-decoration: none; display: inline-block; }
.topic.active { background: var(--accent-bg); color: var(--accent); }
.yes { color: var(--ok); display: inline-flex; }
.yes .ico { font-size: 16px; stroke-width: 2.4; }
.no { color: var(--text-3); }
.card-title .muted { font-weight: 400; margin-left: 6px; font-family: 'Inter', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.empty.wide { grid-column: 1 / -1; }
.admin-hint { padding: 14px 16px; border: 1.5px dashed var(--border); border-radius: 10px; }
.admin-hint a { color: var(--accent); }
.tbl-name { display: flex; align-items: center; gap: 8px; }
.tbl-link { text-decoration: none; }
.home-news { margin-bottom: 36px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.pager .page-numbers { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers.dots { border: none; background: none; }

/* ── 工具 ── */
.tool-card.has-foot { display: flex; flex-direction: column; }
.tool-card.has-foot .tool-tags { margin-bottom: 10px; }
.td-main h1 .tool-badge { font-size: 11px; margin-top: 0; }
.td-fact b.is-ok { color: var(--ok); }
.td-fact b.is-bad { color: var(--bad); }
.td-section .art-body { font-size: 14px; max-width: none; line-height: 1.8; }
.td-section .art-body > :last-child { margin-bottom: 0; }
.td-section .tool-tags { margin-top: 10px; }
.side-name.is-text { font-weight: 500; line-height: 1.45; }
.side-more { display: block; margin-top: 10px; }

/* ── 资讯正文（后台编辑器内容的排版） ── */
.article.narrow { max-width: 860px; }
.art-body.flush { margin-top: 18px; }
.art-body > :first-child { margin-top: 0; }
.art-body a { color: var(--accent); }
.art-body img { max-width: 100%; height: auto; border-radius: 10px; }
.art-body figure { margin: 0 0 16px; }
.art-body figcaption { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 6px; }
.art-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 22px 0 8px; }
.art-body ol { margin: 0 0 14px 22px; }
.art-body li { margin-bottom: 4px; }
.art-body blockquote { border-left: 3px solid var(--border); padding: 4px 0 4px 14px; margin: 0 0 14px; color: var(--text-3); }
.art-body pre { background: #16152a; color: #e6e6ff; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.art-body code { font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace; font-size: .92em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.art-body pre code { background: none; padding: 0; }
.art-body .tool-card { color: inherit; text-decoration: none; }
.art-cover { margin: 0 0 20px; border-radius: 12px; overflow: hidden; }
.art-cover img { width: 100%; height: auto; display: block; }
.art-src { display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.art-src:hover { color: var(--accent); }
.art-foot-right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.custom-section .art-body { max-width: none; }
.toc [data-toc-links] a { display: block; padding: 6px 10px; border-left: 2px solid var(--border); font-size: 12px; color: var(--text-2); text-decoration: none; }
.toc [data-toc-links] a:hover { border-left-color: var(--accent); color: var(--accent); }

/* ── 排行榜 ── */
.rank-badge { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-badge.r1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rank-badge.r2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.rank-badge.r3 { background: linear-gradient(135deg, #cd7c30, #9a5c1a); }
.lb-table th { cursor: default; }
.lb-table th.sortable { cursor: pointer; }
.lb-table .c { text-align: center; }
.lb-table .r { text-align: right; }
.lb-table th.bar { min-width: 80px; }
.lb-date { color: var(--text-3); font-size: 12px; }
.lb-update-badge.is-hot { background: var(--hot-bg); color: var(--hot); }
.lb-section-head .muted { margin-left: 4px; }
.podium-card[data-pick], .lb-table tr[data-pick] { cursor: pointer; }
.lb-table tbody tr:not([data-pick]) { cursor: default; }
.compare-winner.is-b { background: var(--hot-bg); color: var(--hot); }
.compare-table th.dim-col { width: 110px; }
.compare-section-head .muted { font-size: 12px; }
.radar text.tick { font-size: 9px; fill: var(--text-3); }

/* ── 开放 API ── */
.cloud-price-main.cheap { color: var(--new); }
.calc-note { margin-top: 12px; }
.snippet-intro { margin-bottom: 10px; }

/* ── 云主机 ── */
.cloud-sub { font-size: 11px; color: var(--text-3); }
.cloud-inst { font-size: 12px; color: var(--text-2); }
.cloud-sm { font-size: 12px; }
.cloud-filter-label.gap { margin-left: 14px; }
.cloud-head h2.sm { font-size: 17px; }
.gpu-c0 { background: #fff0f0; color: #c41818; }
.gpu-c1 { background: #f0f4ff; color: #1838c4; }
.gpu-c2 { background: #fff4ec; color: #c45218; }
.gpu-c3 { background: #f0fff4; color: #16a34a; }
.gpu-c4 { background: #fdf4ff; color: #9013c4; }
.gpu-c5 { background: var(--bg-2); color: var(--text-2); }
.picker-msg { flex: 1; min-width: 220px; }
.picker-msg .muted { margin-top: 4px; }

/* ── 工作流 ── */
.wf-grid-page { margin-bottom: 20px; }

/* ── 提示词 ── */
.pct-0 { background: #e8f5e9; color: #2e7d32; }
.pct-1 { background: #e3f2fd; color: #1565c0; }
.pct-2 { background: #fce4ec; color: #c2185b; }
.pct-3 { background: #fff8e1; color: #b26a00; }
.pct-4 { background: #f3e5f5; color: #6a1b9a; }
.pct-5 { background: #e0f7fa; color: #00695c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pct-0 { background: #1b3520; color: #81c784; }
  :root:not([data-theme="light"]) .pct-1 { background: #0d253f; color: #64b5f6; }
  :root:not([data-theme="light"]) .pct-2 { background: #3e1520; color: #f48fb1; }
  :root:not([data-theme="light"]) .pct-3 { background: #3e2c00; color: #ffcc80; }
  :root:not([data-theme="light"]) .pct-4 { background: #2a1040; color: #ce93d8; }
  :root:not([data-theme="light"]) .pct-5 { background: #00312b; color: #80cbc4; }
}
:root[data-theme="dark"] .pct-0 { background: #1b3520; color: #81c784; }
:root[data-theme="dark"] .pct-1 { background: #0d253f; color: #64b5f6; }
:root[data-theme="dark"] .pct-2 { background: #3e1520; color: #f48fb1; }
:root[data-theme="dark"] .pct-3 { background: #3e2c00; color: #ffcc80; }
:root[data-theme="dark"] .pct-4 { background: #2a1040; color: #ce93d8; }
:root[data-theme="dark"] .pct-5 { background: #00312b; color: #80cbc4; }
.prompt-section .section-head { margin-bottom: 16px; }
.pp-search { flex: 1; max-width: 320px; }
.pp-detail .card-title { margin: 0; }
.pp-detail .prompt-model { margin-top: 4px; }
.pp-detail .td-actions { margin-top: 12px; }
.pp-novars { margin: 10px 0; }

/* ── 国内访问指南 ── */
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.lg-direct { background: #2e7d32; }
.legend-dot.lg-partial { background: #e65100; }
.legend-dot.lg-blocked { background: #b71c1c; }

/* ── 搜索 / 404 ── */
.search-again { margin-bottom: 24px; }
.not-found { text-align: center; padding: 48px 20px; }
.nf-code { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 64px; color: var(--accent); line-height: 1; }
.not-found h1 { font-size: 22px; margin: 8px 0 6px; }
.not-found .td-actions { justify-content: center; margin-top: 18px; }

/* ── 首页模块标题统一字号；提示词预览不露出被截断的半行 ── */
.compare-section-head h2, .access-section-head h2, .cloud-head-left h2 { font-size: 17px; }
.prompt-body { padding-bottom: 0; border-bottom: 10px solid var(--bg-2); }

/* 表格里的无障碍文字跟随所在单元格，避免撑宽页面 */
.yes, .no { position: relative; }
.cloud-table-wrap, .lb-table-wrap, .compare-table-wrap, .art-tablewrap { position: relative; }
@media (max-width: 600px) { .podium-slot.gold { order: -1; } }
