@charset "utf-8";

/* Jade Sidebar Design System — Base, Shell, Navigation & Shared Components */
:root {
  --brand: #16805b;
  --brand-hover: #106647;
  --brand-soft: #eaf6f1;
  --brand-soft-2: #d6ede4;
  --accent-warm: #d97706;
  --accent-warm-soft: #fef3c7;
  --bg-page: #f4f7f5;
  --bg-surface: #ffffff;
  --bg-subtle: #f8faf9;
  --ink-1: #18241f;
  --ink-2: #4a5d55;
  --ink-3: #7e9189;
  --ink-inv: #ffffff;
  --border: #e3ebe7;
  --border-strong: #cbd8d2;
  --shadow-sm: 0 1px 3px rgba(22, 128, 91, 0.05);
  --shadow-md: 0 6px 20px rgba(22, 128, 91, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --sidebar-w: 224px;
  --sidebar-mini: 68px;
  --topbar-h: 56px;
  --content-max: 1520px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --reader-font: 19px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 14px/1.6 var(--font-sans);
  background: var(--bg-page);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: var(--brand); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
img { display: block; max-width: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; background: var(--brand); color: var(--ink-inv); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.cms-icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; flex: none; display: inline-block; }
.cms-icon-img { object-fit: contain; border-radius: 3px; }

/* App Shell: Fixed Left Sidebar + Right Main Workspace */
.jade-shell { display: flex; min-height: 100vh; }

.jade-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  transition: width .2s ease, transform .22s ease;
}
.jade-brand {
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h); padding: 0 18px;
  border-bottom: 1px solid var(--border);
  font-size: 18px; font-weight: 800; color: var(--brand);
  overflow: hidden; white-space: nowrap; flex: none;
}
.jade-brand img { max-height: 30px; max-width: 140px; object-fit: contain; }
.jade-brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #22a074);
  color: var(--ink-inv); display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex: none;
}
.jade-brand-text { overflow: hidden; text-overflow: ellipsis; }

.jade-side-scroll { flex: 1 1 auto; overflow-y: auto; padding: 12px 10px 18px; scrollbar-width: thin; }
.jade-side-label {
  padding: 6px 10px 4px; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase;
}
.jade-side-nav { display: flex; flex-direction: column; gap: 2px; }
.jade-nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; overflow: hidden;
}
.jade-nav-item svg { width: 17px; height: 17px; flex: none; opacity: .82; }
.jade-nav-item:hover { background: var(--bg-subtle); color: var(--ink-1); }
.jade-nav-item[data-current="是"] {
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
}
.jade-nav-item[data-current="是"]::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.jade-nav-item[data-current="是"] svg { opacity: 1; }
.jade-side-sep { height: 1px; background: var(--border); margin: 10px 8px; }

