:root {
  --pink: #ff6b9d;
  --pink-soft: #ffe4f0;
  --ink: #2b2430;
  --muted: #756b78;
  --card: #ffffff;
  --line: #f2c7d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--pink-soft);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; color: var(--pink); }
.brand-logo-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: 56px;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.brand-logo--hover {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
}
.brand:hover .brand-logo--default { opacity: 0; transform: scale(0.98); }
.brand:hover .brand-logo--hover { opacity: 1; transform: scale(1.02); }
.site-nav { display: flex; gap: 34px; justify-content: center; align-items: center; }
.site-nav a {
  position: relative;
  color: #333333cc;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 0;
}
.site-nav a:hover { color: var(--pink); }
.site-nav a.active { color: #ff6b9d; font-weight: 800; }
.nav-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 20;
  padding: 5px 10px;
  color: var(--pink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 107, 157, 0.16);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.site-nav a:hover .nav-tooltip,
.site-nav a:focus-visible .nav-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.social-links { display: flex; gap: 10px; }
.social-links a, .social-links button, .icon-button { width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); cursor: pointer; }
.social-links svg, .icon-button svg { width: 18px; height: 18px; fill: none; stroke: var(--pink); stroke-width: 1.8; }
[data-wechat-btn] svg { fill: var(--pink); stroke: none; }
.mobile-tabbar { display: none; }
.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: start center;
  padding: 86px 18px 18px;
  background: rgba(43, 36, 48, 0.26);
}
.subscribe-modal.open { display: grid; }
.subscribe-modal-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(255, 107, 157, 0.22);
}
.subscribe-modal-card input, .subscribe-modal-card button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: inherit;
}
.subscribe-modal-card input {
  padding: 0 16px;
  background: #fff7fb;
  border: 1px solid var(--line);
  outline: none;
}
.subscribe-modal-card button {
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.subscribe-modal-card p { min-height: 20px; margin: 0; text-align: center; color: var(--muted); }
.subscribe-modal-card p.ok { color: #3c8f62; }
.subscribe-modal-card p.error { color: #c23b55; }

main { padding: 0 clamp(16px, 5vw, 64px) 48px; }
.hero { min-height: auto; padding: 32px 0; }
.hero-img { width: min(1120px, 100%); margin: 0 auto; aspect-ratio: 16/5; background: url('/static/images/xiaobai-hero.png') center/contain no-repeat; }
h1 { margin: 0; font-size: clamp(30px, 6vw, 58px); line-height: 1.08; letter-spacing: 0; }
h2 { margin: 0; font-size: 24px; }
.pill-button { background: var(--pink); color: #fff; border: 0; padding: 12px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; }

/* ── Breadcrumb ── */
.breadcrumb {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
.breadcrumb-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb-nav a:hover { color: var(--pink); }
.breadcrumb-sep { margin: 0 5px; font-weight: 400; opacity: 0.45; font-size: 11px; }
.breadcrumb-desc { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.diff-filter-prefix {
  flex-shrink: 0;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}
.diff-hint {
  flex: 0 1 auto;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.diff-hint[hidden] { display: none; }

.section, .page-head, .about-panel, .coming-soon { width: min(1120px, 100%); margin: 0 auto 42px; }
.tip-strip {
  width: min(660px, 100%);
  min-height: 48px;
  margin: -8px auto 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  overflow: hidden;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.12);
  backdrop-filter: blur(10px);
}
.breadcrumb .tip-strip {
  flex: 1;
  max-width: 560px;
  margin: 0 0 0 auto;
}
.nav-content > .tip-strip,
.price-content > .tip-strip {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
}
.tip-strip-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
}
.tip-strip-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tip-strip-text {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 700;
}
.tip-strip--rolling .tip-strip-text {
  max-width: none;
  padding-right: 40px;
  animation: tipTextDrift var(--tip-roll-duration, 8s) linear 2s infinite alternate;
}
.tip-strip:hover .tip-strip-text {
  animation-play-state: paused;
}
.tip-strip-like,
.tip-strip-next {
  flex-shrink: 0;
  height: 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.tip-strip-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 9px;
  color: var(--pink);
  background: #fff;
}
.tip-strip-like.is-liked {
  background: var(--pink);
  color: #fff;
}
.tip-strip-next {
  width: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pink);
}
.tip-strip-next-icon {
  font-size: 15px;
  line-height: 1;
}
.tip-ranking {
  margin-top: -16px;
  margin-bottom: 34px;
}
.tip-ranking-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tip-ranking-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.tip-ranking-index {
  flex-shrink: 0;
  color: var(--pink);
  font-weight: 900;
}
.tip-ranking-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tip-ranking-text-inner {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}
.tip-ranking-text--rolling .tip-ranking-text-inner {
  max-width: none;
  padding-right: 28px;
  animation: tipTextDrift var(--tip-roll-duration, 8s) linear infinite alternate;
}
.tip-ranking-list li:hover .tip-ranking-text-inner {
  animation-play-state: paused;
}
.tip-ranking-likes {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--pink);
}
@keyframes tipTextDrift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--tip-roll-distance, 120px))); }
}
.page-banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  margin-bottom: 18px;
}
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  line-height: 1.5;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.section-more::after {
  content: "→";
  font-size: 13px;
}
.section-more:hover {
  color: var(--pink);
  border-color: rgba(255, 107, 157, 0.46);
  transform: translateX(2px);
}
.section-heading-pill,
.section-action-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s, transform 0.15s;
}
.section-action-link {
  padding: 8px 24px;
  font-size: 14px;
}
.section-action-link:hover { color: var(--pink); transform: translateY(-1px); }
.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card-grid[hidden] { display: none !important; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.comic-card, .entry-card, .tool-card, .empty-card, .about-panel, .coming-soon {
  position: relative;
  padding: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 107, 157, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(255, 107, 157, 0.11);
}
.comic-card { cursor: pointer; display: grid; gap: 8px; }
.comic-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 8px; background: var(--pink-soft); }
.comic-card strong, .entry-card strong, .tool-card strong { color: var(--pink); }
.comic-card span, .entry-card span { color: var(--muted); }
.entry-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  padding-right: 42%;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 107, 157, 0.17);
}
.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: calc(100% + 10px) center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  transition: background-position 0.16s ease;
}
.entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255, 255, 255, 0.82) 58%, rgba(255, 255, 255, 0) 100%);
}
.entry-card:hover::before {
  background-position: calc(100% + 4px) center;
}
.entry-card strong, .entry-card span {
  position: relative;
  z-index: 1;
}
.entry-card--comics::before { background-image: url('/static/images/home/home-entry-comics.webp?v=20260524-1938'); }
.entry-card--nav::before { background-image: url('/static/images/home/home-entry-nav.webp?v=20260524-1938'); }
.entry-card--quiz::before { background-image: url('/static/images/home/home-entry-quiz.webp?v=20260524-1938'); }
.entry-card--aihot::before { background-image: url('/static/images/home/home-entry-aihot.webp?v=20260524-1938'); }
.entry-card--tools::before { background-image: url('/static/images/home/home-entry-tools.webp?v=20260524-1938'); }
.entry-card--leaderboard::before { background-image: url('/static/images/home/home-entry-leaderboard.webp?v=20260524-1938'); }
.quiz-section {
  margin-bottom: 42px;
}
.quiz-frame {
  position: relative;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  background: #fffafc;
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(255, 107, 157, 0.11);
}
#quiz-root {
  width: 100%;
  min-width: 0;
  overflow-x: visible;
}
#quiz-root *,
#quiz-root *::before,
#quiz-root *::after {
  box-sizing: border-box;
}
.page-head { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-head h1, .coming-soon h1, .about-panel h1 {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
.page-head > div { flex: 1; min-width: 0; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.page-banner { width: min(100%, 720px); max-height: 180px; object-fit: contain; margin-bottom: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 10050; display: none; place-items: center; padding: 24px 72px; background: rgba(30, 20, 28, 0.86); }
.lightbox.open { display: grid; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox p { color: #fff; font-weight: 800; }
.lightbox-close { position: absolute; top: 18px; right: 24px; border: 0; background: #fff; color: var(--pink); border-radius: 50%; width: 42px; height: 42px; font-size: 28px; cursor: pointer; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
body.lightbox-open .mobile-tabbar,
body.lightbox-open .floating-actions { display: none; }
/* ── Nav page layout ── */
.nav-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 20px;
  align-items: start;
}
.nav-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px;
}
.sidebar-search-box {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 4px;
}
.sidebar-search-box .price-sidebar-search {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border-color: var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}
.nav-mobile-search { display: none; }
.nav-search-hint {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 6px 0;
  font-weight: 500;
}
.nav-search-empty {
  border: 1px dashed rgba(255, 107, 157, 0.45);
  border-radius: 14px;
  background: rgba(255, 248, 251, 0.92);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}
.nav-search-empty[hidden] { display: none !important; }
.nav-search-empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}
.nav-search-empty span {
  display: block;
  font-size: 13px;
}
.nav-sidebar button {
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-sidebar button:hover { background: var(--pink-soft); color: var(--ink); }
.nav-sidebar button.active { background: var(--pink-soft); color: var(--pink); font-weight: 800; }
.sidebar-collections button,
.sidebar-leaderboard button { padding: 6px 14px; font-size: 12px; }
.nav-sidebar.dim button:not(.active) { opacity: 0.38; pointer-events: none; }


.nav-content { min-width: 0; }
.nav-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}
.sidebar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.sidebar-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transition: transform 0.2s, opacity 0.2s;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43, 36, 48, 0.45);
  z-index: 999;
}
.diff-filter-label { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.diff-bar { display: flex; flex-wrap: nowrap; gap: 6px; }
.diff-bar button {
  border: 1.5px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.diff-bar button.active                    { background: var(--pink);  color: #fff; border-color: var(--pink);  }
.diff-bar button[data-diff="easy"].active  { background: #43aa8b;      color: #fff; border-color: #43aa8b;      }
.diff-bar button[data-diff="medium"].active{ background: #f9844a;      color: #fff; border-color: #f9844a;      }
.diff-bar button[data-diff="hard"].active  { background: #e05252;      color: #fff; border-color: #e05252;      }

.card-cat-tag { display: none; }

/* ── Tool groups ── */
.tool-groups { display: grid; gap: 10px; }
.tool-groups .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  margin-bottom: 18px;
}

/* ── Subcategory + difficulty tab bar ── */
.subcat-bar-row {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 18px;
}
.tool-group + .tool-group .subcat-bar-row {
  margin-top: 8px;
}
.subcat-bar {
  display: flex;
  align-items: center;
  background: #fcc8df;
  border: none;
  border-radius: 999px;
  padding: 3px 4px;
  gap: 0;
  flex: 1;
  justify-content: space-between;
}
.subcat-bar-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subcat-bar-left::-webkit-scrollbar { display: none; }
.subcat-tab {
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.subcat-tab:hover { background: var(--pink-soft); color: var(--pink); }
.subcat-tab.active { background: var(--pink); color: #fff; }
.rank-source-note {
  flex: 0 0 auto;
  margin-left: 12px;
  padding-right: 14px;
  color: rgba(117, 107, 120, 0.72);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

/* ── Global difficulty filter dots ── */
.diff-global-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.diff-global-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid;
  cursor: pointer;
  padding: 0;
  background: transparent;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}
.diff-global-btn:hover { transform: scale(1.2); }
.diff-global-btn[data-diff="all"]    { border-color: #888; }
.diff-global-btn[data-diff="easy"]   { border-color: #43aa8b; }
.diff-global-btn[data-diff="medium"] { border-color: #f9844a; }
.diff-global-btn[data-diff="hard"]   { border-color: #e05252; }
.diff-global-btn[data-diff="all"].active    { background: #888;    border-color: #888; }
.diff-global-btn[data-diff="easy"].active   { background: #43aa8b; border-color: #43aa8b; }
.diff-global-btn[data-diff="medium"].active { background: #f9844a; border-color: #f9844a; }
.diff-global-btn[data-diff="hard"].active   { background: #e05252; border-color: #e05252; }

.subcat-panel { display: grid; gap: 0; }
.subcat-panel[hidden] { display: none; }
.tool-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.card-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tool-card img, .tool-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; object-fit: contain; display: grid; place-items: center; color: var(--pink); font-weight: 900; flex-shrink: 0; }
.tool-icon-letter { color: #fff; font-size: 22px; background: var(--pink); }
.card-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tool-card strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.tool-card .card-info > span { font-size: 12px; color: var(--muted); }
.card-bottom { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.card-meta--primary { flex-wrap: nowrap; }
.meta-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 10px; padding: 1px 7px; border-radius: 999px; background: #f0eef5; color: var(--muted); font-weight: 700; line-height: 1.7; white-space: nowrap; }
.meta-tag { min-width: 0; flex-shrink: 1; }
.meta-tag--free { background: #e4f5ed; color: #2d6a4f; }
.meta-tag--tip  { background: #e4f5ed; color: #2d6a4f; }
.meta-tag--paid { background: #fdecea; color: #8b2635; }

/* ── Difficulty popover ── */
.diff-popover {
  position: absolute;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 28px rgba(43,36,48,0.13);
  min-width: 160px;
  max-width: 220px;
  pointer-events: none;
}
.diff-popover-title { font-weight: 800; color: var(--ink); font-size: 12px; margin-bottom: 7px; }
.diff-popover ul { margin: 0; padding: 0 0 0 14px; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.diff-popover-note { margin: 0; color: var(--muted); font-size: 12px; }

/* ── Difficulty & VPN badges ── */
.card-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
  align-items: center;
  z-index: 1;
}
.diff-badge {
  width: 10px;
  height: 10px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  line-height: 1;
}
.diff-badge.diff-easy   { background: #43aa8b; }
.diff-badge.diff-medium { background: #f9844a; }
.diff-badge.diff-hard   { background: #e05252; }
.coming-soon { min-height: 50vh; display: grid; place-items: center; align-content: center; text-align: center; }
.coming-soon .page-banner { width: min(1120px, 100%); }
.about-panel { margin-top: 42px; line-height: 1.8; }
.not-found-img { width: min(320px, 80vw); }
.site-footer { text-align: center; padding: 28px; color: var(--muted); }
.floating-actions {
  position: fixed;
  right: 10px;
  bottom: 84px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.floating-action {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pink);
  box-shadow: 0 8px 22px rgba(43, 36, 48, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.floating-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.floating-action--scroll-top {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: opacity 0.2s ease, background 0.2s ease;
  box-shadow: none;
  color: var(--pink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.floating-action--nav-toggle {
  display: none;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--pink);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.floating-action--nav-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.floating-action--nav-toggle {
  align-content: center;
  justify-items: center;
  gap: 3px;
}
body.is-scrolled .floating-action--scroll-top {
  opacity: 1;
  pointer-events: auto;
}
body.is-scrolled .floating-action--scroll-top:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  body { overflow-x: clip; }
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    backdrop-filter: none;
  }
  .brand span { white-space: nowrap; }
  .site-nav { display: none; }
  .comic-card:nth-child(n+2) { display: none; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .entry-card { min-height: 78px; padding: 10px 12px; gap: 4px; }
  .entry-card strong { font-size: 14px; }
  .entry-card span { font-size: 12px; }
  .social-links { justify-content: end; }
  .social-links a, .social-links button, .icon-button { width: 30px; height: 30px; }
  main { padding-bottom: 108px; }
  .site-footer { padding-bottom: 88px; }
  .mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(43, 36, 48, 0.06);
  }
  .mobile-tab {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    color: #333333cc;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
  }
  .mobile-tab.active { color: #ff6b9d; }
  .mobile-tab.disabled { color: #bbbbbb; }
  .mobile-tab svg { width: 28px; height: 28px; display: block; }
  .tab-label { display: block; white-space: nowrap; }
  .mobile-tab:not(:has(svg)) { font-size: 14px; }
  .tab-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    max-width: 46px;
    padding: 1px 3px;
    border-radius: 999px;
    background: #f3f0f2;
    color: #999;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    transform: scale(0.9);
    transform-origin: right top;
  }
  .hero { min-height: auto; padding: 24px 0; }
  .hero-img { width: 100%; aspect-ratio: 16/5; }
  .tip-strip {
    width: 100%;
    margin: -4px auto 24px;
    border-radius: 18px;
  }
  .breadcrumb {
    flex-wrap: wrap;
    gap: 12px;
  }
  .comic-breadcrumb-nav { display: none; }
  .breadcrumb .tip-strip {
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }
  .tip-strip-next { width: 34px; }
  .tip-ranking-list {
    grid-template-columns: 1fr;
  }
  .nav-content > .tip-strip,
  .price-content > .tip-strip {
    margin: 0 0 12px;
  }
  .page-head { flex-direction: column; align-items: stretch; }
  .filter-row { flex-direction: column; gap: 8px; }
  .diff-bar { flex-wrap: wrap; }
  .nav-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: max-content;
    min-width: 160px;
    max-width: 72vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    border-left: none;
    padding: 24px 12px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
  }
  .nav-sidebar.open { transform: translateX(0); }
  .nav-sidebar .sidebar-search-box { display: none; }
  .nav-mobile-search { display: block; }
  .nav-mobile-search .price-sidebar-search {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
  }
  .sidebar-backdrop.open { display: block; }
  .sidebar-toggle { display: flex; }
  .floating-actions {
    bottom: 140px;
  }
  body.has-nav-sidebar .floating-action--nav-toggle {
    display: grid;
  }
  body.has-nav-sidebar.nav-trigger-hidden .floating-action--nav-toggle {
    opacity: 1;
    pointer-events: auto;
  }
  /* Prevent horizontal overflow on mobile */
  .nav-content { overflow-x: hidden; }
  .subcat-bar { max-width: 100%; }
  .tool-group { min-width: 0; }
  .tool-groups .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tool-card { padding: 12px; }
  .card-top { gap: 10px; }
  .card-meta--primary { gap: 3px; overflow: hidden; }
  .card-meta--primary .meta-tag {
    font-size: 9px;
    padding: 1px 5px;
    line-height: 1.65;
  }
  .tool-card img, .tool-icon { width: 48px; height: 48px; }
  .lightbox { padding: 18px 54px; }
  .lightbox img { max-height: 78vh; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 28px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── Tool detail modal ─────────────────────────────────────────────────────── */
.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(43, 36, 48, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.tool-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.tool-modal-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.tool-modal.open .tool-modal-card { transform: scale(1); }

.wechat-modal-card { max-width: 280px; width: auto; }
.wechat-modal-body { padding: 52px 28px 24px; text-align: center; }
.wechat-modal-id { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.wechat-modal-note { margin: 0; font-size: 13px; color: var(--muted); }

.tool-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  border: none;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(43,36,48,0.12);
}
.tool-modal-close:hover { background: var(--pink-soft); color: var(--pink); }

.tool-modal-body { padding: 24px 16px 20px; }

.tool-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tool-modal-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.tool-modal-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  border: 0;
  display: none;
}
.tool-modal-icon-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  background: var(--pink);
}
.tool-modal-icon-wrap[data-icon-state="image"] .tool-modal-icon-img { display: block; }
.tool-modal-icon-wrap[data-icon-state="letter"] .tool-modal-icon-letter { display: grid; }
.tool-modal-title-wrap { flex: 1; min-width: 0; }
.tool-modal-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.tool-modal-name-row h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-modal-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tool-modal-cat-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.tool-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.tool-modal-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  margin: 0 0 12px;
}

.tool-modal-detail-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: rgba(247,247,249,0.8);
  border-radius: 10px;
}

.tool-modal-tip { margin-bottom: 0; display: flex; justify-content: center; min-width: 0; }
.tool-modal-tip .meta-tag--tip { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; font-size: 13px; padding: 6px 14px; line-height: 1.5; text-align: left; }
.tool-modal-actions {
  display: flex;
  justify-content: center;
  margin: 16px -16px 0;
}

.tool-modal-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s;
  width: 60%;
  min-width: 220px;
  max-width: 100%;
  text-align: center;
}
.tool-modal-visit:hover { opacity: 0.85; }
.tool-modal-visit svg { stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Admin detail page styles */
.detail-meta-row { display: flex; align-items: center; gap: 14px; padding: 8px 0 16px; }
.detail-icon { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; }
.detail-icon-letter { width: 52px; height: 52px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 900; flex-shrink: 0; }
.detail-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.detail-screenshot-col, .detail-desc-col { display: flex; flex-direction: column; gap: 8px; }
.detail-screenshot-preview { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.detail-screenshot-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--pink-soft); border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.detail-file-input { font-size: 13px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.form-actions { border-top: 1px solid var(--line); padding-top: 16px; }
.small { font-size: 12px; }
.detail-btn { font-size: 12px; padding: 4px 10px; }
@media (min-width: 640px) {
  .tool-modal-card { max-width: 560px; }
  .tool-modal-body { padding: 20px 22px 24px; }
  .tool-modal-actions { margin-left: -22px; margin-right: -22px; }
  .tool-modal-name-row h2 { font-size: 18px; }
}
@media (max-width: 640px) {
  .detail-edit-grid { grid-template-columns: 1fr; }
  .tool-modal-card { border-radius: 16px; }
  .ithome-img { display: none !important; }
}

/* ── /tools/llm-rk 页面 ─────────────────────────────────────────────────── */

/* 即将上线的占位按钮 */

/* 即将上线的占位按钮 */
.llm-rk-src-coming {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.llm-rk-panel.hidden { display: none; }

.llm-rk-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── AI 排行榜 横版列表样式 ─────────────────────────────────────────────── */

/* 列表容器 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
}

/* ── 列头 & 行 基础样式 ───────────────────────────────────────────────── */
.rank-header,
.rank-row {
  display: grid;
  align-items: center;
  column-gap: 22px;
  padding: 4px 28px;
}

/* 默认（benchmark / LLM）：7列 */
.rank-header,
.rank-row {
  grid-template-columns: 46px 30px minmax(120px, 1fr) 82px 82px 82px 88px;
}

/* 图像 ELO：6列（排名|图标|模型|综合|质量|成本） */
.rank-list[data-score-type="image_elo"] .rank-header,
.rank-list[data-score-type="image_elo"] .rank-row {
  grid-template-columns: 46px 30px minmax(120px, 1fr) 86px 86px 86px;
}

/* 视频 ELO：6列（排名|图标|模型|文生视频|图生视频|热度） */
.rank-list[data-score-type="video_elo"] .rank-header,
.rank-list[data-score-type="video_elo"] .rank-row {
  grid-template-columns: 46px 30px minmax(120px, 1fr) 96px 96px 76px;
}

/* 列头样式 */
.rank-header {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  min-height: 18px;
  margin: -12px 0 2px;
  box-shadow: none;
}
.rank-header .rr-name {
  grid-column: 2 / 4;
  align-items: center;
  text-align: center;
  transform: translateX(-8px);
}
.rank-header .rr-rank,
.rank-header .rr-name,
.rank-header .rr-score,
.rank-header .rr-meta-cell,
.rank-header .rr-price {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}
.rank-header .rr-rank { text-align: center; }
.rank-header .rr-score,
.rank-header .rr-meta-cell,
.rank-header .rr-price { text-align: right; }

/* 数据行样式 */
.rank-row {
  color: var(--ink);
  border: 1px solid rgba(242, 199, 216, 0.75);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(43, 36, 48, 0.035);
  min-height: 34px;
  margin-block: 2px;
}
.rank-row[hidden] { display: none !important; }

/* 排名数字 */
.rr-rank {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  flex-shrink: 0;
}
.rr-rank--top { color: #c07a00; }

/* 图标 */
.rr-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(242, 199, 216, 0.65);
}
.rank-row .rr-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
  background: transparent;
}
.rank-row .rr-icon-img--light {
  filter: brightness(0) invert(1);
}
.rr-icon-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 名称列 */
.rr-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.rr-name-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.rr-name-row {
  display: flex;
  align-items: baseline;
  min-width: 0;
}
.rr-company {
  font-size: 10px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 评分数字 */
.rr-score {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.rr-score--elo {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.rr-score--t2v {
  color: var(--muted);
  font-weight: 400;
}
.rr-score--i2v {
  color: var(--muted);
  font-weight: 400;
}
.rr-score.rr-header,
.rr-price.rr-header {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* 上下文 / 价格列 */
.rr-meta-cell {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.rr-price {
  color: var(--muted);
  font-weight: 400;
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
.rr-meta-cell.rr-header {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* 展开/收起按钮 */
.rank-expand-btn {
  display: block;
  width: 100%;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(242, 199, 216, 0.75);
  border-radius: 12px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s;
  letter-spacing: 0;
  margin-top: 2px;
  margin-bottom: 6px;
}
.rank-expand-btn[hidden] {
  display: none !important;
}
.rank-expand-btn:hover {
  background: #fff;
  border-color: rgba(255, 107, 157, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .rank-source-note {
    font-size: 9px;
    padding-right: 10px;
  }
  .rank-list[data-score-type="benchmark"] .rank-header,
  .rank-list[data-score-type="benchmark"] .rank-row,
  .rank-list[data-score-type="llm_main"] .rank-header,
  .rank-list[data-score-type="llm_main"] .rank-row {
    grid-template-columns: 28px 24px minmax(120px, 1fr) 54px 54px 54px 58px;
    column-gap: 10px;
    padding: 5px 14px;
  }
  .rank-list[data-score-type="image_elo"] .rank-header,
  .rank-list[data-score-type="image_elo"] .rank-row {
    grid-template-columns: 28px 24px minmax(130px, 1fr) 66px 66px 50px;
    column-gap: 10px;
    padding: 5px 14px;
  }
  .rank-list[data-score-type="video_elo"] .rank-header,
  .rank-list[data-score-type="video_elo"] .rank-row {
    grid-template-columns: 28px 24px minmax(130px, 1fr) 66px 66px 50px;
    column-gap: 10px;
    padding: 5px 14px;
  }
}

/* 移动端：保留所有列，压缩尺寸 */
@media (max-width: 680px) {
  /* LLM benchmark / llm_main：7列全显 */
  .rank-list[data-score-type="benchmark"] .rank-header,
  .rank-list[data-score-type="benchmark"] .rank-row,
  .rank-list[data-score-type="llm_main"] .rank-header,
  .rank-list[data-score-type="llm_main"] .rank-row {
    grid-template-columns: 24px 18px minmax(60px, 1fr) repeat(4, minmax(28px, auto)) !important;
    column-gap: clamp(2px, 1vw, 5px);
    padding: 4px 8px;
  }
  /* 图像 ELO：6列全显 */
  .rank-list[data-score-type="image_elo"] .rank-header,
  .rank-list[data-score-type="image_elo"] .rank-row {
    grid-template-columns: 24px 18px minmax(70px, 1fr) repeat(3, minmax(28px, auto)) !important;
    column-gap: clamp(2px, 1vw, 5px);
    padding: 4px 8px;
  }
  /* 视频 ELO：6列全显 */
  .rank-list[data-score-type="video_elo"] .rank-header,
  .rank-list[data-score-type="video_elo"] .rank-row {
    grid-template-columns: 24px 18px minmax(70px, 1fr) repeat(3, minmax(28px, auto)) !important;
    column-gap: clamp(2px, 1vw, 5px);
    padding: 4px 8px;
  }
  .rank-source-note {
    flex: 0 0 auto;
    margin-left: 4px;
    padding-right: 6px;
    font-size: 8px;
  }
  /* 默认兜底（无 data-score-type）*/
  .rank-header,
  .rank-row {
    column-gap: clamp(2px, 1vw, 5px);
    padding: 4px 8px;
  }
  /* 所有分数字体缩小 */
  .rank-list { gap: 0; }
  .rank-row {
    min-height: 34px;
    margin-block: 2px;
    border-radius: 9px;
  }
  .rank-header {
    min-height: 18px;
    margin: -6px 0 2px;
    border-radius: 0;
    font-size: 9px;
    letter-spacing: 0;
  }
  .rank-header .rr-name {
    grid-column: 2 / 4;
    align-items: center;
    text-align: center;
    transform: translateX(-6px);
  }
  .rr-icon {
    width: 18px;
    height: 18px;
  }
  .rr-score, .rr-meta-cell, .rr-price { font-size: 9px; }
  .rr-score--elo, .rr-score--t2v, .rr-score--i2v { font-size: 9px; }
  .rr-rank { font-size: 9px; }
  .rr-name-text { font-size: 10px; }
  .rr-company { font-size: 8px; }

  /* subcat tab 移动端压缩 */
  .subcat-tab {
    padding: 3px 8px;
    font-size: 10px;
  }
}

/* 评分标签 */
.meta-tag--score {
  background: linear-gradient(135deg, #fff0f6, #ffe4f0);
  color: var(--primary, #ff6b9d);
  border: 1px solid rgba(255, 107, 157, 0.25);
  font-weight: 700;
}
/* 公司标签（弹窗用） */
.meta-tag--company {
  background: rgba(247,247,249,0.9);
  color: var(--muted);
  border: 1px solid var(--line);
}
/* 价格标签 */
.meta-tag--price {
  background: #edfaf2;
  color: #2a7a4f;
  border: 1px solid #b6e8cc;
  font-weight: 700;
}

.price-tool {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 80px;
}
.tool-hub {
  width: min(1180px, 100%);
  margin: 0px auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.tool-entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: auto;
  padding: 22px 24px;
  border: 1px solid rgba(255, 107, 157, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(255, 107, 157, 0.12);
}
@media (max-width: 620px) {
  .tool-hub { grid-template-columns: 1fr; }
}

.tool-entry-card strong {
  font-size: 20px;
}

.tool-entry-card span {
  color: var(--muted);
  line-height: 1.55;
}

.price-board {
  padding: 18px 24px 28px;
  border: 1px solid rgba(255, 107, 157, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 230, 241, 0.92), rgba(255, 238, 246, 0.84));
  box-shadow: 0 18px 50px rgba(255, 107, 157, 0.13);
}

.price-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  margin-bottom: 12px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 182, 213, 0.56);
  overflow-x: auto;
}

.price-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #766a7c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.price-tab.active {
  background: #ff5f9a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 95, 154, 0.25);
}

.price-tab em,
.price-panel-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0076b8;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.price-tab.active em {
  color: #ff5f9a;
}

.price-source {
  margin-left: auto;
  padding-right: 20px;
  color: #8a7c91;
  font-size: 13px;
  white-space: nowrap;
}

.price-panel {
  display: none;
}

.price-panel.active {
  display: block;
}

.price-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 64px 10px;
  color: var(--ink);
}

.price-panel-title div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.price-panel-title strong,
.price-panel-title b {
  font-size: 18px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: 84px minmax(220px, 1fr) minmax(150px, 0.8fr) minmax(110px, 0.6fr) 86px;
  align-items: center;
  column-gap: 22px;
  min-height: 56px;
  padding: 0 42px;
  border: 1px solid rgba(255, 182, 213, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #746b78;
}

.price-row--head {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: #7b6d82;
  font-size: 13px;
  font-weight: 700;
}

.price-row--lowest {
  background: rgba(239, 255, 246, 0.9);
  border-color: rgba(62, 190, 112, 0.22);
}

.price-rank {
  font-weight: 800;
}

.price-region {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.price-region strong {
  overflow: hidden;
  color: #2d2832;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.price-original {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
}

.price-cny {
  color: #14111a;
  font-weight: 800;
  text-align: right;
}

.price-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #d7f8df;
  color: #108a3a;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.price-empty {
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 760px) {
  .price-board {
    padding: 12px;
    border-radius: 20px;
  }
  .price-tabs {
    border-radius: 18px;
  }
  .price-source {
    display: none;
  }
  .price-panel-title {
    padding: 10px 8px;
  }
  .price-row {
    grid-template-columns: 42px minmax(88px, 1fr) minmax(88px, 0.8fr) minmax(70px, 0.6fr);
    gap: 8px;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 12px;
  }
  .price-row > span:last-child {
    display: none;
  }
  .price-row--head {
    min-height: 28px;
  }
  .price-flag {
    display: none;
  }
}

.price-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.price-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 107, 157, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 230, 241, 0.92), rgba(255, 238, 246, 0.84));
  box-shadow: 0 14px 36px rgba(255, 107, 157, 0.1);
}
.price-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.tools-grid .price-app-button {
  min-height: 90px;
  padding: 16px 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tools-grid .price-app-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 107, 157, 0.17);
}

.tools-grid .price-app-copy {
  gap: 6px;
}

.tools-grid .price-app-lowest-price {
  color: var(--pink);
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.tools-card {
  grid-template-columns: 52px minmax(0, 1fr);
}
.price-app-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-app-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.price-app-button:hover,
.price-app-button.active {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(242, 199, 216, 0.9);
  transform: translateY(-1px);
}

.price-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
}

.price-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.price-app-icon span {
  font-weight: 800;
  color: var(--pink);
}

.price-app-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-app-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-app-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-content {
  min-width: 0;
  padding: 14px 0 0;
  border: 1px solid rgba(255, 107, 157, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 230, 241, 0.92), rgba(255, 238, 246, 0.84));
  box-shadow: 0 14px 36px rgba(255, 107, 157, 0.1);
}

.price-plan-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: 0 14px 12px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 182, 213, 0.58);
  overflow-x: auto;
}

.price-plan-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.price-plan-tab.active {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.26);
}

.price-rank-list {
  padding: 0 14px 14px;
  gap: 8px;
}

.price-rank-list .price-cny {
  color: var(--muted);
}

@media (max-width: 860px) {
  .price-layout {
    grid-template-columns: 1fr;
  }
  .price-app-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .price-app-sidebar {
    grid-template-columns: 1fr;
  }
  .price-rank-list .rank-header,
  .price-rank-list .rank-row {
    grid-template-columns: 42px minmax(90px, 1fr) minmax(88px, 0.7fr) minmax(66px, 0.5fr);
    column-gap: 8px;
    padding-inline: 12px;
  }
  .price-plan-tabs {
    border-radius: 16px;
  }
}

/* App price page: align with nav/quiz content width and leaderboard rows. */
.price-tool {
  width: min(1120px, 100%);
  margin: 0 auto 80px;
}

.price-layout {
  width: 100%;
  grid-template-columns: max-content minmax(0, 1fr);
}

.price-sidebar-stack {
  width: 260px;
}

.price-app-sidebar,
.price-app-sidebar-inner {
  width: 260px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  box-shadow: none;
  box-sizing: border-box;
}

.price-app-sidebar-inner {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-app-button {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 58px;
  width: 100%;
  max-width: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.price-app-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.price-content {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.price-plan-tabs.subcat-bar {
  max-width: 100%;
  min-height: 0;
  margin: 0 0 10px;
  padding: 3px 4px;
  gap: 0;
  border-radius: 999px;
  background: #fcc8df;
  overflow: hidden;
}

.price-plan-tabs .subcat-bar-left {
  overflow-x: auto;
}

.price-plan-tab.subcat-tab {
  min-height: 0;
  padding: 5px 14px;
  font-size: 12px;
  box-shadow: none;
}

/* ── Sidebar region search ── */
.price-sidebar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 5px 8px;
  border: 1px solid rgba(242,199,216,0.8);
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  min-width: 0;
}
.price-sidebar-search .search-icon {
  flex-shrink: 0;
  color: var(--muted);
}
.sidebar-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 11px;
  color: var(--ink);
  outline: none;
  padding: 2px 0;
  font-weight: 500;
}
.sidebar-search-input::-webkit-search-cancel-button { display: none; }
.search-clear-btn[hidden] { display: none !important; }
.sidebar-search-input:placeholder-shown + .search-clear-btn { display: none !important; }
.sidebar-search-input::placeholder { color: var(--muted); }
.search-clear-btn {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: none; background: none;
  color: var(--muted); font-size: 12px;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.search-clear-btn:hover { color: var(--pink); }
.nav-sidebar .search-clear-btn {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}
.nav-sidebar .search-clear-btn:hover {
  background: transparent;
  color: var(--pink);
}
.nav-sidebar .search-clear-btn[hidden] { display: none !important; }

/* ── Price list meta bar ── */
.price-list-meta-bar {
  display: block;
  min-height: 34px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 211, 231, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
}
.price-list-meta-default {
  display: grid;
  align-items: center;
  min-height: 34px;
}
.price-list-meta-bar.is-filtering .price-list-meta-default {
  display: none;
}
.price-list-meta-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 26px;
  color: var(--pink);
  font-weight: 400;
}
.price-list-meta-bar .rr-rank { text-align: center; font-weight: 400; }
.price-list-meta-bar .rr-name { font-weight: 400; }
.price-list-meta-bar .rr-score,
.price-list-meta-bar .rr-price { text-align: right; }
.price-list-meta-filter[hidden] { display: none !important; }
.region-filter-clear {
  width: 18px; height: 18px;
  border: none; background: none;
  color: var(--pink); font-size: 13px;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ── Search-hidden (separate from collapse hidden) ── */
.price-rank-row.search-hidden { display: none !important; }

.price-stale-warning {
  font-size: 11px;
  color: #b45309;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.price-source {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 12px;
  padding-right: 14px;
  color: rgba(117, 107, 120, 0.72);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.price-rank-list {
  padding: 0;
  gap: 0;
}

.price-rank-list .rank-header,
.price-rank-list .rank-row,
.price-list-meta-default {
  grid-template-columns: 64px minmax(170px, 1fr) 220px 160px;
  column-gap: 18px;
  padding: 4px 26px;
}

.price-rank-list .rank-header {
  min-height: 18px;
  margin: -12px 0 2px;
}

.price-rank-list .rank-header .rr-name {
  grid-column: auto;
  transform: none;
  text-align: left;
  align-items: flex-start;
}

.price-rank-list .rank-row {
  min-height: 34px;
  margin-block: 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(242, 199, 216, 0.75);
}

.price-rank-list .price-rank-row--lowest {
  background: rgba(239, 255, 246, 0.94);
  border-color: rgba(67, 170, 139, 0.28);
}

.price-rank-list .price-region-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.price-lowest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  min-width: 42px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #d6fbe4;
  color: #159447;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 7px 14px rgba(21, 148, 71, 0.14);
  white-space: nowrap;
}

.region-flag {
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(43, 36, 48, 0.08);
}

.price-rank-list .price-cny {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.price-rank-row--lowest .price-cny {
  color: #11984e;
}

.price-rank-list .price-original {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}

.price-rank-list .rr-rank,
.price-rank-list .rr-rank--top {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.price-tool {
  color: #111827;
}

.price-app-copy {
  gap: 1px;
}

.price-app-copy strong {
  font-size: 15px;
}

.price-app-lowest-label,
.price-app-lowest-price {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.price-app-lowest-label {
  font-size: 12px;
}

.price-app-lowest-price {
  font-size: 12px;
}

.price-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(242, 199, 216, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  width: 260px;
  box-sizing: border-box;
}
.price-sidebar-note small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

.price-sidebar-note .tip-strip-icon {
  width: 24px;
  height: 24px;
  font-size: 13px;
}

.price-sidebar-note-text {
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .price-layout {
    grid-template-columns: 1fr;
  }
  .price-app-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.3);
  }
  .price-app-backdrop.open { display: block; }
  .price-sidebar-stack {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    max-width: 68vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(255,255,255,0.95);
    padding: 38px 10px 16px;
    gap: 10px;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
  }
  .price-app-sidebar-inner,
  .price-sidebar-note {
    width: 100%;
  }
  .price-sidebar-stack.open { transform: translateX(0); }
  .price-sidebar-stack .price-app-button {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 10px 8px;
  }
  .price-sidebar-stack .price-app-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .price-sidebar-stack .price-app-copy strong {
    font-size: 13px;
  }
  .price-sidebar-stack .price-app-lowest-label,
  .price-sidebar-stack .price-app-lowest-price {
    font-size: 11px;
  }
  .price-plan-tab { font-size: 11px; padding: 4px 8px; white-space: nowrap; flex-shrink: 0; }
  .price-plan-tabs { gap: 2px; overflow-x: auto; }
  .price-plan-tabs .price-source {
    display: inline-flex;
  }
}

@media (max-width: 620px) {
  .price-app-sidebar {
    grid-template-columns: 1fr;
  }
  .price-rank-list .rank-header,
  .price-rank-list .rank-row,
  .price-list-meta-default {
    grid-template-columns: 28px minmax(100px, 1fr) 96px 78px;
    column-gap: 7px;
    padding-inline: 12px 16px;
  }
  .price-rank-list .rank-header { font-size: 12px; }
  .price-list-meta-bar { font-size: 12px; }
  .price-list-meta-filter {
    min-height: 34px;
    padding-inline: 12px 16px;
  }
  .price-rank-list .price-cny { font-size: 13px; }
  .price-rank-list .price-original { font-size: 13px; }
  .price-rank-list .rr-rank,
  .price-rank-list .rr-rank--top {
    font-size: 13px;
  }
  .region-flag {
    width: 26px;
    height: 18px;
    flex-basis: 26px;
  }
  .price-rank-list .rr-name-text { font-size: 13px; }
  .price-lowest-badge {
    margin-left: 8px;
    min-width: 36px;
    height: 20px;
    padding: 0 8px;
    font-size: 12px;
  }
  .price-rank-row--lowest { background: rgba(52,199,89,0.06); }
  .price-rank-row--lowest .price-cny { color: #e02b4c; font-weight: 700; }
  .price-plan-tabs { gap: 2px; }
  .price-plan-tabs .price-source {
    max-width: 92px;
    margin-left: 6px;
    padding-right: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .price-plan-tab { font-size: 10px; padding: 3px 8px; min-width: 0; }
  .price-disclaimer { font-size: 11px; padding: 0 16px; margin: 12px 0; }
}

.price-disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 0;
  margin: 14px 0 0;
}

/* ── LLM 主榜专用样式 ──────────────────────────────────────────── */
.rr-score--main {
  font-weight: 700;
  color: var(--accent, #f97316);
}

/* badge：未发布（橙） / 新（绿） */
.rr-badge {
  display: inline;
  font-size: 10px;
  padding: 0 3px;
  border-radius: 3px;
  margin-left: 4px;
}
.rr-badge[data-badge="ur"] {
  color: #f97316;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.3);
}
.rr-badge[data-badge="new"] {
  color: #22c55e;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
}

/* ── 小白百科：列表 + 详情 + 对话气泡 ───────────────────────────────────── */
.baike-list {
  margin: 0 auto;
  padding: 18px 16px 36px;
}
.baike-list.price-tool {
  width: min(1120px, 100%);
  margin: 0 auto 80px;
  padding: 0;
}
.baike-list-head {
  margin-bottom: 24px;
  padding: 28px 32px;
  border: 1px solid #ece8ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(43, 36, 48, 0.04), 0 8px 24px rgba(43, 36, 48, 0.04);
}
.baike-list-head h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 700;
}
.baike-list-sub {
  max-width: 680px;
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
}

/* Tabs — underline 风格 */
.baike-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 2px solid #f0edf3;
}
.baike-tab {
  padding: 10px 22px;
  border-radius: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: #8b7d92;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.baike-tab:hover {
  color: #5c4d63;
  border-bottom-color: #e0d4e8;
  transform: none;
}
.baike-tab.active {
  background: none;
  color: var(--pink);
  border-bottom-color: var(--pink);
}
.baike-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.baike-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(43, 36, 48, 0.045);
  border: 1px solid rgba(242, 199, 216, 0.78);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.baike-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(43, 36, 48, 0.08);
  border-color: rgba(255, 107, 157, 0.42);
}
.baike-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.baike-card-cover { display: block; width: 100%; aspect-ratio: 16/7; overflow: hidden; background: #fff1f6; }
.baike-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.baike-card-body { display: flex; flex-direction: column; min-height: 156px; padding: 15px; }
.baike-card-title {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 800;
}
.baike-card-summary {
  display: -webkit-box;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.baike-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #9a8d96;
  margin-top: auto;
  padding-top: 12px;
}
.baike-pagination { display: flex; justify-content: center; gap: 14px; margin: 24px 0; align-items: center; }
.baike-pagination a { color: var(--pink); text-decoration: none; font-weight: 700; }
.baike-load-more-wrap { display: flex; justify-content: center; margin: 24px 0 0; }
.baike-load-more {
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 107, 157, 0.1);
}
.baike-load-more:hover { transform: translateY(-1px); }
.baike-load-more[disabled] { cursor: default; opacity: 0.6; transform: none; }
.baike-empty { text-align: center; padding: 60px 16px; color: var(--muted); }

/* v3: 搜索框 */
.baike-search-form {
  display: flex;
  gap: 0;
  margin: 0 0 18px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(43, 36, 48, 0.04);
}
.baike-search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid #e0dce3;
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #faf9fb;
}
.baike-search-input:focus {
  border-color: var(--pink);
  background: #fff;
}
.baike-search-btn {
  padding: 10px 24px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.baike-search-btn:hover { background: #3d3545; }

/* v3: tag 云 */
.baike-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0edf3;
}
.baike-tag-cloud-label {
  font-size: 13px;
  color: #9a8d96;
  white-space: nowrap;
  font-weight: 500;
}
.baike-tag-chip {
  display: inline-block;
  padding: 5px 14px;
  background: #f7f5f9;
  color: #5c4d63;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.baike-tag-chip:hover, .baike-tag-chip.active {
  background: #fdf2f7;
  color: var(--pink);
  border-color: rgba(255, 107, 157, 0.28);
}

/* v3: 详情页 tag chips */
.baike-entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.baike-entry-tag { display: inline-block; padding: 3px 10px; background: #f3f4f6; color: #4b5563; border-radius: 14px; font-size: 12px; text-decoration: none; }
.baike-entry-tag:hover { background: #dbeafe; color: #1d4ed8; }

/* v3: 全站内链 */
a.site-link-inline { color: #7c3aed; text-decoration: underline dotted; font-weight: 500; }
a.site-link-inline:hover { color: #5b21b6; }

.baike-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 42px;
  align-items: start;
}
.baike-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.baike-sidebar .sidebar-block,
.sidebar-action-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(242, 199, 216, 0.72);
  border-radius: 14px;
  padding: 14px 15px;
  box-shadow: 0 10px 26px rgba(43, 36, 48, 0.045);
}
.sidebar-action-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #fff8fb, #fff);
}
.sidebar-action-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.sidebar-action-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.sidebar-action-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.baike-sidebar .sidebar-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 199, 216, 0.62);
}
.sidebar-entries { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sidebar-entries li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sidebar-entries li a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.sidebar-entries li a:hover { color: var(--pink); }
.sidebar-entries .entry-date {
  flex-shrink: 0;
  font-size: 11px;
  color: #a99da5;
  white-space: nowrap;
}

.baike-article {
  min-width: 0;
  padding: 0;
}
.baike-article-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(242, 199, 216, 0.62);
}
.baike-article-head h1 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--ink);
}
.baike-meta {
  color: #9a8d96;
  font-size: 13px;
  margin: 0 0 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.baike-tag--news { background: #fff1ef; color: #d94b2d; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.baike-summary {
  font-size: 14px;
  color: #5a4652;
  margin: 0;
  line-height: 1.7;
}
.baike-hero { margin: 0 0 22px; }
.baike-hero img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(242, 199, 216, 0.55); }

.dialogue { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.bubble { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.bubble--ai { flex-direction: row; }
.bubble--user { flex-direction: row-reverse; }
.bubble-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 26px 26px;
  border: 1px solid #ededed;
  box-shadow: 0 2px 8px rgba(43, 36, 48, 0.04);
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-drag: none;
}
.bubble--user .bubble-avatar { background-image: url('/static/images/xiaobai-avatar.png'); }
.bubble--ai .bubble-avatar { background-image: url('/static/images/deepseek-avatar.png'); }
.bubble-body { flex: 1; max-width: calc(100% - 50px); min-width: 0; }
.bubble--user .bubble-body { display: flex; flex-direction: column; align-items: flex-end; }
.bubble-text {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 15px 20px;
  border-radius: 7px;
  line-height: 1.62;
  font-size: 13px;
  color: #232323;
  word-break: break-word;
  background: #fff;
  border: 1px solid #e8e8e8;
}
.bubble--ai .bubble-text {
  background: #fff;
  border: 1px solid #e8e8e8;
}
.bubble--user .bubble-text {
  background: rgb(157 242 159);
  border: 0;
  color: #232323;
}
.bubble-text p { margin: 0 0 8px; }
.bubble-text p:last-child { margin-bottom: 0; }
.bubble-text strong { color: inherit; font-weight: 700; }
.bubble-text table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: inherit;
  line-height: inherit;
}
.bubble-text th, .bubble-text td { border: 1px solid #e8e8e8; padding: 6px 9px; text-align: left; vertical-align: top; }
.bubble-text th { background: #f7f7f7; color: #333; }
.bubble-text ul, .bubble-text ol { padding-left: 20px; margin: 6px 0; font-size: inherit; line-height: inherit; }
.bubble-text li { margin: 2px 0; }
.bubble-text a.baike-link { color: #2c6fba; border-bottom: 1px solid rgba(44, 111, 186, 0.28); text-decoration: none; }
.bubble-text a.nav-link-inline { color: #2c6fba; border-bottom: 1px solid rgba(44, 111, 186, 0.28); text-decoration: none; }

.baike-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 199, 216, 0.58);
}
.baike-prev-next-link {
  min-width: 0;
  color: #4d4450;
  text-decoration: none;
}
.baike-prev-next-link span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #9a8d96;
}
.baike-prev-next-link strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.baike-next-link { text-align: right; }
.baike-next-link:only-of-type { grid-column: 2; }

.baike-related {
  margin-top: 30px;
}
.baike-related {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.baike-related-card {
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(242, 199, 216, 0.62);
  box-shadow: 0 10px 24px rgba(185, 27, 92, 0.08);
}
.baike-summary-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #5a4652;
  font-size: 14px;
  line-height: 1.7;
}
.baike-summary-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
}
.related-block { margin-bottom: 14px; }
.related-block:last-child { margin-bottom: 0; }
.related-block h3 { font-size: 14px; font-weight: 500; color: #7b6f76; margin: 0 0 8px; }
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.related-list a { color: #2b72ad; text-decoration: none; font-size: 14px; font-weight: 500; }
.related-list a:hover { text-decoration: underline; }
.related-news { color: #5a4652; font-size: 14px; }

.home-baike-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-baike-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 157, 0.12);
  box-shadow: 0 10px 28px rgba(43, 36, 48, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-baike-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 157, 0.42);
  box-shadow: 0 16px 34px rgba(43, 36, 48, 0.1);
}

.home-baike-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.home-baike-link:focus-visible {
  outline: 3px solid rgba(255, 107, 157, 0.35);
  outline-offset: -3px;
}

.home-baike-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #fff1f6;
  overflow: hidden;
}

.home-baike-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-baike-card:hover .home-baike-cover img {
  transform: scale(1.05);
}

.home-baike-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  flex: 1;
}

.home-baike-meta-top {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.home-baike-tag {
  font-size: 11px;
  color: var(--muted);
  padding: 3px 7px;
  background: #f7f4f8;
  border-radius: 4px;
}

.home-baike-title {
  font-size: 16px;
  font-weight: 500;
  color: #756b78;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.home-baike-card:hover .home-baike-title {
  color: var(--pink);
}

.home-baike-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.home-baike-meta-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 11px;
  color: #9a8d96;
  padding-top: 8px;
  border-top: 1px dashed #f0e6ee;
  margin-top: auto;
}

.home-baike-meta-sep {
  color: #d4c4d0;
  font-size: 10px;
}

/* home-baike-kind 和 home-baike-date 保留结构兼容，样式统一 */
.home-baike-date { display: contents; }
.home-baike-kind { color: inherit; font-size: inherit; font-weight: inherit; }

@media (max-width: 960px) {
  .home-baike-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-baike-grid {
    grid-template-columns: 1fr;
  }

  .home-baike-link {
    display: block;
  }

  .home-baike-cover {
    display: none;
  }

  .home-baike-body {
    padding: 12px 14px;
    gap: 5px;
  }

  .home-baike-meta-top {
    display: none;
  }

  .home-baike-title {
    font-size: 14px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .home-baike-summary {
    display: none;
  }

  .home-baike-meta-bot {
    border-top: none;
    padding-top: 0;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .baike-detail-layout { grid-template-columns: 1fr; max-width: 760px; }
  .baike-sidebar { position: static; flex-direction: column; }
  .baike-sidebar .sidebar-block,
  .sidebar-action-card { box-shadow: none; }
}
@media (max-width: 600px) {
  .baike-list { padding-inline: 12px; }

  /* baike-list-head 移动端紧凑布局 */
  .baike-list-head {
    padding: 14px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .baike-list-head h1 {
    font-size: 18px;
    margin: 0 0 2px;
  }
  .baike-list-sub {
    display: none;
  }

  /* 搜索框 */
  .baike-search-form {
    margin: 10px 0 8px;
    gap: 6px;
    box-shadow: none;
  }
  .baike-search-input {
    padding: 7px 10px;
    font-size: 13px;
    border-right: 1.5px solid #e0dce3;
    border-radius: 8px;
  }
  .baike-search-btn {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* 标签云 — 水平滚动 */
  .baike-tag-cloud {
    gap: 6px;
    margin: 8px 0 4px;
    padding-bottom: 4px;
    border-bottom: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .baike-tag-cloud::-webkit-scrollbar { display: none; }
  .baike-tag-cloud-label {
    font-size: 12px;
    flex-shrink: 0;
  }
  .baike-tag-chip {
    padding: 3px 10px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 筛选 tabs — 移动端回退 pill 风格 */
  .baike-tabs {
    gap: 6px;
    border-bottom: none;
  }
  .baike-tab {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 107, 157, 0.24);
    margin-bottom: 0;
    background: #fff;
  }
  .baike-tab:hover {
    border-bottom: 1px solid rgba(255, 107, 157, 0.46);
  }
  .baike-tab.active {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
    border-bottom: 1px solid var(--pink);
  }
  .baike-detail-layout { padding: 12px 12px 32px; }
  .baike-article-head h1 { font-size: 22px; }
  .baike-card-body { min-height: 138px; }
  .bubble { gap: 8px; }
  .bubble-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 7px; background-size: 23px 23px; }
  .bubble-body { max-width: calc(100% - 40px); }
  .bubble-text { font-size: 13px; padding: 15px 20px; border-radius: 7px; line-height: 1.58; }
  .baike-prev-next { grid-template-columns: 1fr; padding: 18px 16px; }
  .baike-next-link { text-align: left; }
}
