```css
/* ===== 糖心视频 - 全站样式表 ===== */
/* 设计语言：暗色紫调 · 玻璃拟态 · 渐变光感 */
/* 支持暗色模式 · 响应式布局 · 滚动动画 */

/* ---------- 基础重置与全局变量 ---------- */
:root {
  --bg-primary: #0a0a18;
  --bg-secondary: #14142a;
  --bg-card: rgba(26, 26, 53, 0.6);
  --bg-glass: rgba(20, 20, 46, 0.55);
  --border-color: rgba(45, 45, 85, 0.6);
  --border-hover: #8b5cf6;
  --text-primary: #f0f0ff;
  --text-secondary: #d0d0e8;
  --text-muted: #8888aa;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-gradient: linear-gradient(145deg, #7c3aed, #6d28d9);
  --accent-gradient-hover: linear-gradient(145deg, #8b5cf6, #7c3aed);
  --shadow-accent: 0 8px 20px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ---------- 全局重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), #4c1d95);
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* ---------- 通用工具类 ---------- */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* ---------- 头部导航 ---------- */
header {
  background: rgba(13, 13, 32, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-smooth);
}

header.scrolled {
  padding: 12px 0;
  background: rgba(13, 13, 32, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo h1 {
  font-size: 2.2rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 1px;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform var(--transition-fast);
}

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

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
  font-size: 1rem;
  position: relative;
  padding: 4px 0;
}

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

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

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

nav a.active {
  color: var(--accent);
  font-weight: 600;
}

nav a.active::after {
  width: 100%;
}

/* ---------- 主内容区 ---------- */
main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
}

.content-left {
  flex: 2 1 600px;
  min-width: 300px;
}

.sidebar-right {
  flex: 1 1 280px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px 20px;
  height: fit-content;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: sticky;
  top: 100px;
  transition: all var(--transition-smooth);
}

.sidebar-right:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

/* ---------- 通用区块样式 ---------- */
section {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

section:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.1);
}

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

h2 {
  font-size: 1.9rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  border-left: 6px solid var(--accent);
  padding-left: 18px;
  position: relative;
  overflow: hidden;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

section:hover h2::after {
  transform: scaleX(1);
}

h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 20px 0 12px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

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

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  object-fit: cover;
}

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

.card h3 {
  font-size: 1.2rem;
  margin: 12px 0 6px;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.card:hover h3 {
  color: var(--accent-light);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 5px 0;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  background: rgba(45, 45, 85, 0.8);
  color: var(--accent-light);
  padding: 3px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 6px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.badge:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ---------- 文章详情 ---------- */
.article-detail {
  background: transparent;
  padding: 10px 0;
}

.article-detail p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-detail p:first-of-type::first-letter {
  font-size: 3em;
  float: left;
  margin-right: 8px;
  color: var(--accent);
  font-weight: bold;
  line-height: 1;
}

.article-detail h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.article-detail h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
}

/* ---------- 角色卡片 ---------- */
.char-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  align-items: center;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.char-card:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
  box-shadow: -5px 5px 20px rgba(139, 92, 246, 0.15);
}

.char-card img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--accent);
  transition: all var(--transition-smooth);
  flex-shrink: 0;
}

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

.char-info h4 {
  color: var(--accent-light);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.char-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- 按钮样式 ---------- */
.btn-group {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-btn {
  display: inline-block;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  margin: 10px 10px 10px 0;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: none;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

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

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

.download-btn:hover {
  background: var(--accent-gradient-hover);
  color: white;
  box-shadow: var(--shadow-accent);
  transform: translateY(-3px);
}

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

/* ---------- 评论盒子 ---------- */
.comment-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  transition: all var(--transition-smooth);
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

.comment-box:nth-child(1) { animation-delay: 0.1s; }
.comment-box:nth-child(2) { animation-delay: 0.2s; }
.comment-box:nth-child(3) { animation-delay: 0.3s; }
.comment-box:nth-child(4) { animation-delay: 0.4s; }
.comment-box:nth-child(5) { animation-delay: 0.5s; }
.comment-box:nth-child(6) { animation-delay: 0.6s; }
.comment-box:nth-child(7) { animation-delay: 0.7s; }
.comment-box:nth-child(8) { animation-delay: 0.8s; }
.comment-box:nth-child(9) { animation-delay: 0.9s; }
.comment-box:nth-child(10) { animation-delay: 1s; }
.comment-box:nth-child(11) { animation-delay: 1.1s; }
.comment-box:nth-child(12) { animation-delay: 1.2s; }

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

.comment-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.1);
}

.comment-user {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 1.05rem;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 15px;
}

.comment-box p {
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- 侧边栏 ---------- */
.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  color: var(--text-primary);
  margin-bottom: 15px;
  position: relative;
}

.sidebar-section h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-smooth);
}

.sidebar-section:hover h3::after {
  width: 80px;
}

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

.rank-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(28, 28, 62, 0.6);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  border-radius: 8px;
}

.rank-list li:hover {
  background: rgba(139, 92, 246, 0.1);
  padding-left: 15px;
  color: var(--accent-light);
}

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

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

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

/* ---------- 底部链接 ---------- */
.footer-links {
  background: rgba(10, 10, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.footer-links a {
  color: var(--accent-light);
  margin: 0 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 4px 8px;
  border-radius: 6px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.copyright {
  color: var(--text-muted);
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(28, 28, 62, 0.6);
}

/* ---------- 统计信息 ---------- */
.sidebar-section p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sidebar-section strong {
  color: var(--text-primary);
  font-size: 1.1em;
}

/* ---------- 动画与交互增强 ---------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

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

/* 滚动进入动画 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 800px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav ul {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  main {
    flex-direction: column;
  }
  
  .sidebar-right {
    position: static;
    width: 100%;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
  
  section {
    padding: 20px 16px;
    border-radius: 20px;
  }
  
  .char-card {
    flex-direction: column;
    text-align: center;
  }
  
  .char-card img {
    width: 100px;
    height: 100px;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .download-btn {
    text-align: center;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 12px;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  nav ul {
    gap: 8px;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 12px;
  }
  
  .card h3 {
    font-size: 1rem;
  }
  
  .comment-time {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
  
  .footer-links a {
    display: inline-block;
    margin: 5px;
  }
}

/* ---------- 暗色模式增强 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #05050f;
    --bg-secondary: #0f0f20;
    --bg-card: rgba(20, 20, 40, 0.7);
    --bg-glass: rgba(15, 15, 35, 0.6);
  }
  
  .card:hover {
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  header, footer, .sidebar-right, .btn-group {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  section {
    border: none;
    background: none;
    padding: 10px 0;
  }
  
  h2, h3 {
    color: black;
  }
}

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

/* ---------- 焦点可见性 ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 选中样式 ---------- */
::selection {
  background: var(--accent);
  color: white;
}

/* ---------- 卡片图片占位背景 ---------- */
.card img {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(45, 45, 85, 0.3));
  min-height: 100px;
}

/* ---------- 侧边栏统计强化 ---------- */
.sidebar-section p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(28, 28, 62, 0.3);
}

.sidebar-section p:last-child {
  border-bottom: none;
}

/* ---------- 底部链接区域强化 ---------- */
.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: var(--accent);
}

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

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  z-index: 1500;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

/* ---------- 加载动画 ---------- */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ---------- 工具提示 ---------- */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: 120%;
}

/* ---------- 响应式字体 ---------- */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
}

/* ---------- 性能优化 ---------- */
img {
  content-visibility: auto;
  contain: content;
}

.card, .char-card, .comment-box {
  contain: layout paint style;
  will-change: transform;
}
```