/*!
 * 热点导航 - 基础样式 v4.0
 * 干净、统一、可维护
 */

/* ============================================================
   1. 设计变量
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
  --w-main: 1320px;
  --w-sidebar: 320px;
  --h-header: 64px;
}

/* ============================================================
   2. 全局重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   3. 容器和布局
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--w-main);
  margin: 0 auto;
  padding: 0 20px;
}

.content-section { padding: 32px 0 48px; }

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .page-layout { grid-template-columns: 1fr var(--w-sidebar); }
}
.page-main { min-width: 0; }
.page-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 84px;
}

/* ============================================================
   4. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h-header);
}
.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 3px;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--primary); }

.main-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.main-nav .nav-link:hover { color: var(--text); background: var(--bg-hover); }
.main-nav .nav-link.active { color: var(--primary); background: var(--primary-light); }
.main-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-full);
}
.main-nav .nav-btn:hover { background: var(--primary-dark); color: #fff; }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px;
  gap: 2px;
}
.mobile-menu.show { display: flex; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
}
.mobile-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   5. Footer
   ============================================================ */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo-text { font-size: 20px; font-weight: 700; color: #f1f5f9; }
.footer-desc { font-size: 14px; line-height: 1.7; color: #9ca3af; max-width: 300px; }
.footer-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-stat { }
.footer-stat-num { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.1; }
.footer-stat-label { font-size: 12px; color: #6b7280; margin-top: 4px; }
.footer-section { }
.footer-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-links-grid a { font-size: 14px; color: #9ca3af; padding: 4px 0; transition: color 0.15s; }
.footer-links-grid a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-contact a { color: #9ca3af; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 36px;
  text-align: center;
  font-size: 14px;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }
.footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 14px;
}
.footer-copyright { color: #6b7280; font-size: 12px; }
.footer-copyright p { margin-bottom: 2px; }

/* ============================================================
   6. 移动端底部导航
   ============================================================ */
.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--border);
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}
.mobile-bottom-nav a.active { color: var(--primary); font-weight: 600; }
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }

/* ============================================================
   7. 面包屑
   ============================================================ */
.breadcrumb-wrap { padding: 16px 0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: #d1d5db; margin-left: 4px; }
.breadcrumb-link { color: var(--text-muted); }
.breadcrumb-link:hover { color: var(--primary); }
.breadcrumb-current { color: var(--text); font-weight: 500; }
.page-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-muted);
}
.page-breadcrumb a { color: var(--text-secondary); }
.page-breadcrumb a:hover { color: var(--primary); }
.page-breadcrumb a::after { content: '/'; margin-left: 8px; color: var(--border); }
.page-breadcrumb span { color: var(--text); font-weight: 500; }

/* ============================================================
   8. 回到顶部
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 80;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: all 0.2s;
  transform: translateY(8px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   9. 搜索区 (page-header)
   ============================================================ */
.page-header {
  text-align: center;
  padding: 48px 20px 40px;
  background: var(--primary-light);
  border-bottom: 1px solid #dbeafe;
}
.page-header-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.page-header-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.page-header-extra { margin-top: 16px; }
.page-header-search { max-width: 480px; }

.search-engines {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.search-engine-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
}
.search-engine-btn:hover { background: #fff; border-color: var(--primary); color: var(--primary); }
.search-engine-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  height: 50px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.search-btn:hover { background: var(--primary-dark); }

/* ============================================================
   10. 按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border-color: var(--border); }
.btn-secondary:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-ghost, .btn-outline { background: none; border-color: var(--border); color: var(--text-secondary); }
.btn-ghost:hover, .btn-outline:hover { background: var(--bg-hover); color: var(--text); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ============================================================
   11. 卡片
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card-margin { margin-bottom: 28px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-subtitle { font-size: 14px; color: var(--text-muted); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.card-link::after { content: '>'; font-size: 11px; }
.card-link:hover { color: var(--primary); }
.card-body { padding: 20px 24px; }
.card-body-no-top { padding: 0 24px 20px; }
.card-desc { font-size: 14px; color: var(--text-secondary); }
.card-count { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   12. 网站网格 (site-grid)
   ============================================================ */
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px 16px;
}
@media (min-width: 640px) { .site-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (min-width: 768px) { .site-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .site-grid { grid-template-columns: repeat(6, 1fr); } }

.site-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.site-item:hover { background: var(--primary-light); }
.site-item.disabled { opacity: 0.4; pointer-events: none; }

.site-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  flex-shrink: 0;
}
.site-item-icon img { width: 100%; height: 100%; object-fit: contain; }
.site-item-letter { font-size: 22px; font-weight: 700; color: var(--primary); }