/* Sidebar Column Tree */
.jade-col-tree { display: flex; flex-direction: column; gap: 2px; }
.jade-col-group summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; height: 34px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; color: var(--ink-2);
}
.jade-col-group summary::-webkit-details-marker { display: none; }
.jade-col-group summary:hover { background: var(--bg-subtle); color: var(--ink-1); }
.jade-col-group summary a { display: inline-flex; align-items: center; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jade-col-group summary a[data-current="是"] { color: var(--brand); font-weight: 600; }
.jade-col-caret { font-size: 11px; color: var(--ink-3); transition: transform .15s; margin-left: 4px; }
.jade-col-group[open] .jade-col-caret { transform: rotate(90deg); }
.jade-col-subs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 8px 8px 26px; }
.jade-col-subs a {
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
  color: var(--ink-2); background: var(--bg-subtle);
}
.jade-col-subs a:hover, .jade-col-subs a[data-current="是"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.jade-col-leaf {
  display: flex; align-items: center; height: 34px; padding: 0 10px;
  border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jade-col-leaf:hover { background: var(--bg-subtle); color: var(--ink-1); }
.jade-col-leaf[data-current="是"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.jade-side-foot {
  padding: 10px 14px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px;
}

/* Collapsed Sidebar (Desktop) */
html[data-sidebar="collapsed"] .jade-sidebar { width: var(--sidebar-mini); }
html[data-sidebar="collapsed"] .jade-main-wrap { margin-left: var(--sidebar-mini); }
html[data-sidebar="collapsed"] .jade-brand { justify-content: center; padding: 0; }
html[data-sidebar="collapsed"] .jade-brand-text,
html[data-sidebar="collapsed"] .jade-nav-label,
html[data-sidebar="collapsed"] .jade-side-label,
html[data-sidebar="collapsed"] .jade-col-section,
html[data-sidebar="collapsed"] .jade-side-foot { display: none; }
html[data-sidebar="collapsed"] .jade-nav-item { justify-content: center; padding: 0; }

/* Right Main Workspace */
.jade-main-wrap {
  flex: 1 1 auto; min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh;
  transition: margin-left .2s ease;
}

/* Top Utility Bar */
.jade-topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h); padding: 0 24px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.jade-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jade-toggle-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.jade-toggle-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.jade-toggle-btn svg { width: 17px; height: 17px; }
.jade-mobile-logo { display: none; font-size: 17px; font-weight: 800; color: var(--brand); align-items: center; gap: 8px; }
.jade-mobile-logo img { max-height: 28px; max-width: 120px; object-fit: contain; }

.jade-crumbs {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.jade-crumbs a:hover { color: var(--brand); }
.jade-crumbs [aria-current="page"] { color: var(--ink-1); font-weight: 600; }

.jade-topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.jade-top-search {
  display: flex; align-items: center; width: 280px; height: 36px;
  padding: 2px 3px 2px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg-subtle);
  transition: border-color .15s, background .15s;
}
.jade-top-search:focus-within { border-color: var(--brand); background: var(--bg-surface); }
.jade-top-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13px; outline: none; }
.jade-top-search button {
  height: 28px; padding: 0 12px; border: 0; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--ink-inv); font-size: 12px; font-weight: 600;
}
.jade-top-search button:hover { background: var(--brand-hover); }
.jade-mobile-search-btn {
  display: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  align-items: center; justify-content: center;
}
.jade-mobile-search-btn svg { width: 17px; height: 17px; }

/* Mobile Horizontal Sub-Column Strip */
.jade-mobile-subbar { display: none; }

/* Main Content Area */
.jade-main {
  flex: 1 1 auto; width: 100%; max-width: var(--content-max);
  margin: 0 auto; padding: 20px 24px 40px;
}

