/* ===================================================
   LIFE 生活網 V6 — 共用樣式 (Mobile-First)
   主色：深藍 #00326e + 金黃 #FFC107
   從設計稿 index.html 提取
   =================================================== */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #00326e;
  --primary-dark: #001d42;
  --primary-light: #0055b3;
  --accent: #FFC107;
  --accent-light: #FFF8E1;
  --accent-hover: #FFD54F;
  --red: #E53935;
  --red-light: #FFEBEE;
  --green: #43A047;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-tertiary: #8E8EA0;
  --bg: #FFFFFF;
  --bg-warm: #FAFBFC;
  --bg-section: #F5F6F8;
  --bg-dark: #0a1628;
  --border: #E4E7EC;
  --border-light: #F0F1F3;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --max-w: 1240px;
  --transition: 0.2s ease;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== TOPBAR ===== */
.topbar {
  display: none;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left time { font-weight: 500; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { transition: color var(--transition); }
.topbar-links a:hover { color: var(--primary); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-life {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.logo-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.logo-tagline {
  display: none;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-left: 12px;
  font-weight: 400;
}

/* Desktop Nav */
.main-nav { display: none; align-items: center; gap: 2px; }
.main-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  position: relative;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.main-nav a.active { color: var(--accent); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--accent); color: var(--primary); }
.icon-btn:active { transform: scale(0.92); }
.menu-btn { display: flex; }

/* ===== MOBILE DRAWER MENU ===== */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: #fff;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--primary);
  color: #fff;
}
.drawer-header .drawer-logo { font-weight: 900; font-size: 1.1rem; }
.drawer-header .drawer-logo span { color: var(--accent); }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.drawer-nav { padding: 8px 0; flex: 1; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
  min-height: 48px;
}
.drawer-nav a:active { background: var(--bg-section); }
.drawer-nav a .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.drawer-divider { height: 1px; background: var(--border-light); margin: 4px 16px; }
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.drawer-footer a { color: var(--text-secondary); }

/* ===== BREAKING TICKER ===== */
.ticker {
  background: var(--accent);
  padding: 10px 0;
  overflow: hidden;
}
.ticker .container { display: flex; align-items: center; gap: 12px; }
.ticker-badge {
  flex-shrink: 0;
  background: var(--primary);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.ticker-content { overflow: hidden; flex: 1; }
.ticker-scroll {
  display: inline-flex;
  gap: 48px;
  animation: ticker-slide 30s linear infinite;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
.ticker-scroll a { color: var(--primary); }
.ticker-scroll a:hover { text-decoration: underline; }
.ticker-divider { color: var(--primary-light); opacity: 0.4; }
@keyframes ticker-slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 calc(6px + var(--safe-bottom));
  z-index: 90;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-tertiary);
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
  min-height: 44px;
  justify-content: center;
}
.bottom-nav a .nav-icon { font-size: 1.25rem; line-height: 1; }
.bottom-nav a.active { color: var(--primary); font-weight: 700; }
.bottom-nav a:active { transform: scale(0.93); }

/* Add bottom padding for bottom nav on mobile */
body { padding-bottom: 64px; }

/* ===== FOCUS GRID (Local/World 焦點區塊) ===== */
.focus-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
.focus-side { display: flex; flex-direction: column; }
.side-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.side-item:last-child { border-bottom: none; }
.side-item:hover { background: var(--bg-warm); border-radius: var(--radius-xs); }
.side-item img {
  width: 120px;
  min-width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--bg-section);
}
.side-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-item p,
.side-item .meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 4px 0 0;
}
@media (max-width: 480px) {
  .side-item img { width: 96px; min-width: 96px; height: 64px; }
  .side-item h3 { font-size: 0.88rem; }
}

/* ===== SPINNER (替代 Bootstrap spinner-border) ===== */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  text-align: center;
  padding: 24px 0;
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

/* ===== MAIN CONTENT ===== */
#main { min-height: calc(100vh - 150px); }

/* ===== SECTION COMMON ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 14px;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.section-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { text-decoration: underline; }

/* ===== HERO SECTION ===== */

/* Hero 動畫 keyframes */
@keyframes heroKenBurns {
  0%   { transform: scale(1)   translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1)   translate(0, 0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroOverlaySlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero { padding: 12px 0; }
.hero-grid { display: grid; gap: 10px; }

/* 大圖 */
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  animation: heroFadeUp 0.6s ease both;
}
.hero-main img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  animation: heroKenBurns 20s ease-in-out infinite;
  transition: transform 0.5s ease;
}
.hero-main:hover img {
  animation-play-state: paused;
  transform: scale(1.03);
}
.hero-main::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px 20px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 1;
}
.hero-main .hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 64px 20px 20px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.9) 100%);
  color: #fff;
  animation: heroOverlaySlide 0.6s ease 0.2s both;
  z-index: 2;
}
.hero-main .hero-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  animation: heroFadeUp 0.5s ease 0.3s both;
}
.hero-main h2 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  animation: heroFadeUp 0.5s ease 0.4s both;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-main .hero-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: heroFadeUp 0.5s ease 0.5s both;
}

/* 小圖 */
.hero-sub { display: flex; gap: 10px; }
.hero-sub-card {
  flex: 1;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  animation: heroFadeUp 0.5s ease both;
}
.hero-sub-card:nth-child(1) { animation-delay: 0.15s; }
.hero-sub-card:nth-child(2) { animation-delay: 0.3s; }
.hero-sub-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.hero-sub-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.hero-sub-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 40px 12px rgba(0,0,0,0.12);
  pointer-events: none;
  z-index: 1;
}
.hero-sub-card .hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.85) 100%);
  transition: transform 0.3s ease;
  z-index: 2;
}
.hero-sub-card:hover .hero-overlay {
  transform: translateY(-4px);
}
.hero-sub-card .hero-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.hero-sub-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== TRENDING / HOT SECTION ===== */
.trending-section { padding: 0 0 8px; }
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-xs);
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--bg-warm); }
.trending-rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-tertiary);
  background: var(--bg-section);
}
.trending-item:nth-child(1) .trending-rank,
.trending-item:nth-child(2) .trending-rank,
.trending-item:nth-child(3) .trending-rank {
  background: var(--primary);
  color: var(--accent);
}
.trending-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 94px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-section);
}
.trending-info { flex: 1; min-width: 0; }
.trending-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.trending-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: flex;
  gap: 8px;
}
.trending-meta .hot { color: var(--red); font-weight: 600; }

