/* ============================================
  yiqidao.com风水频道 - 全局样式表
   设计理念：东方雅韵 + 现代极简
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色调 - 墨色系 */
  --color-ink: #1a1a1a;
  --color-ink-light: #2d2d2d;
  --color-ink-muted: #4a4a4a;

  /* 次要色 - 宣纸米色 */
  --color-paper: #f5f0e8;
  --color-paper-dark: #e8e0d0;
  --color-paper-light: #faf8f5;

  /* 强调色 - 朱砂红 & 金箔 */
  --color-vermilion: #c73e3a;
  --color-vermilion-dark: #a62e2a;
  --color-vermilion-light: #e85a56;
  --color-gold: #c9a962;
  --color-gold-light: #e5d4a1;
  --color-gold-dark: #a68942;

  /* 点缀色 - 青瓷绿 */
  --color-jade: #5a8a7a;
  --color-jade-light: #7db3a0;
  --color-jade-dark: #3d6b5a;

  /* 文字色 */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #8a8a8a;
  --color-text-inverse: #f5f0e8;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 20px rgba(201,169,98,0.25);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* 布局 */
  --container-max: 1200px;
  --nav-height: 72px;

  /* 动画 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-paper-light);
  min-height: 100vh;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-paper-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* 文字选择 */
::selection {
  background: var(--color-gold-light);
  color: var(--color-ink);
}

/* ---------- 字体排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-vermilion);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-vermilion-dark);
}

/* ---------- 容器布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  height: 64px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
}

.navbar-brand svg {
  width: 40px;
  height: 40px;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-logo-text span {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.1em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.navbar-nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-vermilion);
  transition: width var(--duration-normal) var(--ease-out);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--color-vermilion);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar-action-btn:hover {
  background: var(--color-paper-dark);
  color: var(--color-vermilion);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  transition: all var(--duration-fast) var(--ease-out);
}

/* ---------- Hero 区域 ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--color-paper) 0%, var(--color-paper-light) 100%);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 15 L30 25 L25 15 Z M30 35 L35 45 L30 55 L25 45 Z M5 30 L15 35 L25 30 L15 25 Z M35 30 L45 35 L55 30 L45 25 Z' fill='none' stroke='%231a1a1a' stroke-width='1'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) 0.1s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--color-vermilion);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) 0.2s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) 0.3s forwards;
}

.hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  aspect-ratio: 1;
  opacity: 0.08;
}

/* ---------- 按钮样式 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-vermilion);
  color: white;
}

.btn-primary:hover {
  background: var(--color-vermilion-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(199, 62, 58, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--color-vermilion);
  border: 2px solid var(--color-vermilion);
}

.btn-secondary:hover {
  background: var(--color-vermilion);
  color: white;
}

.btn-ghost {
  background: rgba(255,255,255,0.8);
  color: var(--color-ink);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: white;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  gap: var(--space-lg);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 内容卡片 ---------- */
.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
}

.content-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.content-card:hover .card-image img {
  transform: scale(1.05);
}

.content-card:hover .card-icon {
  transform: translateY(-4px) rotate(3deg);
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-paper) 0%, var(--color-paper-dark) 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.card-icon {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-out);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-vermilion);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--color-paper);
  color: var(--color-gold-dark);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  transition: color var(--duration-fast) var(--ease-out);
}

.content-card:hover .card-title {
  color: var(--color-vermilion);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-paper-dark);
  margin-top: auto;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

.card-meta-item svg {
  width: 14px;
  height: 14px;
}

.card-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-paper);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.card-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.content-card:hover .card-arrow {
  background: var(--color-vermilion);
}

.content-card:hover .card-arrow svg {
  color: white;
  transform: translateX(3px);
}

/* 支柱页卡片 */
.pillar-card {
  position: relative;
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
}

.pillar-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-vermilion), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.pillar-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-paper) 0%, var(--color-paper-dark) 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.pillar-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-vermilion);
}

.pillar-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.pillar-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.pillar-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pillar-card-topics a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--color-paper);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.pillar-card-topics a:hover {
  background: var(--color-vermilion);
  color: white;
}

/* ---------- 场景页卡片 ---------- */
.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-ink-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
}

.scenario-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.scenario-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.scenario-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.scenario-card:hover::before {
  opacity: 0.1;
}

.scenario-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.scenario-card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
}

.scenario-card-title {
  font-size: 1.5rem;
  color: white;
  margin-bottom: var(--space-xs);
}

.scenario-card-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
}

.scenario-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-gold);
  font-weight: 500;
  margin-top: auto;
  transition: gap var(--duration-fast) var(--ease-out);
}

.scenario-card-link:hover {
  color: var(--color-gold-light);
  gap: var(--space-sm);
}

/* ---------- 标签 ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-dark);
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.tag:hover {
  background: var(--color-gold);
  color: white;
}

.tag.active {
  background: var(--color-vermilion);
  border-color: var(--color-vermilion);
  color: white;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
}

.breadcrumb-separator {
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-secondary);
}

.breadcrumb a:hover {
  color: var(--color-vermilion);
}

.breadcrumb-current {
  color: var(--color-text-muted);
}

/* ---------- 文章内容区 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
}

.article-content {
  min-width: 0;
}

.article-header {
  margin-bottom: var(--space-xl);
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  width: 16px;
  height: 16px;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-ink);
}

.article-body h3 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-ink);
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.article-body li {
  margin-bottom: 0.75em;
}

.article-body blockquote {
  position: relative;
  padding: var(--space-md) var(--space-lg);
  padding-left: var(--space-xl);
  background: var(--color-paper);
  border-left: 3px solid var(--color-vermilion);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
  font-style: italic;
}

.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3rem;
  font-family: 'Noto Serif SC', serif;
  color: var(--color-vermilion);
  opacity: 0.3;
  line-height: 1;
}

/* 文章信息卡片 */
.article-info-card {
  position: relative;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-paper) 0%, var(--color-paper-dark) 100%);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}

.article-info-card h4 {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.article-info-card h4 svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
}

.article-info-card ul {
  list-style: none;
  padding: 0;
}

.article-info-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 0.95rem;
}

.article-info-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-vermilion);
  border-radius: var(--radius-full);
  margin-top: 10px;
  flex-shrink: 0;
}

/* 文章相关推荐 */
.article-related {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-paper-dark);
}

.article-related-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  align-self: start;
}

.sidebar-widget {
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.sidebar-widget-title {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-paper-dark);
}

/* 目录导航 */
.toc {
  list-style: none;
}

.toc-item {
  margin-bottom: var(--space-xs);
}

.toc-link {
  display: block;
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.toc-link:hover {
  background: var(--color-paper);
  color: var(--color-vermilion);
}

.toc-link.active {
  background: var(--color-vermilion);
  color: white;
}

.toc-link-depth-2 {
  padding-left: 24px;
  font-size: 0.85rem;
}

/* ---------- 章节区块 ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
}

.section-title svg {
  width: 28px;
  height: 28px;
  color: var(--color-vermilion);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-vermilion);
  color: white;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-logo svg {
  width: 40px;
  height: 40px;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: white;
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
  color: var(--color-gold);
}

/* ---------- 动画 ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .navbar-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-decoration {
    display: none;
  }

  .card-grid-3,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
  }
}

/* 移动端导航菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-paper-dark);
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-links {
  flex: 1;
  padding: var(--space-md);
  list-style: none;
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 1.125rem;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-paper-dark);
}

/* ---------- 骨架屏加载动画 ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--color-paper) 25%, var(--color-paper-light) 50%, var(--color-paper) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}