/* ===== 杏林云馆 - 全局样式 ===== */

:root {
  /* 配色：以中医传统色调为基础 */
  --primary: #8B4513;        /* 赭石色 - 主色 */
  --primary-dark: #5D2F0A;
  --primary-light: #A0522D;
  --accent: #C04000;          /* 朱砂红 - 强调色 */
  --gold: #B8860B;            /* 暗金色 */
  --ink: #2C1810;             /* 墨色 */
  --ink-light: #4A2C1A;
  --paper: #FAF6F0;           /* 宣纸色 */
  --paper-dark: #F0E8D8;
  --jade: #4A7C59;            /* 翡翠绿 */
  --jade-light: #6B9B7A;
  --gray-text: #666;
  --gray-light: #999;
  --border: #D4C4A8;
  --shadow: 0 2px 12px rgba(92, 47, 10, 0.1);
  --shadow-lg: 0 4px 24px rgba(92, 47, 10, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
}

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

a:hover {
  color: var(--accent);
}

/* ===== 导航栏 ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-brand .logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2px;
}

.navbar-nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== 通用容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 36px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "医";
  position: absolute;
  font-size: 20rem;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: 6px;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 2;
  position: relative;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #D04000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.card h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card .meta {
  color: var(--gray-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.card .tag {
  background: var(--paper-dark);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.card .tag.nature {
  background: #E8F5E9;
  color: #2E7D32;
}

.card .tag.warm {
  background: #FFF3E0;
  color: #E65100;
}

.card .tag.cold {
  background: #E3F2FD;
  color: #1565C0;
}

/* ===== 统计区 ===== */
.stats {
  background: var(--paper-dark);
  padding: 48px 24px;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-item .label {
  color: var(--gray-text);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  margin-bottom: 32px;
  position: relative;
}

.timeline-era {
  width: 110px;
  text-align: right;
  padding-right: 24px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: 4px;
  flex-shrink: 0;
}

.timeline-dot {
  position: absolute;
  left: 114px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  z-index: 1;
}

.timeline-content {
  margin-left: 150px;
  background: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.timeline-content h4 {
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* ===== 表格 ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th {
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--paper-dark);
  font-size: 0.9rem;
}

.data-table tr:hover {
  background: var(--paper-dark);
}

.data-table tr:nth-child(even) {
  background: rgba(240, 232, 216, 0.3);
}

/* ===== 详情页 ===== */
.detail-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.detail-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  letter-spacing: 3px;
}

.detail-header .subtitle {
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

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

.detail-header .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.detail-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.detail-body h2 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.detail-body h2:first-child {
  margin-top: 0;
}

.detail-body p {
  color: var(--ink-light);
  line-height: 2;
  margin-bottom: 16px;
}

.detail-body .quote-block {
  background: var(--paper-dark);
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary-dark);
}

/* ===== 搜索栏 ===== */
.search-bar {
  max-width: 600px;
  margin: 0 auto 36px;
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-bar button {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* ===== 过滤标签 ===== */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-tag {
  padding: 6px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--gray-text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 24px;
  margin-top: 48px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

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

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #fff;
}

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

.footer-disclaimer {
  background: var(--paper-dark);
  padding: 16px 24px;
  text-align: center;
  color: var(--gray-text);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }

  .navbar-nav.show {
    display: flex;
  }

  .navbar-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .navbar-nav a {
    padding: 8px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-era {
    display: none;
  }

  .timeline-dot {
    left: 2px;
  }

  .timeline-content {
    margin-left: 32px;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
  }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.no-results {
  text-align: center;
  padding: 48px;
  color: var(--gray-light);
}

/* ===== CMS 新增：分页控件 ===== */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pager-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--paper-dark);
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-info { color: var(--gray-light); font-size: 0.85rem; }
.pager-dots { color: var(--gray-light); }

/* ===== CMS 新增：文章卡片封面图 ===== */
.card-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -24px -24px 12px;
  width: calc(100% + 48px);
  max-width: none;
}

/* ===== CMS 新增：富文本正文样式（后台发布的文章） ===== */
.detail-body h1, .detail-body h2, .detail-body h3, .detail-body h4 {
  color: var(--primary-dark);
  margin: 32px 0 12px;
  line-height: 1.4;
}
.detail-body h2 {
  font-size: 1.4rem;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.detail-body p {
  line-height: 1.9;
  margin-bottom: 14px;
  color: var(--ink);
}
.detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 8px 0;
}
.detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.detail-body th, .detail-body td {
  border: 1px solid var(--paper-dark);
  padding: 8px 12px;
  text-align: left;
  font-size: 0.95rem;
}
.detail-body th { background: var(--paper-dark); color: var(--primary-dark); }
.detail-body blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--paper-dark);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--primary-dark);
  font-style: italic;
}
.detail-body ul, .detail-body ol {
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.9;
}
.detail-body video, .detail-body iframe {
  max-width: 100%;
}

