```css
/* ============================================================
   妖精动漫 - 完整样式表
   设计风格：现代动漫平台 / 渐变Banner / 毛玻璃 / 圆角卡片
   响应式：PC优先，移动端自适应
   暗色模式：通过 data-theme 属性切换
   动画：滚动渐入、卡片悬浮、按钮微交互
   ============================================================ */

/* ---------- CSS变量与主题 ---------- */
:root {
  /* 主色板（浅色/默认） */
  --bg: #f0f4f8;
  --bg-gradient: radial-gradient(circle at 20% 20%, #e6f0fa 0%, #f0f4f8 60%, #e3eaf2 100%);
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-border: rgba(255, 255, 255, 0.5);
  --surface-alt: #f5f8fc;
  --primary: #1a2b3c;
  --primary-strong: #0f1d2b;
  --secondary: #3a5268;
  --text: #1e2a36;
  --text-secondary: #2c3e50;
  --text-muted: #4a5f73;
  --accent: #ff6b6b;
  --accent-soft: #ffd9d9;
  --accent-gradient: linear-gradient(135deg, #ff8a65, #ff6b6b);
  --link: #2b5f8a;
  --link-hover: #1a4568;
  --border: #cbd8e4;
  --border-light: #dce6f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
  --btn-bg: #2d4f6a;
  --btn-text: #ffffff;
  --btn-hover: #1f3f58;
  --footer-bg: #16222e;
  --footer-text: #b8c9d9;
  --footer-heading: #ffffff;
  --faq-q: #1a2b3c;
  --faq-a: #2c3e50;
  --hero-overlay: rgba(255, 255, 255, 0.7);
  --code-bg: #f8fafc;

  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 50px;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 56px;

  /* 字体 */
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  /* 毛玻璃 */
  --glass-blur: blur(16px);
  --glass-saturate: saturate(180%);
}

/* 暗色主题 */
[data-theme="dark"] {
  --bg: #0f171e;
  --bg-gradient: radial-gradient(circle at 20% 20%, #1a2530 0%, #0f171e 60%, #0b1218 100%);
  --surface: #1a2530;
  --surface-glass: rgba(26, 37, 48, 0.8);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --surface-alt: #1f2d3a;
  --primary: #e2ecf5;
  --primary-strong: #ffffff;
  --secondary: #a8c0d4;
  --text: #d8e2ec;
  --text-secondary: #b4c8d8;
  --text-muted: #8ba3b8;
  --accent: #ff8a7a;
  --accent-soft: #3d2a2a;
  --accent-gradient: linear-gradient(135deg, #e8826a, #ff6b6b);
  --link: #6db3f2;
  --link-hover: #8ec9ff;
  --border: #2e4253;
  --border-light: #253746;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.5);
  --btn-bg: #3d6079;
  --btn-text: #ffffff;
  --btn-hover: #2f4d63;
  --footer-bg: #0a1117;
  --footer-text: #9db4c8;
  --footer-heading: #ffffff;
  --faq-q: #dce9f2;
  --faq-a: #c5d6e4;
  --hero-overlay: rgba(0, 0, 0, 0.4);
  --code-bg: #1f2d3a;
}

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

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

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin: 0.6em 0 0.4em;
  color: var(--primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary-strong);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  border-left: 5px solid var(--accent);
  padding-left: 1rem;
  margin-top: 0.4em;
  margin-bottom: 0.8em;
  font-weight: 750;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--primary);
  font-weight: 650;
}

h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
}

p {
  margin: 0.8rem 0;
  color: var(--text);
}

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

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

ul, ol {
  padding-left: 1.5rem;
  color: var(--text);
}

li {
  margin: 0.3rem 0;
}

strong {
  font-weight: 650;
  color: var(--primary);
}

/* ---------- 布局容器 ---------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---------- 玻璃拟态工具类 ---------- */
.glass {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-glass);
}

/* ---------- 头部导航 ---------- */
header {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent), #ff9a5c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  user-select: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--accent);
  border-bottom-color: transparent;
}

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

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex: 0 1 auto;
  min-width: 180px;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 6px 8px;
  color: var(--text);
  outline: none;
  width: 100%;
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.search-box button {
  background: var(--btn-bg);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  color: var(--btn-text);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
}

.search-box button:hover {
  background: var(--btn-hover);
  transform: scale(1.02);
}

/* 暗色切换按钮 */
.dark-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
}

.dark-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* ---------- Hero 首屏 ---------- */
.hero {
  background: linear-gradient(145deg, 
    var(--surface) 0%, 
    var(--surface-alt) 50%, 
    var(--accent-soft) 100%);
  padding: clamp(48px, 8vw, 80px) 0;
  margin: 24px 0;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.badge-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  position: relative;
  z-index: 1;
}

.badge {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  border: 1px solid var(--surface-glass-border);
  font-size: 0.95rem;
  transition: var(--transition);
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* ---------- 通用 Section ---------- */
.section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

/* ---------- 网格布局 ---------- */
.grid-2, .grid-3 {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

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

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

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface-alt);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

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

.card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.card a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

/* ---------- FAQ 样式 ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  transition: var(--transition-fast);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 700;
  color: var(--faq-q);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  padding: 8px 0;
  transition: color 0.2s ease;
  user-select: none;
}

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

.faq-question span {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  color: var(--accent);
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--faq-a);
  margin-top: 8px;
  display: none;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.8;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

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

/* ---------- 列表样式 ---------- */
.section ul, .section ol {
  margin: 16px 0 16px 1.2rem;
}

.section li {
  margin: 8px 0;
  position: relative;
}

.section ul li::before {
  content: '▸';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: -1.2rem;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 24px;
  margin-top: 48px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
}

.footer h4 {
  color: var(--footer-heading);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

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

.footer a {
  color: var(--footer-text);
  border-bottom: 1px solid #3d5266;
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--footer-heading);
  border-bottom-color: var(--accent);
}

.footer .grid-3 {
  gap: 32px;
}

.footer .copyright {
  text-align: center;
  border-top: 1px solid #2d4054;
  padding-top: 24px;
  margin-top: 36px;
  color: var(--footer-text);
  font-size: 0.9rem;
}

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
  font-size: 0.95rem;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-glass-border);
}

.back-to-top:hover {
  background: var(--btn-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- 联系/信息区块 ---------- */
#contact .grid-2 {
  gap: 32px;
}

#contact p {
  margin: 8px 0;
  line-height: 1.8;
}

#contact strong {
  color: var(--primary);
  font-weight: 650;
}

#contact h4 {
  margin-top: 16px;
}

#contact .grid-2 > div:last-child {
  border-left: 1px solid var(--border-light);
  padding-left: 32px;
}

@media (max-width: 768px) {
  #contact .grid-2 > div:last-child {
    border-left: none;
    padding-left: 0;
    margin-top: 24px;
  }
}

/* ---------- 文章卡片 ---------- */
article.card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

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

article.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 8px 0;
}

article.card a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- 列表项样式 ---------- */
ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

ol li {
  counter-increment: step-counter;
  position: relative;
  padding: 8px 0 8px 48px;
  margin: 8px 0;
  font-weight: 500;
}

ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 8px;
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- 友情链接 ---------- */
#contact a {
  margin: 0 6px;
  display: inline-block;
}

#contact a:first-child {
  margin-left: 0;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: 12px;
  }
  
  .nav-links.mobile-open {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  .mobile-menu-btn {
    display: block;
    order: 3;
  }
  
  .search-box {
    order: 2;
    flex: 1;
    min-width: 120px;
  }
  
  .dark-toggle {
    order: 4;
  }
  
  .logo {
    order: 1;
    font-size: 1.6rem;
  }
  
  .hero {
    padding: 40px 20px;
    margin: 16px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 20px;
    margin: 20px 0;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
  }
  
  .footer {
    padding: 32px 0 16px;
  }
  
  .badge-group {
    gap: 8px;
  }
  
  .badge {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  .nav-bar {
    padding: 10px 0;
  }
  
  .search-box {
    min-width: 100px;
  }
  
  .search-box button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card {
    padding: 18px;
  }
  
  h2 {
    font-size: 1.4rem;
  }
}

/* ---------- 动画定义 ---------- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* 隐藏滚动条但保留功能 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* 选择颜色 */
::selection {
  background: var(--accent);
  color: white;
}

/* 焦点可见性 */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* 打印样式 */
@media print {
  .back-to-top, .dark-toggle, .mobile-menu-btn, .search-box, .nav-links, .footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section, .hero {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
```