```css
/* ============================================
   香蕉漫画官网 - 完整样式表
   风格: 现代动漫风 / 渐变 / 毛玻璃 / 暗色模式
   ============================================ */

/* ---------- 基础重置与CSS变量 ---------- */
:root {
  --primary: #6B4CFF;
  --primary-light: #A78BFA;
  --primary-dark: #4A6CF7;
  --accent: #7DD3FC;
  --accent-2: #F0ABFC;
  --bg: #F8F4FF;
  --bg-card: #FFFFFF;
  --bg-soft: #F3EDFF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text: #1A1A2E;
  --text-soft: #2D2D44;
  --text-light: #5A5A7A;
  --border: #E4E0F0;
  --shadow: 0 8px 20px rgba(26, 26, 46, 0.08);
  --shadow-hover: 0 12px 28px rgba(107, 76, 255, 0.15);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-main: linear-gradient(145deg, #2D2D44 0%, #1A1A2E 100%);
  --gradient-text: linear-gradient(135deg, #A78BFA, #7DD3FC);
  --gradient-btn: linear-gradient(135deg, #6B4CFF, #4A6CF7);
}

/* 暗色模式变量 */
[data-theme="dark"] {
  --bg: #12121F;
  --bg-card: #1E1E32;
  --bg-soft: #252540;
  --bg-glass: rgba(30, 30, 50, 0.7);
  --text: #F5F0FF;
  --text-soft: #D9CCFF;
  --text-light: #A89BC0;
  --border: #2E2E4A;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Hiragino Sans', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 链接 */
a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
  color: var(--primary);
}

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

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(167, 139, 250, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------- 头部导航 ---------- */
header {
  background: var(--gradient-main);
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(145deg, rgba(45, 45, 68, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo h1 {
  color: #FFFFFF;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #F5F0FF;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-bottom: 2px solid transparent;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  border-bottom-color: var(--primary-light);
  color: #FFFFFF;
  background: rgba(167, 139, 250, 0.1);
}

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

/* ---------- 主容器 ---------- */
.main-grid {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  animation: fadeIn 0.8s ease;
}

/* ---------- 内容区 ---------- */
.content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease both;
}

section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

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; }

h2 {
  font-size: 1.8rem;
  color: var(--text-soft);
  border-left: 6px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

h2:hover {
  transform: translateX(5px);
}

h3 {
  font-size: 1.3rem;
  color: var(--text-soft);
  margin: 1.2rem 0 0.8rem;
  position: relative;
  display: inline-block;
}

h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 3px;
  transition: width 0.3s ease;
}

h3:hover::after {
  width: 100%;
}

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

.anime-card {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  position: relative;
  animation: fadeInUp 0.6s ease both;
}

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

.anime-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(107, 76, 255, 0.2);
}

.anime-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #D9CCFF, #B8A8FF);
  transition: transform 0.5s ease;
}

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

.anime-info {
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  transition: var(--transition);
}

.anime-card:hover .anime-info {
  background: var(--bg-soft);
}

.anime-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.anime-card:hover .anime-title {
  color: var(--primary);
}

.anime-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.badge {
  background: var(--gradient-btn);
  color: #FFFFFF;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(107, 76, 255, 0.3);
}

.rating {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.side-card {
  background: var(--bg-glass);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

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

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

.side-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-soft);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

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

.rank-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}

.rank-list li:hover {
  padding-left: 0.5rem;
  color: var(--primary);
  background: var(--bg-soft);
  border-radius: 8px;
}

.rank-list li span:first-child {
  font-weight: 500;
}

.rank-list li span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stat-item {
  background: var(--bg-soft);
  padding: 0.8rem;
  border-radius: var(--radius-xs);
  color: var(--text);
  font-weight: 500;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.stat-item:hover {
  background: var(--primary-light);
  color: white;
  transform: translateX(5px);
}

/* ---------- 评论 ---------- */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.comment-list::-webkit-scrollbar {
  width: 6px;
}

.comment-list::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 6px;
}

.comment-item {
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: 14px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
}

.comment-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(107, 76, 255, 0.1);
}

.comment-author {
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author::before {
  content: '👤';
  font-size: 0.9rem;
}

.comment-text {
  color: var(--text);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.comment-date::before {
  content: '🕐';
  font-size: 0.8rem;
}

/* ---------- 角色 ---------- */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.character-card {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease 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:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-hover);
}

.character-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #D9CCFF, #B8A8FF);
  transition: transform 0.5s ease;
}

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

.character-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0.6rem 0 0.2rem;
  color: var(--text);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.character-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- 底部 ---------- */
footer {
  background: var(--gradient-main);
  color: #F5F0FF;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  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: gradient-shift 3s ease infinite;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #F5F0FF;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.footer-links a:hover {
  color: var(--primary-light);
  background: rgba(167, 139, 250, 0.1);
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #F5F0FF;
  border-top: 1px solid #3B2A5E;
  padding-top: 1.2rem;
}

/* ---------- 按钮 ---------- */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn {
  background: var(--gradient-btn);
  color: #FFFFFF;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 76, 255, 0.3);
}

.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 {
  background: var(--primary-dark);
  text-decoration: none;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 76, 255, 0.4);
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 25px rgba(107, 76, 255, 0.3);
}

/* ---------- 详细描述 ---------- */
.detail-block {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.detail-block:hover {
  box-shadow: var(--shadow-hover);
}

.detail-block p {
  margin-bottom: 0.8rem;
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}

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

img {
  background-color: #D9CCFF;
  background: linear-gradient(135deg, #D9CCFF, #B8A8FF);
  position: relative;
}

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

/* ---------- 平台介绍 ---------- */
#platform p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.8;
}

#platform p:first-of-type::first-letter {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary);
  float: left;
  margin-right: 0.3rem;
  line-height: 1;
}

/* ---------- APP下载 ---------- */
#app-download {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  position: relative;
}

#app-download::before {
  content: '📱';
  position: absolute;
  right: 2rem;
  top: 1rem;
  font-size: 4rem;
  opacity: 0.1;
  animation: float 3s ease-in-out infinite;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    justify-content: center;
    gap: 0.8rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
  
  section {
    padding: 1.2rem 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .anime-card img {
    height: 160px;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }
  
  .character-card img {
    height: 130px;
  }
  
  .sidebar {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 0.5rem;
  }
  
  .nav-links a {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .anime-card img {
    height: 140px;
  }
  
  .anime-info {
    padding: 0.5rem 0.8rem;
  }
  
  .anime-title {
    font-size: 0.95rem;
  }
  
  .anime-meta {
    font-size: 0.75rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-group .btn {
    width: 100%;
    text-align: center;
  }
  
  .footer-links {
    gap: 0.8rem;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .anime-card img {
    height: 180px;
  }
  
  .character-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .character-card img {
    height: 120px;
  }
  
  .detail-block {
    padding: 1rem;
  }
}

/* ---------- 滚动动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 暗色模式 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121F;
    --bg-card: #1E1E32;
    --bg-soft: #252540;
    --bg-glass: rgba(30, 30, 50, 0.7);
    --text: #F5F0FF;
    --text-soft: #D9CCFF;
    --text-light: #A89BC0;
    --border: #2E2E4A;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links a {
    color: #D9CCFF;
  }
  
  .nav-links a:hover {
    color: #FFFFFF;
  }
  
  .btn-outline {
    color: var(--primary-light);
    border-color: var(--primary-light);
  }
  
  .btn-outline:hover {
    background: var(--primary-light);
    color: #12121F;
  }
  
  .tag {
    background: #2E2E4A;
    color: #D9CCFF;
  }
  
  .tag:hover {
    background: var(--primary);
    color: white;
  }
}

/* ---------- 手动暗色模式切换支持 ---------- */
[data-theme="dark"] .nav-links a {
  color: #D9CCFF;
}

[data-theme="dark"] .nav-links a:hover {
  color: #FFFFFF;
}

[data-theme="dark"] .btn-outline {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--primary-light);
  color: #12121F;
}

[data-theme="dark"] .tag {
  background: #2E2E4A;
  color: #D9CCFF;
}

[data-theme="dark"] .tag:hover {
  background: var(--primary);
  color: white;
}

[data-theme="dark"] .stat-item {
  background: #252540;
  color: #D9CCFF;
}

[data-theme="dark"] .stat-item:hover {
  background: var(--primary);
  color: white;
}

[data-theme="dark"] .comment-item {
  background: #252540;
}

[data-theme="dark"] .comment-author {
  color: #D9CCFF;
}

[data-theme="dark"] .comment-text {
  color: #F5F0FF;
}

[data-theme="dark"] .comment-date {
  color: #A89BC0;
}

[data-theme="dark"] .character-card {
  background: #252540;
}

[data-theme="dark"] .character-name {
  color: #F5F0FF;
}

[data-theme="dark"] .character-desc {
  color: #D9CCFF;
}

[data-theme="dark"] .detail-block {
  background: #252540;
}

[data-theme="dark"] .detail-block p {
  color: #F5F0FF;
}

[data-theme="dark"] .rank-list li {
  color: #F5F0FF;
}

[data-theme="dark"] .rank-list li:hover {
  background: #252540;
}

[data-theme="dark"] .anime-info {
  background: #1E1E32;
}

[data-theme="dark"] .anime-card:hover .anime-info {
  background: #252540;
}

[data-theme="dark"] .anime-title {
  color: #F5F0FF;
}

[data-theme="dark"] .anime-meta {
  color: #D9CCFF;
}

[data-theme="dark"] .rating {
  color: #F5F0FF;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* 渐变背景装饰 */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

/* 悬浮卡片动画 */
.hover-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 加载动画 */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 1.5s infinite;
}

/* 打印样式 */
@media print {
  header, footer, .sidebar, .btn-group {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
```