/* ===== 移动端适配补充：576px 断点 ===== */
@media (max-width: 576px) {
  /* 卡片网格收为单列 */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* 横幅标题自适应缩放 */
  .detail-header h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.3;
  }
  .detail-header .subtitle { font-size: 0.95rem; }
  /* 徽章允许换行 */
  .info-badges { flex-wrap: wrap; gap: 6px; }
  /* 搜索框整行 */
  .search-bar { flex-direction: column; }
  .search-bar input { width: 100%; }
  .search-bar button { width: 100%; margin-top: 8px; }
  /* 筛选 chips 横向滚动 */
  .filter-tags {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .filter-tag { white-space: nowrap; flex-shrink: 0; }
  /* 正文与表单字号 ≥16px（防 iOS 聚焦缩放） */
  body, input, textarea, select, button { font-size: 16px; }
  .detail-body { font-size: 1rem; }
  /* 富文本表格横向滚动 */
  .detail-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  /* 导航项最小触摸热区 */
  .navbar-nav a { min-height: 44px; display: flex; align-items: center; }
  .tag { min-height: 32px; display: inline-flex; align-items: center; }
  /* 条文卡片内边距收紧 */
  .card { padding: 18px 16px; }
}

/* 移动端 theme-color 由 meta 提供；iOS 安全区适配 */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* =====================================================
   UI 精修层 v2 —— 在原样式基础上覆盖升级
   ===================================================== */

/* ---- 全局质感 ---- */
body {
  background:
    radial-gradient(ellipse 70% 45% at 88% 8%, rgba(139, 69, 19, 0.045), transparent),
    radial-gradient(ellipse 55% 40% at 8% 92%, rgba(74, 124, 89, 0.04), transparent),
    var(--paper);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(139, 69, 19, 0.18); color: var(--ink); }
h1, h2, h3, h4 { letter-spacing: 0.5px; }