/* Notice & App Ads */
.jade-notice {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  padding: 9px 14px; border-radius: var(--radius-md);
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2); font-size: 13px; color: var(--ink-2);
}
.jade-notice-badge {
  padding: 1px 8px; border-radius: 4px; background: var(--brand); color: var(--ink-inv);
  font-size: 11px; font-weight: 700; flex: none;
}
.jade-notice-links { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
.jade-notice-links a { color: var(--brand-hover); font-weight: 500; }

.jade-app-ads {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px 10px; margin-bottom: 14px;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.jade-app-ads[data-ad-tiered]:not([data-ad-ready]),
.jade-text-ads[data-ad-tiered]:not([data-ad-ready]) { opacity: 0; }
.jade-app-ad {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 5px; min-width: 0;
}
.jade-app-icon {
  position: relative; width: 56px; height: 56px; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-surface);
  box-shadow: var(--shadow-sm); flex: none;
}
.jade-app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jade-app-ad[data-ad-level="9"] .jade-app-icon::after {
  content: "荐"; position: absolute; right: 0; top: 0;
  padding: 1px 4px; font-size: 10px; font-weight: 700; line-height: 1.2;
  background: var(--brand); color: var(--ink-inv); border-radius: 0 0 0 6px;
}
.jade-app-ad strong { font-size: 12px; font-weight: 600; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jade-app-ad small { font-size: 11px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Highlighted Text Ads (fixed right below APP icon wall; auto-fit grid PC, 2-col grid Mobile) */
.jade-text-ads {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.jade-text-ad {
  display: block; text-align: center; min-width: 0;
  padding: 7px 12px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.jade-text-ad:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.jade-text-ad:nth-child(5n+1) { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.jade-text-ad:nth-child(5n+2) { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.jade-text-ad:nth-child(5n+3) { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.jade-text-ad:nth-child(5n+4) { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.jade-text-ad:nth-child(5n+5) { color: #7e22ce; background: #faf5ff; border-color: #e9d5ff; }

/* Unified Banner Ads (6.4:1 proportional container, zero raw-image overflow) */
.ad-banner-slot {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.ad-banner-slot[data-ad-pc-limit]:not([data-ad-ready]),
.ad-float-bar:not([data-ad-ready]) { opacity: 0; }
.ad-banner-slot:has(> .ad-banner-item:only-child) {
  grid-template-columns: minmax(0, 760px); justify-content: center;
}
.ad-banner-slot:has(> .ad-banner-item:nth-child(2):last-child),
.ad-banner-slot:has(> .ad-banner-item:nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ad-banner-item {
  position: relative; display: block; width: 100%; aspect-ratio: 6.4 / 1;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.ad-banner-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-banner-item:hover { border-color: var(--brand); }
.ad-slot-ctrl {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border: 0; border-radius: 999px;
  background: rgba(24, 36, 31, .72); color: #fff;
  font-size: 11px; line-height: 1.4; cursor: pointer;
}
.ad-slot-ctrl:hover { background: rgba(24, 36, 31, .92); }

/* Floating Banner Host (PC top-right 6 stacked, mobile top/bottom 1 each; per-item close & 1h cooldown) */
.ad-float-host { display: contents; }
.ad-float-bar {
  position: fixed; z-index: 45;
  padding: 8px; border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
.ad-float-bar--pc-corner {
  top: calc(var(--topbar-h) + 12px); right: 18px; left: auto; transform: none;
  width: 400px; max-width: calc(100vw - var(--sidebar-w) - 36px);
  padding: 10px;
}
html[data-sidebar="collapsed"] .ad-float-bar--pc-corner {
  max-width: calc(100vw - var(--sidebar-mini) - 36px);
}
.ad-float-bar--pc-corner .ad-float-grid {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
  max-height: calc(100vh - var(--topbar-h) - 48px); overflow-y: auto;
}
.ad-float-bar--top { top: calc(var(--topbar-h) + 8px); left: 50%; transform: translateX(-50%); }
.ad-float-bar--bottom { bottom: 12px; left: 50%; transform: translateX(-50%); }
.ad-float-grid { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; }
.ad-float-item { position: relative; width: 100%; }
.ad-float-bar .ad-banner-item { border-radius: var(--radius-sm); box-shadow: none; }
.ad-float-close {
  position: absolute; top: 4px; right: 4px; z-index: 4;
  min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; background: rgba(24, 36, 31, .74); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.ad-float-close:disabled { opacity: .78; cursor: not-allowed; background: rgba(24, 36, 31, .58); }
.ad-float-close:not(:disabled):hover { background: var(--brand); }
@media (max-width: 1099px) {
  .ad-banner-slot,
  .ad-banner-slot:has(> .ad-banner-item:nth-child(2):last-child),
  .ad-banner-slot:has(> .ad-banner-item:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .ad-float-bar--pc-corner,
  html[data-sidebar="collapsed"] .ad-float-bar--pc-corner {
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 767px) {
  .jade-app-ads {
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 10px 6px; margin-bottom: 12px; padding: 10px 8px;
  }
  .jade-app-ads[data-ad-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .jade-app-icon { width: 48px; height: 48px; border-radius: 12px; }
  .jade-text-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .jade-text-ads:has(> .jade-text-ad:only-child) { grid-template-columns: 1fr; }
  .jade-text-ad { padding: 6px 8px; font-size: 12px; }
  .ad-banner-slot,
  .ad-banner-slot:has(> .ad-banner-item:only-child),
  .ad-banner-slot:has(> .ad-banner-item:nth-child(2):last-child),
  .ad-banner-slot:has(> .ad-banner-item:nth-child(4):last-child) {
    grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px;
  }
  .ad-float-bar,
  html[data-sidebar="collapsed"] .ad-float-bar {
    left: 8px; right: 8px; width: auto; transform: none; padding: 4px;
  }
  .ad-float-bar--top { top: 98px; }
  .ad-float-bar--bottom { bottom: 64px; }
  .ad-float-close { top: 4px; right: 4px; }
}

/* Section Head & Surface Panels */
.jade-panel {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.jade-section { margin-bottom: 24px; }
.jade-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.jade-section-head h2 {
  margin: 0; font-size: 17px; font-weight: 700; color: var(--ink-1);
  display: inline-flex; align-items: center; gap: 8px;
}
.jade-section-head h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--brand); flex: none;
}
.jade-more { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.jade-more:hover { color: var(--brand); }

/* Asymmetric Hero (1 Lead + 4 Picks or Side Rank) */
.jade-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.jade-hero-lead {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8f5 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm); align-items: center;
}
.jade-hero-lead:hover { border-color: var(--brand); }
.jade-hero-cover {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-subtle); box-shadow: var(--shadow-md);
}
.jade-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.jade-hero-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jade-hero-kicker {
  display: inline-flex; align-self: flex-start; padding: 2px 9px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700;
}
.jade-hero-copy h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink-1); }
.jade-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-3); }
.jade-hero-meta span { padding: 1px 7px; border-radius: 4px; background: var(--bg-surface); border: 1px solid var(--border); }
.jade-hero-desc {
  margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.jade-hero-cta {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  margin-top: 4px; padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--ink-inv); font-size: 13px; font-weight: 600;
}
.jade-hero-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jade-pick-card {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 11px;
  padding: 10px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border); align-items: center;
}
.jade-pick-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.jade-pick-cover { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-subtle); }
.jade-pick-cover img { width: 100%; height: 100%; object-fit: cover; }
.jade-pick-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jade-pick-info h3 { margin: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jade-pick-info small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jade-pick-info p { margin: 0; font-size: 12px; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Filter Deck & Two-Column List Layout */
.jade-filter-deck {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 18px;
}
.jade-filter-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed var(--border);
}
.jade-filter-row:last-child { border-bottom: 0; padding-bottom: 0; }
.jade-filter-row:first-child { padding-top: 0; }
.jade-filter-label { flex: 0 0 46px; font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 28px; }
.jade-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; }
.jade-chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-2); background: var(--bg-subtle);
}
.jade-chip:hover { color: var(--brand); background: var(--brand-soft); }
.jade-chip[data-current="是"] { background: var(--brand); color: var(--ink-inv); font-weight: 600; }
.jade-chip[data-direction="倒序"]::after { content: " ↓"; }
.jade-chip[data-direction="正序"]::after { content: " ↑"; }

.jade-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 20px; align-items: start; }
.jade-list-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
.jade-side-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jade-side-rank li a {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 5px 4px; border-radius: var(--radius-sm); font-size: 13px;
}
.jade-side-rank li a:hover { background: var(--bg-subtle); color: var(--brand); }
.jade-side-rank b {
  width: 22px; height: 22px; border-radius: 6px; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--ink-3);
}
.jade-side-rank li:nth-child(1) b { background: #f59e0b; color: #fff; }
.jade-side-rank li:nth-child(2) b { background: #94a3b8; color: #fff; }
.jade-side-rank li:nth-child(3) b { background: #d97706; color: #fff; }
.jade-side-rank strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jade-side-rank small { font-size: 11px; color: var(--ink-3); }

/* Detail Archive Header & Shared Buttons */
.jade-detail-head {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8f5 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.jade-detail-cover {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-subtle); box-shadow: var(--shadow-md);
}
.jade-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.jade-detail-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jade-detail-top { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jade-detail-info h1, .jade-detail-top h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; color: var(--ink-1); }
.jade-detail-extra { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jade-meta-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.jade-meta-pills span, .jade-meta-pills a {
  padding: 2px 10px; border-radius: var(--radius-pill); font-size: 12px;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--ink-2);
}
.jade-meta-pills a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.jade-detail-desc { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.jade-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.jade-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg-surface);
  color: var(--ink-1); font-size: 13px; font-weight: 600;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jade-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.jade-btn--primary { background: var(--brand); border-color: var(--brand); color: var(--ink-inv); }
.jade-btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--ink-inv); }
.jade-site-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.jade-site-icon { width: 60px; height: 60px; }
.jade-site-cta { margin-top: 0; }
.jade-article-head { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.jade-article-head h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.35; color: var(--ink-1); }

/* Neighbors & Prose */
.jade-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.jade-neighbor {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px;
  border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border);
}
.jade-neighbor:hover { border-color: var(--brand); }
.jade-neighbor small { font-size: 11px; color: var(--ink-3); }
.jade-neighbor strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jade-neighbor--next { text-align: right; }
.jade-prose { font-size: 16px; line-height: 1.9; color: var(--ink-1); overflow-wrap: anywhere; }
.jade-prose p { margin: 1em 0; }
.jade-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 12px auto; }

/* Chapter Catalog Sheet (Mobile/Multi-Page Selector) */
.jade-chapter-open-btn { display: none; }
.jade-sheet-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); flex: none;
}
.jade-sheet-select {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-surface); font-size: 13px; color: var(--ink-1);
}
.jade-sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px; -webkit-overflow-scrolling: touch; }
.jade-sheet-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg-surface);
  font-size: 12.5px; color: var(--ink-3); flex: none;
}

