/* ============================================================
   睡眠学 shuimianxue.com — 全局样式
   设计参考：changshou.wiki 循证知识平台风格
   ============================================================ */

/* --- CSS 变量 --- */
:root {
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --border: #e1e5e9;
  --border-light: #f0f2f5;
  --text: #2c3e50;
  --text-secondary: #6b7c93;
  --text-muted: #99a7b8;
  
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #f0edff;
  --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 40%, #6c5ce7 100%);
  
  --green: #00b894;
  --green-light: #e6f9f5;
  --blue: #0984e3;
  --blue-light: #eaf3fd;
  --gold: #f0a500;
  --gold-light: #fff9e8;
  --orange: #e17055;
  --orange-light: #fef0ed;
  --red: #e74c3c;
  --red-light: #fef0ed;
  --gray: #636e72;
  --gray-light: #f1f2f6;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  
  --max-width: 1080px;
  --header-height: 64px;
}

/* --- 基础重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 链接 --- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

/* --- 容器 --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 导航栏 --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.header-logo:hover { color: var(--primary); }
.header-logo img { width: 32px; height: 32px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.header-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
}
.header-search-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* --- Hero --- */
.hero {
  background: var(--primary-gradient);
  color: #fff;
  text-align: center;
  padding: 72px 24px 64px;
}

.hero-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: block;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero .hero-subtitle {
  font-size: 18px;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.hero .hero-tagline {
  font-size: 14px;
  opacity: 0.65;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 500;
}

/* --- Section 标题 --- */
.section-header {
  text-align: center;
  margin: 56px 0 32px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* --- 分类卡片网格 --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-card .cat-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.category-card .cat-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card .cat-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.category-card .cat-count {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.category-card .cat-layer {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* --- 文章列表 --- */
.articles-section {
  margin-bottom: 48px;
}

.articles-list {
  display: grid;
  gap: 12px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.article-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
  transform: translateX(3px);
}

.article-card .ac-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-card .ac-content { flex: 1; min-width: 0; }

.article-card .ac-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}

.article-card .ac-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .ac-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-card .ac-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- 证据等级徽章 --- */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ev-strong { background: var(--green-light); color: var(--green); }
.ev-moderate { background: var(--blue-light); color: var(--blue); }
.ev-preliminary { background: var(--gold-light); color: #b8860b; }
.ev-controversial { background: var(--orange-light); color: var(--orange); }
.ev-insufficient { background: var(--gray-light); color: var(--gray); }

.ev-strong::before { content: "🟢"; font-size: 10px; }
.ev-moderate::before { content: "🔵"; font-size: 10px; }
.ev-preliminary::before { content: "🟡"; font-size: 10px; }
.ev-controversial::before { content: "🟠"; font-size: 10px; }
.ev-insufficient::before { content: "⚫"; font-size: 10px; }

/* --- 标签 --- */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
}

/* --- 搜索 --- */
.search-container {
  max-width: 640px;
  margin: 0 auto;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
}
.search-input:focus {
  border-color: var(--primary);
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.search-results {
  margin-top: 24px;
}

.search-result-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.search-result-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.search-result-item .sr-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.search-result-item .sr-title mark {
  background: #ffeaa7;
  color: var(--text);
  padding: 1px 3px;
  border-radius: 2px;
}

.search-result-item .sr-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.search-result-item .sr-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.search-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.search-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* --- 文章详情页 --- */
.article-header {
  background: var(--primary-gradient);
  color: #fff;
  padding: 48px 24px 40px;
}

.article-header .article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  max-width: 780px;
}

.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  opacity: 0.8;
  flex-wrap: wrap;
}

.article-summary-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.6;
}

.article-body {
  padding: 32px 0 64px;
  font-size: 16px;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  color: var(--text);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--primary);
}

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

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

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  font-weight: 700;
  color: var(--text);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.article-body th {
  background: #2d3436;
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}

.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.article-body tr:nth-child(even) {
  background: var(--bg);
}

/* ─── 文章目录（对标 changshou.wiki）─── */
.article-toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.article-toc h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.article-toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}
.article-toc ol li a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  transition: color 0.15s;
}
.article-toc ol li a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

/* ─── 核心机制块（⚙️）─── */
.core-mechanism {
  background: var(--gray-light);
  border-left: 4px solid var(--gray);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
}
.core-mechanism strong {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 4px;
}
.core-mechanism p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ─── 关键信息框（📌）─── */
.info-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
}
.info-box strong {
  color: var(--blue);
}