/* ---- 导航栏：毛玻璃质感 + 动效下划线 ---- */
.navbar {
  background: linear-gradient(120deg, #3D2008 0%, #5D2F0A 45%, #8B4513 100%);
  box-shadow: 0 2px 20px rgba(44, 24, 16, 0.28);
}
.navbar::after {
  content: "";
  display: block; height: 2px;
  background: linear-gradient(90deg, transparent, #C9A227 30%, #E8C96A 50%, #C9A227 70%, transparent);
  opacity: 0.85;
}
.navbar-brand { transition: transform 0.3s ease; }
.navbar-brand:hover { transform: scale(1.03); color: #fff; }
.navbar-brand .logo {
  background: linear-gradient(140deg, #C04000, #9E2B00);
  box-shadow: 0 2px 10px rgba(192, 64, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
}
.navbar-brand .logo::after {
  content: ""; position: absolute; inset: 2.5px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%;
}
.navbar-nav a {
  position: relative;
  font-weight: 500;
}
.navbar-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #E8C96A, #C9A227);
  border-radius: 2px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-nav a:hover::after,
.navbar-nav a.active::after { width: 55%; left: 22.5%; }
.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---- 页面横幅：装饰纹理 + 底部金线 ---- */
.detail-header {
  position: relative;
  background:
    radial-gradient(ellipse 45% 90% at 12% 20%, rgba(192, 64, 0, 0.22), transparent),
    radial-gradient(ellipse 40% 80% at 88% 80%, rgba(201, 162, 39, 0.14), transparent),
    radial-gradient(ellipse 30% 60% at 70% 10%, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(120deg, #3D2008 0%, #6B3A10 55%, #8B4513 100%);
  overflow: hidden;
}
.detail-header::before {
  content: "医";
  position: absolute;
  right: 4%; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(120px, 18vw, 220px);
  font-family: "Noto Serif SC", "Songti SC", serif;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.detail-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #C9A227 25%, #E8C96A 50%, #C9A227 75%, transparent);
}
.detail-header h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-header .subtitle {
  animation: heroIn 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.badge {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: heroIn 0.7s 0.14s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.26s; }

/* ---- 卡片：精致阴影 + hover 上浮 ---- */
.card {
  background: #fff;
  border: 1px solid rgba(212, 196, 168, 0.45);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(92, 47, 10, 0.05), 0 4px 14px rgba(92, 47, 10, 0.06);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 69, 19, 0.35);
  box-shadow:
    0 6px 16px rgba(92, 47, 10, 0.08),
    0 16px 36px rgba(92, 47, 10, 0.14);
  cursor: default;
}
a.card:hover, [onclick].card:hover { cursor: pointer; }
.card h3 {
  color: var(--primary-dark);
  transition: color 0.25s;
}
.card:hover h3 { color: var(--accent); }

/* ---- 标签 ---- */
.tag {
  background: linear-gradient(180deg, #FBF6EC, #F3EAD8);
  border: 1px solid rgba(139, 69, 19, 0.16);
  color: var(--primary-dark);
  border-radius: 6px;
  transition: all 0.2s;
}
.tag:hover {
  border-color: rgba(139, 69, 19, 0.4);
  transform: translateY(-1px);
}
.tag.cold { background: linear-gradient(180deg, #EAF3F6, #DCEAF0); border-color: rgba(70, 130, 160, 0.25); }
.tag.warm { background: linear-gradient(180deg, #FBEFE8, #F6E2D2); border-color: rgba(192, 64, 0, 0.3); }

/* ---- 搜索框 ---- */
.search-bar {
  background: #fff;
  border: 1px solid rgba(212, 196, 168, 0.5);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(92, 47, 10, 0.06);
}
.search-bar input {
  border: none;
  background: transparent;
  font-size: 1rem;
}
.search-bar input:focus { outline: none; box-shadow: none; }
.search-bar:focus-within {
  border-color: rgba(139, 69, 19, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1), 0 2px 10px rgba(92, 47, 10, 0.06);
}
.search-bar button {
  border-radius: 10px;
  background: linear-gradient(135deg, #A0522D, #8B4513);
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
  transition: all 0.25s;
}
.search-bar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 69, 19, 0.4);
}

/* ---- 筛选 chips ---- */
.filter-tag {
  border: 1px solid rgba(139, 69, 19, 0.22);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.filter-tag.active {
  background: linear-gradient(135deg, #A0522D, #8B4513);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.35);
}

/* ---- 区块标题 ---- */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 44px; height: 3px;
  background: linear-gradient(90deg, #C04000, #C9A227);
  border-radius: 2px;
}

/* ---- 引用块 ---- */
.quote-block {
  background: linear-gradient(180deg, #FBF7EE, #F5EDDD);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 4px rgba(92, 47, 10, 0.05);
}

/* ---- 首页 Hero 区装饰 ---- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  right: -140px; top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  left: -110px; bottom: -140px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12), transparent 65%);
  pointer-events: none;
}

/* ---- 时间线 ---- */
.timeline-dot {
  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.15);
}

/* ---- 统计数字 ---- */
.stats .stat-item, .stat-number {
  font-variant-numeric: tabular-nums;
}

/* ---- 页脚 ---- */
.footer {
  background: linear-gradient(180deg, #33200E 0%, #241509 100%);
}
.footer a { transition: all 0.2s; }
.footer a:hover { color: #E8C96A !important; padding-left: 3px; }

/* ---- 分页精修 ---- */
.pager-btn {
  border-radius: 10px;
  border-color: rgba(212, 196, 168, 0.6);
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pager-btn:hover:not(:disabled):not(.active) {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(139, 69, 19, 0.15);
}
.pager-btn.active {
  background: linear-gradient(135deg, #A0522D, #8B4513);
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
}

/* ---- 无结果提示 ---- */
.no-results {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  border: 1px dashed rgba(139, 69, 19, 0.25);
}

/* ---- 文章详情页正文精修 ---- */
.detail-body h2 {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(139, 69, 19, 0.05), transparent 70%);
  border-radius: 0 8px 8px 0;
  padding-top: 6px;
  padding-bottom: 6px;
}
.detail-body .quote-block {
  position: relative;
  padding-left: 22px;
}
.detail-body .quote-block::before {
  content: "\201C";
  position: absolute; left: 6px; top: 2px;
  font-size: 2rem; color: rgba(184, 134, 11, 0.35);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ---- 首页板块卡片图标动效 ---- */
.card h3:has(+ .meta) { transition: transform 0.25s; }
a.card:hover h3, [onclick].card:hover h3 { transform: translateX(2px); }

/* ---- 首页按钮精修 ---- */
.btn { transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.btn.btn-primary {
  background: linear-gradient(135deg, #C04000 0%, #A0522D 60%, #8B4513 100%);
  box-shadow: 0 4px 14px rgba(192, 64, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: none;
}
.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(192, 64, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ---- 首页统计数字精修 ---- */
.stats { position: relative; }
.stats-grid { gap: 16px; }
.stat-item .number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8B4513, #C04000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---- 移动端溢出修复 ---- */
body { overflow-x: hidden; }
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.55rem;
    letter-spacing: 2px;
    line-height: 1.5;
  }
  .hero p {
    font-size: 0.95rem;
    padding: 0 4px;
  }
  .hero { padding: 56px 18px; }
  .hero::before { font-size: 10rem; }
  .detail-header::before { font-size: 90px; opacity: 0.06; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-item .number { font-size: 1.9rem; }
  .stats .stat-item { padding: 14px 8px; }
  /* 分区标题在小屏的间距收紧 */
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
}