/* Pagination & Empty State */
.jade-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.jade-pager a, .jade-pager span {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.jade-pager a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.jade-pager a[data-current="是"], .jade-pager span[aria-current="page"] {
  background: var(--brand); border-color: var(--brand); color: var(--ink-inv); font-weight: 700;
}
.jade-empty {
  grid-column: 1 / -1; margin: 8px 0; padding: 40px 20px; text-align: center;
  border-radius: var(--radius-md); border: 1px dashed var(--border-strong);
  background: var(--bg-surface); color: var(--ink-3); font-size: 14px;
}

/* Unified Rank Hub (Top 3 Podium + 2-Column Cards for 4~20) */
.jade-rank-head {
  position: sticky; top: var(--topbar-h); z-index: 29;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 8px 24px;
}
.jade-rank-head .jade-rank-models { padding-top: 0; }
.jade-rank-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.jade-rank-title { display: flex; align-items: baseline; gap: 10px; }
.jade-rank-title h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink-1); }
.jade-rank-title span { font-size: 13px; color: var(--ink-3); }
.jade-rank-periods {
  display: inline-flex; gap: 3px; padding: 3px; border-radius: var(--radius-pill);
  background: var(--bg-page); border: 1px solid var(--border);
}
.jade-rank-periods button {
  border: 0; background: transparent; color: var(--ink-2);
  height: 30px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500;
}
.jade-rank-periods button.on { background: var(--brand); color: var(--ink-inv); font-weight: 600; }
.jade-rank-models { display: flex; gap: 8px; padding-top: 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.jade-rank-models::-webkit-scrollbar { display: none; }
.jade-rank-model {
  flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--ink-2); background: var(--bg-subtle); border: 1px solid transparent;
}
.jade-rank-model:hover { color: var(--brand); border-color: var(--brand-soft-2); }
.jade-rank-model[data-current="是"] { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 700; }