/* ===== CATEGORY CONTENT SECTIONS ===== */
.cat-section { padding: 8px 0 16px; }
.cat-section + .cat-section { border-top: 1px solid var(--border-light); }
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cat-card {
  display: flex;
  gap: 14px;
  cursor: pointer;
  padding: 4px 0;
}
.cat-card-img {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-section);
  transition: transform 0.3s;
}
.cat-card:hover .cat-card-img { transform: scale(1.03); }
.cat-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cat-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 4px;
}
.cat-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card .card-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ===== EDITOR PICKS ===== */
.editor-section {
  background: var(--bg-section);
  padding: 24px 0 32px;
  margin: 8px 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.editor-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.25s;
}
.editor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.editor-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.editor-card-body { padding: 16px; }
.editor-card .editor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.editor-card h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editor-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== VIDEO SECTION ===== */
.video-section { padding: 16px 0 24px; }
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.video-card:hover .video-play { background: var(--red); transform: translate(-50%, -50%) scale(1.1); }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.video-info { padding: 12px 4px; }
.video-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-info .card-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ===== LATEST NEWS FEED ===== */
.latest-section { padding: 16px 0 24px; }
.content-layout { display: block; }
.feed-list { display: flex; flex-direction: column; }
.feed-item {
  display: flex;
  gap: 16px;
  padding: 18px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-xs);
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--bg-warm); }
.feed-body { flex: 1; min-width: 0; }
.feed-body .feed-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.feed-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-body p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: none;
}
.feed-body .feed-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 107px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-section);
}
.load-more-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
  padding: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.load-more-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Sidebar (desktop only) */
.sidebar { display: none; }
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-widget h3::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== NEWSLETTER CTA ===== */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 32px 20px;
  text-align: center;
  color: #fff;
}
.newsletter h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.newsletter p {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-hover); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 24px;
}
.footer-brand {
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand p { line-height: 1.6; margin-bottom: 12px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
  font-size: 1rem;
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }

/* Mobile: accordion style footer columns */
.footer-col { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.footer-col h4::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s;
}
.footer-col.open h4::after { content: '−'; }
.footer-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.footer-col.open .footer-links {
  max-height: 300px;
  padding-bottom: 12px;
}
.footer-links a {
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--accent); }

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  justify-content: center;
}
.footer-trust a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.search-overlay.active { display: flex; }
.search-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  width: 90%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}
.search-box input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--primary); }
.search-box .search-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.search-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.search-tags a {
  padding: 6px 14px;
  background: var(--bg-section);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.search-tags a:hover { background: var(--accent-light); color: var(--primary); }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 12px 0; font-size: 0.82rem; color: var(--text-tertiary); }
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== MOBILE CATEGORY TABS ===== */
.category-tabs {
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  padding: 0 8px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a {
  display: inline-block;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s;
}
.category-tabs a.active { color: var(--primary); border-bottom-color: var(--accent); }

/* ===== ARTICLE PAGE ===== */
.article-content { min-width: 0; }

/* Article header */
.article-header { padding: 20px 0 0; }
.article-header .category-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 16px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}
.article-author-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.article-author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.article-author-name { font-weight: 600; }
.article-meta-time { color: var(--text-tertiary); font-size: 0.82rem; }
.article-share {
  display: flex; gap: 8px; margin-left: auto;
}
.article-share .share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.article-share .share-btn:hover { background: var(--accent-light); color: var(--primary); }

/* Hero image */
.article-hero { margin: 20px -16px; }
.article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-hero figcaption {
  padding: 10px 16px;
  background: var(--bg-section);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* AI Summary / Key points */
.ai-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 24px 0;
  overflow: hidden;
}
.ai-summary-header {
  background: var(--bg-section);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.ai-summary-body {
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.ai-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-summary-item:last-child { margin-bottom: 0; }
.ai-summary-bullet {
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 6px;
  flex-shrink: 0;
}

/* Article tags & people/orgs */
.article-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-section);
  color: var(--text-secondary);
  font-size: 0.82rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  text-decoration: none;
}
.article-tag:hover { background: var(--accent-light); color: var(--primary); }
.article-people-row, .article-orgs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
.article-people-label, .article-orgs-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-right: 2px;
}
.article-person-link {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #d2e3fc;
}
.article-person-link:hover { background: #d2e3fc; }
.article-org-link {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #c8e6c9;
}
.article-org-link:hover { background: #c8e6c9; }

/* Article body */
/* 字級可調：透過 .article-body[data-fs="-1|0|1"] 切換 --fs-scale */
.article-body {
  --fs-scale: 1;
  font-size: calc(1.1rem * var(--fs-scale));
  line-height: 1.85;
  color: var(--text);
  padding: 24px 0;
}
.article-body[data-fs="-1"] { --fs-scale: 0.92; }
.article-body[data-fs="1"]  { --fs-scale: 1.14; }
.article-body h2 {
  font-size: calc(1.35rem * var(--fs-scale));
  font-weight: 700;
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
  scroll-margin-top: 80px;
}
.article-body h3 {
  font-size: calc(1.15rem * var(--fs-scale));
  font-weight: 700;
  margin: 24px 0 12px;
  line-height: 1.4;
  scroll-margin-top: 80px;
}

/* 字級切換按鈕組 */
.font-size-toggle {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  margin-right: 4px;
}
.font-size-toggle .share-btn {
  width: 32px;
  min-width: 32px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding: 0;
}
.font-size-toggle .share-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}
.font-size-toggle .share-btn[data-fs="-1"] { font-size: 0.7rem; }
.font-size-toggle .share-btn[data-fs="0"] { font-size: 0.85rem; }
.font-size-toggle .share-btn[data-fs="1"] { font-size: 0.95rem; }

/* 圖片 lightbox */
.article-body img {
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.article-body img:hover { opacity: 0.92; }
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  animation: lightboxFade 0.18s ease;
}
.image-lightbox.active { display: flex; }
.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xs);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.image-lightbox-close:hover { background: rgba(255,255,255,0.25); }
@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .image-lightbox { animation: none; }
}

