/*
 * 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:        #fafafa;
  --bg-2:      #f3f3f3;
  --surface:   #ffffff;
  --surface-2: #f7f7f7;
  --border:    #e2e2e2;
  --text:      #171717;
  --text-2:    #474747;
  --text-3:    #777777;
  --accent:    #202020;
  --accent-2:  #5d5d5d;
  --accent-bg: #eeeeee;
  --accent-soft: #f3f3f3;
  --accent-border: #9a9a9a;
  --accent-fill: #1a1a1a;
  --accent-fill-hover: #383838;
  --accent-fill-text: #ffffff;
  --border-strong: #9a9a9a;
  --primary: #202020;
  --soft: #f3f3f3;
  --muted: #777777;
  --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:        #111111;
    --bg-2:      #1a1a1a;
    --surface:   #202020;
    --surface-2: #292929;
    --border:    #444444;
    --text:      #f5f5f5;
    --text-2:    #c8c8c8;
    --text-3:    #a0a0a0;
    --accent:    #e3e3e3;
    --accent-2:  #bdbdbd;
    --accent-bg: #303030;
    --accent-soft: #2c2c2c;
    --accent-border: #777777;
    --accent-fill: #e9e9e9;
    --accent-fill-hover: #cccccc;
    --accent-fill-text: #161616;
    --border-strong: #888888;
    --primary: #e3e3e3;
    --soft: #303030;
    --muted: #a0a0a0;
    --hot-bg:    #2d1a00;
    --new-bg:    #0a2920;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #111111;
  --bg-2:      #1a1a1a;
  --surface:   #202020;
  --surface-2: #292929;
  --border:    #444444;
  --text:      #f5f5f5;
  --text-2:    #c8c8c8;
  --text-3:    #a0a0a0;
  --accent:    #e3e3e3;
  --accent-2:  #bdbdbd;
  --accent-bg: #303030;
  --accent-soft: #2c2c2c;
  --accent-border: #777777;
  --accent-fill: #e9e9e9;
  --accent-fill-hover: #cccccc;
  --accent-fill-text: #161616;
  --border-strong: #888888;
  --primary: #e3e3e3;
  --soft: #303030;
  --muted: #a0a0a0;
  --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 .api-grid > .api-card:nth-child(n+9) { display: none; }
.api-pagination[hidden] { display: none; }
.pager button.page-numbers:hover:not(:disabled):not(.current) { border-color: var(--accent); color: var(--accent); }
.pager button.page-numbers:disabled { opacity: .45; cursor: not-allowed; }
.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: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 23px);
  grid-auto-columns: max-content;
  align-content: start;
  justify-content: start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--text-3) transparent;
}
.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(300px, 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; }
.cloud-vendor-link { color: inherit; text-decoration: none; }
.cloud-vendor-brand { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.cloud-vendor-logo { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.cloud-vendor-link:hover, .cloud-vendor-link:focus-visible { color: var(--accent); text-decoration: underline; }
#wf-table th:nth-last-child(-n+2),
#wf-table td:nth-last-child(-n+2) {
  box-sizing: border-box;
  width: 142px;
  min-width: 142px;
  text-align: center;
}

.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; }
body.single-ai_tool .two-col { grid-template-columns: minmax(0, 1fr); }
body.single-ai_tool .two-col:not(:has(> .aside-stack > .card)) > .aside-stack { display: none; }
@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: 0; border-top: 1px solid var(--border); padding: 18px var(--ganai-frame-edge) 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 var(--ganai-frame-edge) 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; } }

/* 会员文章留言 */
.member-comments {
	margin-top: 22px;
}
.member-comments__title {
	margin: 0 0 18px;
	font-size: 20px;
}
.member-comments__list,
.member-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}
.member-comments__list .children {
	margin: 14px 0 0 28px;
	padding-left: 18px;
	border-left: 2px solid var(--border, #e8e6f2);
}
.member-comments__list .comment {
	padding: 16px 0;
	border-top: 1px solid var(--border, #e8e6f2);
}
.member-comments__list > .comment:first-child {
	border-top: 0;
}
.member-comments__list .comment-author {
	font-weight: 700;
}
.member-comments__list .comment-author img {
	margin-right: 8px;
	vertical-align: middle;
	border-radius: 50%;
}
.member-comments__list .comment-meta,
.member-comments__list .comment-metadata {
	margin-top: 4px;
	font-size: 12px;
	color: var(--muted, #77738c);
}
.member-comments__list .comment-content {
	margin: 10px 0;
	line-height: 1.7;
}
.member-comments__list .reply a,
.member-comments .comment-reply-login {
	font-size: 13px;
	font-weight: 700;
	color: var(--primary, #6f55f6);
}
.member-comments__signin,
.member-comments__closed {
	margin: 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--soft, #f4f1ff);
}
.member-comment-form {
	margin-top: 20px;
}
.member-comment-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}
.member-comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 130px;
	padding: 12px;
	border: 1px solid var(--border, #dcd8ed);
	border-radius: 10px;
	background: var(--card, #fff);
	color: inherit;
	resize: vertical;
}
.member-comment-submit {
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--primary, #6f55f6);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Logged-in member control in the site header. */
.topbar-member { display: flex; align-items: center; gap: 8px; }
.topbar-member-account { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 3px 10px 3px 4px; border: 1px solid var(--border, #e2ddef); border-radius: 999px; color: inherit; background: var(--card, #fff); text-decoration: none; }
.topbar-member-account:hover { border-color: var(--primary, #7656f6); color: var(--primary, #7656f6); }
.topbar-member-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.topbar-member-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.topbar-member-logout { padding: 6px 4px; color: var(--muted, #817c92); font-size: 12px; text-decoration: none; }
.topbar-member-logout:hover { color: var(--primary, #7656f6); }
@media (max-width: 640px) { .topbar-member-name, .topbar-member-logout { display: none; } .topbar-member-account { padding: 3px; } }
/* Member avatar shown in the site header. */
.topbar-member-account .ganai-member-avatar-shell { display: inline-flex; width: 36px; height: 36px; box-sizing: border-box; flex: 0 0 36px; border-radius: 50%; align-items: center; justify-content: center; overflow: visible; }
.topbar-member-account .ganai-member-avatar-shell .topbar-member-avatar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.topbar-member-account .ganai-member-avatar-shell.ganai-avatar-frame-plain { border: 2px solid #fff; box-shadow: 0 0 0 1px #ded9f0; }
.topbar-member-account .ganai-member-avatar-shell.ganai-avatar-frame-violet { border: 3px solid #7656f6; box-shadow: 0 0 0 2px #e8e1ff; }
.topbar-member-account .ganai-member-avatar-shell.ganai-avatar-frame-gold { border: 3px solid #f4b740; box-shadow: 0 0 0 2px #fff1c7; }
.topbar-member-account .ganai-member-avatar-shell.ganai-avatar-frame-aqua { border: 3px solid #22c9d6; box-shadow: 0 0 0 2px #d5f8fa; }
.topbar-member-account .ganai-member-avatar-shell.ganai-avatar-frame-pixel { border: 3px dashed #414151; box-shadow: 0 0 0 2px #dfe0ea; }
.topbar-member-account .ganai-member-avatar-shell.ganai-avatar-frame-glow { border: 3px solid #fb74c6; box-shadow: 0 0 8px #fb74c6, 0 0 0 2px #ffe0f4; }


/* Emoji picker in the member comment form. */
.member-comment-form .ganai-comment-toolbar { position: relative; display: flex; align-items: center; margin: 8px 0; }
.member-comment-form .ganai-emoji-toggle { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border, #e2ddef); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--text, #25212f); font: inherit; font-size: 13px; cursor: pointer; }
.member-comment-form .ganai-emoji-toggle:hover, .member-comment-form .ganai-emoji-toggle[aria-expanded="true"] { border-color: var(--primary, #7656f6); color: var(--primary, #7656f6); background: #faf8ff; }
.member-comment-form .ganai-emoji-panel { position: absolute; z-index: 20; top: 38px; left: 0; display: grid; grid-template-columns: repeat(10, 32px); gap: 4px; padding: 8px; max-width: min(360px, calc(100vw - 64px)); border: 1px solid var(--border, #e2ddef); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(48, 39, 76, .16); }
.member-comment-form .ganai-emoji-panel[hidden] { display: none; }
.member-comment-form .ganai-emoji-item { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; }
.member-comment-form .ganai-emoji-item:hover { background: #f1edff; transform: scale(1.08); }
@media (max-width: 480px) { .member-comment-form .ganai-emoji-panel { grid-template-columns: repeat(7, 32px); } }


/* Authentication forms: keep actions within the ganai360 color system. */
body.page-id-68 .um input[type="submit"].um-button,
body.page-id-69 .um input[type="submit"].um-button {
  background: var(--accent) !important;
  border: 1.5px solid var(--accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.page-id-68 .um input[type="submit"].um-button:hover,
body.page-id-69 .um input[type="submit"].um-button:hover {
  background: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
}
body.page-id-68 .um a.um-button.um-alt {
  background: transparent !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  box-shadow: none !important;
}
body.page-id-68 .um a.um-button.um-alt:hover {
  background: rgba(124, 92, 252, .08) !important;
  color: var(--accent) !important;
}

/* Center the complete registration form within its card. */
body.page-id-69 .article.narrow .art-body.flush {
  width: 100% !important;
  max-width: none !important;
}

/* Keep the registration action aligned with the input fields. */
body.page-id-69 .um .um-center .um-button {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}


/* ===== 顶部横向导航（可扩充二级菜单） ===== */
.sidebar,
.sidebar-mask {
    display: none !important;
}

.main {
    margin-left: 0 !important;
    min-width: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 70px;
    height: 70px;
    padding: 0 30px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

body.admin-bar .site-header {
    top: 32px;
}

.topbar-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 142px;
    color: var(--text);
    text-decoration: none;
}

.topbar-logo:hover {
    color: var(--text);
}

.topbar-logo-mark,
.topbar-logo-image {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.topbar-logo-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar-logo-text {
    display: grid;
    gap: 1px;
    line-height: 1.15;
}

.topbar-logo-text strong {
    color: var(--text);
    font-size: 15px;
}

.topbar-logo-text small {
    color: var(--muted);
    font-size: 11px;
}

.header-navigation {
    min-width: 0;
    margin-right: auto;
}

.header-nav-list,
.header-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.header-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 9px;
    border-radius: 7px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color .16s ease, background .16s ease;
}

.header-nav-link:hover,
.header-nav-item.is-active > .header-nav-link {
    background: var(--accent-soft);
    color: var(--accent);
}

.header-nav-item.has-children > .header-nav-link {
    padding-right: 4px;
}

.header-nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 23px;
    min-width: 23px;
    height: 36px;
    margin-left: -2px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
}

.header-nav-toggle:hover,
.header-nav-toggle:focus-visible {
    background: var(--accent-soft);
    color: var(--accent);
    outline: none;
}

.header-nav-chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.header-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    min-width: 168px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(29, 22, 67, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease;
}

.header-nav-item.has-children:hover > .header-submenu,
.header-nav-item.has-children:focus-within > .header-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header-submenu .header-nav-item {
    width: 100%;
}

.header-submenu .header-nav-link {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
}

.site-header .search-wrap {
    flex: 0 1 238px;
    width: clamp(150px, 16vw, 238px);
    margin: 0;
}

.site-header .topbar-right {
    flex: 0 0 auto;
    margin-left: 0;
}

.language-switch {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
}

.language-switch:hover {
    border-color: var(--border-strong);
}

@media (max-width: 1280px) {
    .site-header {
        gap: 12px;
        padding: 0 var(--ganai-content-gutter);
    }

    .header-nav-link {
        padding: 0 6px;
        font-size: 13px;
    }

    .site-header .search-wrap {
        width: 155px;
    }

    .language-switch {
        padding: 0 8px;
    }
}

@media (max-width: 1040px) {
    .site-header {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 9px var(--ganai-content-gutter) 7px;
    }

    .header-navigation {
        order: 5;
        width: 100%;
        overflow-x: auto;
        margin: 0;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .header-nav-list {
        width: max-content;
    }

    .site-header .search-wrap {
        flex: 1 1 160px;
        width: auto;
    }

    .site-header .topbar-right {
        margin-left: auto;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding-right: var(--ganai-content-gutter);
        padding-left: var(--ganai-content-gutter);
    }

    .topbar-logo {
        min-width: auto;
    }

    .topbar-logo-text small {
        display: none;
    }

    .site-header .topbar-right {
        gap: 6px;
    }

    .topbar-member-name,
    .topbar-member-logout {
        display: none;
    }

    .language-switch {
        width: 34px;
        padding: 0;
        font-size: 0;
    }

    .language-switch::after {
        content: '简';
        font-size: 13px;
    }
}
/* 顶部导航移除侧栏后，公告条保持全宽。 */
.announce, .announce-spacer { margin-left: 0 !important; width: 100%; }


@media (max-width: 620px) {
    .site-header .topbar-right {
        order: 4;
        width: 100%;
        justify-content: flex-end;
    }

    .site-header .topbar-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .site-header .theme-toggle {
        display: none;
    }
}

@media (max-width: 620px) {
    .site-header .topbar-btn {
        display: inline-flex !important;
    }
}

/* Remove the legacy gap above the announcement bar. */
.site-header + .announce,
.site-header + .announce-spacer {
  margin-top: 0 !important;
}

/* Use the available desktop width for the AI news archive. */
@media (min-width: 1201px) {
  body.post-type-archive-ai_news .content {
    width: 100%;
    max-width: none;
  }
}

/* Keep both AI news right-hand areas on the same grid line. */
@media (min-width: 801px) {
  .nw-lead {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
}

/* Give the desktop AI news right sidebar more reading space. */
@media (min-width: 1201px) {
  body.post-type-archive-ai_news .nw-lead,
  body.post-type-archive-ai_news .two-col {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

/* Increase the AI news sidebar on wide desktop screens. */
@media (min-width: 1400px) {
  body.post-type-archive-ai_news .nw-lead,
  body.post-type-archive-ai_news .two-col {
    grid-template-columns: minmax(0, 1fr) 450px;
  }
}

/* Give the featured AI news card a fuller reading hierarchy. */
.nw-top-body::before {
  content: '深度解读';
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.nw-top-body h2 { margin-top: 8px; }
.nw-top-body p {
  max-width: 820px;
  margin: 8px 0 10px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.nw-top-body::after {
  content: '阅读全文  →';
  display: block;
  margin-top: 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
@media (max-width: 800px) {
  .nw-top-body p { max-width: none; }
}

/* Responsive featured-news excerpt: natural density, no forced text box. */
.nw-top-body::before { content: none; display: none; }
.nw-top-body h2 { margin-top: 0; }
.nw-top-body p {
  max-width: 820px;
  -webkit-line-clamp: 3;
}
@media (max-width: 1399px) {
  .nw-top-body p { -webkit-line-clamp: 2; }
}

/* Let the featured-news excerpt use the complete card width. */
.nw-top-body::before { content: none !important; display: none !important; }
.nw-top-body p { max-width: none; }

/* Formal brand logo */
.topbar-logo--official { min-width: 0; gap: 0; }
.topbar-logo--official .topbar-logo-asset { display: none; object-fit: contain; object-position: left center; }
.topbar-logo--official .topbar-logo-asset--light.topbar-logo-asset--desktop { display: block; width: 40px; height: 40px; }
:root[data-theme="dark"] .topbar-logo--official .topbar-logo-asset--light { display: none; }
:root[data-theme="dark"] .topbar-logo--official .topbar-logo-asset--dark.topbar-logo-asset--desktop { display: block; width: 40px; height: 40px; }
@media (max-width: 760px) {
  .topbar-logo--official .topbar-logo-asset--desktop { display: none !important; }
  .topbar-logo--official .topbar-logo-asset--mobile.topbar-logo-asset--light { display: block; width: 40px; height: 40px; }
  :root[data-theme="dark"] .topbar-logo--official .topbar-logo-asset--mobile.topbar-logo-asset--light { display: none; }
  :root[data-theme="dark"] .topbar-logo--official .topbar-logo-asset--mobile.topbar-logo-asset--dark { display: block; width: 40px; height: 40px; }
}

/* Expand desktop navigation to the search field */
@media (min-width: 1100px) {
  .site-header .header-navigation { flex: 1 1 auto; margin-right: 20px; }
  .site-header .header-nav-list { width: 100%; justify-content: space-between; gap: 12px; }
}


/* Unified frontend frame */
:root { --ganai-content-max: 1280px; --ganai-content-gutter: 24px; --ganai-frame-edge: max(var(--ganai-content-gutter), calc((100vw - var(--ganai-content-max)) / 2)); }
.content { box-sizing: border-box; width: min(var(--ganai-content-max), calc(100% - (var(--ganai-content-gutter) * 2))); max-width: var(--ganai-content-max); padding-right: 0; padding-left: 0; margin-left: auto; margin-right: auto; }
@media (max-width: 620px) { :root { --ganai-content-gutter: 16px; } .content { width: calc(100% - (var(--ganai-content-gutter) * 2)); padding: 20px 0 48px; } }


/* Keep the AI news archive aligned with the reference content width. */
@media (min-width: 1201px) {
  body.post-type-archive-ai_news .content {
    box-sizing: border-box;
    width: calc(100% - (var(--ganai-content-gutter) * 2));
    max-width: var(--ganai-content-max);
    margin-left: auto;
    margin-right: auto;
  }
}


/* Shared responsive frame: preserve content before shrinking gutters. */
@media (min-width: 1201px) {
  :root {
    --ganai-frame-edge: max(var(--ganai-content-gutter), calc((100vw - var(--ganai-content-max)) / 2));
    --ganai-frame-inset: var(--ganai-frame-edge);
  }

  .content,
  body.post-type-archive-ai_news .content {
    box-sizing: border-box;
    width: calc(100% - (var(--ganai-frame-edge) * 2));
    max-width: var(--ganai-content-max);
    margin-left: auto;
    margin-right: auto;
  }

  /* Match the header's visible content edges to the padded page content. */
  .site-header {
    padding-left: var(--ganai-frame-inset);
    padding-right: var(--ganai-frame-inset);
  }
}


/* === GANAI FIGMA HOME 2026-10 === */
.page-home {
    width: 100%;
    max-width: none;
    padding: 0 0 80px;
    background-color: #fff;
    background-image: none;
    background-repeat: no-repeat;
    background-position: center 560px;
    background-size: 100% auto;
}
.page-home > section:not(.ganai-home-hero),
.page-home > .panel,
.page-home > .divider {
    width: min(var(--ganai-content-max), calc(100% - (var(--ganai-content-gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
}
.page-home > .divider { opacity: .55; }
.hero.ganai-home-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    aspect-ratio: 1920 / 680;
    min-height: 420px;
    margin: 0 0 70px calc(50% - 50vw);
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f7f7f5;
    box-shadow: none;
}
.hero.ganai-home-hero::before { display: none; }
.ganai-hero-track,
.ganai-hero-slide,
.ganai-hero-slide > a,
.ganai-hero-slide picture {
    position: absolute;
    inset: 0;
    display: block;
}
.ganai-hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s ease;
}
.ganai-hero-slide.is-active { opacity: 1; visibility: visible; }
.ganai-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ganai-hero-logo {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: max(7vw, calc((100vw - 1580px) / 2 + 34px));
    width: clamp(290px, 31vw, 610px);
    max-height: 88%;
    object-fit: contain;
    transform: translateY(-49%);
    pointer-events: none;
    filter: drop-shadow(0 16px 28px rgb(20 20 20 / 10%));
}
.ganai-hero-actions {
    position: absolute;
    z-index: 4;
    left: max(7vw, calc((100vw - 1580px) / 2 + 34px));
    bottom: 11%;
    display: flex;
    gap: 16px;
}
.ganai-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    height: 48px;
    padding: 0 26px;
    border: 1px solid #1b1b1b;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.ganai-hero-button:hover { transform: translateY(-2px); }
.ganai-hero-button.is-primary { color: #fff; background: #171717; }
.ganai-hero-button.is-secondary { color: #171717; background: rgb(255 255 255 / 88%); }
.ganai-hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 1px solid rgb(17 17 17 / 12%);
    border-radius: 50%;
    color: #111;
    background: rgb(255 255 255 / 76%);
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.ganai-hero-arrow.is-prev { left: 22px; }
.ganai-hero-arrow.is-next { right: 22px; }
.ganai-hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 18px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}
.ganai-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgb(17 17 17 / 25%);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.ganai-hero-dots button.is-active { width: 26px; background: #171717; }
.ganai-figma-head,
.ganai-home-tools .section-head {
    margin-bottom: 22px;
}
.ganai-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr) minmax(300px, .82fr);
    gap: 18px;
    align-items: stretch;
}
.ganai-news-feature,
.ganai-news-compact-card,
.ganai-news-hot {
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    background: rgb(255 255 255 / 94%);
    overflow: hidden;
}
.ganai-news-feature { display: block; min-height: 340px; color: #fff; }
.ganai-news-feature-media { position: relative; width: 100%; height: 100%; min-height: 340px; background: #171717; }
.ganai-news-feature-thumb { position: absolute; inset: 0; width: 100%; height: 100%; }
.ganai-news-feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ganai-news-feature-thumb:not(.has-img) { display: grid; place-items: center; font-size: 80px; opacity: .4; }
.ganai-news-feature-media::after { content: ''; position: absolute; inset: 25% 0 0; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 88%)); }
.ganai-news-feature-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 70px 24px 22px; }
.ganai-news-feature-copy h3 { margin: 0 0 10px; color: #fff; font-size: clamp(20px, 1.45vw, 28px); line-height: 1.32; }
.ganai-news-feature-copy p { display: -webkit-box; margin: 0 0 12px; overflow: hidden; color: rgb(255 255 255 / 82%); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ganai-news-feature .feed-meta,
.ganai-news-feature .feed-meta * { color: rgb(255 255 255 / 72%); }
.ganai-news-compact { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ganai-news-compact-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 100px; padding: 10px; gap: 14px; color: var(--text); }
.ganai-news-compact-thumb { min-height: 78px; border-radius: 7px; overflow: hidden; background: var(--accent-bg); }
.ganai-news-compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ganai-news-compact-card h3 { display: -webkit-box; margin: 5px 0 12px; overflow: hidden; font-size: 15px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ganai-news-hot { min-width: 0; }
.ganai-news-hot-head { padding: 18px 18px 14px; border-bottom: 1px solid #e6e7e9; }
.ganai-news-hot-head strong { display: block; margin-bottom: 4px; font-size: 17px; }
.ganai-news-hot-head span { color: var(--text-3); font-size: 12px; }
.ganai-news-hot .news-item { min-height: 53px; padding: 10px 14px; }
.ganai-news-hot .news-title { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ganai-news-hot .news-meta { display: none; }
.ganai-tool-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: -5px 0 22px; }
.ganai-tool-filters a { padding: 7px 16px; border: 1px solid #e2e3e6; border-radius: 6px; color: #656872; background: rgb(255 255 255 / 90%); font-size: 13px; }
.ganai-tool-filters a:hover,
.ganai-tool-filters a.is-active { border-color: #181818; color: #fff; background: #181818; }
.tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ganai-home-tools-grid .tool-card { min-width: 0; background: rgb(255 255 255 / 95%); }
@media (max-width: 1280px) {
    .hero.ganai-home-hero { min-height: 390px; }
    .ganai-news-layout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); }
    .ganai-news-hot { grid-column: 1 / -1; }
    .ganai-news-hot .news-item { display: inline-grid; width: 49%; vertical-align: top; }
    .tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .page-home { background-position: center 420px; }
    .page-home > section:not(.ganai-home-hero), .page-home > .panel, .page-home > .divider { width: min(var(--ganai-content-max), calc(100% - (var(--ganai-content-gutter) * 2))); }
    .hero.ganai-home-hero { aspect-ratio: 16 / 8.7; min-height: 360px; margin-bottom: 44px; }
    .ganai-hero-logo { right: 3%; width: clamp(210px, 42vw, 360px); }
    .ganai-hero-actions { left: 5%; bottom: 8%; }
    .ganai-hero-button { min-width: 128px; height: 42px; padding: 0 18px; font-size: 13px; }
    .ganai-news-layout { grid-template-columns: 1fr; }
    .ganai-news-compact { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
    .ganai-news-compact-card { grid-template-columns: 1fr; }
    .ganai-news-compact-thumb { height: 120px; }
    .ganai-news-hot { grid-column: auto; }
    .ganai-news-hot .news-item { display: grid; width: 100%; }
    .tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .page-home { padding-bottom: 50px; background-size: auto 1500px; }
    .hero.ganai-home-hero { aspect-ratio: auto; min-height: 430px; }
    .ganai-hero-slide img { object-position: center; }
    .ganai-hero-logo { top: 54%; right: -4%; width: 64vw; opacity: .92; }
    .ganai-hero-actions { right: 16px; bottom: 24px; left: 16px; gap: 10px; }
    .ganai-hero-button { flex: 1; min-width: 0; padding: 0 10px; }
    .ganai-hero-arrow { display: none; }
    .ganai-hero-dots { bottom: 78px; }
    .ganai-news-feature,
    .ganai-news-feature-media { min-height: 300px; }
    .ganai-news-compact { grid-template-columns: 1fr; }
    .ganai-news-compact-card { grid-template-columns: 105px minmax(0, 1fr); }
    .ganai-news-compact-thumb { height: auto; min-height: 82px; }
    .tool-grid.ganai-home-tools-grid { grid-template-columns: 1fr; }
}


/* === GANAI HOME MODULE LABELS 2026-10 === */
.ganai-news-column { display: flex; min-width: 0; flex-direction: column; }
.ganai-news-column-title { margin: 0 0 11px; color: #171717; font-size: 14px; font-weight: 800; line-height: 1.3; }
.ganai-news-column .ganai-news-feature,
.ganai-news-column .ganai-news-compact { flex: 1; }
.ganai-news-hot { margin-top: 29px; }
.tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) {
    .tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ganai-news-hot { margin-top: 0; }
    .tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tool-grid.ganai-home-tools-grid { grid-template-columns: 1fr; }
}

/* === GANAI NEWS + TOOLS FIGMA ALIGNMENT 2026-10-15 === */
.ganai-home-news,
.ganai-home-tools {
    width: min(var(--ganai-content-max), calc(100% - (var(--ganai-content-gutter) * 2)));
    margin-right: auto;
    margin-left: auto;
}
.ganai-home-news .section-head,
.ganai-home-tools .section-head {
    display: flex;
    width: 100%;
    margin: 0 0 22px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.ganai-home-news .section-head > div,
.ganai-home-tools .section-head > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}
.ganai-home-news .section-head > a,
.ganai-home-tools .section-head > a {
    margin-left: auto;
    white-space: nowrap;
}
.ganai-news-layout {
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 1.05fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: start;
}
.ganai-news-column-title {
    height: 18px;
    margin: 0 0 11px;
    line-height: 18px;
}
.ganai-news-column > .ganai-news-feature,
.ganai-news-column > .ganai-news-compact,
.ganai-news-feature-media {
    height: 340px;
    min-height: 340px;
}
.ganai-news-compact-card { min-height: 0; }
.ganai-news-hot {
    height: 340px;
    margin-top: 29px;
}
.ganai-home-tools { margin-top: 0; }
.ganai-tool-filters {
    margin: -4px 0 22px;
    align-items: center;
}
.tool-grid.ganai-home-tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.ganai-home-tools-demo { cursor: default; }
.ganai-demo-tool-card {
    display: flex;
    min-width: 0;
    min-height: 194px;
    padding: 18px;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 8px 24px rgb(31 41 55 / 3%);
    flex-direction: column;
}
.ganai-demo-tool-head {
    display: flex;
    min-width: 0;
    margin-bottom: 12px;
    align-items: center;
    gap: 12px;
}
.ganai-demo-tool-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #fff;
    background: #111;
    font-size: 15px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}
.ganai-demo-tool-icon.tone-1 { background: #292929; }
.ganai-demo-tool-icon.tone-2 { background: #4338ca; }
.ganai-demo-tool-icon.tone-3 { background: #0f766e; }
.ganai-demo-tool-icon.tone-4 { background: #7c3aed; }
.ganai-demo-tool-icon.tone-5 { background: #1d4ed8; }
.ganai-demo-tool-head h3 {
    margin: 0 0 3px;
    color: #171717;
    font-size: 16px;
    line-height: 1.25;
}
.ganai-demo-tool-head small {
    color: #9296a1;
    font-size: 11px;
}
.ganai-demo-tool-card > p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #737784;
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ganai-demo-tool-tags {
    display: flex;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}
.ganai-demo-tool-tags span {
    padding: 3px 7px;
    border-radius: 4px;
    color: #727681;
    background: #f2f3f5;
    font-size: 10px;
}
.ganai-demo-tool-action {
    display: inline-flex;
    width: fit-content;
    height: 30px;
    margin-top: auto;
    padding: 0 12px;
    border: 1px solid #dedfe3;
    border-radius: 5px;
    color: #333;
    background: #fff;
    font-size: 11px;
    align-items: center;
}
@media (max-width: 1280px) {
    .ganai-news-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); }
    .ganai-news-hot { grid-column: 1 / -1; height: auto; margin-top: 0; }
    .tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ganai-home-news,
    .ganai-home-tools { width: min(calc(100% - 32px), 760px); }
    .ganai-news-layout { grid-template-columns: 1fr; }
    .ganai-news-column > .ganai-news-compact { height: auto; min-height: 0; }
    .ganai-news-hot { height: auto; margin-top: 0; }
    .tool-grid.ganai-home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tool-grid.ganai-home-tools-grid { grid-template-columns: 1fr; }
}


/* Homepage: prompts flow directly into the branded footer. */
.page-home { padding-bottom: 32px; }
.page-home > .prompt-section { margin-bottom: 0; }
@media (max-width: 900px) {
    .ganai-home-news,
    .ganai-home-tools { width: min(var(--ganai-content-max), calc(100% - (var(--ganai-content-gutter) * 2))); }
}
.site-footer.ganai-home-footer {
    box-sizing: border-box;
    display: block;
    min-height: 377px;
    margin-left: 0;
    padding: 66px var(--ganai-frame-edge) 26px;
    border-top: 0;
    background-color: #fff;
    background-image: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,.96) 10%, rgba(255,255,255,0) 38%), var(--ganai-footer-bg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%, 100% auto;
    color: #161616;
}
.ganai-footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) minmax(430px, 1.7fr) 150px;
    gap: 32px;
    align-items: start;
    width: 100%;
    max-width: var(--ganai-content-max);
    margin: 0 auto;
}
.ganai-footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.ganai-footer-logo { display: block; width: 92px; height: 92px; margin-bottom: 9px; }
.ganai-footer-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ganai-footer-brand strong { color: #161616; font-size: 16px; line-height: 1.4; }
.ganai-footer-brand p { margin: 2px 0 0; color: #858585; font-size: 12px; line-height: 1.6; }
.ganai-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.ganai-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ganai-footer-column h2 { margin: 0 0 9px; color: #151515; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ganai-footer-column a,
.ganai-footer-column span { color: #888; font-size: 12px; line-height: 1.5; text-decoration: none; }
.ganai-footer-column a:hover { color: #161616; }
.ganai-footer-social { display: flex; justify-content: flex-end; gap: 10px; }
.ganai-footer-social-icon { box-sizing: border-box; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e9e9e9; border-radius: 50%; background: #fff; color: #111; }
.ganai-footer-social-icon svg { display: block; width: 19px; height: 19px; fill: currentColor; }
.ganai-footer-copyright { max-width: var(--ganai-content-max); margin: 67px auto 0; color: #969696; font-size: 11px; text-align: center; }
@media (max-width: 900px) {
    .ganai-footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 30px 20px; }
    .ganai-footer-brand { grid-column: 1 / -1; }
    .ganai-footer-links { gap: 16px; }
    .ganai-footer-copyright { margin-top: 45px; }
}
@media (max-width: 620px) {
    .site-footer.ganai-home-footer { padding: 40px var(--ganai-content-gutter) 24px; background-size: cover; }
    .ganai-footer-inner { display: block; }
    .ganai-footer-brand { align-items: center; text-align: center; }
    .ganai-footer-logo { width: 78px; height: 78px; }
    .ganai-footer-links { margin-top: 32px; gap: 10px; }
    .ganai-footer-column h2 { font-size: 13px; }
    .ganai-footer-column a,
    .ganai-footer-column span { font-size: 11px; }
    .ganai-footer-social { justify-content: center; margin-top: 30px; }
    .ganai-footer-copyright { margin-top: 34px; }
}
/* Monochrome interaction states: default, hover, selected. */
.announce { background: #f3f3f3; color: #444; border-block: 1px solid #e5e5e5; }
.announce a { color: #171717; text-underline-offset: 2px; }
.header-nav-link:hover, .header-nav-toggle:hover { color: var(--text); background: var(--accent-soft); }
.header-nav-item.is-active > .header-nav-link { color: var(--text); background: transparent; border-radius: 0; box-shadow: inset 0 -2px currentColor; }
.header-nav-item.is-active > .header-nav-link:hover { background: var(--accent-soft); }
.header-submenu { box-shadow: 0 14px 32px rgb(0 0 0 / 12%); }
.topbar-btn:not(.primary):hover, .theme-toggle:hover, .language-switch:hover { color: var(--text); background: var(--accent-soft); border-color: var(--accent-border); }
.topbar-btn.primary, .btn.primary, .hero-search button, .member-comment-submit { color: var(--accent-fill-text); background: var(--accent-fill); border-color: var(--accent-fill); }
.topbar-btn.primary:hover, .btn.primary:hover, .hero-search button:hover, .member-comment-submit:hover { opacity: 1; color: var(--accent-fill-text); background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.ganai-tool-filters a:hover:not(.is-active) { color: var(--text); border-color: var(--accent-border); background: var(--accent-soft); }
.ganai-tool-filters a.is-active, .ganai-tool-filters a[aria-selected="true"] { color: var(--accent-fill-text); border-color: var(--accent-fill); background: var(--accent-fill); font-weight: 700; }
.ganai-tool-filters a.is-active:hover { border-color: var(--accent-fill-hover); background: var(--accent-fill-hover); }
:is(.cat-tab, .lb-chip, .lb-chip-btn, .cloud-chip, .prompt-cat-btn, .chip):hover:not(.active) { color: var(--text); border-color: var(--accent-border); background: var(--accent-soft); }
:is(.cat-tab, .lb-chip, .lb-chip-btn, .cloud-chip, .prompt-cat-btn, .chip).active { color: var(--accent-fill-text); border-color: var(--accent-fill); background: var(--accent-fill); }
:is(.cat-tab, .lb-chip, .lb-chip-btn, .cloud-chip, .prompt-cat-btn, .chip).active:hover { border-color: var(--accent-fill-hover); background: var(--accent-fill-hover); }
.news-tab:hover { color: var(--text); }
.news-tab.active { color: var(--text); border-bottom-color: var(--text); }
.topic:hover:not(.active) { color: var(--text); background: var(--accent-soft); }
.topic.active { color: var(--text); background: var(--accent-bg); font-weight: 700; }
.pager .page-numbers.current, .skip-link:focus { color: var(--accent-fill-text); background: var(--accent-fill); border-color: var(--accent-fill); }
.prompt-copy-btn:hover { color: var(--accent-fill-text); background: var(--accent-fill); border-color: var(--accent-fill); }
.ganai-hero-button.is-primary:hover { color: #fff; background: #383838; border-color: #383838; }
.ganai-hero-button.is-secondary:hover { color: #171717; background: #ececec; border-color: #777; }
.ganai-hero-arrow:hover { color: #111; background: #fff; border-color: #777; }
.ganai-hero-dots button:hover:not(.is-active) { background: #777; }
.hot-card:hover, .tool-card:hover, .api-card:hover, .wf-card:hover, .nw-top:hover, .feed-item:hover { box-shadow: 0 3px 16px rgb(0 0 0 / 10%); }
.lb-table td.col-active-cell { background: rgb(0 0 0 / 4%); }
.nw-cover:not(.has-img) { background: linear-gradient(135deg, #242424, #606060); }
body.page-id-68 .um input[type="submit"].um-button, body.page-id-69 .um input[type="submit"].um-button { color: var(--accent-fill-text) !important; background: var(--accent-fill) !important; border-color: var(--accent-fill) !important; }
body.page-id-68 .um input[type="submit"].um-button:hover, body.page-id-69 .um input[type="submit"].um-button:hover { color: var(--accent-fill-text) !important; background: var(--accent-fill-hover) !important; border-color: var(--accent-fill-hover) !important; }
body.page-id-68 .um a.um-button.um-alt:hover { color: var(--text) !important; background: var(--accent-soft) !important; border-color: var(--accent-border) !important; }
.member-comments__signin, .member-comments__closed { background: var(--accent-soft); }
.topbar-member-account:hover { color: var(--text); border-color: var(--accent-border); background: var(--accent-soft); }
.topbar-member-logout:hover { color: var(--text); }
.member-comment-form .ganai-emoji-toggle:hover { color: var(--text); border-color: var(--accent-border); background: var(--accent-soft); }
.member-comment-form .ganai-emoji-toggle[aria-expanded="true"] { color: var(--accent-fill-text); border-color: var(--accent-fill); background: var(--accent-fill); }
.member-comment-form .ganai-emoji-item:hover { background: var(--accent-soft); }
.code-box, .art-body pre { color: #f2f2f2; background: #1d1d1d; }
.code-copy { color: #e0e0e0; background: #333; border-color: #666; }
.code-copy:hover { color: #fff; background: #4a4a4a; }
.gpu-a10, .gpu-c4, .pct-learn, .pct-4 { color: #3a3a3a; background: #eeeeee; }
.ganai-demo-tool-icon.tone-1 { background: #292929; }
.ganai-demo-tool-icon.tone-2 { background: #444; }
.ganai-demo-tool-icon.tone-3 { background: #555; }
.ganai-demo-tool-icon.tone-4 { background: #666; }
.ganai-demo-tool-icon.tone-5 { background: #777; }
:where(.site-header, .main, .page-home, .site-footer, .announce) :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--text) !important; outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .announce { color: #d0d0d0; background: #252525; border-color: #393939; }
  :root:not([data-theme="light"]) .announce a { color: #fff; }
  :root:not([data-theme="light"]) .lb-table td.col-active-cell { background: rgb(255 255 255 / 6%); }
  :root:not([data-theme="light"]) :is(.gpu-a10, .gpu-c4, .pct-learn, .pct-4) { color: #e0e0e0; background: #353535; }
}
:root[data-theme="dark"] .announce { color: #d0d0d0; background: #252525; border-color: #393939; }
:root[data-theme="dark"] .announce a { color: #fff; }
:root[data-theme="dark"] .lb-table td.col-active-cell { background: rgb(255 255 255 / 6%); }
:root[data-theme="dark"] :is(.gpu-a10, .gpu-c4, .pct-learn, .pct-4) { color: #e0e0e0; background: #353535; }
/* Neutralize only the legacy violet generated letter-avatar; uploaded logos retain their own colors. */
.avatar[style*="#6d4de6"]:not(.has-img) { color: var(--text) !important; background: var(--accent-bg) !important; }
/* Individual Open API and workflow descriptions. */
.api-card, .wf-card { position: relative; }
.wf-card { cursor: pointer; }
.resource-card-detail-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.resource-card-detail-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.api-card-footer, .wf-link, .api-models-row { position: relative; z-index: 2; }
.resource-detail { padding-bottom: 64px; }
.resource-detail-hero { display: flex; align-items: flex-start; gap: 20px; padding: 28px; }
.resource-detail-hero .api-logo, .resource-detail-hero .wf-logo { width: 64px; height: 64px; font-size: 32px; }
.resource-detail-intro { min-width: 0; flex: 1; }
.resource-detail-kicker { margin: 0 0 5px; color: var(--text-3); font-size: 13px; }
.resource-detail-title { margin: 0 0 10px; color: var(--text); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; }
.resource-detail-summary { margin: 0; color: var(--text-2); line-height: 1.7; }
.resource-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.resource-detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.resource-detail-fact { padding: 16px 18px; }
.resource-detail-fact span { display: block; margin-bottom: 7px; color: var(--text-3); font-size: 12px; }
.resource-detail-fact strong { color: var(--text); font-size: 16px; overflow-wrap: anywhere; }
.resource-detail-section { margin-top: 18px; padding: 24px 28px; }
.resource-detail-section h2 { margin: 0 0 16px; font-size: 20px; }
.resource-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.resource-detail-tags span { border: 1px solid var(--border); border-radius: 5px; background: var(--bg-2); padding: 5px 9px; font-size: 13px; }
.resource-detail-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-detail-data div { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.resource-detail-data span { display: block; margin-bottom: 5px; color: var(--text-3); font-size: 12px; }
.resource-detail-data strong { color: var(--text); overflow-wrap: anywhere; }
.resource-detail-code { display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; background: var(--bg-2); }
@media (max-width: 800px) { .resource-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .resource-detail-data { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .resource-detail-hero { padding: 20px; gap: 12px; } .resource-detail-hero .api-logo, .resource-detail-hero .wf-logo { width: 48px; height: 48px; font-size: 24px; } .resource-detail-facts, .resource-detail-data { grid-template-columns: 1fr; } .resource-detail-section { padding: 20px; } }
/* Keep API facts and short lists balanced without affecting workflow pages. */
body.single-ai_api .resource-detail-facts { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
body.single-ai_api .resource-detail-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
body.single-ai_api .resource-detail-panels.has-both { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
body.single-ai_api .resource-detail-panels .resource-detail-section { margin-top: 0; padding: 22px 24px; }
body.single-ai_api .resource-detail-tags span { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 800px) { body.single-ai_api .resource-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.single-ai_api .resource-detail-panels.has-both { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { body.single-ai_api .resource-detail-facts { grid-template-columns: minmax(0, 1fr); } }
/* News detail: one centered reading column without a right sidebar. */
body.single-ai_news .news-article-layout {
  width: min(100%, 960px);
  margin-inline: auto;
}
