```css
/* ==========================================================================
   妖精动漫网 - 全站样式表
   cwzxqc.cn | 妖精动漫补番站，新番旧番一网打尽
   ========================================================================== */

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

:root {
  --bg: #faf9f8;
  --bg-alt: #f0eeeb;
  --text: #1c1c1e;
  --text-secondary: #4a4a4f;
  --text-muted: #7a7a80;
  --primary: #6b4c9a;
  --primary-light: #8a6db5;
  --primary-dark: #4e3475;
  --accent: #e8a87c;
  --accent-light: #f0c4a8;
  --border: #e2dfdb;
  --card-bg: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --max-width: 1160px;
  --header-height: 64px;
}

[data-theme="dark"] {
  --bg: #121218;
  --bg-alt: #1a1a24;
  --text: #e8e6e3;
  --text-secondary: #b0adb8;
  --text-muted: #7a7785;
  --primary: #9b7fc4;
  --primary-light: #b39ddb;
  --primary-dark: #7e5fa8;
  --accent: #e8a87c;
  --accent-light: #c98a5e;
  --border: #2a2a38;
  --card-bg: #1e1e2a;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

/* ---------- 通用布局 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 640px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 40px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-alt);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

/* ---------- 搜索框 ---------- */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 180px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  transition: width 0.3s, border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.search-box input:focus {
  width: 240px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 76, 154, 0.12);
}

.search-box > svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 搜索建议 ---------- */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  box-shadow: var(--shadow-hover);
  display: none;
  z-index: 1001;
  overflow: hidden;
}

.search-suggestions.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.search-suggestions a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.search-suggestions a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

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

/* ---------- 移动端导航 ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 999;
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 4px;
  animation: fadeInDown 0.25s ease;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* ---------- Banner 轮播 ---------- */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.banner-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.banner-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.banner-slide:nth-child(1) {
  background: linear-gradient(135deg, #4e3475 0%, #6b4c9a 50%, #8a6db5 100%);
}

.banner-slide:nth-child(2) {
  background: linear-gradient(135deg, #2d1b4e 0%, #4e3475 50%, #6b4c9a 100%);
}

.banner-slide:nth-child(3) {
  background: linear-gradient(135deg, #6b4c9a 0%, #8a6db5 50%, #a68ccf 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.banner-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.banner-content p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 24px;
  line-height: 1.8;
}

.banner-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 28px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: var(--primary-dark);
  background: #f7f4ff;
}

.banner-deco {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, transform 0.3s;
  border: none;
  padding: 0;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.banner-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.banner-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.banner-arrow.prev {
  left: 16px;
}

.banner-arrow.next {
  right: 16px;
}

.banner-arrow svg {
  width: 20px;
  height: 20px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
}

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

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

/* ---------- 首屏简介 ---------- */
.intro-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

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

.intro-box h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.intro-box h1 span {
  color: var(--primary);
}

.intro-box p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.98rem;
  line-height: 1.85;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

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

/* ---------- 网格系统 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107, 76, 154, 0.25);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}

.card:hover .card-icon {
  transform: scale(1.06) rotate(-3deg);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

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

.card p strong {
  color: var(--text);
  font-weight: 600;
}

.card ul {
  margin-top: 12px;
}

.card ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 18px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.card ol {
  padding-left: 18px;
  list-style: decimal;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 2;
}

/* ---------- 统计数字 ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

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

/* ---------- 文章列表 ---------- */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107, 76, 154, 0.25);
}

.article-card .article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--primary);
  margin-bottom: 10px;
  width: fit-content;
  transition: background 0.2s;
}

.article-card:hover .article-tag {
  background: rgba(107, 76, 154, 0.14);
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-card h3 a {
  color: var(--text);
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card .article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-card .article-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.article-card .article-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.article-card .article-link:hover {
  gap: 8px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(107, 76, 154, 0.3);
}

.faq-item.open {
  border-color: rgba(107, 76, 154, 0.4);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
  line-height: 1.5;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer p {
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 20px 16px;
}

/* ---------- HowTo 步骤 ---------- */
.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}

.howto-step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 32px;
}

.howto-step:last-child {
  padding-bottom: 0;
}

.howto-step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.howto-step:last-child::before {
  display: none;
}

.howto-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.howto-step:hover .howto-num {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(107, 76, 154, 0.35);
}

.howto-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.howto-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- 客户评价 ---------- */
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.review-card .review-stars {
  color: #f0b429;
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 14px;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--accent-light);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-author-info {
  font-size: 0.85rem;
}

.review-author-info strong {
  display: block;
  color: var(--text);
}

.review-author-info span {
  color: var(--text-muted);
}

/* ---------- 联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: background 0.2s, transform 0.2s;
}

.contact-item:hover .contact-icon {
  background: rgba(107, 76, 154, 0.12);
  transform: scale(1.05);
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.footer-brand h3 span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-brand .footer-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

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

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--primary);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
}

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

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

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

/* ---------- 焦点可见性（无障碍） ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

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

  .banner-content h2 {
    font-size: 1.9rem;
  }
}

/* ---------- 响应式：手机横屏 ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .search-box input {
    width: 140px;
  }

  .search-box input:focus {
    width: 180px;
  }

  .banner-content h2 {
    font-size: 1.5rem;
  }

  .banner-content p {
    font-size: 0.92rem;
  }

  .banner-slide {
    padding: 60px 20px;
  }

  .banner-arrow {
    display: none;
  }

  .grid-3,
  .grid-2,
  .article-list {
    grid-template-columns: 1fr;
  }

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

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

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

  .section {
    padding: 40px 0;
  }

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

  .intro-box {
    padding: 20px;
  }

  .intro-box h1 {
    font-size: 1.25rem;
  }

  .card {
    padding: 22px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- 响应式：手机竖屏 ---------- */
@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .search-box {
    display: none;
  }

  .banner-content h2 {
    font-size: 1.3rem;
  }

  .banner-content p {
    font-size: 0.86rem;
  }

  .banner-btn {
    padding: 10px 24px;
    font-size: 0.88rem;
  }

  .intro-meta {
    gap: 10px;
    font-size: 0.76rem;
  }

  .article-card {
    padding: 18px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.open .faq-answer {
    padding: 0 16px 14px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  .site-header,
  .mobile-nav,
  .banner,
  .back-to-top,
  .theme-toggle,
  .menu-toggle,
  .search-box,
  .banner-arrow,
  .banner-dots {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .article-card,
  .faq-item,
  .intro-box {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
```