/* ========================================
   HuarenDaily (华人头条) — Complete Stylesheet
   Based on VanLife Vancouver design system
   Brand: Blue primary (#2563eb), red for urgency only
   ======================================== */

/* ===== Design Tokens ===== */
:root {
  /* Primary palette — blue */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  /* Colors */
  --red: #e74c3c;
  --red-dark: #c0392b;
  --red-light: #fdedec;
  --orange: #f39c12;
  --orange-light: #fef5e7;
  --green: #27ae60;
  --green-light: #eafaf1;
  --blue: #3498db;
  --blue-light: #ebf5fb;
  --purple: #8e44ad;

  /* Neutrals */
  --bg: #f5f6f8;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-2: #4a4a68;
  --text-3: #8888a0;
  --border: #e8e8f0;
  --border-light: #f0f0f8;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0,0,0,0.04);
  --sh-sm: 0 2px 8px rgba(0,0,0,0.06);
  --sh-md: 0 4px 16px rgba(0,0,0,0.08);
  --sh-lg: 0 8px 32px rgba(0,0,0,0.1);
  --sh-xl: 0 16px 48px rgba(0,0,0,0.12);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 100px;

  /* Typography */
  --font: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-w: 1160px;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #1a1a2e;
  --surface: #1e1e36;
  --text: #e8e8f0;
  --text-2: #b0b0c8;
  --text-3: #6868a0;
  --border: #2a2a48;
  --border-light: #22223a;
  --red-light: #2a1520;
  --orange-light: #2a2518;
  --green-light: #1a2a1e;
  --blue-light: #1a2030;
  --primary-light: #1a1e3a;
  --sh-xs: 0 1px 2px rgba(0,0,0,0.2);
  --sh-sm: 0 2px 8px rgba(0,0,0,0.3);
  --sh-md: 0 4px 16px rgba(0,0,0,0.35);
  --sh-lg: 0 8px 32px rgba(0,0,0,0.4);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--ease), color var(--ease);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--ease);
}

[data-theme="dark"] .navbar {
  background: rgba(15,15,26,0.88);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 2px; }

.nav-item {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all var(--ease);
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--ease);
}

.theme-toggle:hover { border-color: var(--text-3); }

.btn-outline {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--ease);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary {
  padding: 7px 20px;
  border: none;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary), #4f8af7);
  color: white;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 30%, #312e81 60%, #2563eb 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(124,58,237,0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-highlight {
  display: inline;
  background: linear-gradient(135deg, #fdcb6e, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search */
.hero-search {
  max-width: 680px;
  margin: 0 auto 24px;
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  justify-content: center;
}

.s-tab {
  padding: 5px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--ease);
}

.s-tab:hover { background: rgba(255,255,255,0.15); color: white; }
.s-tab.active {
  background: white;
  color: var(--text);
  border-color: white;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--r-lg);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--sh-xl);
  gap: 8px;
}

.search-icon { color: var(--text-3); flex-shrink: 0; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.search-input::placeholder { color: var(--text-3); }

.search-submit {
  padding: 10px 28px;
  border: none;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary), #4f8af7);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all var(--ease);
}

.search-submit:hover { box-shadow: 0 4px 14px rgba(37,99,235,0.4); }

.hero-hot-searches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.hero-hot-searches a {
  color: rgba(255,255,255,0.65);
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--ease);
}

.hero-hot-searches a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

/* Live Bar */
.hero-live-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--r-full);
  margin: 0 auto;
  max-width: fit-content;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #27ae60;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.live-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}

.live-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--r-full);
}

.live-change.up { color: #2ecc71; background: rgba(46,204,113,0.15); }
.live-change.down { color: #e74c3c; background: rgba(231,76,60,0.15); }

.live-item { display: flex; align-items: center; gap: 6px; }
.live-item strong { color: white; }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-badge {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--green-light);
  color: var(--green);
}

.section-badge.live {
  background: var(--red);
  color: white;
  animation: pulse-dot 2s infinite;
}

.section-desc {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 400;
}

.section-more {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 12px;
  border-radius: var(--r-md);
  transition: all var(--ease);
}

.section-more:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Filter Pills */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.fpill {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  transition: all var(--ease);
}

.fpill:hover { border-color: var(--primary); color: var(--primary); }

.fpill.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

[data-theme="dark"] .fpill.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== What's On (本周温哥华) ===== */
.section-intro {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-top: -16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.source-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.src-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--purple);
  color: white;
  opacity: 0.75;
}