.site-item-name {
  font-size: 12px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.site-grid-compact-sm { gap: 2px; }
.site-grid-compact-sm .site-item { padding: 12px 4px; }
.site-grid-item { display: flex; flex-direction: column; align-items: center; }

/* site-card (compact) */
.site-item-compact {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 12px 8px; text-decoration: none;
  border-radius: var(--radius); transition: background 0.15s;
}
.site-item-compact:hover { background: var(--primary-light); }
.site-disabled { opacity: 0.4; pointer-events: none; }
.site-name-compact {
  font-size: 12px; text-align: center; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 72px;
}
.site-logo-compact { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.site-icon-invalid, .site-icon-region { position: relative; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; }
.site-icon-invalid img, .site-icon-region img { width: 100%; height: 100%; object-fit: contain; }
.site-icon-blur { filter: blur(4px) grayscale(100%); opacity: 0.4; }
.site-status-badge {
  position: absolute; bottom: 1px; right: 1px; padding: 1px 5px;
  font-size: 9px; font-weight: 700; border-radius: 3px; color: #fff; line-height: 1.4;
}
.site-status-badge.invalid { background: var(--danger); }
.site-status-badge.region { background: var(--warning); }

/* ============================================================
   13. 网站列表 (site-list)
   ============================================================ */
.site-list { display: flex; flex-direction: column; }
.site-list-compact { }
.site-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.site-card:last-child { border-bottom: none; }
.site-card:hover { background: var(--bg-hover); }
.site-card-row { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.site-card-rank { flex-shrink: 0; width: 28px; text-align: center; }
.site-logo-sm {
  width: 40px; height: 40px; border-radius: 8px; overflow: hidden;
  background: #f1f5f9; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.site-logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.site-info { flex: 1; min-width: 0; }
.site-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.site-name { font-size: 15px; font-weight: 600; color: var(--text); }
.site-card:hover .site-name { color: var(--primary); }
.site-name-lg { font-size: 18px; font-weight: 700; }
.site-title-lg { font-size: 22px; font-weight: 700; }
.site-desc {
  font-size: 13px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 12px; margin-top: 4px;
}
.site-badge {
  display: inline-flex; align-items: center; padding: 1px 7px;
  font-size: 10px; font-weight: 600; border-radius: 4px;
}

/* ============================================================
   14. 标签 / 徽章
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1.5;
}
.tag:hover { background: var(--primary-light); color: var(--primary); }
.tag.hot, .tag-hot { background: #fef2f2; color: var(--danger); }
.tag.new, .tag-new { background: var(--primary-light); color: var(--primary); }
.tag-success { background: #f0fdf4; color: var(--success); }
.tag-warning { background: #fffbeb; color: #92400e; }
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-muted { background: var(--bg-hover); color: var(--text-muted); }
.tag-spacing { margin-right: 8px; }
.topic { background: var(--primary-light); color: var(--primary); }

.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  font-size: 10px; font-weight: 600; border-radius: 4px;
  letter-spacing: 0.3px; line-height: 1.4;
}
.badge-hot { background: #fef2f2; color: var(--danger); }
.badge-new { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #f0fdf4; color: var(--success); }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-estimate { background: var(--bg-hover); color: var(--text-muted); }

/* ============================================================
   15. 排名列表
   ============================================================ */
.rank-list { padding: 0; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--bg-hover); }
.rank-num {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); background: #f1f5f9;
  border-radius: 6px; flex-shrink: 0;
}
.rank-1 .rank-num, .rank-item:nth-child(1) .rank-num, .rank-num.top1 { background: var(--danger); color: #fff; }
.rank-2 .rank-num, .rank-item:nth-child(2) .rank-num, .rank-num.top2 { background: var(--warning); color: #fff; }
.rank-3 .rank-num, .rank-item:nth-child(3) .rank-num, .rank-num.top3 { background: #f59e0b; color: #fff; }
.rank-num-normal { background: #f1f5f9; color: var(--text-muted); }
.rank-text { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-text a { color: var(--text); display: block; }
.rank-text a:hover { color: var(--primary); }
.rank-link { flex: 1; min-width: 0; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-link:hover { color: var(--primary); }
.rank-item-content { flex: 1; min-width: 0; }
.rank-item-hot { font-size: 12px; color: var(--text-muted); }
.rank-badge {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; font-size: 12px; font-weight: 700;
  border-radius: 6px; flex-shrink: 0;
}
.rank-badge.rank-hot { background: var(--danger); color: #fff; }
.rank-badge.rank-warm { background: var(--warning); color: #fff; }
.rank-badge.rank-normal { background: #f1f5f9; color: var(--text-muted); }

/* ============================================================
   16. 筛选栏
   ============================================================ */
.filter-bar {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 20px; background: var(--bg-card);
  border-radius: var(--radius-lg); margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.filter-row { display: flex; align-items: flex-start; gap: 16px; }
.filter-row-last { }
.filter-row-single { align-items: center; }
.filter-label { font-size: 14px; font-weight: 600; color: var(--text); min-width: 48px; line-height: 2; flex-shrink: 0; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-tag {
  padding: 4px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); background: var(--bg-hover);
  border: none; border-radius: 6px; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
}
.filter-tag:hover { background: var(--primary-light); color: var(--primary); }
.filter-tag.active { background: var(--primary); color: #fff; }
.filter-tag-count { font-size: 10px; opacity: 0.7; margin-left: 2px; }
.filter-count { font-size: 12px; color: var(--text-muted); }
.filter-bar-inline { flex-direction: row; align-items: center; }
.filter-row-inline { align-items: center; flex: 1; }

/* ============================================================
   17. 分类导航
   ============================================================ */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; }
.sub-category-box { padding: 16px 20px; }
.sub-category-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.category-icon { font-size: 28px; margin-bottom: 8px; }
.category-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-top: 8px; }
.category-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.category-title { font-size: 20px; font-weight: 700; color: var(--text); }
.category-count { font-size: 14px; color: var(--text-muted); }
.category-section { margin-bottom: 40px; }
.category-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-secondary);
  padding: 4px 8px; border-radius: 6px; transition: all 0.15s;
}
.category-link:hover { color: var(--primary); background: var(--primary-light); }
.sub-category-section { margin-bottom: 28px; }
.sub-category-title { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.sub-category-count { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   18. 分页
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 32px 0 20px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.15s; text-decoration: none;
}
.pagination a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination .active, .pagination .pagination-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled, .pagination .pagination-disabled { opacity: 0.3; pointer-events: none; }
.pagination-nav { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 20px 0; }
.pagination-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.15s; text-decoration: none;
}
.pagination-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination-current {
  background: var(--primary); border-color: var(--primary); color: #fff;
  min-width: 38px; height: 38px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: var(--radius); font-weight: 600; font-size: 14px;
}
.pagination-disabled { opacity: 0.3; pointer-events: none; }
.pagination-ellipsis { padding: 0 4px; color: var(--text-muted); }
.pagination-info { font-size: 14px; color: var(--text-muted); }
.pagination-wrapper { display: flex; justify-content: center; padding: 20px 0; }

/* ============================================================
   19. 侧边栏
   ============================================================ */
.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.sidebar-box-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.sidebar-box-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-box-title::before { content: ''; width: 3px; height: 16px; background: var(--primary); border-radius: 2px; }
.sidebar-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-title::before { content: ''; width: 3px; height: 16px; background: var(--primary); border-radius: 2px; }
.sidebar-more {
  display: block; padding: 12px 20px; text-align: center;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  border-top: 1px solid var(--border-light); transition: all 0.15s;
}
.sidebar-more:hover { color: var(--primary); background: var(--primary-light); }
.sidebar-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 16px; }

.sidebar-sticky {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 84px;
}
.sidebar-tip { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-lg); padding: 16px; }
.sidebar-tip-text { font-size: 12px; color: #92400e; line-height: 1.6; }
.sidebar-platform-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; }
.sidebar-platform-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-secondary); padding: 4px 10px;
  border-radius: 6px; background: var(--bg-hover); transition: all 0.15s;
}
.sidebar-platform-link:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-platform-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sidebar-platform-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card); }
.quick-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 20px; }
.tools-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 20px; }
.tools-mini-grid .btn { font-size: 12px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
.quick-link { font-size: 12px; color: var(--text-secondary); padding: 4px 12px; background: var(--bg-hover); border-radius: 6px; transition: all 0.15s; }
.quick-link:hover { background: var(--primary-light); color: var(--primary); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }

/* ============================================================
   20. 影视卡片
   ============================================================ */
.movie-grid, .movie-grid-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}
@media (min-width: 640px) { .movie-grid, .movie-grid-related { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .movie-grid, .movie-grid-related { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .movie-grid, .movie-grid-related { grid-template-columns: repeat(5, 1fr); } }

.movie-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card); transition: all 0.2s;
}
.movie-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.movie-poster {
  aspect-ratio: 2/3; background: #f1f5f9; overflow: hidden; position: relative;
}
.movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.movie-card:hover .movie-poster img { transform: scale(1.05); }
.movie-poster-placeholder, .movie-cover-placeholder, .movie-cover-full {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted); background: #f1f5f9;
}
.movie-info { padding: 12px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.movie-name, .movie-title { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; }
.movie-meta { font-size: 12px; color: var(--text-muted); margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.movie-meta-category, .movie-category { color: var(--text-muted); }
.movie-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 1; }
.movie-badge { padding: 2px 7px; font-size: 10px; font-weight: 700; border-radius: 4px; letter-spacing: 0.3px; }
.movie-badge.hot { background: var(--danger); color: #fff; }
.movie-badge.year { background: rgba(0,0,0,0.6); color: #fff; }
.movie-year { padding: 2px 7px; font-size: 10px; font-weight: 600; background: rgba(0,0,0,0.6); color: #fff; border-radius: 4px; }
.movie-episodes, .movie-episode-badge { position: absolute; bottom: 8px; right: 8px; z-index: 1; }
.movie-episodes, .movie-episode-badge .movie-badge { padding: 2px 8px; font-size: 10px; font-weight: 600; background: rgba(0,0,0,0.7); color: #fff; border-radius: 4px; }

/* ============================================================
   21. 小说卡片
   ============================================================ */
.novel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}
@media (min-width: 640px) { .novel-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .novel-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .novel-grid { grid-template-columns: repeat(5, 1fr); } }
.novel-grid-item {
  display: flex; flex-direction: column;
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card); transition: all 0.2s;
}
.novel-grid-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.novel-grid-cover { aspect-ratio: 2/3; background: #f1f5f9; overflow: hidden; position: relative; }
.novel-grid-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.novel-grid-item:hover .novel-grid-cover img { transform: scale(1.05); }
.novel-grid-info { padding: 12px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.novel-grid-title { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-grid-author, .novel-grid-meta { font-size: 12px; color: var(--text-muted); }

.novel-list { display: flex; flex-direction: column; }
.novel-card { display: flex; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border-light); text-decoration: none; transition: background 0.15s; }
.novel-card:hover { background: var(--bg-hover); }
.novel-cover { width: 60px; height: 80px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; }
.novel-cover img { width: 100%; height: 100%; object-fit: cover; }
.novel-info { flex: 1; min-width: 0; }
.novel-title { font-size: 15px; font-weight: 600; color: var(--text); }
.novel-author { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.novel-meta, .novel-category { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   22. 影视详情页
   ============================================================ */
.movie-detail-header { display: flex; gap: 24px; flex-wrap: wrap; padding: 24px; }
@media (max-width: 639px) { .movie-detail-header { flex-direction: column; align-items: center; text-align: center; } }
.movie-cover-wrap { width: 180px; flex-shrink: 0; }
@media (max-width: 639px) { .movie-cover-wrap { width: 150px; } }
.movie-cover-img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.movie-info-wrap { flex: 1; min-width: 280px; }
.movie-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.movie-badge-group { display: flex; gap: 8px; flex-wrap: wrap; }
.movie-alias { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.movie-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.movie-meta-row { display: flex; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-top: 4px; flex-wrap: wrap; }
.movie-meta-label { font-weight: 600; color: var(--text); }
.movie-actor { color: var(--text-secondary); }
.movie-stats { font-size: 14px; color: var(--text-muted); margin: 12px 0; }
.movie-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.movie-intro { margin: 28px 0; }
.movie-intro-title { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.movie-intro-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.movie-synopsis { padding: 16px 24px; }
.episode-section { margin: 28px 0; }
.episode-source { margin-bottom: 20px; }
.episode-source-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding: 0 24px; }
.episodes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 24px; }
@media (max-width: 767px) { .episodes-grid { grid-template-columns: repeat(2, 1fr); } }
.episode-tip { font-size: 12px; color: var(--text-muted); padding: 8px 24px; }
.episode-tip-warning { color: var(--warning); }
.play-sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 16px 24px; }
.cast-section { margin: 28px 0; padding: 0 24px; }
.cast-row { display: flex; gap: 16px; align-items: flex-start; }
.cast-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cast-count { font-size: 12px; color: var(--text-muted); align-self: center; }

/* ============================================================
   23. 小说详情页
   ============================================================ */
.novel-detail-header { display: flex; gap: 24px; flex-wrap: wrap; padding: 24px; }
@media (max-width: 639px) { .novel-detail-header { flex-direction: column; align-items: center; text-align: center; } }
.novel-cover-img { width: 160px; border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(0,0,0,.1); flex-shrink: 0; }
@media (max-width: 639px) { .novel-cover-img { width: 130px; } }
.novel-info-section { flex: 1; min-width: 260px; }
.novel-title-lg { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.novel-tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.novel-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.novel-stats-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); margin: 12px 0; }
.novel-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.novel-info-item { font-size: 14px; color: var(--text-secondary); }
.novel-info-label { color: var(--text-muted); margin-right: 4px; }
.novel-info-value { color: var(--text); font-weight: 500; }
.novel-intro-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; padding: 16px 0; }
.novel-synopsis { padding: 20px 24px; }

.chapter-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; flex-wrap: wrap; gap: 12px; }
.chapter-header-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; }
.chapter-title { font-size: 17px; font-weight: 600; }
.chapter-title-main { font-size: 22px; font-weight: 700; }
.chapter-count { font-size: 14px; color: var(--text-muted); }
.chapter-subtitle { font-size: 17px; font-weight: 600; margin: 20px 0 12px; }
.chapter-order { display: flex; gap: 8px; }
.chapter-order-label { font-weight: 600; }
.chapter-stats { display: flex; gap: 16px; font-size: 14px; color: var(--text-muted); }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 16px 24px; }
.chapter-link { display: block; padding: 10px 16px; font-size: 14px; color: var(--text-secondary); background: var(--bg-hover); border-radius: var(--radius); text-align: center; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all 0.15s; }
.chapter-link:hover { background: var(--primary-light); color: var(--primary); }
.chapter-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 0 24px; }
.chapter-nav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.15s; }
.chapter-nav-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.chapter-content { padding: 20px 24px; max-width: 780px; margin: 0 auto; }