.jade-rank-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.jade-rank-board[hidden] { display: none; }
.jade-rank-item {
  position: relative; grid-column: span 3;
  display: grid; grid-template-columns: 34px 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
}
.jade-rank-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.jade-rank-item:nth-child(-n+3) {
  grid-column: span 2;
  grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: 1fr auto;
  align-items: start; gap: 10px 12px; padding: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f3faf7 100%);
}
.jade-rank-badge {
  width: 28px; height: 28px; border-radius: 7px; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-page); color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.jade-rank-item:nth-child(-n+3) .jade-rank-badge { position: absolute; top: 10px; left: 10px; z-index: 2; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.jade-rank-badge[data-rank="1"] { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.jade-rank-badge[data-rank="2"] { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.jade-rank-badge[data-rank="3"] { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.jade-rank-cover { position: relative; width: 64px; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--bg-subtle); flex: none; }
.jade-rank-cover--wide { width: 96px; aspect-ratio: 16/10; }
.jade-rank-item:nth-child(-n+3) .jade-rank-cover { grid-row: 1 / 3; width: 88px; }
.jade-rank-item:nth-child(-n+3) .jade-rank-cover--wide { width: 104px; aspect-ratio: 4/3; }
.jade-rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.jade-rank-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jade-rank-info h2 { margin: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jade-rank-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; font-size: 12px; color: var(--ink-3); }
.jade-rank-meta span { padding: 1px 6px; border-radius: 4px; background: var(--bg-page); }
.jade-rank-desc { margin: 0; font-size: 12px; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jade-rank-heat { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.jade-rank-heat strong { font-size: 16px; font-weight: 700; color: var(--brand); }
.jade-rank-heat small { font-size: 11px; color: var(--ink-3); }
.jade-rank-item:nth-child(-n+3) .jade-rank-heat { flex-direction: row; align-items: baseline; gap: 5px; }

/* Unified 3-State Search Hero */
.jade-search-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 14px 0 22px; margin-bottom: 18px; }
.jade-search-bar {
  display: flex; align-items: center; width: 100%; max-width: 620px; height: 46px;
  padding: 4px 4px 4px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--bg-surface); transition: border-color .15s, box-shadow .15s;
}
.jade-search-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 128, 91, .12); }
.jade-search-bar input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 15px; outline: none; }
.jade-search-bar button {
  height: 36px; padding: 0 22px; border: 0; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--ink-inv); font-size: 14px; font-weight: 600;
}
.jade-search-hot { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 720px; }
.jade-search-hot-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.jade-search-hot-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-height: 70px; overflow: hidden; }
.jade-search-hot-tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--ink-2); font-size: 13px;
}
.jade-search-hot-tag:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.jade-search-summary { align-self: flex-start; margin: 0; font-size: 13px; color: var(--ink-3); }
.jade-search-summary strong { color: var(--ink-1); }