.section-badge.source {
  background: linear-gradient(135deg, #8e44ad, #3498db);
  color: white;
}

.whats-on-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.wo-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.wo-cards { display: flex; flex-direction: column; gap: 12px; }

.wo-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  transition: all var(--ease);
  cursor: pointer;
}

.wo-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-sm);
  transform: translateX(3px);
}

/* Date block */
.wo-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px;
  background: var(--red-light);
  border-radius: var(--r-sm);
  text-align: center;
  flex-shrink: 0;
}

.wo-month { font-size: 0.65rem; color: var(--red); font-weight: 600; text-transform: uppercase; }
.wo-day { font-size: 1.3rem; font-weight: 800; color: var(--red); line-height: 1.2; }
.wo-weekday { font-size: 0.65rem; color: var(--text-3); }

.wo-info { flex: 1; min-width: 0; }

.wo-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-bottom: 4px;
}

.wo-tag.free { background: var(--green-light); color: var(--green); }
.wo-tag.paid { background: var(--orange-light); color: var(--orange); }
.wo-tag.new-tag { background: var(--blue-light); color: var(--blue); }

.wo-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.wo-info > p {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wo-detail {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 6px;
}

.wo-source-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-3);
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.wo-from {
  font-style: italic;
  opacity: 0.7;
}

.wo-engagement { font-weight: 500; }

/* New Shop cards */
.wo-new-shop { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }

.wo-shop-img {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.wo-new-shop .wo-info { padding: 14px; }

/* News list */
.wo-news-list { display: flex; flex-direction: column; gap: 4px; }

.wo-news-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: all var(--ease);
  line-height: 1.4;
}

.wo-news-item:hover {
  background: var(--blue-light);
  color: var(--text);
}

.wo-news-cat {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--border-light);
  color: var(--text-3);
}

/* ===== Deals ===== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: all var(--ease);
  cursor: pointer;
}

.deal-card:hover {
  border-color: var(--orange);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.deal-card.urgent { border-left: 3px solid var(--red); }

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.deal-timer {
  font-size: 0.75rem;
  color: var(--text-3);
}

.deal-discount {
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.deal-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.deal-location {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 12px;
}

.deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-3);
}

.deal-engagement { display: flex; gap: 12px; }

.deal-source { font-style: italic; }

/* ===== Explore (探店) ===== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.explore-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--ease);
  cursor: pointer;
}

.explore-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}

.explore-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.explore-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fdcb6e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

.explore-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

.explore-body { padding: 16px; }

.explore-tags { display: flex; gap: 5px; margin-bottom: 8px; }

.etag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--blue-light);
  color: var(--blue);
}

.etag.hot { background: var(--red-light); color: var(--red); }
.etag.new { background: var(--green-light); color: var(--green); }

.explore-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.explore-excerpt {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.explore-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
}

.avatar {
  width: 24px;
  height: 24px;
  background: var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.explore-stats {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-3);
}

.explore-location {
  font-size: 0.75rem;
  color: var(--text-3);
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

/* ===== Experiences (经验) ===== */
.exp-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--ease);
  cursor: pointer;
}

.exp-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-sm);
}

.exp-card.featured {
  border: 2px solid var(--orange);
  background: linear-gradient(135deg, var(--surface) 0%, var(--orange-light) 100%);
}

.exp-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.exp-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--r-full);
}

.exp-badge.elite { background: var(--orange); color: white; }
.exp-badge.cat { background: var(--blue-light); color: var(--blue); }
.exp-badge.timeline { background: var(--green-light); color: var(--green); }

.exp-save-count {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-left: auto;
}

.exp-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.exp-card > p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.exp-key-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.exp-key-points span {
  font-size: 0.75rem;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-weight: 500;
}

.exp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.exp-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-author .avatar { width: 28px; height: 28px; }

.author-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.author-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--text-3);
}

.exp-stats {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ===== Realtime ===== */
.realtime-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.rt-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.rt-weather-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.rt-temp {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.rt-desc { color: var(--text-2); font-size: 0.85rem; }

.rt-weather-week {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rt-weather-week > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-2);
}

.rt-price-list { display: flex; flex-direction: column; gap: 10px; }

.rt-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-2);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.rt-price-row:last-child { border-bottom: none; padding-bottom: 0; }

