```css
/* ============================================
   抖漫 (gwmjj.cn) - 全局样式表
   风格: 抖音风 · 活力 · 现代 · 圆润
   ============================================ */

/* ---------- CSS 变量 & 主题系统 ---------- */
:root {
  /* 明亮主题 */
  --bg-light: #F8FAFC;
  --bg-card-light: #FFFFFF;
  --bg-nav-light: rgba(255, 255, 255, 0.85);
  --text-primary-light: #1E293B;
  --text-secondary-light: #475569;
  --text-heading-light: #0F172A;
  --text-link-light: #2563EB;
  --border-light: #E2E8F0;
  --shadow-light: 0 8px 30px rgba(2, 6, 23, 0.06);
  --shadow-hover-light: 0 16px 40px rgba(2, 6, 23, 0.12);
  --bg-footer-light: #0F172A;
  --text-footer-light: #CBD5E1;
  --accent: #E11D48;
  --accent-2: #F59E0B;
  --accent-3: #10B981;

  /* 暗色主题 */
  --bg-dark: #0B1120;
  --bg-card-dark: #151E2E;
  --bg-nav-dark: rgba(15, 23, 42, 0.85);
  --text-primary-dark: #E2E8F0;
  --text-secondary-dark: #94A3B8;
  --text-heading-dark: #F8FAFC;
  --text-link-dark: #60A5FA;
  --border-dark: #1E293B;
  --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-hover-dark: 0 16px 40px rgba(0, 0, 0, 0.6);
  --bg-footer-dark: #020617;
  --text-footer-dark: #64748B;

  /* 圆角 & 过渡 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary-light);
  line-height: 1.7;
  transition: background-color 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
}

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

a {
  color: var(--text-link-light);
  text-decoration: none;
  transition: var(--transition);
}

body.dark-mode a {
  color: var(--text-link-dark);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

body.dark-mode ::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 20px;
  border: 2px solid var(--bg-light);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-color: var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary-light);
}

/* ---------- 选中文本 ---------- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   导航栏 (毛玻璃效果)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav-light);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

body.dark-mode .site-header {
  background: var(--bg-nav-dark);
  border-bottom-color: var(--border-dark);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
}

/* Logo */
.logo {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-heading-light);
  text-decoration: none !important;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

body.dark-mode .logo {
  color: var(--text-heading-dark);
}

.logo span {
  color: var(--accent);
  display: inline-block;
  transform: rotate(-5deg);
  transition: var(--transition);
}

.logo:hover span {
  transform: rotate(5deg) scale(1.1);
}

/* 导航链接 */
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-nav-light, var(--text-primary-light));
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
}

body.dark-mode .nav-links a {
  color: var(--text-nav-dark, var(--text-primary-dark));
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(225, 29, 72, 0.08);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* 右侧操作区 */
.nav-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

/* 搜索框 */
.search-box {
  display: flex;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  overflow: hidden;
  background: var(--bg-card-light);
  transition: var(--transition);
}

body.dark-mode .search-box {
  border-color: var(--border-dark);
  background: var(--bg-card-dark);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.search-box input {
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text-primary-light);
  outline: none;
  width: 160px;
  transition: var(--transition);
}

body.dark-mode .search-box input {
  color: var(--text-primary-dark);
}

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

body.dark-mode .search-box input::placeholder {
  color: var(--text-secondary-dark);
}

.search-box button {
  background: var(--accent);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: white;
  font-weight: 700;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--accent-2);
}

/* 暗色模式切换按钮 */
.dark-toggle {
  background: var(--bg-card-light);
  border: 2px solid var(--border-light);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  color: var(--text-primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

body.dark-mode .dark-toggle {
  background: var(--bg-card-dark);
  border-color: var(--border-dark);
  color: var(--text-primary-dark);
}

.dark-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary-light);
  transition: var(--transition);
}

body.dark-mode .mobile-menu-btn {
  color: var(--text-primary-dark);
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #BE123C);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.4);
}

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

body.dark-mode .btn-outline {
  border-color: var(--text-link-dark);
  color: var(--text-link-dark);
}

.btn-outline:hover {
  background: var(--text-link-light);
  color: #fff;
  transform: translateY(-3px);
}

body.dark-mode .btn-outline:hover {
  background: var(--text-link-dark);
  color: var(--bg-dark);
}

/* ============================================
   Hero 区域 (渐变 + 动画)
   ============================================ */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #FCE7F3 50%, #FEF3C7 100%);
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
}

/* 背景装饰圆圈 */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: var(--accent);
  animation: float 8s infinite ease-in-out;
}

.hero::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.hero::after {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -30px;
  animation-delay: -4s;
  background: var(--accent-3);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 450px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-heading-light);
  margin-bottom: 1.2rem;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text-heading-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .hero-text h1 {
  background: linear-gradient(135deg, var(--text-heading-dark), var(--text-link-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

body.dark-mode .hero-text p {
  color: var(--text-secondary-dark);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-heading-light);
  display: block;
  line-height: 1.2;
}

body.dark-mode .stat-item {
  color: var(--text-heading-dark);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.dark-mode .stat-label {
  color: var(--text-secondary-dark);
}

.hero-image {
  flex: 0 0 280px;
  animation: bounce 3s infinite ease-in-out;
}

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

.hero-image svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

/* ============================================
   通用区块标题
   ============================================ */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-heading-light);
  margin: 3rem 0 2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

body.dark-mode .section-title {
  color: var(--text-heading-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}

/* ============================================
   卡片网格系统
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

body.dark-mode .card {
  background: var(--bg-card-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover-light);
  border-color: transparent;
}

body.dark-mode .card:hover {
  box-shadow: var(--shadow-hover-dark);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 1.35rem;
  color: var(--text-heading-light);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

body.dark-mode .card h3 {
  color: var(--text-heading-dark);
}

.card p {
  color: var(--text-secondary-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

body.dark-mode .card p {
  color: var(--text-secondary-dark);
}

.card a {
  color: var(--text-link-light);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

body.dark-mode .card a {
  color: var(--text-link-dark);
}

.card a:hover {
  gap: 0.6rem;
  text-decoration: none;
}

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

.article-item {
  display: flex;
  gap: 1.8rem;
  border-bottom: 1px solid var(--border-light);
  padding: 1.8rem 0;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

body.dark-mode .article-item {
  border-bottom-color: var(--border-dark);
}

.article-item:hover {
  background: var(--bg-card-light);
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow: var(--shadow-light);
}

body.dark-mode .article-item:hover {
  background: var(--bg-card-dark);
  box-shadow: var(--shadow-dark);
}

.article-thumb {
  width: 130px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.2);
}

.article-content {
  flex: 1;
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--text-heading-light);
  margin-bottom: 0.4rem;
  font-weight: 700;
  transition: var(--transition);
}

body.dark-mode .article-content h3 {
  color: var(--text-heading-dark);
}

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

.article-content .meta {
  font-size: 0.85rem;
  color: var(--text-secondary-light);
  margin: 0.3rem 0;
  display: flex;
  gap: 1rem;
}

body.dark-mode .article-content .meta {
  color: var(--text-secondary-dark);
}

.article-content p {
  color: var(--text-secondary-light);
  font-size: 0.95rem;
}

body.dark-mode .article-content p {
  color: var(--text-secondary-dark);
}

.article-content a {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   FAQ 手风琴
   ============================================ */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.8rem;
  margin-bottom: 1rem;
  background: var(--bg-card-light);
  transition: var(--transition);
}

body.dark-mode .faq-item {
  background: var(--bg-card-dark);
  border-color: var(--border-dark);
}

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

.faq-question {
  font-weight: 700;
  color: var(--text-heading-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  user-select: none;
}

body.dark-mode .faq-question {
  color: var(--text-heading-dark);
}

.faq-question span {
  font-size: 1.5rem;
  transition: var(--transition);
  color: var(--accent);
}

.faq-item:hover .faq-question span {
  transform: rotate(90deg);
}

.faq-answer {
  margin-top: 0.8rem;
  color: var(--text-secondary-light);
  display: none;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease;
}

body.dark-mode .faq-answer {
  color: var(--text-secondary-dark);
  border-top-color: var(--border-dark);
}

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

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

/* ============================================
   HowTo 教程
   ============================================ */
.howto-steps {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-light);
}

body.dark-mode .howto-steps {
  background: var(--bg-card-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.howto-steps h3,
.howto-steps h4 {
  color: var(--text-heading-light);
  margin-bottom: 1rem;
}

body.dark-mode .howto-steps h3,
body.dark-mode .howto-steps h4 {
  color: var(--text-heading-dark);
}

.howto-steps ul,
.howto-steps ol {
  padding-left: 1.8rem;
  color: var(--text-primary-light);
  margin-bottom: 1.5rem;
}

body.dark-mode .howto-steps ul,
body.dark-mode .howto-steps ol {
  color: var(--text-primary-dark);
}

.howto-steps li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.howto-steps p {
  color: var(--text-secondary-light);
  margin-bottom: 1rem;
}

body.dark-mode .howto-steps p {
  color: var(--text-secondary-dark);
}

/* ============================================
   表格
   ============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

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

body.dark-mode .info-table th,
body.dark-mode .info-table td {
  border-color: var(--border-dark);
}

.info-table th {
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  color: var(--text-heading-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

body.dark-mode .info-table th {
  background: var(--bg-card-dark);
  color: var(--text-heading-dark);
}

.info-table td {
  background: var(--bg-card-light);
}

body.dark-mode .info-table td {
  background: var(--bg-card-dark);
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: var(--bg-footer-light);
  color: var(--text-footer-light);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

body.dark-mode .site-footer {
  background: var(--bg-footer-dark);
}

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

.footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.footer-col a {
  color: #94A3B8;
  display: block;
  margin-bottom: 0.6rem;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: none;
  padding-left: 5px;
}

.footer-col p {
  color: #94A3B8;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  margin-top: 3rem;
  padding-top: 1.8rem;
  text-align: center;
  color: #64748B;
  font-size: 0.9rem;
}

body.dark-mode .footer-bottom {
  border-top-color: #1E293B;
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.4);
}

/* ============================================
   滚动动画 (Reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   辅助工具类
   ============================================ */
.text-muted {
  color: var(--text-secondary-light);
}

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

.svg-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* 友情链接区域 */
.friendly-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.friendly-links a {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

body.dark-mode .friendly-links a {
  background: var(--bg-card-dark);
  border-color: var(--border-dark);
}

.friendly-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    gap: 2rem;
  }

  .hero-image {
    flex: 0 0 220px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 0;
    background: var(--bg-nav-light);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 0.5rem;
  }

  body.dark-mode .nav-links {
    background: var(--bg-nav-dark);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a::after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-item {
    font-size: 1.5rem;
  }

  .article-item {
    flex-direction: column;
    gap: 1rem;
  }

  .article-thumb {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .nav-wrapper {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .search-box {
    display: none;
  }

  .dark-toggle {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image {
    flex: 0 0 180px;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.2rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .howto-steps {
    padding: 1.5rem;
  }

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

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

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================
   打印样式优化
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .hero {
    display: none;
  }

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

  .container {
    max-width: 100%;
  }
}

/* ============================================
   无障碍支持
   ============================================ */
@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;
  }
}

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

/* 暗色模式下的焦点 */
body.dark-mode a:focus-visible,
body.dark-mode button:focus-visible,
body.dark-mode input:focus-visible {
  outline-color: var(--text-link-dark);
}
```