.novel-recommend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 16px 24px; }
.novel-recommend-item { display: flex; gap: 12px; padding: 12px; background: var(--bg-hover); border-radius: var(--radius); text-decoration: none; transition: all 0.15s; align-items: center; }
.novel-recommend-item:hover { background: var(--primary-light); }
.novel-recommend-cover { width: 48px; height: 64px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; }
.novel-recommend-cover img { width: 100%; height: 100%; object-fit: cover; }
.novel-recommend-info { flex: 1; min-width: 0; }
.novel-recommend-title { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-recommend-author, .novel-recommend-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.copyright-notice { display: flex; gap: 16px; padding: 20px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-lg); margin: 16px 24px; align-items: flex-start; }
.copyright-notice-icon { font-size: 20px; flex-shrink: 0; }
.copyright-notice-content { flex: 1; }
.copyright-notice-title { font-size: 15px; font-weight: 600; color: #92400e; margin-bottom: 8px; }
.copyright-notice-text { font-size: 14px; color: #a16207; line-height: 1.6; }
.copyright-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.copyright-modal.show { display: flex; }
.copyright-modal-content { background: var(--bg-card); border-radius: var(--radius-lg); max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); position: relative; }
.copyright-modal-header { padding: 20px 20px 12px; display: flex; justify-content: space-between; align-items: flex-start; }
.copyright-modal-title { font-size: 17px; font-weight: 700; }
.copyright-modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-muted); font-size: 18px; transition: all 0.15s; }
.copyright-modal-close:hover { background: var(--bg-hover); color: var(--text); }
.copyright-modal-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.copyright-modal-body { padding: 12px 20px; }
.copyright-modal-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.copyright-modal-tip { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.copyright-modal-footer { padding: 12px 20px 20px; display: flex; gap: 12px; justify-content: flex-end; }
.copyright-modal-btn { padding: 8px 20px; font-size: 14px; font-weight: 500; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: all 0.15s; background: var(--bg-card); color: var(--text-secondary); }
.copyright-modal-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.copyright-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.copyright-platform-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; font-size: 14px; color: var(--primary); background: var(--primary-light); border-radius: var(--radius-full); transition: all 0.15s; }
.copyright-platform-link:hover { background: var(--primary); color: #fff; }
.platform-icon { font-size: 18px; }
.platform-name { font-weight: 500; }

.read-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px; }
.read-platform-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.2s; text-align: center; text-decoration: none; }
.read-platform-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.read-platform-title { font-size: 14px; font-weight: 600; color: var(--text); }
.read-platform-desc { font-size: 12px; color: var(--text-muted); }
.read-platform-btn { padding: 4px 12px; font-size: 12px; color: var(--primary); background: var(--primary-light); border-radius: var(--radius-full); transition: all 0.15s; }
.read-platform-btn:hover { background: var(--primary); color: #fff; }
.read-platform-tip { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ============================================================
   24. 文章
   ============================================================ */
.article-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--border); }
.article-tab { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; text-decoration: none; }
.article-tab:hover { color: var(--primary); }
.article-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.article-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.article-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.article-list { display: flex; flex-direction: column; }
.article-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border-light); transition: all 0.15s; text-decoration: none; gap: 16px; }
.article-item:hover { background: var(--bg-hover); }
.article-item:last-child { border-bottom: none; }
.article-content { flex: 1; min-width: 0; }
.article-title { font-size: 15px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-item:hover .article-title { color: var(--primary); }
.article-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; margin-top: 4px; flex-shrink: 0; }
.article-source-badge { font-weight: 500; }
.article-summary-text { display: none; }
@media (min-width: 640px) { .article-summary-text { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.article-time { flex-shrink: 0; }
.article-cover-wrap { width: 100%; max-height: 400px; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 20px; }
.article-cover-img { width: 100%; height: 100%; object-fit: cover; }
.article-header-inner { padding: 20px; }
.article-meta-row { display: flex; gap: 16px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 16px; }
.article-topic-badge { padding: 4px 12px; font-size: 12px; font-weight: 600; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-full); }
.article-tag { font-size: 12px; color: var(--text-muted); }
.article-info-row { display: flex; gap: 16px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.article-info-item { display: flex; align-items: center; gap: 4px; }
.article-summary { padding: 20px; background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); padding: 0 20px; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 12px; }
.article-footer-row { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-top: 1px solid var(--border-light); flex-wrap: wrap; gap: 16px; }
.article-footer-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.article-footer-label { font-size: 12px; color: var(--text-muted); }
.article-footer-tag { font-size: 12px; color: var(--text-secondary); background: var(--bg-hover); padding: 4px 10px; border-radius: 6px; }
.article-share-btn { padding: 8px 16px; font-size: 14px; color: var(--text-secondary); background: var(--bg-hover); border-radius: var(--radius); transition: all 0.15s; }
.article-share-btn:hover { background: var(--primary-light); color: var(--primary); }
.article-related-header { padding: 20px; border-top: 1px solid var(--border-light); }
.article-related-title { font-size: 17px; font-weight: 600; }
.article-related-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .article-related-grid { grid-template-columns: 1fr 1fr; } }
.article-related-item { display: block; padding: 14px 20px; border-bottom: 1px solid var(--border-light); text-decoration: none; transition: background 0.15s; }
.article-related-item:hover { background: var(--bg-hover); }
.article-related-item-title { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-related-item-date { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.article-sidebar-about { text-align: center; padding: 20px; }
.article-sidebar-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; background: #f1f5f9; }
.article-sidebar-name { font-size: 15px; font-weight: 600; }
.article-sidebar-desc { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.article-sidebar-stats { display: flex; justify-content: center; gap: 20px; margin-top: 16px; font-size: 14px; }

/* ============================================================
   25. AI 工具
   ============================================================ */
.ai-page-container { padding: 32px 0; }
.ai-page-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .ai-page-layout { grid-template-columns: 220px 1fr; } }
.ai-sidebar-desktop { display: none; }
@media (min-width: 768px) { .ai-sidebar-desktop { display: flex; flex-direction: column; gap: 2px; background: var(--bg-card); border-radius: var(--radius-lg); padding: 12px; height: fit-content; position: sticky; top: 84px; box-shadow: var(--shadow-card); } }
.ai-category-nav { display: flex; flex-direction: column; gap: 2px; }
.ai-category-link { display: block; padding: 10px 14px; font-size: 14px; color: var(--text-secondary); border-radius: var(--radius); font-weight: 500; transition: all 0.15s; }
.ai-category-link:hover { background: var(--primary-light); color: var(--primary); }
.ai-category-link.active { background: var(--primary); color: #fff; }
.ai-category-count { font-size: 12px; color: var(--text-muted); }
.ai-mobile-filter { display: flex; overflow-x: auto; gap: 8px; padding: 12px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ai-mobile-filter::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .ai-mobile-filter { display: none; } }
.ai-filter-scroll { display: flex; gap: 8px; }
.ai-filter-tag { flex-shrink: 0; padding: 8px 18px; font-size: 14px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-full); white-space: nowrap; font-weight: 500; transition: all 0.15s; }
.ai-filter-tag:hover { background: var(--primary-light); color: var(--primary); }
.ai-filter-tag.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ai-mobile-select { margin-bottom: 16px; }
@media (min-width: 768px) { .ai-mobile-select { display: none; } }
.ai-tool-card { display: flex; gap: 16px; padding: 20px; background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: all 0.2s; text-decoration: none; align-items: flex-start; }
.ai-tool-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ai-tool-header { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 0; }
.ai-tool-icon { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #f1f5f9; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ai-tool-icon img { width: 100%; height: 100%; object-fit: contain; }
.ai-tool-icon-fallback { font-size: 24px; color: var(--primary); }
.ai-tool-title { flex: 1; min-width: 0; }
.ai-tool-name { font-size: 15px; font-weight: 600; color: var(--text); }
.ai-tool-category { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ai-tool-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-tool-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ai-tool-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-tool-tag { font-size: 12px; padding: 2px 8px; background: var(--bg-hover); border-radius: 4px; color: var(--text-secondary); }

/* ============================================================
   26. 热搜
   ============================================================ */
.trending-stats { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 20px; background: var(--bg-card); border-radius: var(--radius-lg); margin-bottom: 20px; box-shadow: var(--shadow-card); }
.trending-stat { text-align: center; }
.trending-stat-num { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.trending-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.trending-updated { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.hot-cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .hot-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hot-cards-grid { grid-template-columns: repeat(3, 1fr); } }
.hot-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.hot-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.hot-card-title-row { display: flex; align-items: center; gap: 8px; }
.hot-card-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hot-card-title { font-size: 15px; font-weight: 600; }
.hot-card-count { font-size: 12px; color: var(--text-muted); }
.hot-card-updated { font-size: 12px; color: var(--text-muted); }
.hot-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 20px; text-decoration: none; transition: background 0.15s; border-bottom: 1px solid var(--border-light); }
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { background: var(--bg-hover); }
.hot-item .rank-num { margin-top: 1px; }
.hot-item-content { flex: 1; min-width: 0; }
.hot-item-title { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-item:hover .hot-item-title { color: var(--primary); }
.hot-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hot-keywords-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; }
.hot-keyword { padding: 4px 12px; font-size: 12px; color: var(--text-secondary); background: var(--bg-hover); border-radius: var(--radius-full); transition: all 0.15s; text-decoration: none; }
.hot-keyword:hover { background: #fef2f2; color: var(--danger); }
.hot-keyword-danger { color: var(--danger); }

/* ============================================================
   27. 热搜平台页
   ============================================================ */
.platform-page-header { text-align: center; padding: 40px 20px 32px; }
.platform-header-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.platform-header { text-align: center; }
.platform-title { font-size: 28px; font-weight: 700; }
.platform-info { font-size: 14px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.platform-meta { font-size: 14px; color: var(--text-muted); }
.platform-stats { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.platform-stat { text-align: center; }
.platform-stat-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.platform-stat-label { font-size: 12px; color: var(--text-muted); }
.platform-content { padding: 32px 0; }
.platform-search-box { max-width: 480px; margin: 16px auto 0; }
.platform-count { font-size: 14px; color: var(--text-muted); }
.platform-icon { font-size: 40px; }
.platform-info-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card); text-align: center; }
.platform-info-icon { font-size: 24px; margin-bottom: 12px; }
.platform-info-name { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.platform-info-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.platform-info-stats { display: flex; gap: 20px; justify-content: center; margin-top: 16px; }
.platform-info-stat { text-align: center; }
.platform-info-stat-num { font-size: 20px; font-weight: 700; color: var(--primary); }
.platform-info-stat-label { font-size: 12px; color: var(--text-muted); }
.platform-intro { padding: 24px; background: var(--bg-card); border-radius: var(--radius-lg); margin-top: 40px; box-shadow: var(--shadow-card); }
.platform-intro-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.platform-intro-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .platform-intro-grid { grid-template-columns: 1fr 1fr; } }
.platform-intro-item { display: flex; align-items: flex-start; gap: 12px; }
.platform-intro-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.platform-intro-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.platform-intro-desc { font-size: 12px; color: var(--text-muted); }
.platform-intro-content { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 12px; }
.platform-intro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.platform-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; font-size: 12px; border-radius: var(--radius-full); background: var(--bg-hover); color: var(--text-secondary); transition: all 0.15s; }
.platform-tag:hover { background: var(--primary-light); color: var(--primary); }
.platform-tag-dot { width: 6px; height: 6px; border-radius: 50%; }
.hot-list-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.hot-list-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.hot-list-title { font-size: 17px; font-weight: 600; }
.hot-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; text-decoration: none; border-bottom: 1px solid var(--border-light); transition: background 0.15s; }
.hot-list-item:last-child { border-bottom: none; }
.hot-list-item:hover { background: var(--bg-hover); }
.hot-rank { font-size: 12px; font-weight: 700; color: var(--text-muted); width: 24px; text-align: center; flex-shrink: 0; }
.hot-rank.top10 { color: var(--danger); }
.hot-rank.normal { color: var(--text-muted); }
.hot-content { flex: 1; min-width: 0; }
.hot-title { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list-item:hover .hot-title { color: var(--primary); }
.hot-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hot-meta-play { color: var(--text-muted); }
.hot-summary { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.hot-badge { display: inline-flex; align-items: center; padding: 2px 8px; font-size: 10px; font-weight: 600; border-radius: 4px; background: var(--danger); color: #fff; }
.keyword-tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.keyword-tag { padding: 4px 12px; font-size: 12px; color: var(--text-secondary); background: var(--bg-hover); border-radius: var(--radius-full); transition: all 0.15s; }
.keyword-tag:hover { background: var(--primary-light); color: var(--primary); }
.category-nav-col { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.usage-tips { font-size: 14px; color: var(--text-muted); padding: 20px; line-height: 1.6; }
.related-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ============================================================
   28. SEO / FAQ / About
   ============================================================ */
.seo-section { padding: 24px 20px; background: var(--bg-card); border-radius: var(--radius-lg); margin-top: 40px; box-shadow: var(--shadow-card); }
.seo-section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.seo-section-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 720px; }
.seo-section-content { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.seo-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.seo-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq-list { padding: 12px 20px 20px; }
.faq-section { margin: 28px 0; padding: 16px 24px; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.faq-icon { font-size: 18px; flex-shrink: 0; }
.faq-answer { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.about-section { padding: 24px 20px; background: var(--bg-card); border-radius: var(--radius-lg); margin-top: 40px; box-shadow: var(--shadow-card); }
.about-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.about-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.about-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.stat-item { text-align: center; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 20px; }

/* ============================================================
   29. 网站详情页
   ============================================================ */
.site-hero { padding: 24px; }
.site-hero-inner { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.site-hero-logo { width: 80px; height: 80px; border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.site-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-logo-img { width: 100%; height: 100%; object-fit: contain; }
.site-hero-body { flex: 1; min-width: 260px; }
.hero-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-badges { display: flex; gap: 8px; }
.hero-url-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hero-url-icon { flex-shrink: 0; }
.hero-url { font-size: 14px; color: var(--text-muted); word-break: break-all; }
.hero-url-blur { filter: blur(3px); user-select: none; }
.hero-url-disabled { opacity: 0.5; }
.hero-copy-btn { padding: 4px 12px; font-size: 12px; color: var(--text-secondary); background: var(--bg-hover); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.hero-copy-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.hero-meta { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.hero-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-top: 12px; }
.hero-tags, .hero-tag { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hero-disabled-hint { font-size: 14px; color: var(--danger); background: #fef2f2; padding: 8px 16px; border-radius: var(--radius); margin-top: 12px; }
.site-intro { padding: 16px 24px; }
.intro-title { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.intro-body { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; padding: 16px 24px; }
.stats-card { background: var(--bg-hover); border-radius: var(--radius-lg); padding: 16px; text-align: center; }
.stats-content { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.stats-unit { font-size: 14px; color: var(--text-muted); }
.stats-label { font-size: 12px; color: var(--text-muted); }

.weight-section { margin: 28px 0; padding: 0 24px; }
.weight-header { margin-bottom: 16px; }
.weight-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.weight-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-card); }
.weight-big-num { font-size: 36px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.weight-est { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.weight-engine-name { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.weight-body { margin-top: 16px; }
.weight-score-section { margin-top: 28px; }
.score-header { margin-bottom: 16px; }
.score-title { font-size: 17px; font-weight: 600; }
.score-value { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.score-progress { height: 8px; background: var(--bg-hover); border-radius: var(--radius-full); overflow: hidden; margin: 4px 0 12px; }
.score-bar-fill { height: 100%; background: var(--primary); border-radius: var(--radius-full); }
.score-desc { font-size: 14px; color: var(--text-muted); }

.traffic-section { margin: 28px 0; padding: 0 24px; }
.estimate-notice { display: flex; gap: 12px; padding: 12px 16px; background: #fffbeb; border-radius: var(--radius); font-size: 12px; color: #92400e; margin-bottom: 16px; align-items: flex-start; }
.notice-icon { flex-shrink: 0; }
.traffic-overview { display: flex; gap: 24px; flex-wrap: wrap; }
.traffic-main-stat { text-align: center; padding: 20px; background: var(--primary-light); border-radius: var(--radius-lg); min-width: 120px; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-value-large { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.traffic-sources { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 200px; }
.section-subtitle { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.estimate-tag { font-size: 12px; color: var(--text-muted); }
.source-bars { display: flex; flex-direction: column; gap: 8px; }
.source-header { font-weight: 600; margin-bottom: 12px; }
.source-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.source-name { width: 60px; color: var(--text-secondary); flex-shrink: 0; }
.source-bar { flex: 1; height: 8px; background: var(--bg-hover); border-radius: var(--radius-full); overflow: hidden; }
.source-percent { width: 45px; text-align: right; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.bar-fill { height: 100%; background: var(--primary); border-radius: var(--radius-full); }
.bar-fill.search { background: var(--primary); }
.bar-fill.direct { background: var(--success); }
.bar-fill.referral { background: var(--warning); }
.bar-fill.social { background: #ec4899; }
.bar-fill.mail { background: #8b5cf6; }
.visitor-countries { margin-top: 20px; }
.country-list { display: flex; flex-direction: column; gap: 8px; }
.country-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.country-name { width: 60px; color: var(--text-secondary); flex-shrink: 0; }
.country-bar-wrap { flex: 1; height: 8px; background: var(--bg-hover); border-radius: var(--radius-full); overflow: hidden; }
.country-bar { height: 100%; background: var(--primary); border-radius: var(--radius-full); }
.country-percent { width: 45px; text-align: right; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

.tool-links { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 24px; }
.tool-link-item { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-hover); border-radius: var(--radius-lg); font-size: 14px; color: var(--text-secondary); transition: all 0.15s; }
.tool-link-item:hover { background: var(--primary-light); color: var(--primary); }
.tool-icon { flex-shrink: 0; }
.tool-name { font-weight: 500; }
.tool-arrow { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.related-sites { display: flex; flex-direction: column; }
.related-site-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; text-decoration: none; border-bottom: 1px solid var(--border-light); transition: background 0.15s; }
.related-site-item:last-child { border-bottom: none; }
.related-site-item:hover { background: var(--bg-hover); }
.related-site-logo { width: 32px; height: 32px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; }
.related-site-logo img { width: 100%; height: 100%; object-fit: contain; }
.related-site-info { flex: 1; min-width: 0; }
.related-site-name { font-size: 14px; font-weight: 500; color: var(--text); }
.related-site-clicks { font-size: 12px; color: var(--text-muted); }

.share-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.share-modal-content { background: var(--bg-card); border-radius: var(--radius-lg); max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.share-modal-header { padding: 20px; border-bottom: 1px solid var(--border-light); font-size: 17px; font-weight: 700; }
.share-modal-body { padding: 20px; display: flex; justify-content: center; gap: 28px; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 12px; border-radius: var(--radius); transition: all 0.15s; font-size: 12px; color: var(--text-secondary); }
.share-item:hover { background: var(--bg-hover); color: var(--primary); }
.share-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.close-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-muted); font-size: 18px; cursor: pointer; transition: all 0.15s; }
.close-btn:hover { background: var(--bg-hover); color: var(--text); }
.report-options { display: flex; flex-wrap: wrap; gap: 8px; }
.report-option { padding: 8px 16px; font-size: 12px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-full); cursor: pointer; transition: all 0.15s; }
.report-option:hover { border-color: var(--danger); color: var(--danger); }

.qrcode-section { text-align: center; padding: 16px; }
.qrcode-img { max-width: 200px; border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(0,0,0,.1); display: inline-block; }
.qrcode-tip { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.qrcode-disabled { opacity: 0.5; pointer-events: none; }
.visit-btn { display: flex; justify-content: center; padding: 12px; }

.info-list { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; }
.info-item { display: flex; gap: 8px; font-size: 14px; }
.info-label { color: var(--text-muted); flex-shrink: 0; }
.info-value { color: var(--text); }

/* ============================================================
   30. 提交页面
   ============================================================ */
.submit-page-container { padding: 32px 0; }
.submit-wrapper { max-width: 660px; margin: 0 auto; padding: 40px 20px; }
.submit-header { text-align: center; margin-bottom: 40px; }
.submit-title { font-size: 28px; font-weight: 700; }
.submit-subtitle { font-size: 15px; color: var(--text-secondary); margin-top: 12px; }
.submit-form { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.submit-alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; line-height: 1.7; background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }
.submit-alert.success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.submit-alert.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.submit-notice { padding: 16px 20px; background: var(--bg-hover); border-radius: var(--radius); margin-top: 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.error-list { list-style: disc; padding-left: 20px; margin-top: 8px; }
.notice-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.notice-list { font-size: 14px; color: var(--text-secondary); line-height: 1.7; padding-left: 16px; }

.form-section { margin-bottom: 28px; }
.form-section-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.form-field { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.form-input, .form-textarea, .form-select { width: 100%; padding: 10px 14px; font-size: 14px; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.15s; outline: none; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-hint-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.form-status { font-size: 12px; margin-top: 4px; }
.form-footer { padding-top: 20px; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-footer-text { font-size: 14px; color: var(--text-muted); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.required { color: var(--danger); margin-left: 2px; }
.optional { color: var(--text-muted); font-size: 12px; margin-left: 4px; }
.input-with-button { display: flex; gap: 8px; }
.input-with-button .form-input { flex: 1; }
.logo-upload-row { display: flex; gap: 12px; align-items: center; }

.captcha-section { margin-bottom: 20px; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-input { flex: 1; }
.captcha-box { display: flex; align-items: center; gap: 8px; }
.captcha-box img { border-radius: var(--radius); border: 1px solid var(--border); height: 42px; }
.status-error { color: var(--danger); font-size: 12px; }
.search-type-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.search-article-card { margin-bottom: 16px; }

/* ============================================================
   31. 空状态 / 广告 / 工具类
   ============================================================ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 20px; text-align: center; }
.empty-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.25; }
.empty-icon-lg { font-size: 48px; opacity: 0.2; }
.empty-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text-muted); max-width: 360px; }
.empty-text { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.empty-action-btn { margin-top: 20px; }
.empty-chapters { padding: 40px; text-align: center; }
.empty-chapters-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.25; }
.empty-chapters-title { font-size: 17px; font-weight: 600; }
.empty-chapters-desc { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

.ad-container { margin: 24px 0; text-align: center; }
.ad-item { display: inline-block; position: relative; }
.ad-image { display: block; max-width: 100%; border-radius: var(--radius); overflow: hidden; transition: transform 0.2s; }
.ad-image:hover { transform: translateY(-2px); }
.ad-image-img { display: block; max-width: 100%; }
.ad-text { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 1px solid #bae6fd; border-radius: var(--radius); color: #0369a1; font-size: 14px; transition: all 0.2s; }
.ad-text:hover { transform: translateY(-1px); }
.ad-text-label { font-size: 12px; padding: 2px 8px; background: #0369a1; color: #fff; border-radius: 4px; }
.ad-text-content { font-size: 14px; color: #0369a1; }
.ad-code { overflow: hidden; }
.ad-header { width: 100%; margin-bottom: 16px; }
.ad-sidebar { margin-bottom: 16px; }
.ad-article { margin: 16px 0; }
.ad-footer { margin-top: 16px; }
.ad-placeholder { min-height: 90px; display: flex; align-items: center; justify-content: center; background: var(--bg-hover); color: var(--text-muted); font-size: 12px; border-radius: var(--radius-lg); margin: 24px 0; }

.skeleton-wrapper { background: var(--bg-card); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-card); }
.animate-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.guide-content { padding: 16px 24px; }
.guide-intro { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.guide-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.guide-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item { font-size: 14px; color: var(--text-secondary); }
.share-buttons { display: flex; gap: 12px; padding: 16px 24px; }

/* ============================================================
   32. 工具类
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-blur { filter: blur(4px); user-select: none; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mx-2 { margin-left: 8px; margin-right: 8px; }
.mr-2 { margin-right: 8px; }
.hidden { display: none; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow-sm { box-shadow: var(--shadow-card); }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.section-icon { flex-shrink: 0; }
.section-link { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.section-link:hover { color: var(--primary); }
.icon { flex-shrink: 0; }
.show { display: flex !important; }
.active { }
.disabled { opacity: 0.4; pointer-events: none; }
.hot { }
.new { }
.year { }
.flex { display: flex; }
.items-center { align-items: center; }
.space-x-2 > * + * { margin-left: 8px; }
.space-x-3 > * + * { margin-left: 12px; }
.space-y-2 > * + * { margin-top: 8px; }
.gap-2 { gap: 8px; }
.grid { display: grid; }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.bg-white { background: var(--bg-card); }
.bg-gray-200 { background: var(--bg-hover); }
.w-4 { width: 16px; }
.w-10 { width: 40px; }
.w-1\/2 { width: 50%; }
.w-3\/4 { width: 75%; }
.w-5\/6 { width: 83.333%; }
.h-3 { height: 12px; }
.h-4 { height: 16px; }
.h-10 { height: 40px; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.text-gray-300 { color: var(--text-muted); }
.text-gray-500 { color: var(--text-secondary); }
.text-gray-800 { color: var(--text); }
.hover\:text-indigo-600:hover { color: var(--primary); }
@media (min-width: 768px) { .md\:block { display: block; } .md\:flex { display: flex; } .md\:hidden { display: none; } }

/* ============================================================
   33. 深色模式(预留)
   ============================================================ */
[data-theme="dark"] {
  --text: #f1f5f9; --text-secondary: #94a3b8; --text-muted: #64748b;
  --bg: #0f172a; --bg-card: #1e293b; --bg-hover: #334155;
  --border: #334155; --border-light: #1e293b;
  --primary: #3b82f6; --primary-dark: #2563eb; --primary-light: #1e3a5f;
}