.rt-price-row strong { color: var(--text); font-size: 0.95rem; }

.rt-low { color: var(--green) !important; }

.rt-update {
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-3);
}

/* Alerts */
.rt-alert-list { display: flex; flex-direction: column; gap: 10px; }

.rt-alert {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
}

.rt-alert.warn { background: var(--orange-light); }
.rt-alert.info { background: var(--blue-light); }
.rt-alert.good { background: var(--green-light); }

.rt-alert-icon { flex-shrink: 0; font-size: 1rem; }

.rt-alert p {
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

.rt-alert-time { font-size: 0.7rem; color: var(--text-3); }

/* ===== Q&A ===== */
.qa-grid { display: flex; flex-direction: column; gap: 12px; }

.qa-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: all var(--ease);
  cursor: pointer;
}

.qa-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-sm);
}

.qa-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 42px;
}

.vote-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color var(--ease);
  padding: 2px;
}

.vote-btn:hover { color: var(--primary); }

.vote-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.qa-content { flex: 1; min-width: 0; }

.qa-tags { display: flex; gap: 5px; margin-bottom: 6px; }

.qa-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--blue-light);
  color: var(--blue);
}

.qa-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.qa-answer-preview {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.qa-best {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

.qa-answer-preview p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qa-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ===== Tools Bar ===== */
.tools-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-chip {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--ease);
}

.tool-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

[data-theme="dark"] .footer { background: #08080f; }

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text { color: white; }
.footer-brand .logo-mark { background: rgba(255,255,255,0.15); }

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--ease);
}

.footer-social a:hover { border-color: rgba(255,255,255,0.4); color: white; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  padding: 3px 0;
  color: rgba(255,255,255,0.45);
  transition: color var(--ease);
}

.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-legal {
  text-align: center;
  padding: 12px 0;
  font-size: 0.75rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
  transition: color var(--ease);
}

.footer-legal a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  padding-top: 8px;
  text-align: center;
}

.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--ease);
  box-shadow: var(--sh-md);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== Ad Slots ===== */
.ad-slot { padding: 16px 0; }

.ad-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
}

.ad-placeholder:hover {
  border-color: var(--text-3);
}

.ad-label {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg);
  padding: 1px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

/* Leaderboard (728x90) */
.ad-leaderboard {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rectangle / Inline */
.ad-rectangle {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Demo content inside ad placeholder */
.ad-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
}

.ad-demo-icon { font-size: 1.8rem; opacity: 0.5; }

.ad-demo strong {
  font-size: 0.85rem;
  color: var(--text-2);
  display: block;
  margin-bottom: 2px;
}

.ad-demo p {
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* Native ad */
.ad-native {
  height: auto;
  padding: 0;
}

.ad-native-content {
  display: flex;
  gap: 0;
  min-height: 120px;
}

.ad-native-img {
  width: 200px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}

.ad-native-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ad-native-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ad-native-body strong {
  font-size: 0.95rem;
  color: var(--text);
}

.ad-native-body p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Sidebar ads */
.ad-sidebar-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.ad-sidebar {
  flex: 1;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-demo-vertical {
  flex-direction: column;
  text-align: center;
  gap: 6px;
}

.ad-demo-vertical strong { font-size: 0.82rem; }
.ad-demo-vertical p { font-size: 0.7rem; }

/* Responsive ads */
@media (max-width: 768px) {
  .ad-native-content { flex-direction: column; }
  .ad-native-img {
    width: 100%;
    height: 120px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .ad-sidebar-row { flex-direction: column; }
}

/* ===== Login Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.open { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--sh-xl);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-3);
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease);
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-xs);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
}

.auth-form input:focus { border-color: var(--primary); }

.auth-alt {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
}

.auth-alt a, .auth-tab-link { color: var(--primary); cursor: pointer; font-weight: 500; }

/* ===== Search Page ===== */
.search-page-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 20px;
  margin-bottom: 16px;
  transition: border-color var(--ease);
}

.search-page-bar:focus-within { border-color: var(--primary); }

.search-page-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.search-quick-tags a {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--text-2);
  transition: all var(--ease);
}

.search-quick-tags a:hover { border-color: var(--primary); color: var(--primary); }

.search-result-count {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--ease);
}

.search-result-item:hover { background: var(--bg); }

.search-result-type {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--blue-light);
  color: var(--blue);
  flex-shrink: 0;
}