/* ─── 证据矛盾点框（⚠️）─── */
.warning-box {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
}

/* ─── 交叉关联段 ─── */
.cross-ref {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}
.cross-ref a {
  color: var(--primary);
  text-decoration: none;
}
.cross-ref a:hover {
  text-decoration: underline;
}

/* ─── 结构化评价增强 ─── */
.eval-section {
  margin: 14px 0;
}
.eval-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.eval-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eval-list li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}
.eval-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.eval-pro .eval-list li::before { background: var(--green); opacity: 0.2; border: 2px solid var(--green); }
.eval-con .eval-list li::before { background: var(--orange); opacity: 0.2; border: 2px solid var(--orange); }

/* ─── 角标引用 ─── */
.cite-ref {
  font-size: 0.75em;
  vertical-align: super;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.cite-ref:hover {
  text-decoration: underline;
}

/* 引证 */
.article-references {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.article-references h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-references ol {
  font-size: 13px;
  color: var(--text-secondary);
}

.article-references li {
  margin-bottom: 8px;
}

/* 关键发现 */
.key-findings {
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}

.key-findings h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.key-findings ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-findings li {
  font-size: 14px;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}
.key-findings li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* 证据等级表 */
.evidence-table {
  margin: 24px 0;
}

.evidence-table h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 实用建议 */
.practical-tips {
  background: var(--blue-light);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.practical-tips h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.practical-tips ol {
  margin: 0;
  padding-left: 20px;
}

.practical-tips li {
  font-size: 14px;
  margin-bottom: 8px;
}

/* 免责声明 */
.disclaimer-box {
  background: var(--orange-light);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.disclaimer-box strong {
  color: var(--orange);
}

/* 返回链接 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* --- 关于页面 --- */
.about-section {
  padding: 48px 0 64px;
}

.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px;
}

.about-section p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-section ul {
  margin: 0 0 16px 24px;
}

.about-section li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.principle-card .pr-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.principle-card .pr-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.principle-card .pr-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 证据等级说明 */
.evidence-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.ev-level-card {
  padding: 18px 14px;
  border-radius: var(--radius);
  text-align: center;
}

.ev-level-card .el-icon { font-size: 24px; margin-bottom: 6px; }
.ev-level-card .el-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ev-level-card .el-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }

/* --- 页脚 --- */
.footer {
  background: #2d3436;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* --- SPA 页面切换 --- */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 0;
    box-shadow: var(--shadow-md);
  }
  
  .header-nav.open {
    display: flex;
  }
  
  .header-menu-btn {
    display: block;
  }
  
  .hero h1 { font-size: 28px; }
  .hero .hero-subtitle { font-size: 15px; }
  .hero { padding: 48px 20px 40px; }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-header h1 { font-size: 24px; }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .search-input { font-size: 15px; padding: 12px 16px 12px 42px; }
  
  .about-principles {
    grid-template-columns: 1fr 1fr;
  }
  
  .evidence-levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 { font-size: 24px; }
  .about-principles { grid-template-columns: 1fr; }
  .evidence-levels-grid { grid-template-columns: 1fr; }
}

/* --- 工具类 --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* --- 面包屑导航 --- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep {
  color: var(--text-muted);
}
.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* --- 睡眠学评价区块 --- */
.sleep-evaluation {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 32px 0;
}
.sleep-evaluation h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: none;
  margin: 0 0 12px 0;
  padding: 0;
}
.sleep-evaluation p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}
.sleep-evaluation .evaluation-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- 相关文章 --- */
.related-articles {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}
.related-articles h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-articles li {
  margin-bottom: 8px;
}
.related-articles a {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.related-articles a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 文章 header 内的面包屑颜色适配 */
.article-header .breadcrumb {
  color: rgba(255,255,255,0.6);
}
.article-header .breadcrumb a {
  color: rgba(255,255,255,0.8);
}
.article-header .breadcrumb a:hover {
  color: #fff;
}
.article-header .breadcrumb-current {
  color: rgba(255,255,255,0.9);
}

/* 文章内容区域的 series 标注 */
.series-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* --- 打印样式 --- */
@media print {
  .header, .footer, .hero { display: none; }
  body { background: #fff; color: #000; }
  .article-body { font-size: 14px; }
}
