```css
/* ============================================
   西瓜影院动漫站 - 完整样式表
   风格：梦幻紫罗兰 + 赛博渐变 + 毛玻璃
   ============================================ */

/* ---------- CSS 变量与主题 ---------- */
:root {
  --primary: #7C5CFC;
  --primary-light: #A78BFA;
  --primary-dark: #4A4AF0;
  --accent: #FF6B9D;
  --accent-light: #FFA6C9;
  --bg-main: #F8F4FF;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-header: rgba(255, 255, 255, 0.8);
  --text-main: #1A1A2E;
  --text-sub: #2D2D44;
  --text-muted: #6B7280;
  --tag-bg: rgba(124, 92, 252, 0.12);
  --tag-text: var(--primary);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --gradient-main: linear-gradient(135deg, #7C5CFC 0%, #4A4AF0 50%, #FF6B9D 100%);
  --gradient-banner: linear-gradient(135deg, rgba(124, 92, 252, 0.95) 0%, rgba(74, 74, 240, 0.9) 50%, rgba(255, 107, 157, 0.85) 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.5);
  --font-size-sm: 0.85rem;
  --font-size-base: 0.95rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.5rem;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #0F0A1E;
    --bg-card: rgba(30, 20, 50, 0.75);
    --bg-header: rgba(15, 10, 30, 0.85);
    --text-main: #F3F4F6;
    --text-sub: #D1D5DB;
    --text-muted: #9CA3AF;
    --tag-bg: rgba(167, 139, 250, 0.15);
    --tag-text: var(--primary-light);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(30, 20, 50, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #6D28D9 0%, #4C1D95 50%, #BE185D 100%);
    --gradient-banner: linear-gradient(135deg, rgba(109, 40, 217, 0.95) 0%, rgba(76, 29, 149, 0.9) 50%, rgba(190, 24, 93, 0.85) 100%);
  }
}

/* ---------- 基础重置与全局 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  font-size: var(--font-size-base);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

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

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

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

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

/* ---------- 容器与布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 头部 Header ---------- */
header {
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.logo h1 {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: transform var(--transition-base);
}

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

/* 导航 */
nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: var(--text-sub);
  font-weight: 500;
  font-size: var(--font-size-base);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition-base);
  position: relative;
  background: transparent;
}

nav a:hover {
  color: var(--primary);
  background: var(--tag-bg);
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: width var(--transition-base);
}

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

/* ---------- 主内容区 ---------- */
main {
  padding: 40px 0;
}

/* 区块标题 */
.section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-main);
  margin: 50px 0 24px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 3px;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-sub);
  margin: 30px 0 15px;
  font-weight: 500;
}

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

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--glass-border);
  position: relative;
  animation: fadeInUp 0.6s ease both;
}

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

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 16px;
  position: relative;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  transition: color var(--transition-base);
}

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

.card-body p {
  font-size: var(--font-size-sm);
  color: var(--text-sub);
  margin-bottom: 4px;
  line-height: 1.5;
}

/* 标签 */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 6px;
  margin-top: 8px;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.3);
}

/* ---------- 详情区块 ---------- */
.detail-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: var(--border-radius);
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

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

.detail-section h3 {
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: var(--font-size-lg);
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.detail-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.detail-section p {
  color: var(--text-sub);
  margin-bottom: 16px;
  text-indent: 2em;
  line-height: 1.8;
  font-size: var(--font-size-base);
}

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

.character-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease both;
}

.character-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.character-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--primary-light);
  padding: 3px;
  background: var(--bg-main);
  transition: all var(--transition-base);
}

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

.character-card h4 {
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.character-card p {
  font-size: var(--font-size-sm);
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 4px;
}

/* ---------- APP 下载区块 ---------- */
.app-download {
  background: var(--gradient-banner);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  color: #FFFFFF;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(124, 92, 252, 0.3);
}

.app-download::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}

.app-download h2 {
  color: #FFFFFF;
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.app-download p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* 按钮 */
.btn {
  display: inline-block;
  background: #FFFFFF;
  color: var(--primary-dark);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin: 6px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}

.btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124, 92, 252, 0.4);
  border-color: #fff;
}

.btn:active {
  transform: translateY(-1px);
}

/* ---------- 评论卡片 ---------- */
.comment-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease both;
}

.comment-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.comment-card .user {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: var(--font-size-base);
}

.comment-card .time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.comment-card .content {
  color: var(--text-sub);
  line-height: 1.7;
}

/* ---------- 侧边栏 ---------- */
aside {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: var(--border-radius);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

aside:hover {
  box-shadow: var(--shadow-md);
}

aside h3 {
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: var(--font-size-lg);
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

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

aside ul {
  list-style: none;
}

aside li {
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-sub);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  cursor: default;
}

aside li:hover {
  color: var(--primary);
  padding-left: 8px;
}

aside li:last-child {
  border-bottom: none;
}

/* ---------- 页脚 ---------- */
footer {
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--glass-border);
}

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

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--primary);
  background: var(--tag-bg);
  text-decoration: none;
}

.copyright {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  text-align: center;
  line-height: 1.8;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
}

.legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
}

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

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

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

/* 滚动动画 - 使用 Intersection Observer 实现 */
.card, .character-card, .comment-card, .detail-section, aside {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.card.visible, .character-card.visible, .comment-card.visible, .detail-section.visible, aside.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
/* 平板 */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* 手机 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  nav ul {
    justify-content: center;
    gap: 4px;
  }
  
  nav a {
    padding: 6px 10px;
    font-size: var(--font-size-sm);
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .detail-section {
    padding: 24px;
  }
  
  .app-download {
    padding: 40px 20px;
  }
  
  .app-download h2 {
    font-size: 1.5rem;
  }
  
  .app-download p {
    font-size: var(--font-size-base);
  }
  
  .btn {
    padding: 12px 24px;
    font-size: var(--font-size-base);
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 8px auto;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .character-card img {
    width: 100px;
    height: 100px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .comment-card {
    padding: 16px;
  }
  
  .footer-links {
    gap: 12px;
  }
  
  .legal {
    gap: 12px;
  }
}

/* 超小屏幕 */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .card-body {
    padding: 12px;
  }
  
  .card-body h3 {
    font-size: 0.9rem;
  }
  
  .card-body p {
    font-size: 0.75rem;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  
  .detail-section {
    padding: 16px;
  }
  
  .detail-section p {
    font-size: var(--font-size-sm);
  }
  
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .character-card {
    padding: 12px;
  }
  
  .character-card img {
    width: 80px;
    height: 80px;
  }
  
  .app-download {
    padding: 30px 16px;
  }
  
  .app-download h2 {
    font-size: 1.3rem;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  header, footer, .app-download, .btn {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .card, .character-card, .comment-card, .detail-section, aside {
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }
}

/* ---------- 无障碍与辅助功能 ---------- */
@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;
  }
  
  .card, .character-card, .comment-card, .detail-section, aside {
    opacity: 1;
    transform: none;
  }
}

/* 焦点可见性 */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 选中文本样式 */
::selection {
  background: var(--primary);
  color: #fff;
}

/* 链接下划线动画 */
a:not(.btn):not(nav a) {
  background-image: linear-gradient(transparent 90%, var(--primary) 90%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.3s ease;
}

a:not(.btn):not(nav a):hover {
  background-size: 100% 100%;
}

/* 卡片图片加载动画 */
.card img {
  background: linear-gradient(90deg, var(--tag-bg) 25%, var(--glass-bg) 50%, var(--tag-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* 图片加载完成后移除动画 */
.card img.loaded {
  animation: none;
  background: none;
}

/* 顶部渐变条 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  z-index: 2000;
}

/* 回到顶部按钮（纯CSS实现） */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  border: none;
  z-index: 999;
}

.back-to-top::before {
  content: '↑';
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-main);
  z-index: 2001;
  transition: width 0.1s ease;
}

/* 暗色模式下的额外优化 */
@media (prefers-color-scheme: dark) {
  .card img {
    filter: brightness(0.9);
  }
  
  .card:hover img {
    filter: brightness(1);
  }
  
  .btn {
    background: var(--primary);
    color: #fff;
  }
  
  .btn:hover {
    background: var(--primary-light);
  }
}

/* 高对比度支持 */
@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }
  
  .tag {
    border: 1px solid ButtonText;
  }
}

/* 结尾：确保所有元素都有平滑过渡 */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
```