```css
/* =========================================
   妖精动漫 - 完整样式表
   Author: UI/UX Team
   Version: 2.0.0
   ========================================= */

/* ===== CSS 变量与主题系统 ===== */
:root {
  /* 主色板 - 魔法紫罗兰 */
  --primary: #6B4CFF;
  --primary-light: #8B6FFF;
  --primary-dark: #4A2FDB;
  --accent: #F5B942;
  --accent-light: #FFD700;

  /* 背景与表面 */
  --bg-main: #F8F4FF;
  --bg-secondary: #F0EBFA;
  --bg-card: #FFFFFF;
  --bg-header: linear-gradient(145deg, #1A1A2E 0%, #2D2D44 100%);
  --bg-footer: linear-gradient(145deg, #1A1A2E 0%, #2D2D44 100%);

  /* 文字 */
  --text-primary: #1A1A2E;
  --text-secondary: #2D2D44;
  --text-muted: #6B7280;
  --text-on-dark: #F5F0FF;

  /* 边框与分割 */
  --border-light: #E6DEF5;
  --border-dark: #C9B8F0;

  /* 阴影 */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px rgba(107, 76, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(107, 76, 255, 0.2);

  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 60px;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #6B4CFF 0%, #4A6CF7 100%);
  --gradient-banner: linear-gradient(145deg, #1A1A2E 0%, #2D2D44 100%);
  --gradient-card-hover: linear-gradient(145deg, rgba(107, 76, 255, 0.05) 0%, rgba(74, 108, 247, 0.05) 100%);

  /* 毛玻璃 */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 20px;

  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* 字体 */
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
}

/* ===== 暗色模式 ===== */
[data-theme="dark"] {
  --bg-main: #0F0F1A;
  --bg-secondary: #1A1A2E;
  --bg-card: #1E1E32;
  --text-primary: #F5F0FF;
  --text-secondary: #D4CCE8;
  --text-muted: #9D94B8;
  --border-light: #2D2D44;
  --border-dark: #4A4A6A;
  --glass-bg: rgba(30, 30, 50, 0.85);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
  --gradient-card-hover: linear-gradient(145deg, rgba(107, 76, 255, 0.1) 0%, rgba(74, 108, 247, 0.1) 100%);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--font-size-base);
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(107, 76, 255, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(74, 108, 247, 0.05) 0%, transparent 30%);
  background-attachment: fixed;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
}

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

/* ===== 头部导航 ===== */
header {
  background: var(--bg-header);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.logo h1 a {
  color: var(--text-on-dark);
  position: relative;
  display: inline-block;
}

.logo h1 a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.logo h1 a:hover::after {
  width: 100%;
}

nav ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

nav ul li a {
  color: var(--text-on-dark);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  border-radius: 20px;
}

nav ul li a:hover::before {
  left: 0;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ===== 主体区域 ===== */
main {
  padding: 2rem 0;
  min-height: 60vh;
}

section {
  margin-bottom: 3rem;
  position: relative;
}

/* ===== 标题样式 ===== */
h2 {
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  border-left: 8px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1.8rem;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 1rem;
  transition: color 0.3s ease;
}

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

/* ===== 动漫卡片 ===== */
.anime-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  position: relative;
  animation: fadeInUp 0.6s ease both;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

.anime-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.anime-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.anime-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-secondary);
  transition: transform 0.4s ease;
}

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

.anime-info {
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.anime-info h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

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

.anime-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.anime-card:hover .anime-info p {
  color: var(--text-secondary);
}

.anime-info p:first-of-type {
  font-weight: 600;
}

/* ===== 徽章 ===== */
.badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: var(--font-size-xs);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  margin-right: 0.3rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(107, 76, 255, 0.3);
  transition: all 0.3s ease;
  cursor: default;
}

.badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(107, 76, 255, 0.4);
}

/* ===== 详情盒子 ===== */
.detail-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.detail-box p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.detail-box h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.detail-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

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

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

.character-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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

.character-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.character-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.character-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.character-card p:first-of-type {
  color: var(--primary);
  font-weight: 600;
}

/* ===== 平台特性 ===== */
.platform-feature {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 6px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item:hover::before {
  opacity: 1;
}

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

.feature-item h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.feature-item p {
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ===== APP下载区域 ===== */
.app-download {
  background: var(--bg-header);
  color: var(--text-on-dark);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.app-download::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(107, 76, 255, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.app-download::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.1) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

.app-download h2 {
  color: var(--text-on-dark);
  border-left: none;
  position: relative;
  z-index: 1;
}

.app-download p {
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

/* ===== 按钮组 ===== */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.btn {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 0.8rem 2.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  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::before {
  left: 100%;
}

.btn:hover {
  background: var(--primary-light);
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 76, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  background: var(--text-on-dark);
  color: var(--text-primary);
  border-color: var(--text-on-dark);
}

/* ===== 评论区 ===== */
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.comment-item {
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: 50px 20px 20px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  position: relative;
}

.comment-item:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.comment-item strong {
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.8rem;
}

.comment-item span {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.comment-item p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

@media (max-width: 900px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
}

aside {
  background: var(--bg-secondary);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 100px;
  height: fit-content;
  transition: background-color 0.3s ease;
}

aside h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  position: relative;
}

aside h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

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

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

.rank-list li:hover {
  padding-left: 0.5rem;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

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

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: 2rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 76, 255, 0.5), transparent);
}

.footer a {
  color: #B9A8FF;
  position: relative;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(107, 76, 255, 0.5);
}

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

.footer-links a {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.8;
}

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

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(5deg);
  }
  50% {
    transform: translate(0, -20px) rotate(-5deg);
  }
  75% {
    transform: translate(-10px, -10px) rotate(3deg);
  }
}

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

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

/* ===== 滚动动画 ===== */
@media (prefers-reduced-motion: no-preference) {
  .anime-card,
  .character-card,
  .feature-item,
  .comment-item,
  .detail-box {
    animation: fadeInUp 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    justify-content: center;
    gap: 0.3rem;
  }

  nav ul li a {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .anime-card img {
    height: 180px;
  }

  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .character-card img {
    width: 100px;
    height: 100px;
  }

  .platform-feature {
    grid-template-columns: 1fr;
  }

  .detail-box {
    padding: 1.5rem;
  }

  .app-download {
    padding: 2rem 1.5rem;
  }

  .btn {
    padding: 0.7rem 1.8rem;
  }

  .footer-links {
    gap: 1rem;
  }

  aside {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

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

  .anime-card img {
    height: 160px;
  }

  .anime-info {
    padding: 0.8rem;
  }

  .anime-info h3 {
    font-size: 1rem;
  }

  .anime-info p {
    font-size: 0.8rem;
  }

  .comments-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ===== 打印样式 ===== */
@media print {
  header,
  footer,
  .app-download,
  .btn-group,
  .comments-grid {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .anime-card,
  .character-card,
  .detail-box,
  .feature-item {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

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

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

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

.flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

/* ===== 分割线 ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 2rem 0;
}

/* ===== 高亮文本 ===== */
.highlight {
  background: linear-gradient(120deg, rgba(107, 76, 255, 0.1) 0%, rgba(107, 76, 255, 0.05) 100%);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ===== 评分样式 ===== */
.rating {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.rating::before {
  content: '★ ';
  color: var(--accent);
}

/* ===== 状态标签 ===== */
.status-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.status-tag.ongoing {
  background: rgba(245, 185, 66, 0.2);
  color: var(--accent);
}

.status-tag.completed {
  background: rgba(107, 76, 255, 0.2);
  color: var(--primary);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

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

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

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

/* ===== 提示框 ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== 顶部进度条 ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9998;
  transition: width 0.2s ease;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(107, 76, 255, 0.4);
}

/* ===== 暗色模式切换按钮 ===== */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-on-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

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

/* ===== 搜索框 ===== */
.search-box {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 76, 255, 0.1);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.5;
}

/* ===== 分类标签 ===== */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-tag {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.category-tag.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  min-width: 42px;
  text-align: center;
}

.page-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
}

/* ===== 通知横幅 ===== */
.notification-banner {
  background: var(--gradient-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeInUp 0.5s ease;
}

.notification-banner .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.notification-banner .close-btn:hover {
  opacity: 1;
}

/* ===== 卡片角标 ===== */
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--text-primary);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 185, 66, 0.3);
  z-index: 2;
}

.card-badge.hot {
  background: #FF6B6B;
  color: white;
}

.card-badge.new {
  background: var(--primary);
  color: white;
}

/* ===== 渐变文字 ===== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== 毛玻璃效果 ===== */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* ===== 悬浮提示 ===== */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== 骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-light) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== 响应式调整 ===== */
@media (max-width: 1024px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .notification-banner {
    flex-direction: column;
    text-align: center;
  }

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

/* ===== 暗色模式适配 ===== */
[data-theme="dark"] .anime-card,
[data-theme="dark"] .character-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .comment-item,
[data-theme="dark"] .detail-box {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .anime-card:hover,
[data-theme="dark"] .character-card:hover,
[data-theme="dark"] .feature-item:hover,
[data-theme="dark"] .comment-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .badge {
  box-shadow: 0 2px 8px rgba(107, 76, 255, 0.2);
}

[data-theme="dark"] .app-download {
  background: linear-gradient(145deg, #2D2D44 0%, #1A1A2E 100%);
}

[data-theme="dark"] .footer {
  background: linear-gradient(145deg, #2D2D44 0%, #1A1A2E 100%);
}

/* ===== 打印样式优化 ===== */
@media print {
  .anime-card,
  .character-card,
  .feature-item,
  .comment-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ===== 最终确保所有元素都有过渡 ===== */
* {
  transition-property: background-color, color, border-color, box-shadow, transform, opacity;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}
```