```css
/* ============================================
   jm漫画 - 完整样式表
   风格：梦幻紫罗兰 · 毛玻璃 · 渐变 · 暗色模式
   ============================================ */

/* ---------- 重置与基础 ---------- */
:root {
  --primary: #7C5CFC;
  --primary-light: #9B7FFF;
  --primary-dark: #5B3FD4;
  --accent: #FF6B9D;
  --bg: #F8F4FF;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1A1A2E;
  --text-light: #2D2D44;
  --text-muted: #6B6B8D;
  --border: rgba(124, 92, 252, 0.15);
  --shadow: 0 8px 32px rgba(124, 92, 252, 0.12);
  --shadow-hover: 0 12px 40px rgba(124, 92, 252, 0.22);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 暗色模式变量 */
[data-theme="dark"] {
  --bg: #0F0B1E;
  --bg-card: rgba(30, 20, 60, 0.7);
  --bg-glass: rgba(20, 12, 40, 0.6);
  --text: #E8E0F0;
  --text-light: #C4B5FD;
  --text-muted: #9A8FC0;
  --border: rgba(155, 127, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(124, 92, 252, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 157, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(124, 92, 252, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

/* 通用容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- 头部导航 ---------- */
header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: var(--bg-card);
  box-shadow: 0 4px 30px rgba(124, 92, 252, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

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

.logo h1 span {
  background: linear-gradient(135deg, #FF6B9D, #FFB86B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

nav ul li a:hover::before {
  width: 70%;
}

nav ul li a:hover {
  color: var(--primary);
  background: rgba(124, 92, 252, 0.08);
}

nav ul li a.active {
  color: var(--primary);
  background: rgba(124, 92, 252, 0.12);
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu:hover {
  background: rgba(124, 92, 252, 0.1);
}

/* 主题切换按钮 */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

/* ---------- 主内容区域 ---------- */
main {
  padding: 50px 0;
  position: relative;
}

/* 滚动进入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease both;
}

/* 区块标题 */
.section-title {
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
  display: inline-block;
  font-weight: 800;
  position: relative;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- 热门漫画卡片 ---------- */
.grid-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.comic-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

.comic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

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

.comic-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 92, 252, 0.3);
}

.comic-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, #E8E0F0, #D4C4F0);
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
}

.comic-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.comic-info {
  padding: 18px;
  position: relative;
}

.comic-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
  transition: color 0.3s ease;
}

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

.comic-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 2px;
}

.comic-info .tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(255, 107, 157, 0.12));
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin: 6px 4px 0 0;
  border: 1px solid rgba(124, 92, 252, 0.15);
  font-weight: 500;
  transition: all 0.3s ease;
}

.comic-info .tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.3);
}

/* ---------- 精品推荐卡片 ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.featured-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(124, 92, 252, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 92, 252, 0.3);
}

.featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #E8E0F0, #D4C4F0);
  transition: transform 0.5s ease;
}

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

.featured-content {
  padding: 22px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.featured-content h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
  transition: color 0.3s ease;
}

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

.featured-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

.featured-content p:first-of-type {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.85rem;
}

/* ---------- 详情区块 ---------- */
.detail-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

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

.detail-section h2 {
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 25px;
  font-weight: 800;
  position: relative;
}

.detail-section h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 25px 0 12px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.detail-section p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.8;
  text-align: justify;
}

/* ---------- 角色卡片 ---------- */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.character-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.character-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.character-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 92, 252, 0.3);
}

.character-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #E8E0F0, #D4C4F0);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2);
  transition: all 0.4s ease;
  display: block;
}

.character-card:hover img {
  box-shadow: 0 0 0 4px var(--primary), 0 8px 20px rgba(124, 92, 252, 0.3);
  transform: scale(1.05);
}

.character-card h3 {
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1.15rem;
}

.character-card .role {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.character-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- 平台介绍 ---------- */
.platform-section {
  background: linear-gradient(135deg, 
    rgba(124, 92, 252, 0.08), 
    rgba(255, 107, 157, 0.05),
    rgba(124, 92, 252, 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 45px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.platform-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

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

.platform-section h2 {
  color: var(--text);
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.platform-section p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.8;
  position: relative;
  z-index: 1;
  text-align: justify;
}

.platform-section p:first-of-type {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- APP 下载 ---------- */
.app-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 45px;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.app-section::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.06) 0%, transparent 50%);
  animation: pulse 6s ease-in-out infinite;
}

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

.app-section h2 {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.app-section p {
  margin-bottom: 15px;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124, 92, 252, 0.45);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text);
  border: 2px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(124, 92, 252, 0.1);
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(124, 92, 252, 0.15);
}

/* ---------- 用户评论 ---------- */
.comments-section {
  margin-bottom: 60px;
}

.comment-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
}

.comment-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
}

.comment-card:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.1);
  border-color: rgba(124, 92, 252, 0.25);
}

.comment-card .user {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.comment-card .time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.comment-card .content {
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- 侧边栏布局 ---------- */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin-top: 30px;
}

.sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
  align-self: start;
  transition: all 0.3s ease;
}

.sidebar h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(124, 92, 252, 0.15);
  font-weight: 700;
}

.rank-list {
  list-style: none;
  margin-bottom: 10px;
}

.rank-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(124, 92, 252, 0.08);
  transition: all 0.3s ease;
  border-radius: 8px;
  cursor: default;
}

.rank-list li:hover {
  background: rgba(124, 92, 252, 0.05);
  padding-left: 14px;
}

.rank-list li span {
  color: var(--text-light);
  font-size: 0.95rem;
}

.rank-list li .rank-num {
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
  font-size: 1rem;
}

.stats-box {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.06), rgba(255, 107, 157, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.stats-box:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(124, 92, 252, 0.1);
}

.stats-box .num {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---------- 页脚 ---------- */
footer {
  background: linear-gradient(135deg, #1E1040, #2D1B4E, #1E1040);
  color: #E8E0F0;
  padding: 50px 0 25px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientMove 4s linear infinite;
}

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

.footer-links a {
  color: #C4B5FD;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: none;
  background: rgba(124, 92, 252, 0.15);
  border-color: rgba(124, 92, 252, 0.3);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #3A2A6A;
  padding-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #B8A8E0;
  align-items: center;
}

.footer-bottom a {
  color: #B8A8E0;
  text-decoration: none;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 992px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-top: 20px;
  }
  
  .detail-section, 
  .platform-section, 
  .app-section {
    padding: 25px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease;
    z-index: 100;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav ul li a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .grid-card {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .comic-card img {
    height: 200px;
  }
  
  .comic-info {
    padding: 14px;
  }
  
  .comic-info h3 {
    font-size: 1rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .featured-card img {
    height: 200px;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .character-card {
    padding: 20px 15px;
  }
  
  .character-card img {
    width: 90px;
    height: 90px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .detail-section h2 {
    font-size: 1.4rem;
  }
  
  .detail-section h3 {
    font-size: 1.1rem;
  }
  
  .platform-section,
  .app-section {
    padding: 20px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  
  .footer-bottom div {
    margin-bottom: 10px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .comic-card img {
    height: 180px;
  }
  
  .comic-info {
    padding: 12px;
  }
  
  .comic-info h3 {
    font-size: 0.95rem;
  }
  
  .comic-info p {
    font-size: 0.8rem;
  }
  
  .comic-info .tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .featured-content {
    padding: 16px;
  }
  
  .featured-content h3 {
    font-size: 1.1rem;
  }
  
  .comment-card {
    padding: 16px;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ---------- 无障碍与打印 ---------- */
@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,
  .mobile-menu,
  .theme-toggle,
  .btn {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .comic-card,
  .featured-card,
  .character-card,
  .detail-section,
  .platform-section,
  .app-section,
  .comment-card,
  .sidebar {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
    break-inside: avoid;
  }
}

/* ---------- 主题切换过渡 ---------- */
body.theme-transition * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ---------- 工具类 ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ---------- 加载动画 ---------- */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  background: linear-gradient(90deg, rgba(124, 92, 252, 0.05) 25%, rgba(124, 92, 252, 0.15) 50%, rgba(124, 92, 252, 0.05) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ---------- 图片占位符 ---------- */
img {
  background: linear-gradient(135deg, #E8E0F0, #D4C4F0);
  position: relative;
}

img::after {
  content: '📚';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.5;
}

/* ---------- 暗色模式适配 ---------- */
[data-theme="dark"] .comic-card,
[data-theme="dark"] .featured-card,
[data-theme="dark"] .character-card,
[data-theme="dark"] .detail-section,
[data-theme="dark"] .app-section,
[data-theme="dark"] .comment-card,
[data-theme="dark"] .sidebar {
  background: var(--bg-card);
}

[data-theme="dark"] .platform-section {
  background: linear-gradient(135deg, 
    rgba(124, 92, 252, 0.15), 
    rgba(255, 107, 157, 0.1),
    rgba(124, 92, 252, 0.15));
}

[data-theme="dark"] .stats-box {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] nav ul li a:hover {
  background: rgba(124, 92, 252, 0.2);
}

[data-theme="dark"] .comic-info .tag {
  background: rgba(124, 92, 252, 0.2);
  border-color: rgba(124, 92, 252, 0.3);
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 2000;
  transition: width 0.1s ease;
  box-shadow: 0 2px 10px rgba(124, 92, 252, 0.3);
}

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1500;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(124, 92, 252, 0.5);
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .scroll-progress {
    height: 2px;
  }
}

/* ---------- 最终优化 ---------- */
::selection {
  background: var(--primary);
  color: white;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

/* 确保所有交互元素有适当的可访问性 */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
```