/* =========================================================
   嫩草影院 · 光影故事收藏馆
   完整样式表 — 响应式 / 暗色模式 / 动画
   ========================================================= */

/* ---------- CSS 变量与主题切换 ---------- */
:root {
  --bg-base: #f7f4f0;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #1e2a3a;
  --text-primary: #1f2937;
  --text-secondary: #2d3e50;
  --text-heading: #0b1e2e;
  --text-link: #1e4b6e;
  --text-footer: #d1d9e6;
  --text-footer-heading: #ffffff;
  --border-light: #d8dee7;
  --accent-gold: #a17c3f;
  --button-bg: #1e3b4f;
  --button-text: #f0f7ff;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --max-width: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --gradient-banner: linear-gradient(135deg, #fdf8f0 0%, #f0e6d8 40%, #e3d5c0 100%);
  --glow-gold: rgba(161, 124, 63, 0.2);
  --card-hover-transform: translateY(-6px);
  --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] {
  --bg-base: #121a24;
  --bg-card: #1b2836;
  --bg-header: #16202c;
  --bg-footer: #0d141e;
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-heading: #f8fafc;
  --text-link: #9fc2e8;
  --text-footer: #cbd5e1;
  --text-footer-heading: #ffffff;
  --border-light: #2f4055;
  --accent-gold: #c9a96e;
  --button-bg: #2e4a66;
  --button-text: #ffffff;
  --nav-bg: rgba(18, 26, 36, 0.92);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --gradient-banner: linear-gradient(135deg, #1a2534 0%, #1e3045 50%, #243b55 100%);
  --glow-gold: rgba(201, 169, 110, 0.15);
  --glass-bg: rgba(27, 40, 54, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ---------- 基础重置与全局样式 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  transition: background 0.25s ease, color 0.2s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text-heading), var(--text-link));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text-heading);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 2.5rem 0 1.2rem;
  border-left: 6px solid var(--accent-gold);
  padding-left: 1rem;
  position: relative;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 1.5rem 0 0.8rem;
}

h4 {
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  text-decoration: none;
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ---------- 导航栏（毛玻璃效果） ---------- */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  min-height: 70px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
  border-bottom: none;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-gold), var(--text-link));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.2s;
}

.logo a:hover {
  opacity: 0.85;
  color: var(--text-heading);
  -webkit-text-fill-color: var(--text-heading);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: none;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle,
.search-icon {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover,
.search-icon:hover {
  background: var(--glow-gold);
  transform: scale(1.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-header);
  padding: 0.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light);
  animation: slideDown 0.3s ease;
}

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

.mobile-nav a {
  padding: 0.8rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--accent-gold);
  padding-left: 0.5rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 59, 79, 0.2);
  text-align: center;
}

.btn:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(161, 124, 63, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* ---------- Hero 区域（渐变Banner） ---------- */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  background: var(--gradient-banner);
  border-radius: 0 0 40px 40px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, var(--glow-gold), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero p:last-child {
  margin-bottom: 0;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  opacity: 0.9;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.card .meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ---------- 文章列表 ---------- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem 0;
}

.article-item {
  background: var(--bg-card);
  padding: 1.5rem 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.article-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.article-item:hover::before {
  transform: scaleY(1);
}

.article-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
  transition: color 0.2s;
}

.article-item:hover h3 {
  color: var(--accent-gold);
}

.article-item .meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.article-item .summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-gold);
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  transition: color 0.2s;
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-question span {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  display: inline-block;
  color: var(--accent-gold);
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.2rem;
  color: var(--text-primary);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.faq-item.open .faq-answer {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 表格 ---------- */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.info-table th {
  background: #eef2f6;
  color: #1f2a44;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .info-table th {
  background: #26384b;
  color: #e6edf5;
}

.info-table td {
  color: var(--text-primary);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background: rgba(161, 124, 63, 0.05);
}

/* ---------- 页脚 ---------- */
footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--text-link), var(--accent-gold));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

