/* 五岁热榜 — 全站样式 */

/* SEO: 仅对屏幕阅读器可见（H1隐藏用） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 分页组件 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  flex-wrap: wrap;
}
.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-color, #2a2a35);
  border-radius: 6px;
  background: var(--bg-card, #1a1a22);
  color: var(--text-secondary, #9ca3af);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.pagination .page-btn:hover {
  border-color: var(--primary, #6366f1);
  color: var(--primary, #6366f1);
}
.pagination .page-btn.active {
  background: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
  color: #fff;
  font-weight: 600;
}
.pagination .page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination .page-ellipsis {
  color: var(--text-secondary, #9ca3af);
  font-size: 13px;
  padding: 0 4px;
}

/* 默认 = 浅色主题。深色主题在 [data-theme="dark"] 下生效。 */
:root {
  --bg: #f5f6fa;
  --bg-card: #fff;
  --bg-hover: #f0f1f5;
  --bg-input: #f0f1f5;
  --text: #1a1a2e;
  --text-secondary: #6b6b80;
  --text-muted: #a0a0b0;
  --border: #e2e4ea;
  --primary: #4f8eff;
  --primary-hover: #3a7aff;
  --primary-bg: rgba(79,142,255,0.08);
  --accent: #ff6b6b;
  --accent-bg: rgba(255,107,107,0.08);
  --link: #1a1a2e;
  --link-hover: #4f8eff;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 20px rgba(15,23,42,0.06);
  --badge-bg: #f0f1f5;
  --badge-text: #6b6b80;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
  --navbar-h: 56px;
  --max-w: 1200px;
  --gutter: 20px;
}

[data-theme="dark"] {
  --bg: #0f0f13;
  --bg-card: #1a1a22;
  --bg-hover: #22222c;
  --bg-input: #1e1e28;
  --text: #e8e8ed;
  --text-secondary: #8b8b9a;
  --text-muted: #5a5a6e;
  --border: #2a2a38;
  --primary-bg: rgba(79,142,255,0.1);
  --accent-bg: rgba(255,107,107,0.1);
  --link: #e8e8ed;
  --nav-bg: rgba(15, 15, 19, 0.72);
  --nav-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 6px 20px rgba(0,0,0,0.32);
  --badge-bg: #24242e;
  --badge-text: #8b8b9a;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }

/* ======================== Navbar ======================== */
.navbar {
  background: var(--nav-bg);
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 200;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--nav-shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 16px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-left::-webkit-scrollbar { display: none; }
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  margin-right: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 55%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: filter var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo:hover { filter: brightness(1.15); }
.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-tabs {
  display: flex;
  gap: 0;
}
.nav-tab {
  color: var(--text-secondary);
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 8px 14px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  border-radius: 6px;
}
.nav-tab:hover {
  color: var(--primary);
  background: var(--primary-bg);
  text-decoration: none;
}
.nav-tab.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-bg);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.nav-icon-btn:hover { background: var(--primary-bg); color: var(--primary); }

/* 搜索动画 */
.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-expand {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  box-shadow: var(--shadow);
}
.search-expand.open {
  width: 300px;
  opacity: 1;
}
.search-expand-input {
  flex: 1;
  height: 36px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
}
.search-expand-input::placeholder { color: var(--text-muted); }
.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}
.search-close-btn:hover { color: var(--text); }

/* 主题图标切换：默认浅色显示月亮（点击切深色），深色下显示太阳 */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: block; }

/* 用户下拉 */
.nav-user-wrap {
  position: relative;
}
.user-btn {
  width: auto !important;
  padding: 0 10px !important;
  gap: 6px;
}
.user-btn .user-name {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-btn .chevron {
  transition: transform var(--transition);
  color: var(--text-muted);
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 0;
  display: none;
  z-index: 300;
}
.user-dropdown.show { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}


.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}
.overlay.open { display: block; }