.search-result-title { font-size: 0.9rem; font-weight: 500; }

.trending-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trending-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  transition: background var(--ease);
  font-size: 0.9rem;
  color: var(--text);
}

.trending-card:hover { background: var(--bg-alt); color: var(--text); }

.trending-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-3);
  min-width: 20px;
}

.trending-card:nth-child(-n+3) .trending-num { color: var(--primary); }

.trending-hot { margin-left: auto; font-size: 0.8rem; }

.search-default h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

/* ===== Post/Form Page ===== */
.page-title { font-size: 1.6rem; font-weight: 800; }

.post-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--red); }

.form-input, .form-textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
}

.form-input:focus, .form-textarea:focus { border-color: var(--primary); }

.form-textarea { resize: vertical; line-height: 1.6; }

.form-hint { font-size: 0.72rem; color: var(--text-3); }

.post-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.post-type-option input { display: none; }

.post-type-card {
  display: block;
  text-align: center;
  padding: 16px 8px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--ease);
}

.post-type-option input:checked + .post-type-card {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.post-type-card:hover { border-color: var(--text-3); }

.editor-toolbar {
  display: flex;
  gap: 2px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.editor-toolbar button {
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--ease);
}

.editor-toolbar button:hover { background: var(--border-light); }

.editor-toolbar + .form-textarea { border-radius: 0 0 var(--r-sm) var(--r-sm); }

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease);
}

.upload-area:hover { border-color: var(--text-3); }

.upload-placeholder p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin: 8px 0 4px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

/* ===== Subpage shared ===== */
.page-header {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 0.88rem;
  color: var(--text-3);
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Article Detail Page ===== */
.article-container { max-width: 760px; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 16px 0;
}

.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }

.article-header { margin-bottom: 24px; }

.article-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.article-cat {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--primary-light);
  color: var(--primary);
}

.article-date { font-size: 0.78rem; color: var(--text-3); }

.article-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.article-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 12px;
}

.article-byline {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-hero-img {
  margin-bottom: 28px;
  background-size: cover;
  background-position: center;
}

.article-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.article-body p { margin-bottom: 16px; }

.article-body img {
  border-radius: var(--r-md);
  margin: 16px 0;
}

.article-body ul, .article-body ol {
  margin: 12px 0 16px 20px;
}

.article-body li {
  list-style: disc;
  margin-bottom: 6px;
}

.article-info-box {
  background: var(--blue-light);
  border-radius: var(--r-md);
  padding: 20px;
  margin: 20px 0;
}

.article-info-box h4 {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.article-info-box ul { margin: 0; }
.article-info-box li {
  list-style: none;
  font-size: 0.88rem;
  padding: 4px 0;
}

.article-source-box {
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.article-source-box p {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 8px;
}

.source-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  transition: all var(--ease);
}

.source-link:hover {
  border-color: var(--blue);
  color: var(--text);
}

.source-name { font-weight: 600; }
.source-url { color: var(--blue); font-size: 0.8rem; }

.article-actions {
  display: flex;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
}

.action-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: all var(--ease);
  font-family: var(--font);
}

.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.article-related { margin-bottom: 40px; }

.article-related h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.related-grid { display: flex; flex-direction: column; gap: 6px; }

.related-item {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--ease);
}

.related-item:hover {
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 768px) {
  .article-header h1 { font-size: 1.3rem; }
  .article-subtitle { font-size: 0.88rem; }
  .article-byline { flex-wrap: wrap; gap: 8px; }
  .article-actions { flex-wrap: wrap; }
  .article-body { font-size: 0.9rem; }
  .article-hero-img { min-height: 180px !important; }
  .source-link { flex-direction: column; gap: 4px; }
  .article-info-box { padding: 14px; }
  .related-item { font-size: 0.82rem; }
}

/* ===== Nav Search ===== */
.nav-search-btn {
  background: none;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: all var(--ease);
}

.nav-search-btn:hover { border-color: var(--primary); color: var(--primary); }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-overlay.open { display: flex; }

.search-modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--sh-xl);
  overflow: hidden;
}

.search-modal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-modal-input svg { color: var(--text-3); flex-shrink: 0; }

