```css
/* ============================================
   汗汗漫画 - 主样式表
   设计风格：现代紫罗兰 + 毛玻璃 + 圆角卡片
   响应式 + 暗色模式 + 滚动动画
   ============================================ */

/* ---------- CSS 变量与主题系统 ---------- */
:root {
  --bg-primary: #F8F4FF;
  --bg-secondary: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-card: #FFFFFF;
  --bg-soft: #F0EBFF;
  --bg-feature: #F8F4FF;

  --text-primary: #1A1A2E;
  --text-secondary: #2D2D44;
  --text-muted: #6B7280;
  --text-light: #B8B8D0;

  --accent-1: #7C5CFC;
  --accent-2: #4A4AF0;
  --accent-3: #FFD700;
  --accent-rgb: 124, 92, 252;

  --border-color: #E8E0F4;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(var(--accent-rgb), 0.08);
  --shadow-lg: 0 8px 25px rgba(var(--accent-rgb), 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 30px;

  --font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
}

/* 暗色模式变量覆盖 */
[data-theme="dark"] {
  --bg-primary: #0F0B1E;
  --bg-secondary: #1A1630;
  --bg-glass: rgba(26, 22, 48, 0.72);
  --bg-card: #1E1A36;
  --bg-soft: #2A2445;
  --bg-feature: #221D3D;

  --text-primary: #F3F0FF;
  --text-secondary: #C9C2E8;
  --text-muted: #9A93B8;
  --text-light: #6F6890;

  --border-color: #322A52;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

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

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

/* 链接样式 */
a {
  color: var(--accent-2);
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
}

a:hover {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 容器布局 ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- 头部导航 ---------- */
header {
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(var(--accent-rgb), 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(124, 92, 252, 0.92);
  transition: var(--transition-base);
}

[data-theme="dark"] header {
  background: rgba(26, 22, 48, 0.92);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-base);
}

[data-theme="dark"] .logo h1 {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 导航菜单 */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-wrap: wrap;
}

nav ul li a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: var(--transition-base);
}

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

nav ul li a:hover {
  color: var(--accent-3);
  border-bottom-color: var(--accent-3);
  text-decoration: none;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ---------- 主内容区 ---------- */
main {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.content {
  flex: 1;
  min-width: 300px;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* 通用区块样式 */
.section {
  margin-bottom: 40px;
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
  animation: fadeInUp 0.6s ease-out both;
}

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

.section-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 5px solid var(--accent-1);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 15px;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 3px;
}

/* ---------- 网格布局 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

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

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

/* ---------- 卡片组件 ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
  position: relative;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-1);
}

.card img {
  width: 100%;
  object-fit: cover;
  background: var(--bg-soft);
  transition: transform 0.5s ease;
  aspect-ratio: 5/7;
}

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

.card-body {
  padding: 15px;
  background: var(--bg-card);
  transition: var(--transition-base);
}

.card-body h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
  transition: var(--transition-base);
}

.card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.card-body .tag {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--accent-2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin: 2px;
  transition: var(--transition-base);
}

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

/* 推荐卡片 */
.recommend-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  align-items: center;
  background: var(--bg-card);
  transition: var(--transition-base);
  cursor: pointer;
}

.recommend-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(5px);
  border-color: var(--accent-1);
}

.recommend-card img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: var(--transition-base);
}

.recommend-card:hover img {
  transform: scale(1.02);
}

.recommend-info h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: var(--transition-base);
}

.recommend-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 角色卡片 */
.character-card {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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

.character-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--accent-1);
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2);
}

.character-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3);
}

.character-card h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.character-card .role {
  color: var(--accent-1);
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.character-card p {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
  padding: 0 10px;
}

/* ---------- 文本内容 ---------- */
.intro-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 2;
}

.intro-text p {
  margin-bottom: 15px;
}

/* 平台特性 */
.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  background: var(--bg-feature);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--accent-1);
  transition: var(--transition-base);
}

.feature-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.feature-item h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- 按钮样式 ---------- */
.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--accent-2);
  border: 2px solid var(--accent-2);
}

.btn-outline:hover {
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
}

/* ---------- 评论区域 ---------- */
.review-item {
  background: var(--bg-feature);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent-1);
  transition: var(--transition-base);
  animation: fadeInUp 0.5s ease-out both;
}

.review-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.review-item .user {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 5px;
}

.review-item .time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.review-item p {
  font-size: 14px;
  color: var(--text-primary);
}

/* ---------- 侧边栏 ---------- */
.sidebar-card {
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
}

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

.sidebar-card h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-1);
}

/* 排行榜 */
.rank-list {
  list-style: none;
}

.rank-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-base);
  cursor: pointer;
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list li:hover {
  color: var(--accent-1);
  padding-left: 5px;
}

.rank-num {
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: 10px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

/* 统计 */
.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

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

.stat-item:hover {
  background: var(--bg-soft);
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
}

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

.stat-value {
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------- 页脚 ---------- */
footer {
  background: #1A1A2E;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 40px;
}

[data-theme="dark"] footer {
  background: #0D0B1A;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}

.footer-links a {
  color: #B8B8D0;
  position: relative;
  padding: 5px 0;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

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

.footer-copyright {
  text-align: center;
  border-top: 1px solid #2D2D44;
  padding-top: 20px;
  font-size: 14px;
  color: #B8B8D0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.footer-legal a {
  color: #B8B8D0;
  font-size: 13px;
  transition: var(--transition-base);
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- 动画效果 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* 滚动进入动画 */
.section {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }

/* 卡片悬停动画 */
.card {
  animation: fadeIn 0.6s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.5s; }
.card:nth-child(11) { animation-delay: 0.55s; }
.card:nth-child(12) { animation-delay: 0.6s; }
.card:nth-child(13) { animation-delay: 0.65s; }
.card:nth-child(14) { animation-delay: 0.7s; }
.card:nth-child(15) { animation-delay: 0.75s; }
.card:nth-child(16) { animation-delay: 0.8s; }

/* 推荐卡片动画 */
.recommend-card {
  animation: slideInLeft 0.5s ease-out both;
}

.recommend-card:nth-child(1) { animation-delay: 0.1s; }
.recommend-card:nth-child(2) { animation-delay: 0.2s; }
.recommend-card:nth-child(3) { animation-delay: 0.3s; }
.recommend-card:nth-child(4) { animation-delay: 0.4s; }
.recommend-card:nth-child(5) { animation-delay: 0.5s; }
.recommend-card:nth-child(6) { animation-delay: 0.6s; }

/* 角色卡片动画 */
.character-card {
  animation: fadeInUp 0.5s ease-out both;
}

.character-card:nth-child(1) { animation-delay: 0.1s; }
.character-card:nth-child(2) { animation-delay: 0.2s; }
.character-card:nth-child(3) { animation-delay: 0.3s; }
.character-card:nth-child(4) { animation-delay: 0.4s; }
.character-card:nth-child(5) { animation-delay: 0.5s; }
.character-card:nth-child(6) { animation-delay: 0.6s; }

/* 评论动画 */
.review-item:nth-child(1) { animation-delay: 0.05s; }
.review-item:nth-child(2) { animation-delay: 0.1s; }
.review-item:nth-child(3) { animation-delay: 0.15s; }
.review-item:nth-child(4) { animation-delay: 0.2s; }
.review-item:nth-child(5) { animation-delay: 0.25s; }
.review-item:nth-child(6) { animation-delay: 0.3s; }
.review-item:nth-child(7) { animation-delay: 0.35s; }
.review-item:nth-child(8) { animation-delay: 0.4s; }
.review-item:nth-child(9) { animation-delay: 0.45s; }
.review-item:nth-child(10) { animation-delay: 0.5s; }
.review-item:nth-child(11) { animation-delay: 0.55s; }
.review-item:nth-child(12) { animation-delay: 0.6s; }
.review-item:nth-child(13) { animation-delay: 0.65s; }
.review-item:nth-child(14) { animation-delay: 0.7s; }
.review-item:nth-child(15) { animation-delay: 0.75s; }

/* 侧边栏动画 */
.sidebar-card {
  animation: slideInLeft 0.5s ease-out both;
}

.sidebar-card:nth-child(1) { animation-delay: 0.1s; }
.sidebar-card:nth-child(2) { animation-delay: 0.2s; }
.sidebar-card:nth-child(3) { animation-delay: 0.3s; }

/* 滚动条动画 - 使用 Intersection Observer 的替代方案 */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 280px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }
  
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    justify-content: center;
    gap: 15px;
  }
  
  nav ul li a {
    font-size: 14px;
    padding: 6px 3px;
  }
  
  main {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .logo h1 {
    font-size: 26px;
  }
  
  .section {
    padding: 20px;
  }
  
  .recommend-card {
    flex-direction: column;
    text-align: center;
  }
  
  .recommend-card img {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .download-buttons {
    justify-content: center;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .btn {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .card-body h3 {
    font-size: 15px;
  }
  
  .card-body p {
    font-size: 12px;
  }
  
  .character-card img {
    width: 100px;
    height: 100px;
  }
  
  .feature-item {
    padding: 15px;
  }
  
  .footer-links {
    gap: 15px;
  }
  
  .footer-legal {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .logo h1 {
    font-size: 22px;
  }
  
  nav ul {
    gap: 10px;
  }
  
  nav ul li a {
    font-size: 13px;
  }
  
  .section {
    padding: 15px;
    border-radius: 12px;
  }
  
  .section-title {
    font-size: 18px;
    padding-left: 10px;
  }
  
  .card-body {
    padding: 12px;
  }
  
  .card-body h3 {
    font-size: 14px;
  }
  
  .card-body .tag {
    font-size: 11px;
    padding: 2px 8px;
  }
  
  .recommend-card {
    padding: 12px;
  }
  
  .recommend-info h3 {
    font-size: 16px;
  }
  
  .recommend-info p {
    font-size: 12px;
  }
  
  .character-card {
    padding: 15px;
  }
  
  .character-card img {
    width: 90px;
    height: 90px;
  }
  
  .character-card h3 {
    font-size: 16px;
  }
  
  .character-card p {
    font-size: 12px;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .review-item {
    padding: 12px;
  }
  
  .review-item .user {
    font-size: 14px;
  }
  
  .review-item p {
    font-size: 13px;
  }
  
  .sidebar-card {
    padding: 15px;
  }
  
  .sidebar-card h3 {
    font-size: 16px;
  }
  
  .rank-list li {
    font-size: 13px;
  }
  
  .stat-item {
    font-size: 13px;
  }
  
  .footer-copyright {
    font-size: 12px;
  }
}

/* 暗色模式切换按钮 */
.theme-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}

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

/* 打印样式 */
@media print {
  header, footer, .sidebar, .download-buttons {
    display: none !important;
  }
  
  main {
    display: block !important;
  }
  
  .content {
    width: 100% !important;
  }
  
  .section {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  
  .card, .recommend-card, .character-card, .review-item {
    break-inside: avoid;
  }
}

/* 工具类 */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* 无障碍访问 */
:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
}

/* 图片占位符渐变 */
.card img, .recommend-card img, .character-card img {
  background: linear-gradient(135deg, var(--bg-soft), var(--border-color));
}

/* 链接下划线动画 */
a:not(.btn) {
  background-image: linear-gradient(transparent 0%, transparent 0%);
  background-size: 0% 2px;
  background-position: bottom;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

a:not(.btn):hover {
  background-image: linear-gradient(var(--accent-1), var(--accent-1));
  background-size: 100% 2px;
}
```