/* Footer & Dialogs */
.jade-footer {
  margin-top: auto; border-top: 1px solid var(--border);
  background: var(--bg-surface); padding: 18px 24px; font-size: 12px; color: var(--ink-3);
}
.jade-footer-inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.jade-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.jade-friend-links { max-width: var(--content-max); margin: 10px auto 0; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; gap: 12px; }

.jade-dialog {
  width: min(560px, calc(100% - 28px)); max-height: 82vh; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-surface); color: var(--ink-1); overflow: hidden;
}
.jade-dialog[open] { display: flex; flex-direction: column; }
.jade-dialog::backdrop { background: rgba(15, 25, 20, .48); backdrop-filter: blur(2px); }
.jade-dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border); flex: none;
}
.jade-dialog-head button { border: 0; background: transparent; font-size: 22px; width: 32px; height: 32px; color: var(--ink-3); }
.jade-nav-drawer-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.jade-drawer-tabs {
  flex: 0 0 88px; display: flex; flex-direction: column; overflow-y: auto;
  background: var(--bg-page); border-right: 1px solid var(--border); padding: 6px 0;
}
.jade-drawer-tab {
  position: relative; border: 0; background: transparent; color: var(--ink-2);
  padding: 12px 8px; font-size: 13px; font-weight: 500; text-align: center;
}
.jade-drawer-tab[aria-selected="true"] { background: var(--bg-surface); color: var(--brand); font-weight: 700; }
.jade-drawer-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--brand); border-radius: 0 3px 3px 0; }
.jade-drawer-panels { flex: 1; min-width: 0; overflow-y: auto; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); }
.jade-drawer-quick { margin-bottom: 12px; }
.jade-drawer-group { margin-bottom: 14px; }
.jade-drawer-root { display: flex; align-items: center; padding-bottom: 6px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); }
.jade-drawer-root[data-current="是"] { color: var(--brand); }
.jade-drawer-subs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.jade-drawer-subs:empty { display: none; }
.jade-drawer-subs a { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: var(--bg-page); color: var(--ink-2); }
.jade-drawer-subs a[data-current="是"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* Mobile Bottom Nav & Back Top */
.jade-bottom-nav { display: none; }
.jade-back-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 25;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--brand); color: var(--ink-inv); box-shadow: var(--shadow-md);
}

