```css
/* ===== 51视频 深紫星河主题 v2.0 ===== */
/* 基础重置与全局变量 */
:root {
  --bg-primary: #0a0a18;
  --bg-secondary: #14142a;
  --bg-card: rgba(28, 28, 58, 0.75);
  --bg-card-solid: #1c1c3a;
  --bg-sidebar: rgba(20, 20, 46, 0.85);
  --bg-comment: rgba(26, 26, 53, 0.8);
  --border-color: rgba(45, 45, 85, 0.6);
  --border-hover: #7c3aed;
  --text-primary: #f0f0ff;
  --text-secondary: #b0b0d0;
  --text-muted: #8888aa;
  --accent: #8b5cf6;
  --accent-light: #c4b5fd;
  --accent-dark: #6d28d9;
  --gradient-primary: linear-gradient(145deg, #7c3aed, #6d28d9);
  --gradient-hover: linear-gradient(145deg, #8b5cf6, #7c3aed);
  --gradient-banner: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(109, 40, 217, 0.05) 50%, rgba(139, 92, 246, 0.1) 100%);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(124, 58, 237, 0.25);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #06060f;
    --bg-secondary: #0f0f22;
    --bg-card: rgba(22, 22, 48, 0.8);
    --bg-card-solid: #161630;
    --bg-sidebar: rgba(16, 16, 38, 0.9);
    --bg-comment: rgba(20, 20, 42, 0.85);
    --border-color: rgba(60, 60, 110, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #c0c0e0;
    --text-muted: #8888bb;
  }
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* 背景装饰 - 星云效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(109, 40, 217, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* 链接 */
a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* 标题 */
h1, h2, h3 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  margin: 2rem 0 0.5rem;
  background: linear-gradient(135deg, #f0f0ff 0%, #c4b5fd 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease-out;
}

h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
  border-left: 6px solid var(--accent);
  padding-left: 1rem;
  position: relative;
  animation: fadeInLeft 0.6s ease-out;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 1rem;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

section:hover h2::after {
  opacity: 1;
}

h3 {
  font-size: 1.5rem;
  margin: 1.8rem 0 0.8rem;
}

/* 图片 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  background: #1e1e3a;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* 导航栏 */
.nav {
  background: rgba(13, 13, 32, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease-out;
}

.nav-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

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

.nav-links a {
  color: #d0d0e8;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

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

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

.nav-links a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

/* 卡片 */
.grid-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.grid-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.grid-card img {
  transition: transform 0.4s ease;
}

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

/* 网格布局 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* 徽章 */
.badge {
  background: rgba(46, 46, 90, 0.8);
  color: var(--accent-light);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  backdrop-filter: blur(5px);
}

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

.btn {
  padding: 0.9rem 2.2rem;
  border-radius: 60px;
  font-weight: 600;
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.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(--gradient-hover);
  color: white;
  text-decoration: none;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

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

/* 侧边栏 */
.sidebar {
  background: var(--bg-sidebar);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  animation: fadeInRight 0.6s ease-out;
}

.sidebar h3 {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

/* 评论 */
.comment-box {
  background: var(--bg-comment);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: border-color var(--transition), transform var(--transition);
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.comment-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.comment-author {
  color: var(--accent-light);
  font-weight: 600;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* 页脚 */
footer {
  background: rgba(10, 10, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.footer-links a {
  color: var(--accent-light);
  margin-right: 1.5rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 统计 */
.stat-box {
  background: rgba(24, 24, 53, 0.8);
  backdrop-filter: blur(5px);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  transition: background var(--transition);
}

.stat-box:hover {
  background: rgba(30, 30, 60, 0.9);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 平台介绍 */
.platform-desc {
  background: var(--bg-sidebar);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.8s ease-out;
}

/* 角色卡片 */
.character-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--accent);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.character-card:hover img {
  transform: scale(1.05) rotate(5deg);
  border-color: var(--accent-light);
}

/* 漫画封面 */
.comic-cover {
  width: 220px;
  height: 310px;
  object-fit: cover;
}

.wide-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

/* 区域 */
section {
  margin: 3rem 0;
  position: relative;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.role-desc {
  color: var(--text-secondary);
}

/* 渐变Banner效果 */
.platform-desc {
  background: var(--gradient-banner), var(--bg-sidebar);
  position: relative;
  overflow: hidden;
}

.platform-desc::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* 滚动动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* 滚动动画 - 使用IntersectionObserver的替代方案 */
@media (prefers-reduced-motion: no-preference) {
  .grid-card:nth-child(2n) {
    animation-delay: 0.1s;
  }
  .grid-card:nth-child(3n) {
    animation-delay: 0.2s;
  }
  .grid-card:nth-child(4n) {
    animation-delay: 0.3s;
  }
  .comment-box:nth-child(2n) {
    animation-delay: 0.1s;
  }
  .comment-box:nth-child(3n) {
    animation-delay: 0.2s;
  }
  .comment-box:nth-child(4n) {
    animation-delay: 0.3s;
  }
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-grid {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav-links {
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  /* 侧边栏在移动端变为全宽 */
  div[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  .sidebar {
    margin-top: 2rem;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
  }
  
  .character-card img {
    width: 150px;
    height: 150px;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .footer-links a {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-card {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-links {
    font-size: 0.8rem;
    gap: 0.8rem;
  }
  
  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
  
  .platform-desc {
    padding: 1.5rem;
  }
  
  .sidebar {
    padding: 1.2rem;
  }
}

/* 打印样式 */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .nav,
  footer,
  .btn-group {
    display: none;
  }
  
  .container {
    max-width: 100%;
  }
}

/* 无障碍 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, #7c3aed, #6d28d9);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(145deg, #8b5cf6, #7c3aed);
}

/* 选中文本样式 */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}
```