/* ======================== Page Layout ======================== */
.page-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--navbar-h) + 20px) var(--gutter) 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* 左侧面板 */
.left-panel {
  flex: 1;
  min-width: 0;
}

/* 数据源 Tab 切换栏 */
.source-tabs-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.source-tabs-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.3s ease;
}
.source-tabs-scroll.expanded {
  max-height: 600px;
}
.source-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--badge-bg);
  border: 1px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-weight: 500;
}
.source-tab:hover { color: var(--text); background: var(--bg-hover); }
.source-tab.active {
  color: var(--primary);
  background: var(--primary-bg);
  border-color: var(--primary);
  font-weight: 600;
}
.source-tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.source-tab-icon {
  width: 16px; height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: contain;
}
.source-tabs-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.more-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 12px;
  transition: color var(--transition);
}
.more-btn:hover { color: var(--primary); }

/* 热搜列表 */
.hot-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 全站面板数据源分组 */
.source-section {
  border-bottom: 1px solid var(--border);
}
.source-section:last-child {
  border-bottom: none;
}
.source-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-hover);
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.source-section-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.source-section-name {
  font-weight: 600;
}
.hot-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.hot-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.source-favicon-icon {
  width: 22px; height: 22px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.hot-list {
  padding: 0;
}
.hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { background: var(--bg-hover); }
.hot-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--badge-bg);
  border-radius: 50%;
}
.hot-item:nth-child(1) .hot-rank { color: #fff; background: var(--accent); }
.hot-item:nth-child(2) .hot-rank { color: #fff; background: #f0883e; }
.hot-item:nth-child(3) .hot-rank { color: #fff; background: #f7b944; }

.hot-link {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
  transition: color var(--transition);
}
.hot-link:hover { color: var(--primary); }
.hot-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.hot-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #999;
  margin-left: 8px;
  white-space: nowrap;
}
.hot-item:nth-child(1) .hot-badge,
.hot-item:nth-child(2) .hot-badge,
.hot-item:nth-child(3) .hot-badge {
  color: var(--accent);
  background: var(--accent-bg);
}

/* 知乎卡片样式（文字+图片） */
.hot-item-card {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.hot-item-card:last-child { border-bottom: none; }
.hot-item-card:hover { background: var(--bg-hover); }
.hot-item-card .card-rank {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--badge-bg);
  border-radius: 50%;
  align-self: flex-start;
  margin-top: 2px;
}
.hot-item-card:nth-child(1) .card-rank { color: #fff; background: var(--accent); }
.hot-item-card:nth-child(2) .card-rank { color: #fff; background: #f0883e; }
.hot-item-card:nth-child(3) .card-rank { color: #fff; background: #f7b944; }
.card-content { flex: 1; min-width: 0; }
.card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.card-img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  align-self: center;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧面板 */
.right-panel {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--navbar-h) + 20px);
}
.trending-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.trending-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.trending-title .fire-icon { color: var(--accent); }
.refresh-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.refresh-btn:hover { background: var(--bg-hover); color: var(--primary); }
.refresh-btn svg { transition: transform 0.5s ease; }
.refresh-btn.spinning svg { transform: rotate(360deg); }
.trending-list {
  padding: 0;
}
.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--bg-hover); }
.trending-rank {
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--badge-bg);
  border-radius: 4px;
  flex-shrink: 0;
}
.trending-item:nth-child(1) .trending-rank { color: #fff; background: var(--accent); }
.trending-item:nth-child(2) .trending-rank { color: #fff; background: #f0883e; }
.trending-item:nth-child(3) .trending-rank { color: #fff; background: #f7b944; }
.trending-link {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trending-link:hover { color: var(--primary); }
.trending-source {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ======================== Loading & Empty ======================== */
.loading-text {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* 列表骨架占位：tab 切换时立刻显示，避免空白闪烁 */
.skeleton-block {
  display: inline-block;
  background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-input) 50%, var(--bg-hover) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  vertical-align: middle;
}
.skeleton-item {
  pointer-events: none;
  cursor: default;
}
.skeleton-item:hover { background: transparent !important; }
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state p { font-size: 14px; margin-bottom: 8px; }
.empty-hint { font-size: 12px; color: var(--text-muted); }

/* ======================== Back to Top ======================== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { color: var(--primary); border-color: var(--primary); }

/* ======================== Static pages ======================== */
.static-page { padding: 24px 0; }
.static-page h1 { font-size: 22px; margin-bottom: 20px; font-weight: 700; }
.static-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.static-content h2 { font-size: 16px; margin: 24px 0 10px; font-weight: 600; color: var(--text); }
.static-content h2:first-child { margin-top: 0; }
.static-content h3 { font-size: 14px; margin: 16px 0 6px; font-weight: 600; color: var(--text); }
.static-content p, .static-content li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 6px; font-size: 14px; }
.static-content ul, .static-content ol { padding-left: 22px; margin: 4px 0 10px; }
.static-content li { margin-bottom: 4px; }
.static-content strong { color: var(--text); font-weight: 600; }
.static-content a { color: var(--primary); }
.static-content a:hover { text-decoration: underline; }
/* 信息卡片：摘要 / 更新日期 / 提示 */
.static-meta {
  background: var(--bg-input);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
}
.static-meta strong { color: var(--text); }
/* 目录 */
.static-toc {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
}
.static-toc-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.static-toc ol { padding-left: 20px; margin: 0; }
.static-toc li { font-size: 13px; line-height: 1.7; margin: 0; color: var(--text-secondary); }
.static-toc a { color: var(--text-secondary); }
.static-toc a:hover { color: var(--primary); }
/* 数据表（隐私信息分类用） */
.static-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13px;
}
.static-content th, .static-content td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}
.static-content th { background: var(--bg-input); color: var(--text); font-weight: 600; }



/* ======================== Error page ======================== */
.error-page {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: calc(var(--navbar-h) + 20px) var(--gutter) 40px;
}
.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}
.error-content {
  padding: 60px 20px;
  text-align: center;
}
.error-number { font-size: 80px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 20px; }
.error-title { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.error-desc { color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ======================== Footer ======================== */
.footer {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: none !important;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 16px;
}
.footer-brand { max-width: 280px; }
.footer-logo { font-size: 16px; font-weight: 700; color: var(--text); }
.footer-desc { margin-top: 4px; font-size: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 32px; }
.footer-col h4 { font-size: 11px; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 5px; }
.footer-col a { color: var(--text-secondary); font-size: 12px; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px var(--gutter) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: black;
}
.footer-bottom p { margin: 2px 0; }
.footer-icp {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.footer-icp a {
  color: black;
  transition: color var(--transition);
}
.footer-icp a:hover { color: var(--text-secondary); }
.footer-icp .icp-sep { color: var(--text-muted); opacity: 0.6; }
.footer-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-gongan img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
/* 底部导航小链：略亮一些，便于阅读 */
.footer-meta { margin-top: 4px; }
.footer-meta a { color: black; }
.footer-meta a:hover { color: var(--text); }
/* 备案号：单独一行、字号更小、颜色更弱 */
.footer-beian {
  margin-top: 4px;
  font-size: 12px;
}
.footer-beian a:hover { color: var(--text-secondary); }

/* ======================== Responsive ======================== */
@media (max-width: 960px) {
  .right-panel { display: none; }
  .nav-tab { padding: 6px 10px; font-size: 13px; }
  .nav-logo { font-size: 18px; }
  :root { --gutter: 16px; }
}

@media (max-width: 768px) {
  .nav-tabs { display: none; }
  .mobile-menu-btn { display: flex !important; }
  .right-panel { display: none; }
  .user-btn .user-name { display: none; }
  .user-btn .chevron { display: none; }
  .search-expand.open { width: 200px; }
  .page-container { flex-direction: column; }
  .source-tabs-scroll { max-height: 36px; }
}

@media (min-width: 1400px) {
  :root { --max-w: 1300px; }
}