/* Tablet & Mobile Responsive */
@media (max-width: 1023px) {
  .jade-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-md); }
  html[data-drawer="open"] .jade-sidebar { transform: translateX(0); }
  .jade-main-wrap, html[data-sidebar="collapsed"] .jade-main-wrap { margin-left: 0; }
  .jade-hero-grid { grid-template-columns: 1fr; }
  .jade-list-layout { grid-template-columns: 1fr; }
  .jade-list-side { position: static; }
  .jade-rank-board { grid-template-columns: 1fr; }
  .jade-rank-item, .jade-rank-item:nth-child(-n+3) {
    grid-column: 1 / -1; grid-template-columns: 34px 64px minmax(0, 1fr) auto;
    grid-template-rows: auto; align-items: center; gap: 12px;
  }
  .jade-rank-item:nth-child(-n+3) .jade-rank-badge { position: static; box-shadow: none; }
  .jade-rank-item:nth-child(-n+3) .jade-rank-cover { grid-row: auto; width: 64px; }
  .jade-rank-item:nth-child(-n+3) .jade-rank-heat { flex-direction: column; align-items: flex-end; }
}

@media (max-width: 767px) {
  .jade-sidebar { display: none; }
  .jade-topbar { height: 50px; padding: 0 14px; }
  .jade-toggle-btn, .jade-crumbs, .jade-top-search { display: none; }
  .jade-mobile-logo { display: inline-flex; }
  .jade-mobile-search-btn { display: inline-flex; }
  .jade-mobile-subbar {
    position: sticky; top: 50px; z-index: 29;
    display: flex; align-items: center; gap: 18px;
    height: 44px; padding: 0 14px; background: var(--bg-surface);
    border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  }
  .jade-mobile-subbar::-webkit-scrollbar { display: none; }
  .jade-mobile-subbar a {
    position: relative; display: inline-flex; align-items: center; height: 100%;
    font-size: 14px; font-weight: 500; color: var(--ink-2); flex: none;
  }
  .jade-mobile-subbar a[data-current="是"] { color: var(--brand); font-weight: 600; }
  .jade-mobile-subbar a[data-current="是"]::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 2.5px;
    transform: translateX(-50%); border-radius: 2px; background: var(--brand);
  }
  .jade-main { padding: 14px 14px 28px; }
  .jade-hero-lead { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .jade-hero-copy h2 { font-size: 16px; }
  .jade-hero-picks { grid-template-columns: 1fr; }
  .jade-detail-head {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px 14px; padding: 14px; align-items: start;
  }
  .jade-detail-info { display: contents; }
  .jade-detail-top { align-self: center; gap: 8px; }
  .jade-detail-top h1, .jade-detail-info h1 { font-size: 18px; line-height: 1.3; }
  .jade-detail-extra {
    grid-column: 1 / -1; padding-top: 10px;
    border-top: 1px dashed var(--border);
  }
  .jade-detail-desc { font-size: 13.5px; line-height: 1.7; }
  .jade-detail-head .jade-actions {
    grid-column: 1 / -1; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 8px; margin-top: 2px;
  }
  .jade-detail-head .jade-btn { width: 100%; height: 38px; padding: 0 12px; font-size: 13px; }
  .jade-site-head { grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; }
  .jade-site-icon { width: 52px; height: 52px; }
  .jade-site-cta { grid-column: 1 / -1; }
  .jade-site-cta .jade-btn { width: 100%; }
  .jade-article-head h1 { font-size: 20px; }
  .jade-prose { font-size: 15.5px; line-height: 1.85; }
  .jade-neighbors { grid-template-columns: 1fr; gap: 8px; }
  .jade-neighbor { flex-direction: row; align-items: center; justify-content: center; text-align: center; gap: 0; padding: 10px 14px; }
  .jade-neighbor small { flex: none; font-size: 13px; color: var(--ink-3); }
  .jade-neighbor small::after { content: "："; }
  .jade-neighbor strong { flex: 0 1 auto; min-width: 0; font-size: 13.5px; }
  .jade-neighbor--next { text-align: center; }
  [data-chapter-directory].is-mobile-preview [data-chapter-grid] > :nth-child(n+7) { display: none; }
  [data-chapter-directory].is-mobile-preview .jade-pager { display: none; }
  .jade-chapter-open-btn {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%; margin-top: 12px; height: 40px; border-radius: var(--radius-md);
    border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand);
    font-size: 13.5px; font-weight: 700;
  }
  .jade-chapter-sheet {
    margin: auto 0 0; width: 100%; max-width: 100%; max-height: 82vh;
    border-radius: 16px 16px 0 0; border-bottom: 0;
  }
  .jade-filter-deck { padding: 10px 12px; margin-bottom: 14px; border-radius: var(--radius-md); }
  .jade-filter-row { flex-direction: row; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 0; }
  .jade-filter-row.is-collapsed { display: none; }
  .jade-filter-label { flex: 0 0 38px; font-size: 12px; line-height: 26px; }
  .jade-filter-chips { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-right: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .jade-filter-chips::-webkit-scrollbar { display: none; }
  .jade-chip { flex: none; height: 26px; padding: 0 10px; font-size: 12px; border-radius: var(--radius-pill); }
  .jade-filter-more {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%; margin-top: 6px; padding: 5px 0 1px;
    border: 0; border-top: 1px dashed var(--border); background: transparent;
    color: var(--brand); font-size: 12px; font-weight: 600;
  }
  .jade-rank-head { top: 50px; flex-direction: column; align-items: stretch; gap: 6px; padding: 7px 14px; }
  .jade-rank-top { flex-direction: column; align-items: stretch; }
  .jade-rank-periods { display: grid; grid-template-columns: repeat(4, 1fr); }
  .jade-rank-item, .jade-rank-item:nth-child(-n+3) { grid-template-columns: 26px 54px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .jade-rank-cover, .jade-rank-item:nth-child(-n+3) .jade-rank-cover { width: 54px; }
  .jade-rank-desc { display: none; }

  /* Mobile 3-state Search: Centered 1-per-row colorful hot words */
  .jade-search-hero { gap: 12px; padding: 2px 0 14px; }
  .jade-search-bar { height: 44px; max-width: none; }
  .jade-search-bar button { height: 34px; padding: 0 16px; font-size: 13px; }
  .jade-search-hot-list { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 10px; max-height: none; overflow: visible; }
  .jade-search-hot-tag { height: auto; padding: 4px 12px; border: 0; background: transparent; font-size: 15px; font-weight: 500; }
  .jade-search-hot-tag:nth-child(6n+1) { color: #d94646; }
  .jade-search-hot-tag:nth-child(6n+2) { color: #d97706; }
  .jade-search-hot-tag:nth-child(6n+3) { color: #059669; }
  .jade-search-hot-tag:nth-child(6n+4) { color: #2563eb; }
  .jade-search-hot-tag:nth-child(6n+5) { color: #7c3aed; }
  .jade-search-hot-tag:nth-child(6n+6) { color: #db2777; }

  .jade-dialog.jade-nav-drawer {
    position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none;
    height: 74vh; max-height: 74vh; border: 0; border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
  }
  .jade-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .jade-bottom-nav {
    display: flex; position: fixed; inset: auto 0 0; z-index: 35;
    background: var(--bg-surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .jade-bottom-nav a, .jade-bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 48px; border: 0; background: transparent;
    color: var(--ink-2); font-size: 12px; font-weight: 500; line-height: 1.2;
  }
  .jade-bottom-nav em { font-style: normal; }
  .jade-bottom-nav svg { width: 20px; height: 20px; }
  .jade-bottom-nav a[data-current="是"], .jade-bottom-nav button[data-current="是"] { color: var(--brand); font-weight: 600; }
  .jade-back-top { bottom: calc(74px + env(safe-area-inset-bottom)); right: 14px; }
}

/* Lock cover aspect-ratio against intrinsic image expansion */
.vod-poster,
.comic-poster,
.novel-cover,
.person-portrait,
.person-work-cover,
.art-thumb,
.topic-member-cover,
.jade-hero-cover,
.jade-pick-cover,
.jade-detail-cover,
.jade-rank-cover,
.jade-rank-cover--wide,
.ad-banner-item {
  position: relative;
  overflow: hidden;
}
.vod-poster > img,
.comic-poster > img,
.novel-cover > img,
.person-portrait > img,
.person-work-cover > img,
.art-thumb > img,
.topic-member-cover > img,
.jade-hero-cover > img,
.jade-pick-cover > img,
.jade-detail-cover > img,
.jade-rank-cover > img,
.jade-rank-cover--wide > img,
.ad-banner-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
