```css
/* ===== 漫天星漫画 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F0EBFF;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6B4CFF;
}

/* ===== 基础变量 ===== */
:root {
  --primary: #7C5CFC;
  --primary-dark: #4A4AF0;
  --primary-light: #F0EBFF;
  --bg: #F8F4FF;
  --text: #1A1A2E;
  --text-secondary: #2D2D44;
  --card-bg: #FFFFFF;
  --card-border: #E4D9FF;
  --footer-bg: #0D0820;
  --footer-text: #F0EBFF;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(124, 92, 252, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(124, 92, 252, 0.2);
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12101F;
    --text: #E8E6F0;
    --text-secondary: #C4BEE0;
    --card-bg: #1E1B2E;
    --card-border: #2D2A4A;
    --primary-light: #2A2545;
    --footer-bg: #0A0815;
    --footer-text: #D0C8F0;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(124, 92, 252, 0.3);
    --glass-bg: rgba(30, 27, 46, 0.75);
    --glass-border: rgba(124, 92, 252, 0.3);
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--glass-border);
  box-shadow: 0 4px 30px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 30px var(--shadow-hover);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 15px;
}

.logo h1 {
  font-size: 28px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0, #B8A9E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(124, 92, 252, 0.2);
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: all 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7C5CFC, #4A4AF0);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

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

.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== 横幅 Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-light) 50%, rgba(124, 92, 252, 0.2) 100%);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 92, 252, 0.1) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

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

.hero h2 {
  font-size: 42px;
  color: var(--text);
  margin-bottom: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1s ease 0.2s;
  position: relative;
  z-index: 1;
}

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

/* ===== 区块通用 ===== */
.section {
  padding: 50px 0;
}

.section-title {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 800;
  position: relative;
  padding-bottom: 15px;
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7C5CFC, #4A4AF0);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(124, 92, 252, 0.4);
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 15px;
}

/* ===== 漫画网格 ===== */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.comic-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--card-border);
  position: relative;
  cursor: pointer;
}

.comic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.comic-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px var(--shadow-hover);
  border-color: var(--primary);
}

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

.comic-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--primary-light);
  aspect-ratio: 3/4;
  transition: transform 0.5s ease;
}

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

.comic-info {
  padding: 15px;
  position: relative;
  z-index: 2;
  background: var(--card-bg);
}

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

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

.comic-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 3px 0;
}

.comic-info .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: var(--primary-light);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.update-time {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ===== 推荐卡片 ===== */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.recommend-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.recommend-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px var(--shadow-hover);
  border-color: var(--primary);
}

.recommend-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--primary-light);
  transition: transform 0.5s ease;
}

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

.recommend-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recommend-body h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

.recommend-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  flex: 1;
}

.recommend-body .author {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid var(--primary-light);
}

/* ===== 详细介绍 ===== */
.detail-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--card-border);
}

.detail-header {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.detail-header img {
  width: 240px;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--primary-light);
  box-shadow: 0 5px 15px var(--shadow);
}

.detail-info {
  flex: 1;
  min-width: 280px;
}

.detail-info h3 {
  font-size: 26px;
  color: var(--text);
  margin-bottom: 10px;
}

.detail-info p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.detail-info p strong {
  color: var(--primary);
}

.detail-content h4 {
  font-size: 20px;
  color: var(--text);
  margin: 20px 0 10px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
}

.detail-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: justify;
}

/* ===== 角色 ===== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.char-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7C5CFC, #4A4AF0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.char-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-hover);
  border-color: var(--primary);
}

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

.char-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--primary);
  background: var(--primary-light);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 92, 252, 0.2);
}

.char-card:hover img {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

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

.char-card .role {
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 600;
}

.char-card p {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.6;
}

/* ===== 平台介绍 ===== */
.platform-box {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--card-border);
}

.platform-box h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.platform-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.platform-box p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.8;
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.feature {
  background: var(--primary-light);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.feature h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 700;
}

.feature p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== APP下载 ===== */
.download-section {
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0, #6B4CFF);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(124, 92, 252, 0.3);
}

.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

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

.download-section h3 {
  font-size: 28px;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.download-section p {
  font-size: 16px;
  color: #F0EBFF;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.download-btn {
  background: #FFFFFF;
  color: #0D0820;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.download-btn:hover {
  background: var(--primary-light);
  color: #0D0820;
  transform: scale(1.08);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #fff;
}

.download-btn:active {
  transform: scale(0.95);
}

/* ===== 评论 ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.review-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 5px 15px var(--shadow);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
  border-color: var(--primary);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(124, 92, 252, 0.3);
}

.review-name {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.review-time {
  color: var(--text-secondary);
  font-size: 12px;
  margin-left: auto;
  opacity: 0.8;
}

.review-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 5px 20px var(--shadow);
  height: fit-content;
  border: 1px solid var(--card-border);
  position: sticky;
  top: 80px;
}

.sidebar h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}

.rank-list {
  list-style: none;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.rank-list li:hover {
  background: var(--primary-light);
  padding-left: 10px;
  border-radius: 8px;
}

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

.rank-num {
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  color: #FFFFFF;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 92, 252, 0.3);
}

.rank-list li:nth-child(1) .rank-num {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.rank-list li:nth-child(2) .rank-num {
  background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.rank-list li:nth-child(3) .rank-num {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
}

.rank-list .rank-title {
  font-size: 14px;
  color: var(--text);
  flex: 1;
  font-weight: 500;
}

.rank-list .rank-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.stats-box {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
}

.stats-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-box .num {
  font-weight: 700;
  color: var(--primary);
}

/* ===== 底部 ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 20px;
  margin-top: 50px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C5CFC, #4A4AF0, #B8A9E8, #4A4AF0, #7C5CFC);
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

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

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

.footer-links a {
  color: var(--footer-text);
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
  opacity: 1;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--footer-text);
  opacity: 0.7;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy p {
  margin-bottom: 5px;
}

/* ===== 滚动动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .comic-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .main-nav {
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .main-nav a {
    font-size: 14px;
    padding: 3px 0;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
    padding: 0 15px;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .comic-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .comic-info {
    padding: 10px;
  }
  
  .comic-info h3 {
    font-size: 14px;
  }
  
  .comic-info p {
    font-size: 12px;
  }
  
  .recommend-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .recommend-card img {
    height: 180px;
  }
  
  .detail-section {
    padding: 20px;
  }
  
  .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .detail-header img {
    width: 200px;
    height: 280px;
  }
  
  .detail-info {
    min-width: 100%;
  }
  
  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .char-card {
    padding: 15px;
  }
  
  .char-card img {
    width: 100px;
    height: 100px;
  }
  
  .platform-box {
    padding: 20px;
  }
  
  .platform-features {
    grid-template-columns: 1fr;
  }
  
  .download-section {
    padding: 30px 20px;
  }
  
  .download-section h3 {
    font-size: 22px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .download-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .review-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .footer-links {
    gap: 15px;
  }
  
  .footer-links a {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .logo h1 {
    font-size: 24px;
  }
  
  .hero h2 {
    font-size: 24px;
  }
  
  .comic-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .comic-info h3 {
    font-size: 13px;
  }
  
  .comic-info .meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .char-grid {
    grid-template-columns: 1fr;
  }
  
  .char-card {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .review-card {
    padding: 15px;
  }
  
  .detail-content h4 {
    font-size: 18px;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ===== 暗色模式增强 ===== */
@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-light) 50%, rgba(124, 92, 252, 0.3) 100%);
  }
  
  .comic-card img,
  .recommend-card img,
  .detail-header img,
  .char-card img {
    background: var(--primary-light);
  }
  
  .download-section {
    background: linear-gradient(135deg, #4A4AF0, #7C5CFC, #6B4CFF);
  }
  
  .stats-box {
    background: var(--primary-light);
  }
  
  .feature {
    background: var(--primary-light);
  }
}

/* ===== 打印样式 ===== */
@media print {
  .site-header,
  .site-footer,
  .download-section,
  .sidebar {
    display: none;
  }
  
  .comic-grid,
  .recommend-grid,
  .char-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comic-card,
  .recommend-card,
  .char-card,
  .review-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== 辅助类 ===== */
.text-gradient {
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 92, 252, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.4);
}

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

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

/* ===== 加载动画 ===== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C5CFC, #4A4AF0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 5px 20px rgba(124, 92, 252, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
}

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

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

/* ===== 键盘可访问性 ===== */
:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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

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