/* 文章 TOC（h2 ≥ 3 才顯示）*/
.article-toc {
  background: var(--bg-section);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin: 0 0 24px;
}
.article-toc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.article-toc-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.article-toc-list li { margin-bottom: 4px; line-height: 1.5; }
.article-toc-list a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.article-toc-list a:hover { color: var(--primary); text-decoration: underline; }
.article-toc-list ul {
  margin: 4px 0 4px 16px;
  padding-left: 0;
  list-style: none;
}
.article-toc-list ul a { font-size: 0.85rem; }

/* H2/H3 hover 顯示錨點連結 */
.article-body h2 .anchor-link,
.article-body h3 .anchor-link {
  margin-left: 8px;
  opacity: 0;
  font-size: 0.7em;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: opacity 0.15s;
}
.article-body h2:hover .anchor-link,
.article-body h3:hover .anchor-link { opacity: 0.6; }
.article-body h2 .anchor-link:hover,
.article-body h3 .anchor-link:hover { opacity: 1; color: var(--primary); }
.article-body p { margin-bottom: 16px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  font-style: italic;
  color: var(--text-secondary);
}
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body figure { margin: 24px 0; }
.article-body figure img { width: 100%; border-radius: var(--radius-sm); }
.article-body figcaption { padding: 10px 0; font-size: 0.85rem; color: var(--text-tertiary); }
.article-body a { color: var(--primary-light); text-decoration: underline; }
.article-body a:hover { color: var(--accent); }
.article-body img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-xs);
  aspect-ratio: auto;
}
/* 文章內嵌入圖片未載入前預留空間 */
.article-body img[data-src]:not([src^="data:"]) {
  min-height: 200px;
  background: var(--bg-section);
}
.article-body table {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  margin: 16px 0;
}
.article-body table td, .article-body table th {
  padding: 10px;
  border: 1px solid var(--border);
  word-break: break-word;
}
.article-body div, .article-body p, .article-body span {
  max-width: 100% !important;
  overflow-wrap: break-word;
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 16px;
  padding: 20px;
  margin: 32px 0;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.author-bio-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 700; flex-shrink: 0;
}
.author-bio-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-bio-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-bio-link {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
}
.author-bio-link:hover { text-decoration: underline; }

/* Related articles */
.related-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.related-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.related-card-body { padding: 14px; }
.related-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}
.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-meta { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 6px; }

/* Reading progress bar */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff8f00);
  z-index: 9999;
  width: 0;
  transition: width 0.15s linear;
  pointer-events: none;
}

