```css
/* ========== 51动漫 全局样式 ========== */
:root {
  --primary: #6B4CFF;
  --primary-light: #8B6CFF;
  --primary-dark: #4A2CD8;
  --accent: #FF6B9D;
  --accent-gold: #FFD700;
  --bg: #F8F4FF;
  --bg-dark: #12121F;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --surface-glass-dark: rgba(26, 26, 46, 0.75);
  --text: #1A1A2E;
  --text-secondary: #2D2D44;
  --text-muted: #5A5A72;
  --border: #E4D9FF;
  --border-light: rgba(107, 76, 255, 0.15);
  --shadow-sm: 0 4px 12px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 20px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 26, 46, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 40px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* 暗色模式变量 */
  --bg-rgb: 248, 244, 255;
  --surface-rgb: 255, 255, 255;
  --text-rgb: 26, 26, 46;
}

/* 暗色模式覆盖 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F1A;
    --surface: #1A1A2E;
    --surface-glass: rgba(26, 26, 46, 0.75);
    --text: #F5F0FF;
    --text-secondary: #D0C8F0;
    --text-muted: #9A94B8;
    --border: #2D2D44;
    --border-light: rgba(139, 108, 255, 0.2);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --bg-rgb: 15, 15, 26;
    --surface-rgb: 26, 26, 46;
    --text-rgb: 245, 240, 255;
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ========== 头部 ========== */
header {
  background: linear-gradient(145deg, #1A1A2E, #2D2D44);
  padding: 1rem 0;
  border-bottom: 3px solid var(--primary);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(107, 76, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

h1 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(107, 76, 255, 0.4);
  background: linear-gradient(135deg, #FFFFFF, #E4D9FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideDown 0.6s ease;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

nav a {
  color: #F5F0FF;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: all var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

nav a:hover {
  color: #FFFFFF;
  border-bottom-color: transparent;
}

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

/* ========== 主内容网格 ========== */
main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  margin: 2rem 0;
  animation: fadeSlideUp 0.6s ease;
}

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

/* ========== 卡片区块 ========== */
section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  animation: fadeSlideUp 0.6s ease;
}

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

h2 {
  color: var(--text);
  border-left: 6px solid var(--primary);
  padding-left: 1rem;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: fadeSlideRight 0.6s ease;
}

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

h3 {
  color: var(--text-secondary);
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
}

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

.anime-item, .character-item {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.6s ease;
}

.anime-item::before, .character-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  transition: left 0.6s ease;
}

.anime-item:hover::before, .character-item:hover::before {
  left: 100%;
}

.anime-item:hover, .character-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
  background: var(--surface);
}

.anime-item img, .character-item img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--border);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.anime-item:hover img, .character-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.badge {
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  display: inline-block;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(107, 76, 255, 0.3);
}

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

.rating {
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.rating::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

.rating:hover::after {
  width: 100%;
}

/* ========== 侧边栏 ========== */
.sidebar-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  animation: fadeSlideLeft 0.6s ease;
}

.sidebar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sidebar-card h3 {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  position: relative;
}

.sidebar-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.rank-list, .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-list li, .comment-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  padding-left: 0.5rem;
}

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

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  margin: 0.5rem 0.5rem 0 0;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(107, 76, 255, 0.3);
  border: none;
  cursor: pointer;
}

.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: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 76, 255, 0.4);
  color: #FFFFFF;
  text-decoration: none;
}

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

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(107, 76, 255, 0.3);
}

/* ========== 页脚 ========== */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--bg-dark);
  color: #F5F0FF;
  padding: 2rem 20px;
  margin-top: 2rem;
}

.footer-links a {
  color: #F5F0FF;
  text-decoration: underline;
  transition: all var(--transition);
}

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

.legal {
  background: #12121f;
  color: #c9c9ee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(107, 76, 255, 0.2);
}

/* ========== 评论卡片 ========== */
.comment-item {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.8rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.comment-item:hover {
  background: var(--surface);
  border-color: var(--border-light);
  transform: translateX(4px);
}

.comment-item strong {
  color: var(--primary);
}

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

/* ========== 统计网格 ========== */
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.stat-item {
  background: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  cursor: default;
}

.stat-item:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* ========== 辅助样式 ========== */
.meta-desc {
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight {
  background: var(--bg);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

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

@media (prefers-color-scheme: dark) {
  .glass {
    background: var(--surface-glass-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

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

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

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

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

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

/* 滚动动画触发（配合JS使用，无JS时自动播放） */
@media (prefers-reduced-motion: no-preference) {
  .anime-item, .character-item, .sidebar-card, section {
    animation: fadeSlideUp 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ========== 响应式布局 ========== */
@media (max-width: 1200px) {
  .wrapper {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  
  .logo-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
    width: 100%;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .grid-card {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .wrapper {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 1.2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .grid-card {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
  }
  
  .anime-item, .character-item {
    padding: 0.6rem;
  }
  
  .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin: 0.3rem 0;
  }
  
  .footer-links {
    gap: 1rem;
    padding: 1.5rem 15px;
  }
  
  .stat-grid {
    gap: 0.8rem;
  }
  
  .stat-item {
    font-size: 0.8rem;
  }
}

/* ========== 暗色模式优化 ========== */
@media (prefers-color-scheme: dark) {
  header {
    background: linear-gradient(145deg, #0F0F1A, #1A1A2E);
  }
  
  h1 {
    background: linear-gradient(135deg, #FFFFFF, #B8A5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .anime-item, .character-item {
    background: rgba(255, 255, 255, 0.03);
  }
  
  .comment-item {
    background: rgba(255, 255, 255, 0.03);
  }
  
  .stat-item {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .badge {
    background: var(--primary-light);
    box-shadow: 0 2px 12px rgba(139, 108, 255, 0.3);
  }
  
  .footer-links {
    background: #0F0F1A;
  }
  
  .legal {
    background: #0A0A12;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* ========== 选中样式 ========== */
::selection {
  background: var(--primary);
  color: #FFFFFF;
}

/* ========== 焦点样式 ========== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== 打印样式 ========== */
@media print {
  header, footer, aside, .btn {
    display: none;
  }
  
  main {
    grid-template-columns: 1fr;
  }
  
  section {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
```