.search-modal-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
}

.search-modal-input input::placeholder { color: var(--text-3); }

.search-modal-close {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-3);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font);
}

.search-modal-close:hover { background: var(--bg); }

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--ease);
}

.search-result-link:hover { background: var(--bg); color: inherit; }

.search-result-link .sr-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.search-result-link .sr-info { flex: 1; min-width: 0; }

.search-result-link .sr-cat {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 1px 6px;
  border-radius: var(--r-full);
}

.search-result-link .sr-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.3;
}

.search-no-result {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.88rem;
}

.search-hint {
  padding: 12px 20px;
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

/* ===== Today's Articles Grid ===== */
.today-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.today-card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--ease);
  text-decoration: none;
  color: inherit;
}

.today-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  color: inherit;
}

.today-card.today-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
}

[data-theme="dark"] .today-card.today-featured {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1e3a 100%);
}

.today-featured h3 { font-size: 1.15rem; }
.today-featured p {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}

.today-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 8px;
}

/* Card with thumbnail */
.today-card-has-img {
  display: flex;
  gap: 16px;
  align-items: center;
}

.today-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.today-card-has-img .today-card-text { flex: 1; min-width: 0; }

.today-card.today-featured .today-thumb {
  width: 200px;
  height: 130px;
  border-radius: var(--r-md);
}

@media (max-width: 480px) {
  .today-card-has-img { flex-direction: column; gap: 10px; }
  .today-thumb { width: 100%; height: 140px; }
  .today-card.today-featured .today-thumb { width: 100%; height: 160px; }
}

.today-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.today-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-card.today-featured { grid-column: 1; }
}

/* ===== Channel Cards ===== */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--ease);
  text-decoration: none;
  color: inherit;
}

.channel-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  color: inherit;
}

.channel-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--r-md);
}

.channel-info { flex: 1; min-width: 0; }

.channel-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.channel-info p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 4px;
}

.channel-sources {
  font-size: 0.68rem;
  color: var(--text-3);
}

.channel-arrow {
  font-size: 1.2rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform var(--ease);
}

.channel-card:hover .channel-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

@media (max-width: 768px) {
  .channels-grid { grid-template-columns: 1fr; }
  .channel-card { padding: 16px; }
  .channel-icon { width: 44px; height: 44px; font-size: 1.6rem; }
  .channel-info h3 { font-size: 0.95rem; }
}

/* ===== Card Clickable Overlay ===== */
.wo-card,
.deal-card,
.explore-card,
.exp-card,
.qa-card {
  position: relative;
}

.wo-card h4 a,
.deal-card h3 a,
.explore-card h3 a,
.exp-card h3 a {
  text-decoration: none;
  color: inherit;
}

.wo-card h4 a::after,
.deal-card h3 a::after,
.explore-card h3 a::after,
.exp-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wo-source-line,
.deal-footer,
.explore-meta,
.exp-footer,
.wo-detail {
  position: relative;
  z-index: 2;
}

/* ===== Test Banner ===== */
.test-banner {
  padding: 10px 16px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: #856404;
  margin-bottom: 16px;
  text-align: center;
}

[data-theme="dark"] .test-banner {
  background: #332b00;
  border-color: #665500;
  color: #ffda6a;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NEW COMPONENTS — HuarenDaily-specific
   ============================================================ */

/* ===== Geo Selector ===== */
.geo-selector {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--ease);
  font-family: var(--font);
}
.geo-selector:hover { border-color: var(--primary); color: var(--primary); }

.geo-dropdown {
  display: none;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  z-index: 1001;
  padding: 16px;
}
.geo-dropdown.open { display: block; }

