/* ========================================
   AI价值投资研究中心 - 主样式表
   简约商务金融风格 · 响应式设计
   ======================================== */

/* CSS 变量 */
:root {
  --bg: #f5f6f8;
  --bg-card: #ffffff;
  --bg-dark: #1a1a2e;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --accent: #c41230;
  --accent-hover: #a30e26;
  --accent-rgb: 196,18,48;
  --gold: #d4a843;
  --gold-light: #f0e6c8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --green: #10b981;
  --red: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --reading-width: 760px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

/* 全局重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
code { font-family: var(--font-mono); background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
pre { background: var(--bg-dark); color: #e2e8f0; padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: 13px; }
pre code { background: none; padding: 0; color: inherit; }

/* 容器 */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.logo-icon { color: var(--gold); font-size: 22px; }
.logo-accent { color: var(--gold); }
.logo-text { letter-spacing: -0.5px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.main-nav a.admin-link { color: var(--gold); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* 导航下拉 */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 1001;
  overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text) !important;
  font-size: 13px;
  border-radius: 0 !important;
}
.dropdown-menu a:hover { background: var(--border-light); color: var(--accent) !important; }

/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  z-index: 999;
  padding: 12px 0;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  padding: 12px 24px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
}
.hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.hero-accent { color: var(--gold); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 30px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; }
.stat-item { text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--gold); display: block; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }
.hero-search { max-width: 500px; margin: 0 auto; display: flex; gap: 8px; }
.hero-search-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 25px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.5); }
.hero-search-input:focus { border-color: var(--gold); }
.hero-search-btn {
  padding: 12px 24px;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-search-btn:hover { background: #c49a32; }

/* 区块 */
.section { margin: 50px 0; }
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.section-title .pin-icon { margin-right: 6px; }
.section-more { text-align: center; margin-top: 24px; }

/* 分类卡片 */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.category-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-icon { font-size: 32px; margin-bottom: 12px; }
.category-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.category-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 10px; }
.category-count {
  font-size: 12px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 3px 10px;
  border-radius: 12px;
}

/* 文章卡片 */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}
.article-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.card-link { display: block; color: var(--text); text-decoration: none; }
.card-image { height: 160px; background-size: cover; background-position: center; }
.card-body { padding: 20px; }
.card-meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.card-pin { font-size: 11px; color: var(--gold); }
.card-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { font-size: 13px; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card-views { font-size: 12px; color: var(--text-muted); }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  color: var(--text-light);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 文章详情 */
.article-detail { padding-top: 24px; padding-bottom: 60px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 6px; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading-width)) 280px; justify-content: center; gap: 48px; }
.article-main { min-width: 0; }
.article-header { margin-bottom: 30px; padding: 24px 0 22px; border-bottom: 1px solid var(--border); }
.article-header h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; font-weight: 800; line-height: 1.35; margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.meta-item { font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.tags-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-link { font-size: 12px; color: var(--accent); background: rgba(var(--accent-rgb), 0.06); padding: 2px 10px; border-radius: 12px; }
.article-content { font-size: 17px; line-height: 1.9; word-wrap: break-word; color: #263241; }
.article-content:not(.self-contained) h1, .article-content:not(.self-contained) h2, .article-content:not(.self-contained) h3, .article-content:not(.self-contained) h4 { margin-top: 36px; margin-bottom: 16px; font-weight: 750; color: var(--bg-dark); scroll-margin-top: 84px; }
.article-content:not(.self-contained) h1 { font-family: var(--font-display); font-size: 26px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.article-content:not(.self-contained) h2 { font-size: 22px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article-content:not(.self-contained) h3 { font-size: 18px; color: #24446a; }
.article-content:not(.self-contained) p { margin-bottom: 18px; }
.article-content:not(.self-contained) strong { color: #111827; font-weight: 750; }
.article-content:not(.self-contained) a { text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .35); text-underline-offset: 3px; }
.article-content:not(.self-contained) ul, .article-content:not(.self-contained) ol { margin-bottom: 14px; padding-left: 24px; }
.article-content:not(.self-contained) li { margin-bottom: 6px; }
.article-content:not(.self-contained) table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0 24px; font-size: 14px; background: var(--bg-card); }
.article-content:not(.self-contained) th { background: var(--bg-dark); color: #fff; padding: 12px 14px; text-align: left; font-size: 13px; white-space: nowrap; }
.article-content:not(.self-contained) td { padding: 11px 14px; border-bottom: 1px solid var(--border); min-width: 90px; }
.article-content:not(.self-contained) tr:hover td { background: #fffaf0; }
.article-content:not(.self-contained) tr:nth-child(even) td { background: var(--border-light); }
.article-content:not(.self-contained) blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--border-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
}
.article-content:not(.self-contained) mark { background: var(--gold-light); padding: 1px 4px; border-radius: 2px; }

/* 侧边栏 */
.article-sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; border: 1px solid var(--border); }
.sidebar-widget h4 { font-size: 15px; margin-bottom: 12px; color: var(--bg-dark); }
.sidebar-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s;
}
.sidebar-link:hover, .sidebar-link.active { color: var(--accent); font-weight: 600; }
.admin-widget { border-color: var(--gold); background: rgba(212,168,67,0.05); }
.disclaimer-widget { background: rgba(var(--accent-rgb), 0.04); border-color: rgba(var(--accent-rgb), 0.15); }
.disclaimer-widget p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* 评论区 */
.related-section, .comments-section { margin-top: 40px; }
.related-section h3, .comments-section h3 { font-size: 18px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.related-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s;
}
.related-item:hover { border-color: var(--accent); }
.related-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-date { font-size: 12px; color: var(--text-muted); }

.comment-list { margin-bottom: 24px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-delete-btn { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.comment-delete-btn:hover { color: var(--red); }
.comment-body { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.no-comments { color: var(--text-muted); font-size: 14px; padding: 20px 0; }
.comment-form { background: var(--bg-card); padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.comment-form-row { margin-bottom: 10px; }
.comment-input-name { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; outline: none; }
.comment-input-name:focus { border-color: var(--accent); }
.comment-textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; resize: vertical; min-height: 80px; outline: none; font-family: var(--font); }
.comment-textarea:focus { border-color: var(--accent); }

/* 分类筛选 */
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-link {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
}
.filter-link:hover, .filter-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 搜索 */
.search-section { padding: 40px 0 20px; }
.search-section h1 { font-size: 28px; margin-bottom: 20px; }
.search-form-large { display: flex; gap: 10px; max-width: 600px; }
.search-input-large {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  outline: none;
}
.search-input-large:focus { border-color: var(--accent); }
.search-result-info { margin: 16px 0; font-size: 14px; color: var(--text-light); }
.search-results { margin-top: 20px; }
.search-result-item {
  display: block;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.search-result-item:hover { border-color: var(--accent); }
.search-result-item h3 { font-size: 17px; margin-bottom: 8px; }
.search-result-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.search-result-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }

/* 归档页 */
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 28px; font-weight: 800; }
.page-desc { font-size: 15px; color: var(--text-light); margin-top: 8px; }
.archive-month { margin-bottom: 30px; }
.archive-month-title { font-size: 18px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: flex; align-items: center; gap: 10px; }
.month-count { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.archive-list { margin-top: 12px; }
.archive-item { display: flex; align-items: flex-start; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.archive-date { font-size: 13px; color: var(--text-muted); min-width: 60px; padding-top: 2px; }
.archive-item-main { flex: 1; min-width: 0; }
.archive-item-title { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.archive-item-title:hover { color: var(--accent); }
.pin-badge { font-size: 14px; }
.archive-item-meta { display: flex; gap: 16px; margin-top: 4px; font-size: 12px; color: var(--text-muted); }

/* 热门 */
.popular-list { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.popular-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.popular-item:hover { background: var(--border-light); }
.popular-item:last-child { border-bottom: none; }
.popular-rank { font-size: 20px; font-weight: 800; color: var(--accent); min-width: 28px; text-align: center; }
.popular-info { flex: 1; min-width: 0; }
.popular-title { font-size: 14px; font-weight: 600; display: block; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popular-meta { font-size: 12px; color: var(--text-muted); }

/* AI能力 */
.capability-section { background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); margin-bottom: 40px; }
.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.capability-item { text-align: center; padding: 20px; }
.cap-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.capability-item h4 { font-size: 16px; margin-bottom: 8px; }
.capability-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* 页脚 */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
  margin-top: 60px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 13px; padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.footer-disclaimer strong { color: var(--gold); }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.page-link { padding: 8px 20px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); background: var(--bg-card); text-decoration: none; transition: all 0.15s; }
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-info { font-size: 14px; color: var(--text-muted); }

/* 按钮 */
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
  display: inline-block;
  padding: 9px 22px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1); }
textarea.form-input { resize: vertical; font-family: var(--font); }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state p { font-size: 16px; color: var(--text-light); margin-bottom: 16px; }

/* 响应式 */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .article-sidebar { position: static; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-body { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px; }
  .admin-sidebar h3 { display: none; }
  .admin-sidebar a { padding: 8px 14px; font-size: 13px; border-bottom: none; }
  .admin-sidebar a.logout { margin-top: 0; border-top: none; padding-top: 8px; }
  .admin-main { padding: 20px; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 26px; }
  .hero-subtitle { font-size: 14px; }
  .hero-stats { gap: 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .article-header { padding-top: 12px; }
  .article-header h1 { font-size: 24px; }
  .article-content { font-size: 16px; line-height: 1.85; }
  .article-content:not(.self-contained) h2 { font-size: 20px; }
  .article-content:not(.self-contained) table { font-size: 13px; }
  .article-content th, .article-content:not(.self-contained) td { padding: 10px 11px; }
}

/* ===== 自包含报告保护（2026-08-08）：报告自带 <style> 时站点规则完全让位 ===== */
.article-content.self-contained { font-size: inherit; line-height: inherit; color: inherit; }
.article-content.self-contained h1, .article-content.self-contained h2,
.article-content.self-contained h3, .article-content.self-contained h4 { margin: inherit; font-weight: inherit; color: inherit; scroll-margin-top: 84px; }
.article-content.self-contained p { margin-bottom: inherit; }
.article-content.self-contained strong { color: inherit; font-weight: inherit; }
.article-content.self-contained a { text-decoration: inherit; }
.article-content.self-contained ul, .article-content.self-contained ol { margin-bottom: inherit; padding-left: inherit; }
.article-content.self-contained li { margin-bottom: inherit; }
.article-content.self-contained table { display: inherit; width: inherit; overflow: inherit; border-collapse: inherit; margin: inherit; font-size: inherit; background: inherit; }
.article-content.self-contained th { background: inherit; color: inherit; padding: inherit; text-align: inherit; font-size: inherit; white-space: inherit; }
.article-content.self-contained td { padding: inherit; border-bottom: inherit; min-width: inherit; }
.article-content.self-contained tr:hover td { background: inherit; }
.article-content.self-contained tr:nth-child(even) td { background: inherit; }
.article-content.self-contained blockquote { border-left: inherit; padding: inherit; margin: inherit; background: inherit; border-radius: inherit; color: inherit; }
.article-content.self-contained mark { background: inherit; padding: inherit; border-radius: inherit; }

/* ===== 广告位（2026-08-11）：未启用时显示占位框，接入广告网络后自动替换 ===== */
.ad-slot {
  margin: 20px auto;
  text-align: center;
}
.ad-slot .ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 2px;
  user-select: none;
}
.ad-leaderboard .ad-placeholder { height: 90px; max-width: 728px; margin: 0 auto; }
.ad-rectangle .ad-placeholder { height: 250px; max-width: 300px; margin: 0 auto; }
.ad-slot.ad-active { border: none; background: none; }
.article-sidebar .ad-slot { margin: 0 0 16px; }
@media (max-width: 768px) {
  .ad-slot .ad-placeholder, .ad-leaderboard .ad-placeholder { min-height: 60px; height: auto; padding: 18px 8px; }
  .ad-rectangle .ad-placeholder { height: 120px; }
}