/* Sidebar article-page specific */
.sidebar-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.sidebar-rank-item:last-child { border-bottom: none; }
.sidebar-rank-item:hover { background: var(--bg-warm); }
.sidebar-rank-num {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  background: var(--bg-section); color: var(--text-tertiary);
  flex-shrink: 0;
}
.sidebar-rank-item:nth-child(-n+3) .sidebar-rank-num {
  background: var(--primary); color: var(--accent);
}
.sidebar-rank-title {
  font-size: 0.85rem; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-article-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-item:hover { background: var(--bg-warm); }
.sidebar-article-thumb {
  width: 80px; height: 54px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-article-title {
  font-size: 0.82rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Night mode overrides for article */
[data-theme="night"] .ai-summary { border-color: var(--border); }
[data-theme="night"] .ai-summary-header { background: var(--bg-section); border-color: var(--border); }
[data-theme="night"] .article-person-link { background: rgba(30,64,175,0.15); color: #7aa8f0; border-color: rgba(30,64,175,0.3); }
[data-theme="night"] .article-org-link { background: rgba(46,125,50,0.15); color: #81c784; border-color: rgba(46,125,50,0.3); }
[data-theme="night"] .author-bio { background: var(--bg-warm); border-color: var(--border); }
[data-theme="night"] .related-card { background: var(--bg-warm); border-color: var(--border); }

/* ===== RESPONSIVE: MOBILE ENHANCEMENTS (< 768px) ===== */
@media (max-width: 767px) {
  .category-tabs a { padding: 12px 14px; min-height: 44px; }
  .trending-item { padding: 16px 0; min-height: 64px; }
  .feed-item { padding: 16px 0; }
  .load-more-btn { padding: 16px; font-size: 0.95rem; min-height: 52px; }

  .hero { padding: 10px 0 0; }
  .hero-main .hero-overlay { padding: 40px 16px 16px; }
  .hero-main h2 { font-size: 1.15rem; line-height: 1.55; }
  .hero-sub { gap: 8px; }
  .hero-sub-card .hero-overlay { padding: 24px 10px 10px; }
  .hero-sub-card h3 { font-size: 0.82rem; }

  .cat-card:active, .editor-card:active, .feed-item:active, .trending-item:active {
    background: var(--bg-section);
    border-radius: var(--radius-sm);
  }

  .editor-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .editor-grid::-webkit-scrollbar { display: none; }
  .editor-card {
    min-width: 280px;
    max-width: 300px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .video-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-card {
    min-width: 260px;
    max-width: 300px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .newsletter { padding: 28px 16px; }
  .newsletter h2 { font-size: 1.1rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 14px; text-align: center; }

  .site-footer { padding: 28px 0 calc(16px + 64px); }
  .footer-brand p { font-size: 0.82rem; }
  .footer-trust { font-size: 0.75rem; gap: 10px 14px; }

  .search-overlay { padding-top: 8vh; }
  .search-box { width: 95%; padding: 16px; }
  .search-box input { font-size: 1rem; padding: 14px; }
}

/* ===== RESPONSIVE: TABLET (768px+) ===== */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .topbar { display: block; }
  .header-inner { height: 64px; }
  .logo-life { font-size: 1.7rem; }
  .logo-tagline { display: inline; }
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .category-tabs { display: none; }
  .bottom-nav { display: none; }
  .mobile-drawer, .drawer-backdrop { display: none !important; }
  body { padding-bottom: 0; }

  .hero-main h2 { font-size: 1.5rem; }
  .hero-sub-card h3 { font-size: 0.95rem; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .editor-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feed-body p { display: -webkit-box; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .footer-brand { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .footer-col { border-bottom: none; }
  .footer-col h4 { cursor: default; padding: 0 0 12px; }
  .footer-col h4::after { display: none; }
  .footer-links { max-height: none; overflow: visible; padding-bottom: 0; }
  .footer-trust { justify-content: flex-start; }
  .footer-bottom { text-align: left; display: flex; justify-content: space-between; }

  .newsletter { padding: 48px 24px; border-radius: var(--radius); margin: 24px auto; max-width: var(--max-w); }
  .newsletter h2 { font-size: 1.4rem; }
}

/* ===== RESPONSIVE: DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
  }
  .hero-main { grid-row: 1; }
  .hero-main h2 { font-size: 1.7rem; -webkit-line-clamp: 3; }
  .hero-main .hero-overlay { padding: 60px 28px 28px; }
  .hero-sub { flex-direction: column; }
  .hero-sub-card img { aspect-ratio: 16/10; }
  .hero-sub-card h3 { font-size: 1rem; }

  .trending-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }

  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card { flex-direction: column; gap: 0; }
  .cat-card-img { width: 100%; height: auto; aspect-ratio: 16/10; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .cat-card-body { padding: 12px 4px; }
  .cat-card h4 { font-size: 1rem; }

  .editor-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }

  .trending-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }
  .trending-thumb { width: 160px; height: 107px; }
  .trending-info h3 { font-size: 1.1rem; }

  .feed-thumb { width: 200px; height: 134px; }
  .feed-body h3 { font-size: 1.1rem; }
  .feed-body p { display: -webkit-box; }

  /* Article page desktop */
  .article-container { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
  .focus-grid { grid-template-columns: 7fr 5fr; }
  .article-container .sidebar { display: block; }
  .article-title { font-size: 2rem; }
  .article-hero { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
  .related-grid { grid-template-columns: 1fr 1fr; }

  .content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
  .sidebar { display: block; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer-brand { border-bottom: none; }
}

/* ===== RESPONSIVE: LARGE DESKTOP (1280px+) ===== */
@media (min-width: 1280px) {
  .hero-main h2 { font-size: 1.9rem; }
}

/* ===== WEATHER WIDGET (Sidebar) ===== */
.weather-now { text-align: center; padding: 8px 0 16px; border-bottom: 1px solid var(--border-light); }
.weather-now-temp { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.weather-now-desc { font-size: 0.88rem; color: var(--text-secondary); margin-top: 6px; }
.weather-now-range { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 4px; }
.weather-forecast { padding-top: 12px; }
.weather-forecast-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.weather-forecast-row.last { border-bottom: none; }
.weather-forecast-day { width: 50px; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.weather-forecast-icon { font-size: 1.2rem; width: 30px; text-align: center; }
.weather-forecast-rain { font-size: 0.75rem; color: #4a90d9; width: 40px; text-align: center; }
.weather-forecast-temp { font-size: 0.82rem; color: var(--text-tertiary); width: 60px; text-align: right; }

/* ===== FOCUS VISIBLE (Keyboard Navigation) ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero-main:focus-visible, .hero-sub-card:focus-visible, .trending-item:focus-visible, .feed-item:focus-visible, .cat-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-scroll { animation: none; }
  .hero-main img { animation: none; }
}

/* ===== NIGHT MODE ===== */
/* 由 JS 在 <html> 加上 data-theme="night" 觸發 */
[data-theme="night"] {
  --primary: #4a8eda;
  --primary-dark: #1a2a4a;
  --primary-light: #6aaeef;
  --accent: #FFD54F;
  --accent-light: rgba(255,213,79,0.1);
  --red: #EF5350;
  --text: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-tertiary: #707080;
  --bg: #121520;
  --bg-warm: #1a1d2e;
  --bg-section: #1e2235;
  --bg-dark: #0a0d16;
  --border: #2a2d40;
  --border-light: #222538;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}
[data-theme="night"] .site-header { background: #0e1225; }
[data-theme="night"] .site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.5); }
[data-theme="night"] .topbar { background: #0e1225; border-bottom-color: #222538; }
[data-theme="night"] .ticker { background: #2a2210; }
[data-theme="night"] .ticker-badge { background: #1a1a30; color: var(--accent); }
[data-theme="night"] .ticker-scroll { color: var(--accent); }
[data-theme="night"] .ticker-scroll a { color: var(--accent); }
[data-theme="night"] .category-tabs { background: var(--bg); border-bottom-color: var(--border); }
[data-theme="night"] .hero-main .hero-overlay { background: linear-gradient(transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.95) 100%); }
[data-theme="night"] .hero-sub-card .hero-overlay { background: linear-gradient(transparent 0%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.92) 100%); }
[data-theme="night"] .editor-section { background: var(--bg-section); }
[data-theme="night"] .editor-card { background: var(--bg-warm); box-shadow: var(--shadow-xs); }
[data-theme="night"] .sidebar-widget { background: var(--bg-warm); border-color: var(--border); }
[data-theme="night"] .search-box { background: var(--bg-warm); }
[data-theme="night"] .search-box input { background: var(--bg); color: var(--text); border-color: var(--border); }
[data-theme="night"] .mobile-drawer { background: var(--bg-warm); }
[data-theme="night"] .drawer-nav a { color: var(--text); }
[data-theme="night"] .bottom-nav { background: var(--bg-warm); border-top-color: var(--border); }
[data-theme="night"] .newsletter { background: linear-gradient(135deg, #1a2a4a 0%, #0e1225 100%); }
[data-theme="night"] .newsletter-form input { background: var(--bg); color: var(--text); }
[data-theme="night"] .load-more-btn { background: var(--bg-warm); border-color: var(--border); color: var(--text-secondary); }
[data-theme="night"] .feed-cat { background: rgba(255,213,79,0.15); color: var(--accent); }
[data-theme="night"] .trending-item:hover,
[data-theme="night"] .feed-item:hover,
[data-theme="night"] .cat-card:hover { background: rgba(255,255,255,0.05); }
[data-theme="night"] .editor-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
[data-theme="night"] img { opacity: 0.88; }
[data-theme="night"] img:hover { opacity: 1; }
/* Night mode: 通用覆蓋（覆蓋各頁面 inline style 的硬編碼色） */
[data-theme="night"] .pageNode { background: var(--bg) !important; color: var(--text) !important; }
[data-theme="night"] .city-card,
[data-theme="night"] .zodiac-card,
[data-theme="night"] .luck-item,
[data-theme="night"] .detail-item,
[data-theme="night"] .featured-advice { background: var(--bg-warm) !important; border-color: var(--border) !important; color: var(--text) !important; }
[data-theme="night"] .city-card:hover { background: var(--bg-section) !important; }
[data-theme="night"] .featured-zodiac { background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-section) 100%) !important; }
[data-theme="night"] .zodiac-name { color: var(--primary-light) !important; }
[data-theme="night"] .zodiac-dates,
[data-theme="night"] .luck-item-label,
[data-theme="night"] .detail-label { color: var(--text-tertiary) !important; }
[data-theme="night"] .detail-value { color: var(--primary-light) !important; }
[data-theme="night"] .luck-star-empty { color: #444 !important; }
[data-theme="night"] .luck-bar-segment { background: #333 !important; }
[data-theme="night"] .luck-bar-segment.filled { background: linear-gradient(90deg, var(--accent) 0%, #ffb300 100%) !important; }
[data-theme="night"] .date-tab { background: var(--bg-warm) !important; border-color: var(--border) !important; color: var(--text-secondary) !important; }
[data-theme="night"] .date-tab.active { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
[data-theme="night"] .city-badge,
[data-theme="night"] .country-badge { opacity: 0.9; }
[data-theme="night"] .city-tag { background: rgba(220,53,69,0.15) !important; color: #f08080 !important; }
[data-theme="night"] .country-tag { background: rgba(13,110,253,0.15) !important; color: #7abaff !important; }
[data-theme="night"] .side-item { color: var(--text) !important; border-bottom-color: var(--border) !important; }
[data-theme="night"] .side-item h3 { color: var(--text) !important; }
[data-theme="night"] .side-item .meta,
[data-theme="night"] .side-item p { color: var(--text-tertiary) !important; }
[data-theme="night"] .local-section-label,
[data-theme="night"] .world-section-label,
[data-theme="night"] .region-title { color: var(--text-secondary) !important; }
[data-theme="night"] .local-index-header h1,
[data-theme="night"] .local-index-header p { color: var(--text) !important; }
[data-theme="night"] .sidebar-rank-item:hover,
[data-theme="night"] .sidebar-article-item:hover { background: rgba(255,255,255,0.05) !important; }
[data-theme="night"] select { background: var(--bg-warm) !important; color: var(--text) !important; border-color: var(--border) !important; }
/* Night mode: 星座詳情頁 */
[data-theme="night"] .hd { background: var(--bg) !important; }
[data-theme="night"] .hd .ss { background: var(--bg-warm) !important; border-color: var(--border) !important; }
[data-theme="night"] .hd .ss a { background: var(--bg-section) !important; color: var(--text-secondary) !important; }
[data-theme="night"] .hd .ss a.ss-home { background: #444 !important; }
[data-theme="night"] .hd .mod { background: var(--bg-warm) !important; box-shadow: var(--shadow-sm) !important; }
[data-theme="night"] .hd .dd.do { background: rgba(46,125,50,0.1) !important; color: #81c784 !important; border-color: rgba(46,125,50,0.3) !important; }
[data-theme="night"] .hd .dd.dont { background: rgba(198,40,40,0.1) !important; color: #ef9a9a !important; border-color: rgba(198,40,40,0.3) !important; }
[data-theme="night"] .hd .ring-box .r-bg { stroke: var(--border) !important; }
[data-theme="night"] .hd .bar-row .br-track { background: var(--border) !important; }
[data-theme="night"] .hd .ll-item { background: var(--bg-section) !important; }
[data-theme="night"] .hd .tip { background: var(--bg-section) !important; border-color: var(--border) !important; }
[data-theme="night"] .hd .dt a { background: var(--bg-section) !important; color: var(--text-tertiary) !important; }
[data-theme="night"] .hd .head-date { color: var(--text-tertiary) !important; }
[data-theme="night"] .hd .r-label { color: var(--text-tertiary) !important; }
[data-theme="night"] .hd .htag { background: var(--bg-section) !important; border-color: var(--border) !important; }
[data-theme="night"] .hd .ana-item { border-color: var(--border) !important; }

/* 系統深色模式自動跟隨 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="day"]) {
    --primary: #4a8eda;
    --primary-dark: #1a2a4a;
    --primary-light: #6aaeef;
    --accent: #FFD54F;
    --accent-light: rgba(255,213,79,0.1);
    --red: #EF5350;
    --text: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-tertiary: #707080;
    --bg: #121520;
    --bg-warm: #1a1d2e;
    --bg-section: #1e2235;
    --bg-dark: #0a0d16;
    --border: #2a2d40;
    --border-light: #222538;
  }
}

/* ===== ENTITY HERO（Author / Person / Org 聚合頁共用骨架）===== */
.entity-hero {
  padding: 40px 0 48px;
  color: #fff;
  text-align: center;
}
.entity-hero.is-author { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.entity-hero.is-person { background: linear-gradient(135deg, #37474F 0%, #263238 100%); }
.entity-hero.is-org    { background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%); }

.entity-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}
.entity-avatar.is-org { border-radius: 20px; }
.entity-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; color: #fff; }
.entity-title {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.entity-bio {
  max-width: 560px;
  margin: 0 auto 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.entity-count {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}

/* ===== ENTITY LIST（聚合頁文章列表共用）===== */
.entity-content { padding: 24px 0 40px; }
.entity-list { display: flex; flex-direction: column; gap: 0; }
.entity-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.entity-item:first-child { padding-top: 0; }
.entity-item:hover { background: var(--bg-warm); border-radius: var(--radius-xs); }
.entity-thumb {
  width: 120px;
  min-width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-section);
}
.entity-row-body { flex: 1; min-width: 0; }
.entity-cat {
  display: inline-block;
  padding: 2px 10px;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 6px;
}
.entity-row-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entity-row-body h3 a { color: inherit; }
.entity-row-body h3 a:hover { color: var(--primary); }
.entity-row-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .entity-row-desc { -webkit-line-clamp: 2; font-size: 0.88rem; }
}
.entity-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  display: flex;
  gap: 8px;
  align-items: center;
}
/* === 文章 Reaction（A+B 設計：挑戰式問句 + 預覽結果 + 大按鈕，雙位置）=== */
/* mid 位置（內文中段）— 視覺稍微保守，不打斷閱讀 */
.article-reaction[data-position="mid"] {
  margin: 24px 0;
  padding: 22px 18px;
}
.article-reaction[data-position="mid"] .article-reaction-title {
  font-size: 1rem;
  margin-bottom: 14px;
}
.article-reaction[data-position="mid"] .article-reaction-btn-emoji {
  font-size: 1.6rem;
}
.article-reaction[data-position="mid"] .article-reaction-btn {
  padding: 12px 10px;
}

.article-reaction {
  margin: 36px 0 28px;
  padding: 28px 20px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-section) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* 未投票時頂部有微微脈動 highlight */
.article-reaction:not(.is-voted)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #4CAF50, #FFC107, #ef5350);
  animation: reactPulse 3s ease-in-out infinite;
}
@keyframes reactPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

.article-reaction-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

/* 預覽結果：兩條水平 bar */
.article-reaction-preview {
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
}
[data-theme="night"] .article-reaction-preview { background: rgba(255,255,255,0.04); }
.article-reaction-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.article-reaction-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  width: 70px;
  text-align: left;
  color: var(--text);
  flex-shrink: 0;
}
.article-reaction-bar {
  flex: 1;
  height: 14px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
[data-theme="night"] .article-reaction-bar { background: rgba(255,255,255,0.08); }
.article-reaction-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .8s cubic-bezier(.25,.1,.25,1);
  position: relative;
  overflow: hidden;
}
.article-reaction-bar-fill.up {
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
}
.article-reaction-bar-fill.down {
  background: linear-gradient(90deg, #ef5350, #F44336);
}
/* bar 上的 shimmer 流光 */
.article-reaction-bar-fill::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: tugShimmer 2.5s ease-in-out infinite;
}
.article-reaction-bar-fill.down::after { animation-delay: 1.25s; }
@keyframes tugShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}
.article-reaction-bar-pct {
  font-size: 0.85rem;
  font-weight: 700;
  width: 44px;
  text-align: right;
  color: var(--text);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* N 個 emoji 圓鈕並排（CSS 用 --rx-color 變數讓每顆按自己的色） */
.article-reaction-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.article-reaction-btn {
  flex: 1 1 0;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
  --rx-color: #1e88e5; /* default; PHP 用 inline style 覆寫 */
}
[data-theme="night"] .article-reaction-btn { background: var(--bg); }
.article-reaction-btn-emoji {
  font-size: 1.8rem;
  line-height: 1;
  display: inline-block;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.article-reaction-btn-label {
  font-size: 0.82rem;
  font-weight: 600;
}
.article-reaction-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--rx-color);
  color: var(--rx-color);
  background: color-mix(in srgb, var(--rx-color) 8%, #fff);
}
[data-theme="night"] .article-reaction-btn:hover {
  background: color-mix(in srgb, var(--rx-color) 18%, var(--bg));
}
.article-reaction-btn:hover .article-reaction-btn-emoji {
  transform: scale(1.3);
}
.article-reaction-btn:active { transform: scale(.94); }

/* 已投票狀態 */
.article-reaction.is-voted .article-reaction-btn { cursor: default; opacity: .45; }
.article-reaction.is-voted .article-reaction-btn:hover {
  transform: none; box-shadow: none; background: #fff; color: var(--text); border-color: var(--border);
}
[data-theme="night"] .article-reaction.is-voted .article-reaction-btn:hover { background: var(--bg); }
.article-reaction.is-voted .article-reaction-btn:hover .article-reaction-btn-emoji { transform: none; }
.article-reaction.is-voted .article-reaction-btn.is-mine {
  opacity: 1;
  border-color: var(--rx-color);
  background: color-mix(in srgb, var(--rx-color) 15%, #fff);
  color: var(--rx-color);
  animation: voteChecked .5s cubic-bezier(.34,1.56,.64,1);
}
[data-theme="night"] .article-reaction.is-voted .article-reaction-btn.is-mine {
  background: color-mix(in srgb, var(--rx-color) 25%, var(--bg));
}
@keyframes voteChecked {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  70% { transform: scale(.97); }
  100% { transform: scale(1); }
}

/* mid 位置 — 行動裝置不要太擠（按鈕直排或縮小）*/
@media (max-width: 480px) {
  .article-reaction-actions { gap: 6px; }
  .article-reaction-btn { min-width: 56px; padding: 10px 6px; border-radius: 12px; }
  .article-reaction-btn-emoji { font-size: 1.5rem; }
  .article-reaction-btn-label { font-size: 0.72rem; }
}

.article-reaction-meta {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}
.article-reaction-meta #reactionTotal {
  color: var(--primary);
  font-weight: 800;
}
.article-reaction-voted-msg {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
.article-reaction-voted-msg strong { color: var(--primary); }

@media (max-width: 480px) {
  .article-reaction { padding: 22px 14px; }
  .article-reaction-title { font-size: 1.05rem; }
  .article-reaction-btn-emoji { font-size: 1.8rem; }
  .article-reaction-bar-label { width: 56px; font-size: 0.78rem; }
}

.entity-overview {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 24px;
  position: relative;
}
.entity-overview[data-source="preview"] {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--accent-light) 100%);
}
.entity-overview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.entity-overview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.entity-overview[data-source="preview"] .entity-overview-badge {
  background: var(--accent);
  color: #1a1a2e;
}
.entity-overview-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.entity-overview-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin: 0;
  text-align: justify;
}
.entity-overview-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.entity-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-tertiary);
  background: var(--bg-section);
  border-radius: 12px;
  margin: 24px 0;
}
.entity-empty-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}
.entity-empty-title {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--text);
}
.entity-empty-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
}
.entity-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.entity-empty-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.entity-empty-btn:hover { opacity: 0.85; }
.entity-empty-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* === Person/Org 索引頁 === */
.person-hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.person-hot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.person-hot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.person-hot-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.person-hot-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.person-hot-name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.person-hot-count {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.person-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.person-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: background 0.15s, border-color 0.15s;
}
.person-pill:hover {
  background: var(--bg-warm);
  border-color: var(--primary);
}
.person-pill-name { color: var(--text); }
.person-pill-count {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
@media (max-width: 767px) {
  .person-hot-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .person-hot-avatar { width: 36px; height: 36px; font-size: 0.95rem; }
}

@media (max-width: 767px) {
  .entity-hero { padding: 28px 16px 36px; }
  .entity-avatar { width: 80px; height: 80px; font-size: 1.6rem; }
  .entity-name { font-size: 1.25rem; }
  .entity-thumb { width: 96px; min-width: 96px; height: 64px; }
  .entity-row-body h3 { font-size: 0.88rem; }
}

@media (min-width: 768px) {
  .entity-hero { padding: 48px 0 56px; }
  .entity-avatar { width: 120px; height: 120px; font-size: 2.4rem; }
  .entity-name { font-size: 1.8rem; }
  .entity-bio { font-size: 0.95rem; }
  .entity-thumb { width: 160px; min-width: 160px; height: 100px; }
  .entity-row-body h3 { font-size: 1.05rem; }
}

@media (min-width: 1024px) {
  .entity-thumb { width: 200px; min-width: 200px; height: 130px; }
}

/* 夜間模式：聚合頁 hero 內 fallback 暗色 + count 元件 */
[data-theme="dark"] .entity-cat { background: rgba(255,193,7,0.15); color: var(--accent); }

/* ===== SEARCH RESULTS PAGE (P3-07) ===== */
.search-page { padding: 16px 16px 40px; }
.search-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.search-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.search-header-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.search-header-meta strong { color: var(--primary); font-weight: 700; }

.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-result {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.search-result:hover { background: var(--bg-section); }
.search-result-link {
  display: flex;
  gap: 16px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.search-result-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  overflow: hidden;
}
.search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.search-result-img-fallback { font-size: 1.6rem; }
.search-result-content { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.search-result .highlight {
  background: var(--accent-light);
  color: var(--text);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: inherit;
}

/* 搜尋無結果 */
.search-empty {
  text-align: center;
  padding: 60px 16px;
}
.search-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.search-empty-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.search-empty-hint { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }
.search-empty-suggest {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.search-empty-suggest a {
  padding: 8px 16px;
  background: var(--bg-section);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.search-empty-suggest a:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 480px) {
  .search-result-img { width: 80px; height: 80px; }
  .search-result-link { padding: 12px; gap: 12px; }
  .search-result-title { font-size: 0.95rem; }
  .search-result-excerpt { font-size: 0.84rem; -webkit-line-clamp: 2; }
}

@media (min-width: 768px) {
  .search-result-img { width: 120px; height: 120px; }
  .search-result-title { font-size: 1.05rem; }
  .search-result-excerpt { font-size: 0.92rem; }
}

/* 夜間模式 */
[data-theme="dark"] .search-result { background: var(--bg-section); }
[data-theme="dark"] .search-result:hover { background: var(--bg-warm); }
[data-theme="dark"] .search-result .highlight { background: rgba(255,193,7,0.2); color: var(--accent); }

/* ===== Semantic Related Articles (文章內頁無限往下捲讀下一篇) ===== */
.semantic-related-article {
  margin-top: 32px;
}
.semantic-page-break {
  background: var(--primary);
  margin: 24px -16px 0;
  padding: 24px 20px;
  position: relative;
}
.semantic-page-break-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.semantic-page-break-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.semantic-page-break-hint {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.semantic-page-break-hint::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.semantic-page-break-hint span {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}
@media (min-width: 768px) {
  .semantic-page-break { margin-left: 0; margin-right: 0; border-radius: var(--radius-sm); padding: 28px 32px; }
  .semantic-page-break-title { font-size: 1.25rem; }
}

/* ===== PAGENODE (P5-1: 後台可配置區塊 4 種佈局) ===== */
.pagenode {
  margin: 28px 0;
  scroll-margin-top: 80px;
}
.pagenode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  flex-wrap: wrap;
}
.pagenode-icon { width: 28px; height: 28px; flex-shrink: 0; }
.pagenode-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.pagenode-subtitle {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.pagenode-color-red .pagenode-header { border-bottom-color: var(--red); }
.pagenode-color-yellow .pagenode-header { border-bottom-color: var(--accent); }
.pagenode-color-blue .pagenode-header { border-bottom-color: var(--primary-light); }
.pagenode-color-red .pagenode-title { color: var(--red); }
.pagenode-color-yellow .pagenode-title { color: var(--primary); }
.pagenode-color-blue .pagenode-title { color: var(--primary-light); }

/* ramRight 用 grid order 反轉 hero 與 side 位置（>=1024px）*/
.focus-grid-reversed { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) {
  .focus-grid-reversed {
    grid-template-columns: 5fr 7fr;
  }
}

@media (min-width: 768px) {
  .pagenode { margin: 36px 0; }
  .pagenode-title { font-size: 1.3rem; }
}

[data-theme="dark"] .pagenode-title { color: var(--text); }
[data-theme="dark"] .pagenode-color-red .pagenode-title { color: var(--red); }
[data-theme="dark"] .pagenode-color-blue .pagenode-title { color: var(--primary-light); }

/* ===== STATIC PAGES (P3-16~20: About / Contact / Privacy / Terms / Partner) ===== */
.page-content { padding: 24px 0 40px; }
.page-header {
  padding: 36px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 1.75rem; margin-bottom: 8px; color: #fff; }
.page-header p { font-size: 1rem; opacity: 0.92; margin: 0; color: rgba(255,255,255,0.9); }
.page-meta { font-size: 0.88rem; opacity: 0.85; }

.section-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}
.section-block:last-child { border-bottom: none; }
.section-block h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.section-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-block h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 20px 0 10px;
}
.section-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}
.section-block ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}
.section-block li { margin-bottom: 8px; }
.section-block a { color: var(--primary); }
.section-block a:hover { color: var(--primary-light); text-decoration: underline; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }

.info-card {
  background: var(--bg-section);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.info-card-icon { font-size: 2rem; margin-bottom: 8px; }
.info-card h3 { color: var(--primary); margin: 8px 0; font-size: 1.15rem; }
.info-card p { margin: 0; font-size: 0.92rem; }

/* Team members（About）*/
.team-member {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.member-photo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.member-info { padding: 12px 16px 12px 0; flex: 1; min-width: 0; }
.member-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.member-title { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.member-bio { font-size: 0.88rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* Contact info block（About / Contact）*/
.contact-info-block {
  background: var(--bg-section);
  padding: 20px;
  border-radius: var(--radius-sm);
}
.contact-item { margin-bottom: 14px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-label {
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.contact-value { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }
.contact-value a { color: var(--primary); font-weight: 500; }

/* TOC（Privacy / Terms）*/
.toc-section {
  background: var(--bg-section);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.toc-section h2 { font-size: 1.05rem; color: var(--primary); margin-bottom: 12px; padding: 0; }
.toc-section h2::after { display: none; }
.toc-list { display: flex; flex-direction: column; gap: 6px; }
.toc-list a {
  padding: 8px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  font-size: 0.92rem;
  transition: all 0.15s;
}
.toc-list a:hover { background: var(--bg); color: var(--primary); }

.content-section section { padding: 24px 0; border-bottom: 1px solid var(--border-light); scroll-margin-top: 80px; }
.content-section section:last-child { border-bottom: none; }
.content-section h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.content-section h3 { font-size: 1.05rem; color: var(--text); margin: 18px 0 8px; }
.content-section p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 12px; }
.content-section ul { list-style: disc; padding-left: 24px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 12px; }
.content-section li { margin-bottom: 6px; }
.content-section a { color: var(--primary); }
.content-section a:hover { text-decoration: underline; }

.highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-xs);
  margin: 16px 0;
}
.highlight-box p { margin: 0; color: var(--text); }

/* Partner page */
.partner-stats {
  background: var(--bg-section);
  padding: 24px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.partner-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
.partner-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}
.partner-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}

.partner-category {
  margin-bottom: 36px;
}
.partner-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  gap: 12px;
}
.partner-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.partner-category-title .cat-icon { font-size: 1.4rem; line-height: 1; }
.partner-category-count {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.partner-grid a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  color: var(--text);
  transition: all 0.15s;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-grid a:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.partner-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  border-radius: var(--radius);
  margin: 32px 0;
}
.partner-cta h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.partner-cta h2::after { display: none; }
.partner-cta p {
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
}
.partner-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s;
  min-height: 48px;
  line-height: 24px;
}
.partner-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,193,7,0.4);
}

@media (min-width: 480px) {
  .partner-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .partner-stats-grid { grid-template-columns: repeat(6, 1fr); }
  .partner-stat-num { font-size: 1.8rem; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .partner-category-title { font-size: 1.15rem; }
  .partner-cta { padding: 48px 32px; }
  .partner-cta h2 { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .partner-grid { grid-template-columns: repeat(6, 1fr); }
}

[data-theme="dark"] .partner-stats { background: var(--bg-section); }
[data-theme="dark"] .partner-grid a { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .partner-grid a:hover { background: rgba(255,193,7,0.15); border-color: var(--accent); color: var(--accent); }

@media (min-width: 768px) {
  .page-header { padding: 56px 0; margin-bottom: 32px; }
  .page-header h1 { font-size: 2.2rem; }
  .page-header p { font-size: 1.1rem; }
  .section-block { padding: 40px 0; }
  .section-block h2 { font-size: 1.6rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
  /* Privacy/Terms: TOC 變成 sticky 側欄 */
  .privacy-layout, .terms-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
  }
  .privacy-layout .toc-section, .terms-layout .toc-section {
    position: sticky;
    top: 80px;
    margin-bottom: 0;
  }
}

/* 夜間模式 */
[data-theme="dark"] .info-card,
[data-theme="dark"] .toc-section,
[data-theme="dark"] .contact-info-block { background: var(--bg-section); }
[data-theme="dark"] .team-member { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .highlight-box { background: rgba(255,193,7,0.12); }
[data-theme="dark"] .partner-grid a:hover { background: var(--bg-warm); border-color: var(--border); }

/* ===== PRINT ===== */
@media print {
  .site-header, .ticker, .category-tabs, .sidebar, .newsletter, .search-overlay, .bottom-nav, .mobile-drawer, .drawer-backdrop { display: none !important; }
  body { color: #000; background: #fff; padding-bottom: 0; }
}
