```css
/* ==========================================
   紫漫星球 - 漫画平台样式表
   风格：暗色科技 + 紫罗兰渐变 + 毛玻璃
   响应式 + 暗色模式 + 动画
   ========================================== */

/* ---------- CSS 变量与主题 ---------- */
:root {
  /* 主色板 */
  --primary: #7b2ff7;
  --primary-light: #9d5cff;
  --primary-dark: #5b1fd4;
  --accent: #e91e63;
  --accent-light: #ff5c8a;
  --gold: #ffd700;
  --bg: #0d0b14;
  --bg-soft: #15121f;
  --bg-card: rgba(30, 26, 45, 0.7);
  --bg-glass: rgba(20, 16, 35, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --text: #e8e6f0;
  --text-muted: #9a94b0;
  --text-dim: #6f6a85;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 40px rgba(123, 47, 247, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 亮色模式（自动切换） */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f2fa;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.12);
    --text: #1a1625;
    --text-muted: #5a5470;
    --text-dim: #8a849e;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 40px rgba(123, 47, 247, 0.15);
  }
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(123, 47, 247, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(233, 30, 99, 0.05), transparent 40%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

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

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

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

nav h1 {
  font-size: 1.5rem;
  margin-right: auto;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  transition: var(--transition);
  color: var(--text-muted);
  position: relative;
}

nav a:hover {
  color: var(--text);
  background: rgba(123, 47, 247, 0.15);
  transform: translateY(-2px);
}

/* ---------- 主容器 ---------- */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.6s ease both;
}

/* ---------- 热门漫画区域 ---------- */
#hot > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

#hot article {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  animation: fadeInUp 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
  box-shadow: var(--shadow);
}

#hot article:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

#hot article img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#hot article:hover img {
  transform: scale(1.05);
}

#hot article h3 {
  font-size: 1.05rem;
  padding: 0.8rem 0.8rem 0.2rem;
  color: var(--text);
}

#hot article p {
  padding: 0 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

#hot article p:last-child {
  padding-bottom: 0.8rem;
}

#hot article p:nth-of-type(5) {
  color: var(--primary-light);
  font-weight: 600;
}

/* ---------- 精品推荐 ---------- */
#featured > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

#featured article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

#featured article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(123, 47, 247, 0.2);
  border-color: var(--accent);
}

#featured article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

#featured article:hover img {
  transform: scale(1.04);
}

#featured article h3 {
  padding: 1rem 1rem 0.3rem;
  font-size: 1.2rem;
  color: var(--text);
}

#featured article p {
  padding: 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

#featured article p:first-of-type {
  color: var(--text-dim);
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 0.8rem;
  margin: 0.5rem 1rem;
}

/* ---------- 漫画详细介绍 ---------- */
#detail article {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

#detail article:hover {
  border-color: var(--primary-light);
}

#detail img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#detail h3 {
  font-size: 1.3rem;
  margin-top: 1.2rem;
  color: var(--primary-light);
}

#detail p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* ---------- 角色介绍 ---------- */
#characters > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

#characters article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

#characters article:hover {
  transform: translateY(-5px) rotateY(2deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

#characters img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary);
  transition: transform 0.4s ease;
}

#characters article:hover img {
  transform: scale(1.08) rotate(5deg);
}

#characters h3 {
  font-size: 1.2rem;
  color: var(--text);
}

#characters p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

#characters p:first-of-type {
  color: var(--primary-light);
  font-weight: 600;
}

/* ---------- 平台介绍 ---------- */
#platform article {
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(233, 30, 99, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

#platform p {
  font-size: 1rem;
  line-height: 1.8;
}

#platform p:first-of-type {
  font-size: 1.1rem;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

/* ---------- APP下载 ---------- */
#app article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

#app article::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.1), transparent 60%);
  animation: rotate 20s linear infinite;
}

#app p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

#app button {
  position: relative;
  z-index: 1;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#app button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(123, 47, 247, 0.4);
}

#app button:active {
  transform: scale(0.96);
}

#app button:nth-of-type(1) {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

#app button:nth-of-type(2) {
  background: linear-gradient(135deg, #444, #222);
}

#app button:nth-of-type(3) {
  background: linear-gradient(135deg, var(--accent), #c2185b);
}

/* ---------- 用户评论 ---------- */
#reviews > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

#reviews p {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#reviews p:hover {
  transform: translateX(5px);
  border-color: var(--primary-light);
  background: rgba(123, 47, 247, 0.1);
}

/* ---------- 侧边栏 ---------- */
aside {
  float: right;
  width: 300px;
  margin-left: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

aside h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--primary-light);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

aside ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

aside ul li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

aside ul li:hover {
  color: var(--text);
  padding-left: 5px;
}

aside p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  background: var(--bg-soft);
  clear: both;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

footer a {
  padding: 0 0.3rem;
  font-size: 0.9rem;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  aside {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 2rem;
  }

  #detail article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.6rem 1rem;
  }

  nav {
    gap: 0.5rem;
  }

  nav h1 {
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: 0.3rem;
  }

  nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  #hot > div {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
  }

  #hot article img {
    height: 180px;
  }

  #featured > div {
    grid-template-columns: 1fr;
  }

  #characters > div {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  #characters img {
    width: 120px;
    height: 120px;
  }

  #detail article {
    padding: 1rem;
  }

  #app button {
    display: block;
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  #reviews > div {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  #hot > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  #hot article img {
    height: 150px;
  }

  #hot article p {
    font-size: 0.75rem;
  }

  #hot article h3 {
    font-size: 0.9rem;
  }

  nav a {
    font-size: 0.75rem;
  }
}

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

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

/* 滚动动画 - 使用 Intersection Observer 配合 */
section {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }
section:nth-of-type(7) { animation-delay: 0.7s; }

/* 为每个卡片设置延迟 - 使用 CSS 变量 */
#hot article:nth-child(1) { --i: 1; }
#hot article:nth-child(2) { --i: 2; }
#hot article:nth-child(3) { --i: 3; }
#hot article:nth-child(4) { --i: 4; }
#hot article:nth-child(5) { --i: 5; }
#hot article:nth-child(6) { --i: 6; }
#hot article:nth-child(7) { --i: 7; }
#hot article:nth-child(8) { --i: 8; }
#hot article:nth-child(9) { --i: 9; }
#hot article:nth-child(10) { --i: 10; }
#hot article:nth-child(11) { --i: 11; }
#hot article:nth-child(12) { --i: 12; }
#hot article:nth-child(13) { --i: 13; }
#hot article:nth-child(14) { --i: 14; }

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

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

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

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

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

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

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
```