:root {
  /* Brand Colors - Emerald/Forest implementation */
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669; /* Primary Brand Color */
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;

  --brand: var(--brand-600);
  --brand-hover: var(--brand-700);
  --brand-soft: var(--brand-50);
  --brand-contrast: #ffffff;

  /* Neutral Colors - Slate/Inter */
  --bg: #f8fafc;
  --panel: #ffffff;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Functional Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-colored: 0 10px 15px -3px var(--brand-200), 0 4px 6px -4px var(--brand-200);

  /* Radius */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

* { box-sizing: border-box; outline-color: var(--brand-300); }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: "SF Pro SC", "SF Pro Text", "Helvetica Neue", Helvetica, "PingFang SC", "Segoe UI", Roboto, "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.layout { display: flex; flex-direction: column; min-height: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.home-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .home-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.stack{display:flex;flex-direction:column;gap:24px}

/* Header Upgrade */
.header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--brand-800);
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  /* Assuming logo might need adjustment on white bg, but usually SVG works. 
     If it was white-only, we might need a filter. 
     Let's add a filter just in case it's white-only to make it brand colored.
     But if it's already colored, this might break it. 
     I'll leave it as is, but add a subtle drop shadow to make it pop if it's white.
  */
}

.spacer { flex: 1; }

.public-bar { display: flex; align-items: center; gap: 16px; width: 100%; }
.public-nav { display: flex; gap: 8px; }

.public-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.public-link:hover {
  color: var(--brand-800);
  background: var(--brand-100);
  border-color: var(--brand-300);
}
.public-link.active {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: var(--brand-200);
}

.public-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.public-actions-inline { display: flex; }
.public-actions-dropdown { display: none; }

.public-btn {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.public-btn:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-1px);
}

.public-menu { display: none; }
.public-dropdown { display: flex; align-items: center; gap: 16px; width: 100%; }

/* Main Content */
.main { flex: 1; padding: 24px; max-width: 1440px; margin: 0 auto; width: 100%; }
.page { display: flex; flex-direction: column; gap: 24px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 2fr 1fr; align-items: start; } }

.detail-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.detail-stat{display:flex;align-items:center;gap:8px}

