/* ============================================
   雄文札记 - 专业法律网站样式 v3.0
   配色：深蓝 #1a1a2e + 金色 #c9a96e
   v3.0: 暗色模式 + 冗余清理 + 滚动动画
   ============================================ */

:root {
  --primary: #1a1a2e;
  --gold: #c9a96e;
  --gold-dark: #b8944f;
  --bg: #f7f7f9;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-sec: #666666;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif !important;
  color: #2d2d2d;
  background-color: #f7f7f9;
  line-height: 1.8;
  font-size: 17px;
  margin: 0;
  padding: 0;
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6, label {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif !important;
  font-weight: 600;
  color: #1a1a2e;
  text-transform: none !important;
  letter-spacing: 0.05em !important;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; border-bottom: none !important; padding-bottom: 0 !important; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.2rem; }

.content h2::after, .page-header h2::after, .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c9a96e, #d4b88a);
  margin-top: 10px;
  border-radius: 2px;
}

.page-header h2 { text-align: center; font-size: 2rem; }
.page-header h2::after { margin: 10px auto 0; }

a { color: #16213e; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #c9a96e; }

/* === 导航栏 === */
header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: #1a1a2e !important;
  border-bottom: 3px solid #c9a96e;
  padding: 0 20px !important;
  transition: all 0.3s ease;
  background-image: none !important;
  background-size: 0 !important;
  height: auto !important;
}

header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

header .container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; height: 80px; text-align: left !important;
}

header .company-name { margin: 0 !important; font-size: 1rem !important; line-height: 1 !important; }

header .company-name a {
  color: #ffffff !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 1.6rem !important;
  font-weight: 700;
  letter-spacing: 3px;
}

header nav { display: flex; align-items: center; gap: 5px; }

header nav a {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 16px; border-radius: 8px;
  position: relative; transition: all 0.3s ease;
}

header nav a::after {
  content: ""; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 0; height: 2px;
  background: #c9a96e; transition: width 0.3s ease;
}

header nav a:hover, header nav a.active { color: #ffffff !important; background: rgba(255,255,255,0.08); }
header nav a:hover::after, header nav a.active::after { width: 60%; }
header nav .nav-toggle { display: none; }

@media (max-width: 768px) {
  body { padding-top: 65px; }
  header .container { height: 65px; position: relative; }
  header .company-name a { font-size: 1.3rem !important; }
  header nav .nav-toggle, #open-nav {
    display: block !important; font-size: 1.5rem; color: #ffffff !important;
    padding: 5px 10px; cursor: pointer; position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  }
  header nav { display: none; }
  header nav.open {
    display: flex !important; position: fixed; top: 65px; left: 0; right: 0;
    background: #1a1a2e; flex-direction: column; padding: 10px 0;
    border-bottom: 3px solid #c9a96e; z-index: 999;
  }
  header nav a { padding: 14px 30px !important; border-radius: 0 !important; width: 100%; text-align: center; font-size: 1rem !important; }
  header nav a::after { display: none !important; }
}

/* === 主内容区 === */
section.main {
  background-color: #ffffff !important;
  box-shadow: none !important;
  padding: 50px 20px 60px !important;
}

@media (min-width: 700px) {
  section.main { padding: 60px 40px 80px !important; }
}

.container { max-width: 1000px !important; }

/* === Hero Section (disabled) === */
.hero-section {
  display: none !important;
}

/* === 文章列表 === */
.post-list { list-style: none !important; padding: 0 !important; margin: 30px 0 !important; }

.post-summary {
  background: #ffffff !important;
  border: 1px solid #eee;
  border-left: 4px solid #c9a96e !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 24px 28px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important;
  transition: all 0.3s ease;
}

.post-summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  border-left-color: #b8944f !important;
}

/* 文章标题：大且醒目 */
.post-summary-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin: 0 0 8px 0 !important;
}

