```css
/* ==========================================================================
   包子漫画 - 搞笑热血漫画铺，每日更新解压必备
   官网: ilearnsky.cn
   完整样式表 - 无外部依赖，纯CSS实现
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   2. 主题变量 - 亮色模式 (默认)
   -------------------------------------------------------------------------- */
:root {
  /* 主色调 - 包子橙 */
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --primary-rgb: 249, 115, 22;
  --primary-glow: rgba(249, 115, 22, 0.35);
  --primary-subtle: rgba(249, 115, 22, 0.08);
  --primary-muted: rgba(249, 115, 22, 0.12);
  --primary-border: rgba(249, 115, 22, 0.25);

  /* 辅助色 */
  --secondary: #1e293b;
  --accent-purple: #8b5cf6;
  --accent-blue: #0ea5e9;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;
  --accent-teal: #14b8a6;
  --accent-amber: #f59e0b;
  --accent-indigo: #6366f1;

  /* 背景色 */
  --bg: #fefce8;
  --bg-alt: #fffbeb;
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(254, 252, 232, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-heavy: rgba(255, 255, 255, 0.88);

  /* 文字色 */
  --text: #1e293b;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* 边框色 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-hover: #cbd5e1;

  /* 卡片 */
  --card: #ffffff;
  --card-hover: #ffffff;
  --card-border: #e2e8f0;

  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* 阴影 */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 6px 18px rgba(249, 115, 22, 0.35);
  --shadow-primary-lg: 0 10px 40px rgba(249, 115, 22, 0.4);

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

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

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-primary-soft: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --gradient-blue: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-pink: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --gradient-indigo: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-hero: linear-gradient(160deg, #fefce8 0%, #fff7ed 40%, #ffedd5 100%);
  --gradient-banner-1: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  --gradient-banner-2: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  --gradient-banner-3: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  --gradient-text: linear-gradient(135deg, #f97316, #ea580c, #f59e0b);
  --gradient-section: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.03) 100%);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

  /* 布局 */
  --container-max: 1200px;
  --container-padding: 1.25rem;
  --header-height: 64px;
  --section-padding: 2.5rem 0;

  /* 层级 */
  --z-header: 1000;
  --z-backtop: 999;
  --z-overlay: 100;
  --z-dropdown: 200;
}

/* --------------------------------------------------------------------------
   3. 主题变量 - 暗色模式
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --primary: #fb923c;
  --primary-dark: #f97316;
  --primary-light: #fdba74;
  --primary-rgb: 251, 146, 60;
  --primary-glow: rgba(251, 146, 60, 0.4);
  --primary-subtle: rgba(251, 146, 60, 0.08);
  --primary-muted: rgba(251, 146, 60, 0.15);
  --primary-border: rgba(251, 146, 60, 0.3);

  --secondary: #f1f5f9;
  --bg: #0f172a;
  --bg-alt: #1a2332;
  --bg-elevated: #1e293b;
  --bg-overlay: rgba(15, 23, 42, 0.85);
  --bg-glass: rgba(30, 41, 59, 0.72);
  --bg-glass-heavy: rgba(30, 41, 59, 0.88);

  --text: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0f172a;

  --border: #334155;
  --border-light: #1e293b;
  --border-hover: #475569;

  --card: #1e293b;
  --card-hover: #243044;
  --card-border: #334155;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 6px 18px rgba(251, 146, 60, 0.3);
  --shadow-primary-lg: 0 10px 40px rgba(251, 146, 60, 0.35);

  --gradient-hero: linear-gradient(160deg, #0f172a 0%, #1a2332 40%, #1e293b 100%);
  --gradient-section: linear-gradient(180deg, transparent 0%, rgba(251, 146, 60, 0.04) 100%);
}

/* --------------------------------------------------------------------------
   4. 基础排版
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  position: relative;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1.05rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.8;
}

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

li {
  margin-bottom: 0.4rem;
  color: var(--text);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* 选中文本样式 */
::selection {
  background: var(--primary-muted);
  color: var(--primary-dark);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* --------------------------------------------------------------------------
   5. 布局工具类
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. 按钮组件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

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

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

.btn-outline::before {
  display: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* --------------------------------------------------------------------------
   7. 卡片组件
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

/* --------------------------------------------------------------------------
   8. 标签与徽章
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--primary-muted);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0.3rem 0.3rem 0;
  transition: all var(--transition-fast);
  line-height: 1.6;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary-muted);
  color: var(--primary);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. 元信息
   -------------------------------------------------------------------------- */
.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* --------------------------------------------------------------------------
   10. 分割线
   -------------------------------------------------------------------------- */
.divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 0.8rem 0 1.5rem;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-muted);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   11. 统计数字
   -------------------------------------------------------------------------- */
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

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

/* --------------------------------------------------------------------------
   12. 文章卡片
   -------------------------------------------------------------------------- */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card .article-img {
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--gradient-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  transition: transform var(--transition-slow);
}

.article-card .article-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.article-card:hover .article-img {
  transform: scale(1.03);
}

.article-card:hover .article-img::after {
  opacity: 1;
}

.article-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

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

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

.article-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.article-card:hover .read-more {
  gap: 0.6rem;
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   13. 网站地图
   -------------------------------------------------------------------------- */
.sitemap-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding-left: 0;
}

.sitemap-list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.sitemap-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.sitemap-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* --------------------------------------------------------------------------
   14. 页脚
   -------------------------------------------------------------------------- */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   15. 返回顶部按钮
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  z-index: var(--z-backtop);
  line-height: 1;
}

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

.back-to-top:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-primary-lg);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* --------------------------------------------------------------------------
   16. 搜索框
   -------------------------------------------------------------------------- */
.search-box {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  min-width: 0;
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.search-box button {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-box button:hover {
  background: var(--gradient-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.search-box button:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   17. 作者信息框
   -------------------------------------------------------------------------- */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.author-box:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-border);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px var(--primary-glow);
  user-select: none;
}

.author-info {
  font-size: 0.9rem;
  min-width: 0;
}

.author-info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   18. 联系方式网格
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.contact-item:hover {
  background: var(--primary-subtle);
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: transform var(--transition);
}

.contact-item:hover svg {
  transform: scale(1.1);
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   19. HowTo 步骤
   -------------------------------------------------------------------------- */
.howto-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.howto-step:hover {
  background: var(--primary-subtle);
  transform: translateX(4px);
}

.howto-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px var(--primary-glow);
  user-select: none;
}

.howto-content {
  flex: 1;
  min-width: 0;
}

.howto-content h4 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.howto-content p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   20. Banner 轮播
   -------------------------------------------------------------------------- */
.banner-wrapper {
  position: relative;
}

.banner-slide {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.banner-slide h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  position: relative;
}

.banner-slide .btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.banner-slide .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.banner-dot:hover {
  background: var(--primary-light);
}

.banner-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   21. FAQ 手风琴
   -------------------------------------------------------------------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: var(--card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-border);
}

.faq-item.active {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
  line-height: 1.5;
}

.faq-question:hover {
  background: var(--primary-subtle);
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-question .faq-icon {
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform var(--transition-slow);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.25rem 1.2rem;
}

.faq-answer p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   22. 面包屑导航
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.8rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   23. 区块
   -------------------------------------------------------------------------- */
section {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--border);
  position: relative;
}

section:last-of-type {
  border-bottom: none;
}

section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-section);
  pointer-events: none;
  opacity: 0.5;
}

section > .container {
  position: relative;
  z-index: 1;
}

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

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

/* 交错动画延迟 */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* --------------------------------------------------------------------------
   25. 毛玻璃效果
   -------------------------------------------------------------------------- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
  border-color: rgba(255, 255, 255, 0.08);
}

/* 头部毛玻璃 */
header#site-header {
  backdrop-filter: var(--glass-blur-heavy) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur-heavy) var(--glass-saturate);
}

/* --------------------------------------------------------------------------
   26. 头部导航
   -------------------------------------------------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-glass-heavy);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

#site-header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#site-header nav a {
  position: relative;
}

#site-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition);
}

#site-header nav a:hover::after {
  width: 100%;
}

/* 主题切换按钮 */
#theme-toggle {
  transition: all var(--transition), transform var(--transition-bounce);
}

#theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* 移动端菜单按钮 */
#mobile-menu-btn {
  transition: all var(--transition), transform var(--transition-bounce);
}

#mobile-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* 移动端导航 */
#mobile-nav {
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#mobile-nav a {
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

#mobile-nav a:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  padding-left: 2rem;
}

/* --------------------------------------------------------------------------
   27. Hero 区域
   -------------------------------------------------------------------------- */
#hero {
  background: var(--gradient-hero);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-30px, 20px) scale(1.1);
    opacity: 0.4;
  }
}

#hero .stat-number {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   28. 暗色模式特殊处理
   -------------------------------------------------------------------------- */
[data-theme="dark"] .article-card .article-img {
  background: var(--gradient-primary);
}

[data-theme="dark"] .banner-slide {
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .search-box input {
  background: var(--bg-elevated);
}

[data-theme="dark"] .author-avatar {
  box-shadow: 0 2px 12px rgba(251, 146, 60, 0.4);
}

[data-theme="dark"] .howto-num {
  box-shadow: 0 2px 10px rgba(251, 146, 60, 0.35);
}

[data-theme="dark"] .back-to-top {
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.45);
}

[data-theme="dark"] section::before {
  opacity: 0.7;
}

[data-theme="dark"] .card::after {
  background: var(--gradient-primary);
}

/* --------------------------------------------------------------------------
   29. 响应式布局
   -------------------------------------------------------------------------- */

/* 平板及以下 */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.25rem;
    --section-padding: 2.2rem 0;
  }

  .grid {
    gap: 1.2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* 手机横屏及以下 */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 1.8rem 0;
    --header-height: 56px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  h2 {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: clamp(1.05rem, 4vw, 1.2rem);
  }

  .sitemap-list {
    columns: 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

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

  .card {
    padding: 1.25rem;
  }

  .card:hover {
    transform: translateY(-2px);
  }

  .banner-slide {
    min-height: 180px;
    padding: 2rem 1.25rem;
    border-radius: var(--radius);
  }

  .banner-slide h2 {
    font-size: 1.2rem;
  }

  .banner-slide p {
    font-size: 0.88rem;
  }

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

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-info {
    text-align: center;
  }

  .search-box {
    flex-direction: column;
    max-width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .search-box button {
    width: 100%;
  }

  .faq-question {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 1rem;
  }

  .howto-step:hover {
    transform: none;
  }

  .article-card .article-img {
    height: 140px;
  }

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

  .divider {
    margin: 0.6rem 0 1.2rem;
  }

  .divider::after {
    display: none;
  }

  section::before {
    opacity: 0.3;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.875rem;
    --section-padding: 1.5rem 0;
    --radius: 10px;
    --radius-lg: 16px;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .card {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.88rem;
  }

  .banner-slide {
    min-height: 160px;
    padding: 1.5rem 1rem;
  }

  .banner-slide h2 {
    font-size: 1.1rem;
  }

  .banner-slide p {
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
  }

  .back-to-top {
    bottom: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .tag {
    font-size: 0.72rem;
    padding: 0.1rem 0.55rem;
  }

  .badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.6rem;
  }

  .author-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .howto-num {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

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

  .stat-label {
    font-size: 0.78rem;
  }

  .article-card .article-img {
    height: 120px;
    font-size: 1rem;
  }

  .faq-question {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }

  .faq-answer {
    font-size: 0.88rem;
  }
}

/* 超小屏 */
@media (max-width: 360px) {
  :root {
    --container-padding: 0.75rem;
  }

  .btn {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .card {
    padding: 0.875rem;
  }
}

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

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

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

  section {
    page-break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   31. 减少动画偏好
   -------------------------------------------------------------------------- */
@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;
  }

  #hero::after {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   32. 高对比度模式
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
  :root {
    --border: #000;
    --text-muted: #333;
  }

  [data-theme="dark"] {
    --border: #fff;
    --text-muted: #ccc;
  }

  .card {
    border-width: 2px;
  }

  .btn {
    border: 2px solid currentColor;
  }
}

/* --------------------------------------------------------------------------
   33. 焦点可见性增强
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   34. 加载状态
   -------------------------------------------------------------------------- */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   35. 工具提示
   -------------------------------------------------------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--secondary);
  color: var(--text-inverse);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: var(--z-dropdown);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   36. 骨架屏
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

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

/* --------------------------------------------------------------------------
   37. 文本截断
   -------------------------------------------------------------------------- */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   38. 滚动捕捉
   -------------------------------------------------------------------------- */
.scroll-snap-x {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.scroll-snap-x::-webkit-scrollbar {
  display: none;
}

.scroll-snap-x > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   39. 渐变文字
   -------------------------------------------------------------------------- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   40. 玻璃拟态卡片
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .glass-card {
  border-color: rgba(255, 255, 255, 0.06);
  background: var(--bg-glass);
}

/* --------------------------------------------------------------------------
   41. 微交互 - 涟漪效果
   -------------------------------------------------------------------------- */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* --------------------------------------------------------------------------
   42. 滚动进度条
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: calc(var(--z-header) + 1);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   43. 浮动动画
   -------------------------------------------------------------------------- */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   44. 脉冲动画
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   45. 淡入动画
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* --------------------------------------------------------------------------
   46. 缩放进入动画
   -------------------------------------------------------------------------- */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --------------------------------------------------------------------------
   47. 响应式辅助类
   -------------------------------------------------------------------------- */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   48. 安全区域适配 (iPhone 刘海屏)
   -------------------------------------------------------------------------- */
@supports (padding: env(safe-area-inset-bottom)) {
  .back-to-top {
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  @media (max-width: 768px) {
    .back-to-top {
      bottom: calc(1rem + env(safe-area-inset-bottom));
    }
  }
}

/* --------------------------------------------------------------------------
   49. 减少数据模式
   -------------------------------------------------------------------------- */
@media (prefers-reduced-data: reduce) {
  .banner-slide::before,
  #hero::after {
    display: none;
  }

  .card:hover {
    transform: none;
  }

  .article-card:hover .article-img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   50. 最终优化 - 性能与兼容
   -------------------------------------------------------------------------- */
img {
  content-visibility: auto;
}

section {
  contain: layout style;
}

.card {
  will-change: transform;
}

.card:hover {
  will-change: transform, box-shadow;
}

/* 防止布局偏移 */
.article-img {
  aspect-ratio: 16 / 9;
}

/* 平滑滚动锚点偏移 */
:target {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* 选择禁用 */
.no-select {
  user-select: none;
  -webkit-user-select: none;
}

/* 文本平衡 */
h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}
```