/* Toolbar (search forms) */
.toolbar { overflow-x: auto; }
.toolbar form { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.toolbar .keyword { flex: 1; min-width: 240px; }
.toolbar .select { flex: 0 0 auto; }
.toolbar .btn { flex: 0 0 auto; }

/* Typography */
.page-title { font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; }
.page-title.detail {
  font-size: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.page-title.detail .muted { color: var(--text-light); font-weight: 500; font-size: 0.8em; }

/* Components */
.card {
  background: var(--panel);
  border: 1px solid transparent; /* Cleaner look */
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title.detail {
  border-left: 4px solid var(--brand);
  padding-left: 16px;
  font-size: 20px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* News Card Upgrade */
.news-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.news-card:hover {
  background: #ffffff;
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cover-wrap {
  position: relative;
  width: 120px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.news-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-cover { transform: scale(1.08); }
.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.news-card:hover .cover-overlay { opacity: 1; }

.news-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.news-card:hover .news-title { color: inherit; }

.news-meta {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Inputs & Buttons */
.input, .select {
  height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  transition: all 0.2s;
  color: var(--text-main);
}
.input.keyword{flex:1;min-width:0;width:100%}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.input.lg, .select.lg { height: 48px; font-size: 16px; border-radius: var(--radius); }

/* Forms & Errors */
.form-errors { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.error-text {
  color: var(--danger);
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px #fee2e2;
}

/* Flyout */
.flyout { position: relative; width: 100%; }
.flyout-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  min-width: 320px;
  max-width: 640px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 50;
}
.flyout-list { display: flex; flex-direction: column; gap: 8px; }
.flyout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.flyout-close { margin-left: auto; cursor: pointer; }

.btn {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn:hover { background: var(--bg); border-color: var(--text-light); }
.btn:active { transform: translateY(1px); }

.btn.lg { height: 48px; padding: 0 28px; font-size: 16px; border-radius: var(--radius); }

.btn.brand {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 2px 4px rgba(6, 95, 70, 0.1);
}
.btn.brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 4px 6px rgba(6, 95, 70, 0.2);
}

.btn.cta {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  border: none;
  position: relative;
  overflow: hidden;
}
.btn.cta::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s;
}
.btn.cta:hover::after { transform: translateX(4px); }

/* Compare Button */
.btn.compare {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-800);
  border-radius: var(--radius-full);
  font-weight: 600;
  padding: 0 16px;
  height: 32px;
  font-size: 13px;
  gap: 6px;
  white-space: nowrap;
  min-width: 100px;
}
.btn.compare:hover {
  background: var(--brand-100);
  border-color: var(--brand-300);
  transform: translateY(0);
}
.btn.compare::before {
  content: "+";
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.btn.compare.added {
  background: var(--brand-100);
  color: var(--brand-600);
  cursor: default;
  opacity: 0.8;
}
.btn.compare.added::before { content: "✓"; }

/* Pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  margin-top: 24px;
}
.pager .btn {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
}
.pager-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* Table */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 16px;
  font-size: 14px;
  white-space: nowrap;
}
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-size: 15px;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--brand-50); }

.table a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
  transition: all 0.2s;
}
.table a:hover { color: inherit; border-bottom: none; }

@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { width: auto; }
  .compare-table td { vertical-align: top; }
  .compare-table .cell { display: block; overflow: visible; white-space: normal; word-break: break-word; }
}

.content-prose table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 12px 0;
}
.content-prose th,
.content-prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 15px;
}
.content-prose thead th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
}
.content-prose table tr:hover td {
  background: var(--brand-50);
}
.content-prose {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  #compare-table { table-layout: fixed; width: max-content; min-width: 420px; }
  #compare-table thead th:first-child, #compare-table tbody th { width: 4em; }
  #compare-table thead th:not(:first-child), #compare-table tbody td:not(:first-child) { width: 110px; }
  #compare-table th, #compare-table td { padding: 10px; font-size: 12px; }
  #compare-table thead th:first-child, #compare-table tbody th { padding: 8px 6px; }
  #compare-table tbody td .cell { white-space: normal; word-break: break-word; }
}
/* Chips & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--brand-100);
}
.badge.muted {
  background: var(--bg);
  color: var(--text-muted);
  border-color: var(--border);
}

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.chip:hover {
  background: var(--bg);
  color: var(--text-main);
  border-color: var(--text-light);
  transform: translateY(-1px);
}
.chip.active {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 40px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-main {
  flex: 1;
  min-width: 240px;
  text-align: left;
}
.footer-content {
  max-width: 600px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: none; }
.footer-icp { margin-top: 8px; font-size: 14px; }
.footer-qr-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--brand-50);
}
.footer-qr-img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--brand-200);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.footer-qr-text { font-size: 14px; color: var(--text-muted); }

.side-qr { display: none; }
@media (min-width: 1024px) {
  .phone .side-qr { display: none; }
  .side-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }
  .side-qr-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
  }
  .side-qr-text { font-size: 14px; color: var(--text-muted); }
  .side-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
@media (max-width: 1023px) {
  .side-qr { display: none !important; }
}

/* Utilities */
.phone .phone-hide { display: none; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
.breadcrumb-bar {
  padding: 12px 24px;
  background: linear-gradient(0deg, #fff, #fff), var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}
.breadcrumb a:hover {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-800);
}
.breadcrumb .sep {
  color: var(--text-light);
}
.breadcrumb > span:last-child {
  color: var(--text-main);
  font-weight: 700;
}
@media (max-width: 768px) {
  .breadcrumb { font-size: 13px; gap: 8px; }
  .breadcrumb a { padding: 4px 8px; }
}

/* Grid Utilities */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .topics-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.grid-min-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .grid-min-2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* Responsive */
@media (max-width: 768px) {
  .header { padding: 12px 0; }
  .main { padding: 8px 0; }
  .card { padding: 16px; }
  .container { padding: 0 8px; }
  .breadcrumb-bar { padding: 10px 8px; }
  .footer { padding: 32px 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-main { text-align: center; }
  .footer-qr-group { flex-direction: column; }
  .footer-qr { padding: 10px 12px 12px; }
  .footer-qr-img { width: 148px; height: 148px; }
  .layout { overflow-x: hidden; }
  .home-grid { gap: 12px; }
  .card-list { grid-template-columns: 1fr; gap: 12px; }
  .flyout-panel { max-height: 72vh; }
  #compare-current-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #compare-current-list .news-card { padding: 8px; gap: 8px; }
  #compare-current-list .news-title { font-size: 14px; margin-bottom: 2px; -webkit-line-clamp: 1; }
  #compare-current-list .news-meta { font-size: 12px; }
  #compare-current-list .btn { height: 32px; padding: 0 10px; border-radius: var(--radius-full); font-size: 12px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #compare-table { table-layout: fixed; width: max-content; min-width: 420px; }
  #compare-table thead th:first-child, #compare-table tbody th { width: 4em; }
  #compare-table thead th:not(:first-child), #compare-table tbody td:not(:first-child) { width: 100px; }
  #compare-table th, #compare-table td { padding: 8px; font-size: 12px; }
  #compare-table td { vertical-align: top; }
  #compare-table .cell { display: block; overflow: visible; white-space: normal; word-break: break-word; }
  #compare-table thead th:first-child, #compare-table tbody th { padding: 8px 6px; }
  .phone #compare-table { min-width: 360px; }
  .phone #compare-table thead th:not(:first-child), .phone #compare-table tbody td:not(:first-child) { width: 90px; }
  
  .public-bar { position: relative; }
  .public-menu {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
  }
  
  .public-bar { justify-content: flex-end; }
  .public-nav, .public-actions-inline { display: none; }
  
  .public-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 8px;
  }
  .public-bar.open .public-dropdown { display: flex; }
  .public-dropdown .public-nav { display: flex; flex-direction: column; gap: 6px; }
  
  .public-dropdown .public-link {
    width: 100%;
    justify-content: center;
    background: var(--bg);
  }
  
  .public-actions-dropdown {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .adv-only { display: none; }
}

/* Compare Bar */
.compare-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 800px;
  max-height: 30vh;
  overflow-y: auto;
  z-index: 900;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.compare-bar.visible { transform: translateX(-50%) translateY(0); }
.compare-bar .card {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--brand-200);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}
.compare-bar + .main { padding-bottom: 0; }
.compare-bar.visible + .main { padding-bottom: max(240px, 30vh); }
@media (max-width: 640px) {
  .compare-bar { bottom: 8px; width: 96%; max-width: none; max-height: 40vh; overflow-y: auto; }
  .compare-bar .card { padding: 10px; }
  .compare-bar .card-title { margin-bottom: 12px; font-size: 16px; }
  .compare-bar .compare-tip { font-size: 12px; }
  .compare-bar .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compare-bar .news-card { padding: 8px; gap: 8px; }
  .compare-bar .news-title { font-size: 14px; margin-bottom: 2px; -webkit-line-clamp: 1; }
  .compare-bar .news-meta { font-size: 12px; }
  .compare-bar .btn { height: 32px; padding: 0 12px; border-radius: var(--radius-full); font-size: 13px; }
  .compare-bar.visible + .main { padding-bottom: max(140px, 40vh); }
}
.mini-title{font-size:14px;color:var(--text-muted);font-weight:700;margin-bottom:8px}
.mini-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.mini-item{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg);color:var(--text-main);text-decoration:none;font-size:13px}
.mini-item:hover{border-color:var(--brand-300);background:var(--brand-50);color:var(--brand-800)}
.mini-meta{font-size:12px;color:var(--text-muted)}
.tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tab-btn{height:32px;padding:0 12px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text-main);cursor:pointer}
.tab-btn.active{background:var(--brand-50);border-color:var(--brand-300);color:var(--brand-800)}
.rank-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rank-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:#fff}
.rank-item:hover{background:var(--brand-50);border-color:var(--brand-300);box-shadow:var(--shadow-sm);transform:translateY(-1px);transition:all .15s}
.rank-no{width:24px;height:24px;border-radius:999px;background:var(--bg);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--brand-800)}
.rank-title{flex:1;font-weight:700;color:inherit;text-decoration:none}
.rank-title:hover{color:inherit;text-decoration:none}
.rank-meta{font-size:12px;color:var(--text-muted)}