.post-summary-title a { color: #1a1a2e !important; }
.post-summary-title a:hover { color: #c9a96e !important; }
.post-summary-title::after { display: none !important; }

/* 日期分类：小字 */
.post-summary-details {
  font-size: 0.82rem !important;
  color: #999 !important;
  margin: 0 0 6px 0 !important;
}

.post-summary-category {
  display: inline-block;
  color: #b8944f !important;
  border: 1px solid #c9a96e;
  padding: 1px 10px;
  border-radius: 20px;
  font-size: 0.75rem !important;
}
.post-summary-category:hover { background: #c9a96e; color: #ffffff !important; }

/* 摘要 */
.post-summary-excerpt {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: #666 !important;
  margin-top: 8px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-summary-excerpt p { margin: 0 !important; font-size: 0.95rem !important; color: #666 !important; }

.post-summary-author { display: none !important; }
.post-summary-image { display: none; }
.staff-list { display: none !important; }
.testimonial, .testimonials { display: none !important; }
.post-author.staff { display: none !important; }

@media (max-width: 768px) {
  .post-summary { padding: 18px 20px !important; }
  .post-summary-title { font-size: 1.3rem !important; word-break: break-word; }
}

/* === 文章内容 === */
.content { max-width: 800px; margin: 0 auto; }
.content div > p, .content > p, article p { font-size: 1.15rem; line-height: 2; margin-bottom: 1.4em; color: #2d2d2d; }
.content ul, .content ol { font-size: 1.1rem; line-height: 2; padding-left: 1.5em; }
.content li { margin-bottom: 0.6em; }
.content img { max-width: 100% !important; height: auto !important; }

blockquote {
  border-left: 4px solid #c9a96e !important;
  background: #f8f7f4 !important;
  padding: 20px 24px !important;
  margin: 24px 0 !important;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.9; }

/* === 按钮 === */
.button, a.button, button, input[type="submit"] {
  background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
  color: #ffffff !important; border: none !important;
  padding: 12px 32px !important; border-radius: 8px !important;
  font-weight: 600; cursor: pointer; transition: all 0.3s ease;
  display: inline-block; text-align: center;
}
.button:hover, a.button:hover { background: linear-gradient(135deg, #c9a96e, #b8944f) !important; transform: translateY(-2px); }

/* === Quote Section === */
.quote-section {
  background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
  color: rgba(255,255,255,0.9) !important;
  padding: 50px 20px !important; font-size: 1.2rem !important; text-align: center;
}
.quote-section .container { max-width: 650px; }
.quote-section a { color: #c9a96e !important; font-weight: 600; }

/* === Footer === */
footer {
  background: #1a1a2e !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 50px 20px 30px !important;
  border-top: 3px solid #c9a96e;
}
footer .container { max-width: 800px; }
footer p { margin: 8px 0; font-size: 0.95rem; }
footer strong { color: #ffffff !important; font-family: "Noto Serif SC", serif; font-size: 1.2rem; letter-spacing: 2px; }
footer a { color: #c9a96e !important; }
footer h2, footer h3 { color: #ffffff !important; }

/* === 分页 === */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee;
}
.pagination .btn { padding: 8px 20px; background: #1a1a2e; color: #ffffff !important; border-radius: 8px; transition: all 0.3s ease; }
.pagination .btn:hover { background: #c9a96e; }

/* === 推广卡片 === */
.mid-article-promo { margin: 30px 0 !important; }

.promo-card-mini {
  display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #f8f6f1 !important; border: 1px solid #e8e0d0 !important;
  border-left: 4px solid #c9a96e !important; border-radius: 0 8px 8px 0 !important;
  padding: 18px 24px !important; margin: 32px 0 !important; font-size: 1.05rem;
}
.promo-card-mini a { color: #b8944f !important; font-weight: 600; font-size: 0.9rem; margin-left: auto; }

.article-footer-promo {
  margin-top: 50px; padding-top: 30px; border-top: 2px solid #eee;
  display: flex; flex-wrap: wrap; gap: 20px;
}
.article-footer-promo .promo-card { flex: 1; min-width: 280px; }

.promo-card { background: #faf8f4 !important; border: 1px solid #e8e0d0; border-radius: 8px !important; padding: 24px !important; transition: all 0.3s ease; }
.promo-card:hover { box-shadow: 0 4px 20px rgba(201,169,110,0.15); transform: translateY(-2px); }
.promo-card h3 { font-size: 1.15rem !important; color: #1a1a2e !important; margin: 0 0 12px 0 !important; }
.promo-card h3::after { display: none !important; }
.promo-card p { font-size: 0.95rem !important; line-height: 1.7 !important; color: #666; margin: 8px 0 !important; }
.promo-link { color: #b8944f !important; font-weight: 600; }
.promo-wechat { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid #e0d8c8; color: #1a1a2e !important; }

@media (max-width: 768px) {
  .article-footer-promo { flex-direction: column; }
  .promo-card-mini { flex-direction: column; text-align: center; }
  .promo-card-mini a { margin-left: 0; }
}

/* === 联系页面 === */
.contact-cards { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.contact-card { background: #faf8f4; border: 1px solid #e8e0d0; border-radius: 8px; padding: 24px; flex: 1; min-width: 250px; transition: all 0.3s ease; }
.contact-card:hover { box-shadow: 0 4px 20px rgba(201,169,110,0.15); transform: translateY(-2px); }
.contact-card h3 { font-size: 1.15rem !important; margin: 0 0 12px 0 !important; }
.contact-card h3::after { display: none !important; }
.contact-card p { font-size: 1rem !important; margin: 6px 0 !important; }
.contact-card .contact-hint { font-size: 0.88rem !important; color: #999; }
@media (max-width: 768px) { .contact-cards { flex-direction: column; } }

/* === 404 === */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 6rem !important; color: #c9a96e; margin: 0; line-height: 1; }
.error-404 h2 { font-size: 1.8rem !important; }
.error-404 h2::after { margin: 10px auto 0; }
.error-404 p { color: #666; font-size: 1.1rem; margin: 20px 0 30px; }
.error-404 .back-links a { display: inline-block; margin: 0 10px; padding: 10px 24px; background: #1a1a2e; color: #ffffff !important; border-radius: 8px; }
.error-404 .back-links a:hover { background: #c9a96e; }

/* === 访客计数器 === */
.visitor-counter { text-align: center; padding: 35px 20px !important; background: #f5f3ee !important; border-top: 1px solid #e8e0d0 !important; }
.visitor-counter .counter-inner { display: inline-flex; align-items: center; gap: 15px; background: #ffffff; padding: 15px 30px; border-radius: 50px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #eee; }
.visitor-counter .counter-label { font-size: 0.9rem; color: #666; }
.visitor-counter .counter-number { font-family: "Noto Serif SC", serif; font-size: 1.5rem; font-weight: 700; color: #b8944f; letter-spacing: 2px; }

/* === 继续阅读 === */
.post-links.post-list .post-summary { opacity: 1 !important; transform: none !important; }
.post-links .post-summary-title { font-size: 1.2rem !important; }

/* === 表格 === */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th { background: #1a1a2e; color: #ffffff; padding: 12px 16px; }
td { padding: 12px 16px; border-bottom: 1px solid #eee; }
tr:nth-child(even) { background: #f7f7f9; }

/* === 代码 === */
code { background: #f5f5f7; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
pre { background: #1a1a2e !important; color: #e0e0e0; padding: 20px; border-radius: 8px; overflow-x: auto; border-left: 4px solid #c9a96e; }
pre code { background: transparent; padding: 0; }

hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, #c9a96e, transparent); margin: 30px 0; }
::selection { background: #c9a96e; color: #ffffff; }

/* === 表单 === */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  border: 2px solid #e0e0e0 !important; border-radius: 8px !important; padding: 12px 16px !important;
  font-size: 1rem; width: 100%; background: #ffffff;
}
input:focus, textarea:focus, select:focus { border-color: #c9a96e !important; outline: none; box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f7f9; }
::-webkit-scrollbar-thumb { background: #c9a96e; border-radius: 4px; }

.page-header + div > p { display: none !important; }

@media print {
  header, footer, .quote-section, .hero-section { display: none !important; }
  body { padding-top: 0; }
}

@media (max-width: 768px) {
  .pagination { flex-direction: column; gap: 12px; }
  .pagination .btn { width: 100%; text-align: center; }
  .quote-section { font-size: 1.1rem !important; padding: 35px 20px !important; }
  .container { padding-left: 15px !important; padding-right: 15px !important; }
}

@media (min-width: 1200px) {
  body { font-size: 18px; }
  .content div > p, .content > p, article p { font-size: 1.2rem; line-height: 2.1; }
  .container { max-width: 1050px !important; }
}

/* ============================================
   首页简洁介绍区域（替代旧hero-section）
   ============================================ */

.home-intro {
  text-align: center;
  padding: 40px 20px 30px;
  max-width: 700px;
  margin: 0 auto;
}

.home-title {
  font-family: "Noto Serif SC", serif !important;
  font-size: 2.6rem !important;
  color: #1a1a2e !important;
  margin-bottom: 10px !important;
  letter-spacing: 4px;
}

.home-subtitle {
  font-family: "Noto Serif SC", serif !important;
  font-size: 1.3rem;
  color: #c9a96e;
  font-weight: 600;
  margin-bottom: 15px;
}

.home-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.home-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.button-outline {
  background: transparent !important;
  color: #1a1a2e !important;
  border: 2px solid #1a1a2e !important;
}

.button-outline:hover {
  background: #1a1a2e !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .home-title {
    font-size: 2rem !important;
  }
  .home-subtitle {
    font-size: 1.1rem;
  }
  .home-buttons {
    flex-direction: column;
    align-items: center;
  }
  .home-buttons .button {
    width: 80%;
  }
}

/* ============================================
   滚动动画
   ============================================ */

.animate-target {
  opacity: 1;
  transform: none;
}

.animate-target.js-animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.js-animated.animate-in {
  opacity: 1;
  transform: none;
}

/* ============================================
   暗色模式 (Dark Mode)
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #1a1a2e;
    --gold: #d4b87a;
    --gold-dark: #c9a96e;
    --bg: #121225;
    --white: #1e1e35;
    --text: #e0e0e0;
    --text-sec: #a0a0a0;
  }

  /* --- 基础 --- */
  body {
    background-color: #121225 !important;
    color: #e0e0e0 !important;
  }

  /* --- 标题 --- */
  h1, h2, h3, h4, h5, h6, label {
    color: #e8e8f0 !important;
  }

  /* --- 链接 --- */
  a {
    color: #d4b87a !important;
  }
  a:hover {
    color: #e8cc94 !important;
  }

  /* --- 主内容区 --- */
  section.main {
    background-color: #1a1a2e !important;
  }

  /* --- Page Header --- */
  .page-header {
    background-color: #1a1a2e !important;
  }
  .page-header h2 {
    color: #e8e8f0 !important;
  }

  /* --- 文章内容 --- */
  .content div > p, .content > p, article p {
    color: #d8d8d8 !important;
  }
  .content ul, .content ol {
    color: #d8d8d8;
  }
  .content li {
    color: #d8d8d8;
  }

  /* --- 文章列表卡片 --- */
  .post-summary {
    background: #1e1e35 !important;
    border-color: #2a2a45 !important;
    border-left: 4px solid #c9a96e !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3) !important;
  }
  .post-summary:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4) !important;
    border-left-color: #d4b87a !important;
  }

  .post-summary-title a {
    color: #e8e8f0 !important;
  }
  .post-summary-title a:hover {
    color: #d4b87a !important;
  }

  .post-summary-details {
    color: #888 !important;
  }

  .post-summary-category {
    color: #d4b87a !important;
    border-color: #c9a96e !important;
    background: transparent;
  }
  .post-summary-category:hover {
    background: #c9a96e !important;
    color: #1a1a2e !important;
  }

  .post-summary-excerpt,
  .post-summary-excerpt p {
    color: #a0a0a0 !important;
  }

  /* --- 首页介绍区 --- */
  .home-intro {
    color: #e0e0e0;
  }
  .home-title {
    color: #e8e8f0 !important;
  }
  .home-subtitle {
    color: #d4b87a !important;
  }
  .home-desc {
    color: #a0a0a0 !important;
  }

  /* --- Blockquote --- */
  blockquote {
    background: #1e1e35 !important;
    border-left-color: #c9a96e !important;
  }
  blockquote p {
    color: #c8c8c8 !important;
  }

  /* --- 表格 --- */
  th {
    background: #16162a !important;
    color: #e0e0e0 !important;
  }
  td {
    color: #d0d0d0;
    border-bottom-color: #2a2a45 !important;
  }
  tr:nth-child(even) {
    background: #1e1e35 !important;
  }
  tr:nth-child(odd) {
    background: #1a1a2e;
  }
  table {
    color: #d0d0d0;
  }

  /* --- 表单 --- */
  input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    background: #1e1e35 !important;
    color: #e0e0e0 !important;
    border-color: #3a3a55 !important;
  }
  input:focus, textarea:focus, select:focus {
    border-color: #c9a96e !important;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.25) !important;
  }
  input::placeholder, textarea::placeholder {
    color: #666 !important;
  }

  /* --- 按钮 --- */
  .button, a.button, button, input[type="submit"] {
    background: linear-gradient(135deg, #c9a96e, #b8944f) !important;
    color: #1a1a2e !important;
  }
  .button:hover, a.button:hover {
    background: linear-gradient(135deg, #d4b87a, #c9a96e) !important;
  }

  .button-outline {
    background: transparent !important;
    color: #e0e0e0 !important;
    border: 2px solid #e0e0e0 !important;
  }
  .button-outline:hover {
    background: #e0e0e0 !important;
    color: #1a1a2e !important;
  }

  /* --- 代码 --- */
  code {
    background: #2a2a45 !important;
    color: #e0c8a0 !important;
  }
  pre {
    background: #0d0d1a !important;
    color: #e0e0e0;
    border-left-color: #c9a96e !important;
  }
  pre code {
    background: transparent !important;
    color: #e0e0e0 !important;
  }

  /* --- HR --- */
  hr {
    background: linear-gradient(90deg, transparent, #c9a96e60, transparent) !important;
  }

  /* --- 访客计数器 --- */
  .visitor-counter {
    background: #16162a !important;
    border-top-color: #2a2a45 !important;
  }
  .visitor-counter .counter-inner {
    background: #1e1e35 !important;
    border-color: #2a2a45 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
  }
  .visitor-counter .counter-label {
    color: #a0a0a0 !important;
  }

  /* --- 联系卡片 --- */
  .contact-card {
    background: #1e1e35 !important;
    border-color: #2a2a45 !important;
  }
  .contact-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
  }
  .contact-card h3 {
    color: #e8e8f0 !important;
  }
  .contact-card p {
    color: #c8c8c8 !important;
  }
  .contact-card .contact-hint {
    color: #888 !important;
  }

  /* --- 推广卡片 --- */
  .promo-card {
    background: #1e1e35 !important;
    border-color: #2a2a45 !important;
  }
  .promo-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
  }
  .promo-card h3 {
    color: #e8e8f0 !important;
  }
  .promo-card p {
    color: #a0a0a0 !important;
  }
  .promo-link {
    color: #d4b87a !important;
  }
  .promo-wechat {
    color: #e0e0e0 !important;
    border-top-color: #2a2a45 !important;
  }

  .promo-card-mini {
    background: #1e1e35 !important;
    border-color: #2a2a45 !important;
    border-left-color: #c9a96e !important;
    color: #d8d8d8;
  }
  .promo-card-mini a {
    color: #d4b87a !important;
  }

  .article-footer-promo {
    border-top-color: #2a2a45 !important;
  }

  /* --- Quote Section (already dark, slight adjustments) --- */
  .quote-section {
    background: linear-gradient(135deg, #0d0d1a, #12122a) !important;
  }

  /* --- 分页 --- */
  .pagination {
    border-top-color: #2a2a45 !important;
  }
  .pagination .btn {
    background: #2a2a45 !important;
    color: #e0e0e0 !important;
  }
  .pagination .btn:hover {
    background: #c9a96e !important;
    color: #1a1a2e !important;
  }

  /* --- 404 --- */
  .error-404 p {
    color: #a0a0a0 !important;
  }
  .error-404 .back-links a {
    background: #2a2a45 !important;
    color: #e0e0e0 !important;
  }
  .error-404 .back-links a:hover {
    background: #c9a96e !important;
    color: #1a1a2e !important;
  }

  /* --- 继续阅读 --- */
  .post-links.post-list .post-summary {
    opacity: 1 !important;
    transform: none !important;
  }

  /* --- Scrollbar --- */
  ::-webkit-scrollbar-track {
    background: #121225 !important;
  }
  ::-webkit-scrollbar-thumb {
    background: #c9a96e !important;
  }

  /* --- Selection --- */
  ::selection {
    background: #c9a96e;
    color: #1a1a2e;
  }

  /* --- 金色下划线装饰保持不变 --- */
  .content h2::after, .page-header h2::after, .section-title::after {
    background: linear-gradient(90deg, #c9a96e, #d4b88a) !important;
  }

  /* --- Header & Footer (already dark, minor tweaks) --- */
  header {
    background-color: #0d0d1a !important;
  }
  header nav.open {
    background: #0d0d1a !important;
  }
  footer {
    background: #0d0d1a !important;
  }

  /* --- 滚动动画（暗色模式兼容） --- */
  .animate-target {
    opacity: 1;
    transform: none;
  }
  .animate-target.js-animated {
    opacity: 0;
    transform: translateY(20px);
  }
  .animate-target.js-animated.animate-in {
    opacity: 1;
    transform: none;
  }

  /* --- img 亮度微调，避免刺眼 --- */
  .content img {
    opacity: 0.92;
  }
}
