/* ===== momo漫画 全站样式 — 暗色主题 / 毛玻璃 / 渐变 / 响应式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0a0a18;
  --bg-dark: #14142a;
  --bg-card: rgba(26, 26, 53, 0.72);
  --bg-soft: #161630;
  --border: rgba(139, 92, 246, 0.18);
  --border-light: rgba(139, 92, 246, 0.28);
  --text-main: #e0e0f0;
  --text-soft: #d0d0e8;
  --text-muted: #8888aa;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-bright: #c4b5fd;
  --gradient-main: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #8b5cf6 100%);
  --gradient-banner: linear-gradient(120deg, rgba(124, 58, 237, 0.28) 0%, rgba(109, 40, 217, 0.12) 40%, rgba(139, 92, 246, 0.28) 100%);
  --glass-bg: rgba(20, 20, 46, 0.6);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕装饰 */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  color: var(--accent-light);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

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

/* ===== 顶部导航 ===== */
header {
  background: rgba(13, 13, 32, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

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

h1.logo {
  font-size: 2.2rem;
  color: #f0f0ff;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

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

nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 1.02rem;
  padding: 8px 14px;
  border-radius: 40px;
  transition: all 0.25s ease;
}

nav a:hover {
  color: var(--accent-bright);
  background: rgba(139, 92, 246, 0.12);
  text-decoration: none;
}

nav a.active {
  color: var(--accent-bright);
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* ===== 主内容 ===== */
main { padding: 36px 0; position: relative; z-index: 1; }

section { margin-bottom: 60px; scroll-margin-top: 90px; }

h2 {
  font-size: 2rem;
  color: #f0f0ff;
  margin-bottom: 28px;
  border-left: 5px solid var(--accent);
  padding-left: 16px;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

h3 {
  font-size: 1.4rem;
  color: #f0f0ff;
  margin: 20px 0 10px;
  letter-spacing: 0.3px;
}

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

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.6s ease backwards;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.18);
  border-color: var(--border-light);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

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

.card-body { padding: 16px 15px; }

.card-title {
  color: #f0f0ff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.card-text {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 5px;
  line-height: 1.5;
}

/* ===== 徽章 ===== */
.badge {
  display: inline-block;
  background: rgba(45, 45, 85, 0.7);
  color: var(--accent-bright);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  margin-right: 6px;
  margin-top: 6px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.badge:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* ===== 按钮 ===== */
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  background: var(--gradient-main);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
  transform: scale(1.04) translateY(-2px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

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

/* ===== 侧边栏布局 ===== */
.sidebar-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
  align-items: start;
}

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

aside {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  aside { position: static; }
}

aside h3 {
  color: #f0f0ff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-top: 0;
  font-size: 1.25rem;
}

aside h3:not(:first-child) { margin-top: 28px; }

.rank-list, .stat-list {
  list-style: none;
  margin-top: 15px;
}

.rank-list li, .stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 11px 4px;
  border-bottom: 1px dashed rgba(139, 92, 246, 0.15);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.rank-list li:hover, .stat-list li:hover {
  background: rgba(139, 92, 246, 0.08);
  padding-left: 10px;
}

.rank-list span:first-child { color: var(--accent-light); font-weight: 500; }

/* ===== 评论卡片 ===== */
.review-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.review-card:hover {
  transform: translateX(6px);
  border-color: var(--border-light);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-name { color: var(--accent-light); font-weight: 700; }

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

.review-content { color: var(--text-main); line-height: 1.6; }

/* ===== 特性块 ===== */
.feature-block {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.feature-block p { margin-bottom: 16px; color: var(--text-main); }

.feature-block p:last-child { margin-bottom: 0; }

.feature-block strong { color: var(--accent-bright); }

/* ===== 介绍区块 ===== */
.intro-section {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.intro-section p { margin-bottom: 16px; color: var(--text-main); line-height: 1.7; }

.intro-section h3 { color: var(--accent-bright); margin-top: 24px; }

.intro-section h3:first-child { margin-top: 0; }

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

.char-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.6s ease backwards;
}

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

.char-card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid rgba(139, 92, 246, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

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

.char-name { color: #f0f0ff; font-weight: 700; font-size: 1.1rem; }

.char-role { color: var(--accent-light); font-size: 0.9rem; margin-top: 4px; }

.char-desc { color: var(--text-soft); font-size: 0.85rem; margin-top: 10px; line-height: 1.5; }

/* ===== 下载区 ===== */
.download-section { text-align: center; position: relative; }

.download-section h2 { border-left: none; }

.app-description {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.download-section .btn-group { justify-content: center; }

/* ===== 底部 ===== */
.footer {
  background: rgba(10, 10, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

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

.footer-links a {
  color: var(--accent-light);
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

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

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

.footer-copy p { margin-bottom: 8px; }

.footer-copy a { color: var(--accent-light); }

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

/* ===== 图片 ===== */
img { background: #1c1c3a; }

.inline-img { border-radius: 10px; }

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.4); }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.5), rgba(124, 58, 237, 0.5));
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
}

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  h1.logo { font-size: 1.75rem; }

  nav ul { gap: 4px; }

  nav a { font-size: 0.9rem; padding: 6px 10px; }

  h2 { font-size: 1.6rem; }

  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 14px; }

  .card-body { padding: 12px; }

  .card-title { font-size: 1rem; }

  .card-text { font-size: 0.82rem; }

  .feature-block, .intro-section { padding: 24px; }

  .characters-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }

  .char-card img { width: 90px; height: 90px; }

  .btn { padding: 11px 24px; font-size: 0.95rem; }

  .footer-links { gap: 12px; }
}

@media (max-width: 480px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .card-body { padding: 10px; }

  .card-title { font-size: 0.95rem; }

  .badge { font-size: 0.72rem; padding: 3px 8px; }

  .header-flex { justify-content: center; text-align: center; }

  nav ul { justify-content: center; }

  .feature-block, .intro-section { padding: 18px; }

  .app-description { font-size: 1rem; }

  .review-card { padding: 16px; }
}

/* ===== 打印样式 ===== */
@media print {
  header, .footer, .btn-group, aside { display: none; }
  body { background: #fff; color: #000; }
}