.geo-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 4px;
}
.geo-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease);
}
.geo-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-xs);
}
.geo-state-group { margin-bottom: 12px; }
.geo-state-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.geo-city-item {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all var(--ease);
}
.geo-city-item:hover { background: var(--primary-light, #eff6ff); color: var(--primary); }
.geo-city-item.active { background: var(--primary); color: white; }

/* ===== City Grid ===== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.city-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--ease);
  text-decoration: none;
  color: inherit;
}
.city-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  color: inherit;
}
.city-card-info { flex: 1; min-width: 0; }
.city-card-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.city-card-info p { font-size: 0.8rem; color: var(--text-3); margin-bottom: 4px; }
.city-card-stats {
  font-size: 0.7rem;
  color: var(--text-3);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* ===== State Sections ===== */
.state-section { margin-bottom: 32px; }
.state-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

/* ===== Section More Link ===== */
.section-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--ease);
}
.section-more-link:hover { color: var(--primary-dark, #1d4ed8); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .whats-on-grid { grid-template-columns: 1fr; }
  .deals-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .realtime-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    z-index: 999;
    gap: 2px;
  }

  .nav-links.open .nav-item {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .mobile-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  .mobile-actions .btn-outline,
  .mobile-actions .btn-primary {
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 10px;
  }

  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.88rem; }

  .hero-live-bar {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    padding: 10px 16px;
    border-radius: var(--r-lg);
  }

  .live-divider { display: none; }

  .explore-grid { grid-template-columns: 1fr; }
  .realtime-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .section { padding: 40px 0; }

  .geo-dropdown { left: 10px; right: 10px; transform: none; max-width: none; }
  .geo-selector { display: none; }
}

/* Mobile: hero (additional) */
@media (max-width: 768px) {
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.85rem; }
  .hero-live-bar {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    padding: 10px 14px;
    border-radius: var(--r-lg);
    max-width: 100%;
  }
  .live-divider { display: none; }
}

/* Mobile: search overlay */
@media (max-width: 768px) {
  .search-overlay { padding-top: 10px; padding-left: 10px; padding-right: 10px; }
  .search-modal { border-radius: var(--r-lg); }
  .search-results-list { max-height: 60vh; }
}

/* Mobile: realtime grid */
@media (max-width: 768px) {
  .realtime-grid { grid-template-columns: 1fr; }
}

/* Mobile: card thumbnails */
@media (max-width: 480px) {
  .today-thumb { width: 80px; height: 60px; }
  .today-card.today-featured .today-thumb { width: 100%; height: 140px; }
  .today-card.today-featured .today-card-has-img { flex-direction: column; }
  .search-tabs { flex-wrap: wrap; }
  .filter-pills { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .footer-links { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PREMIUM DESIGN ENHANCEMENTS
   视觉升级：让整体更精致、更高级
   ============================================================ */

/* --- 全局精修 --- */
body { letter-spacing: 0.01em; }
::selection { background: rgba(37,99,235,0.15); color: var(--primary-dark); }

/* --- Logo 升级 --- */
.logo-mark {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.logo-text {
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .logo-text {
  background: linear-gradient(135deg, #fff 0%, #b0b0c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --- Navbar 玻璃质感 --- */
.navbar {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .navbar {
  background: rgba(15,15,26,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

/* --- Hero 重新设计 --- */
.hero {
  padding: 80px 0 56px;
}
.hero-bg {
  background: linear-gradient(160deg, #0a0a1a 0%, #0f172a 20%, #1e1b4b 45%, #312e81 70%, #3b38c9 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}
.hero-bg::after {
  background:
    radial-gradient(ellipse 600px 400px at 25% 50%, rgba(99,102,241,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 75% 40%, rgba(139,92,246,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 300px 200px at 50% 80%, rgba(37,99,235,0.1) 0%, transparent 70%);
}
.hero h1 {
  font-size: 3.2rem;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

/* --- Live Bar 玻璃态 --- */
.hero-live-bar {
  padding: 14px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border-radius: var(--r-full);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.live-item strong {
  color: #fbbf24;
  font-weight: 700;
}

/* --- Section 标题装饰 --- */
.section-title h2 {
  position: relative;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  border-radius: 2px;
  margin-top: 6px;
}
.section-badge {
  background: var(--primary-light);
  color: var(--primary);
}

/* --- 城市卡片升级 --- */
.city-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.city-card {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), #7c3aed);
  opacity: 0;
  transition: opacity var(--ease);
}
.city-card:hover::before { opacity: 1; }
.city-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
[data-theme="dark"] .city-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.2), 0 2px 8px rgba(0,0,0,0.3);
}
.city-card-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.city-card-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--text-3);
}
.city-weather {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0;
}
.city-name-en {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 4px;
}

/* --- Channel 卡片升级 --- */
.channels-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.channel-card {
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.channel-icon {
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary-light), var(--bg));
  border: 1px solid var(--border-light);
}
[data-theme="dark"] .channel-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), transparent);
}
.channel-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}
.channel-card:hover .channel-icon {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.channel-info h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* --- Today 卡片升级 --- */
.today-grid {
  gap: 16px;
}
.today-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.25s ease;
}
.today-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(37,99,235,0.1), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}
.today-card.today-featured {
  background: linear-gradient(135deg, var(--surface) 0%, var(--primary-light) 100%);
  border: 2px solid rgba(37,99,235,0.2);
}
[data-theme="dark"] .today-card.today-featured {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(37,99,235,0.08) 100%);
}
.today-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* --- 面包屑升级 --- */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.82rem;
}
.breadcrumb a:hover { color: var(--primary); }

/* --- Page Header 升级 --- */
.page-header {
  padding: 40px 0;
  border-bottom: none;
  margin-bottom: 36px;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 0.92rem;
  color: var(--text-2);
}

/* --- State Section 升级 --- */
.state-section {
  margin-bottom: 40px;
}
.state-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Source Tags --- */
.source-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.src-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.06));
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.12);
}