footer h4 {
  color: var(--text-footer-heading);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

footer p {
  color: var(--text-footer);
  font-size: 0.95rem;
}

footer a {
  color: var(--text-footer);
  border-bottom: 1px solid #4b5c6f;
  transition: color 0.2s, border-color 0.2s;
  font-size: 0.95rem;
}

footer a:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
  text-decoration: none;
}

.copyright {
  border-top: 1px solid #3b4c5f;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-footer);
  font-size: 0.9rem;
}

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.back-to-top:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(161, 124, 63, 0.4);
}

/* ---------- 图片占位 ---------- */
.svg-placeholder {
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
  border-radius: 12px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

[data-theme="dark"] .svg-placeholder {
  background: linear-gradient(135deg, #2a3344, #1a2233);
  color: #8899aa;
}

.lazy-img {
  background: var(--border-light);
  transition: opacity 0.5s ease;
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画助手类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---------- 区块容器 ---------- */
section {
  margin-bottom: 2rem;
}

section > .container {
  padding-top: 1rem;
}

/* 通用卡片容器（用于品牌介绍/评价等） */
.flex-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.flex-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.flex-col {
  flex: 1;
  min-width: 240px;
}

/* ---------- 引用块（评价） ---------- */
blockquote {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: 20px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin: 0;
  position: relative;
}

blockquote:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

blockquote p {
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

blockquote footer {
  background: none;
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

blockquote footer::before {
  content: '— ';
}

/* ---------- 面包屑 / 导航链接 ---------- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--text-secondary);
}

/* ---------- 标签 / 徽章 ---------- */
.tag {
  display: inline-block;
  background: rgba(161, 124, 63, 0.1);
  color: var(--accent-gold);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--accent-gold);
  color: #fff;
}

/* ---------- 联系信息卡片 ---------- */
.contact-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card p {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- 高亮 / 强调 ---------- */
.highlight {
  background: linear-gradient(120deg, rgba(161, 124, 63, 0.15), transparent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.text-gold {
  color: var(--accent-gold);
}

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

/* ---------- 分割线 ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 3px;
  margin: 1.5rem 0;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.2rem;
  }
  
  .nav-links {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 2.5rem 0 2rem;
    border-radius: 0 0 24px 24px;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .article-item {
    padding: 1.2rem 1.4rem;
  }
  
  .faq-question {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.2rem 1rem;
  }
  
  .flex-row {
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .flex-card {
    padding: 1.5rem;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  footer {
    padding: 2.5rem 0 1.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-wrap {
    min-height: 60px;
    padding: 0.6rem 0;
  }
  
  .logo a {
    font-size: 1.4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .copyright {
    font-size: 0.8rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .article-item h3 {
    font-size: 1.1rem;
  }
  
  .info-table {
    font-size: 0.9rem;
  }
  
  .info-table th,
  .info-table td {
    padding: 0.8rem;
  }
  
  blockquote {
    padding: 1.2rem;
  }
}

/* ---------- 暗色模式微调 ---------- */
[data-theme="dark"] .card,
[data-theme="dark"] .article-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .flex-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] blockquote {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero {
  background: var(--gradient-banner);
}

[data-theme="dark"] .navbar {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- 无障碍与焦点状态 ---------- */
:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  .navbar,
  .back-to-top,
  .mobile-menu-btn,
  .theme-toggle,
  .search-icon {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .card,
  .article-item,
  .faq-item,
  .flex-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 5px;
}

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

/* ---------- 选中文本样式 ---------- */
::selection {
  background: rgba(161, 124, 63, 0.3);
  color: var(--text-heading);
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* 毛玻璃效果工具类 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-gold), var(--text-link));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 阴影工具类 */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* 圆角工具类 */
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-full { border-radius: 999px; }

/* 隐藏滚动条但保持滚动 */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}