/* --- Section More Link --- */
.section-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(37,99,235,0.2);
  transition: all var(--ease);
}
.section-more-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

/* --- Footer 升级 --- */
.footer {
  background: #0a0a1a;
  padding: 56px 0 28px;
}
[data-theme="dark"] .footer { background: #050510; }
.footer-top {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo-mark {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
}
.footer-brand .logo-text {
  background: linear-gradient(135deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
}
.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* --- Geo Selector 升级 --- */
.geo-selector {
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--ease);
  cursor: pointer;
  font-family: var(--font);
}
.geo-selector:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}
.geo-dropdown {
  display: none;
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  max-height: 65vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  z-index: 1001;
  padding: 20px;
  animation: dropIn 0.2s ease;
}
.geo-dropdown.open { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.geo-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 4px;
}
.geo-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease);
}
.geo-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-sm);
}
.geo-state-group { margin-bottom: 8px; }
.geo-state-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 10px 4px;
}
.geo-city-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all var(--ease);
  font-weight: 500;
}
.geo-city-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 18px;
}
.geo-city-item.active {
  background: var(--primary);
  color: white;
}

/* --- Exp Card 升级 --- */
.exp-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.25s ease;
}
.exp-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}

/* --- Back to Top 升级 --- */
.back-to-top {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.4);
}

/* --- Scroll Reveal 升级 --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Nav Search 升级 --- */
.nav-search-btn {
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: all var(--ease);
}
.nav-search-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* --- 天气条在白色背景下的样式 --- */
.weather-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-radius: var(--r-full);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.2);
}
.weather-bar .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.weather-bar strong { color: #fbbf24; }
[data-theme="dark"] .weather-bar {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* --- Lang Toggle --- */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* --- 响应式补充 --- */
@media (max-width: 768px) {
  .hero { padding: 56px 0 36px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.9rem; }
  .channels-grid { grid-template-columns: 1fr; }
  .geo-dropdown { left: 10px; right: 10px; transform: none; max-width: none; border-radius: var(--r-lg); }
  .geo-selector { font-size: 0.75rem; padding: 5px 12px; }
  .page-header h1 { font-size: 1.5rem; }
  .section-more-link { font-size: 0.78rem; padding: 4px 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-live-bar { padding: 10px 16px; border-radius: var(--r-lg); }
}

/* --- 暗黑模式补全 --- */
[data-theme="dark"] .city-weather { color: var(--text); }
[data-theme="dark"] .city-name-en { color: var(--text-3); }
[data-theme="dark"] .src-tag {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.1));
  border-color: rgba(37,99,235,0.2);
  color: #93c5fd;
}
[data-theme="dark"] .state-title { border-bottom-color: var(--border); }
[data-theme="dark"] .section-more-link { border-color: rgba(37,99,235,0.3); }
[data-theme="dark"] .geo-city-item:hover { background: rgba(37,99,235,0.15); }

/* --- 移动端适配补全 --- */
@media (max-width: 768px) {
  .weather-bar { padding: 10px 16px; font-size: 0.82rem; gap: 10px; border-radius: var(--r-lg); }
  .city-weather { font-size: 0.78rem; }
  .city-name-en { font-size: 0.72rem; }
  .src-tag { font-size: 0.68rem; padding: 3px 8px; }
  .state-title { font-size: 1rem; }
}
