/* ============================================================
   香香漫画 · 全局主题变量 & 基础样式
   ============================================================ */
:root {
  --bg-primary: #0a0a18;
  --bg-secondary: #14142e;
  --bg-card: rgba(26, 26, 53, 0.85);
  --bg-card-hover: rgba(35, 35, 70, 0.95);
  --bg-glass: rgba(22, 22, 48, 0.6);
  --bg-glass-strong: rgba(20, 20, 46, 0.9);
  --border-color: #2d2d55;
  --border-hover: #8b5cf6;
  --text-primary: #f0f0ff;
  --text-secondary: #d0d0e8;
  --text-muted: #8888aa;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-lighter: #c4b5fd;
  --accent-gradient: linear-gradient(145deg, #7c3aed, #6d28d9);
  --accent-gradient-hover: linear-gradient(145deg, #8b5cf6, #7c3aed);
  --shadow-accent: rgba(124, 58, 237, 0.25);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 40px rgba(124, 58, 237, 0.2);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ============================================================
   基础重置
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(76, 29, 149, 0.2) 0%, transparent 60%);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

/* 自定义滚动条 */
::-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: 10px;
  border: 2px solid var(--bg-primary);
}

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

/* ============================================================
   通用容器
   ============================================================ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============================================================
   链接与按钮基础
   ============================================================ */
a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
  position: relative;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  background: #1c1c3e;
  object-fit: cover;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

img.lazyloading {
  opacity: 0.6;
  filter: blur(8px);
}

img.lazyloaded {
  opacity: 1;
  filter: blur(0);
}

/* ============================================================
   头部导航
   ============================================================ */
header {
  background: rgba(13, 13, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  animation: headerSlideDown 0.8s ease both;
}

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

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #f0f0ff 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGlow 3s ease-in-out infinite alternate;
  cursor: pointer;
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
  }
}

.logo h1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.logo:hover h1::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

.nav-links a:hover::before {
  width: 70%;
}

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

.nav-links a.active::before {
  width: 80%;
  background: var(--accent);
}

/* ============================================================
   主内容区域
   ============================================================ */
main {
  padding: 30px 0;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  animation: fadeInUp 0.8s ease both;
}

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

.content-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ============================================================
   区块（毛玻璃卡片）
   ============================================================ */
section {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  animation: fadeInUp 0.8s ease both;
}

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

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
  transition: left 0.8s ease;
  pointer-events: none;
}

section:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(139, 92, 246, 0.4);
}

section:hover::before {
  left: 100%;
}

.section-title {
  font-size: 1.9rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  border-left: 6px solid var(--accent);
  padding-left: 18px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--text-primary) 0%, rgba(240, 240, 255, 0.8) 70%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 40px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.4s ease;
}

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

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

/* 卡片组件 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  cursor: pointer;
  animation: cardFadeIn 0.6s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.5s; }
.card:nth-child(11) { animation-delay: 0.55s; }
.card:nth-child(12) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card img {
  width: 100%;
  aspect-ratio: 220/310;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.1);
}

.card-body {
  padding: 14px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 26, 53, 0.9), rgba(26, 26, 53, 1));
}

.card-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

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

.card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.card-text + .card-text {
  margin-top: 2px;
}

/* 标签 */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(76, 29, 149, 0.3));
  color: var(--accent-lighter);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.card:hover .badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(76, 29, 149, 0.5));
  border-color: var(--accent);
  transform: scale(1.05);
}

/* ============================================================
   详情区块
   ============================================================ */
.detail-block {
  background: linear-gradient(135deg, rgba(22, 22, 48, 0.9), rgba(26, 26, 53, 0.95));
  padding: 28px;
  border-radius: 18px;
  margin-top: 20px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.detail-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.detail-block:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-card-hover);
}

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

.detail-block h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.detail-block:hover h3::after {
  transform: scaleX(1);
}

.detail-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: justify;
  letter-spacing: 0.01em;
}

/* ============================================================
   角色卡片
   ============================================================ */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

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

.char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.char-card:hover::before {
  transform: scaleX(1);
}

.char-card img {
  width: 100%;
  max-width: 150px;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 3px solid var(--border-color);
  object-fit: cover;
  aspect-ratio: 1;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.char-card:hover img {
  border-color: var(--accent);
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.char-name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

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

.char-identity {
  color: var(--accent-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.char-card .card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   平台介绍 & 下载
   ============================================================ */
.platform-text {
  background: linear-gradient(135deg, rgba(20, 20, 46, 0.9), rgba(26, 26, 53, 0.95));
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.platform-text::after {
  content: '📖';
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 80px;
  opacity: 0.05;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.platform-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* 下载按钮组 */
.download-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.btn {
  background: var(--accent-gradient);
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px var(--shadow-accent);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.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(--accent-gradient-hover);
  transform: scale(1.05) translateY(-2px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

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

.btn:active {
  transform: scale(0.98);
}

/* ============================================================
   评论区
   ============================================================ */
.comment-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 15px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  animation: commentSlideIn 0.5s ease both;
}

.comment-box:nth-child(2) { animation-delay: 0.05s; }
.comment-box:nth-child(3) { animation-delay: 0.1s; }
.comment-box:nth-child(4) { animation-delay: 0.15s; }
.comment-box:nth-child(5) { animation-delay: 0.2s; }
.comment-box:nth-child(6) { animation-delay: 0.25s; }
.comment-box:nth-child(7) { animation-delay: 0.3s; }
.comment-box:nth-child(8) { animation-delay: 0.35s; }
.comment-box:nth-child(9) { animation-delay: 0.4s; }
.comment-box:nth-child(10) { animation-delay: 0.45s; }
.comment-box:nth-child(11) { animation-delay: 0.5s; }

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

.comment-box::before {
  content: '“';
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 40px;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.comment-box:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.comment-user {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comment-user::before {
  content: '👤';
  font-size: 0.9em;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 10px;
  display: inline-block;
}

.comment-content {
  color: var(--text-secondary);
  margin-top: 8px;
  padding-left: 8px;
  border-left: 2px solid rgba(139, 92, 246, 0.3);
  line-height: 1.6;
}

/* ============================================================
   侧边栏
   ============================================================ */
aside {
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 100px;
  animation: fadeInRight 0.8s ease both;
}

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

.side-widget {
  margin-bottom: 35px;
  position: relative;
}

.side-widget:last-child {
  margin-bottom: 0;
}

.side-widget h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-widget h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.side-widget:hover h3::after {
  width: 100%;
}

/* 排行榜 */
.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  padding: 12px 8px;
  border-bottom: 1px dashed var(--border-color);
  transition: all 0.3s ease;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.rank-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  border-radius: 0 3px 3px 0;
}

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

.rank-list li:hover::before {
  transform: scaleY(1);
}

.rank-list .rank-num {
  color: var(--accent);
  font-weight: 800;
  margin-right: 10px;
  font-size: 1.05rem;
  display: inline-block;
  min-width: 40px;
}

.rank-list li:nth-child(1) .rank-num {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-list li:nth-child(2) .rank-num {
  color: #c0c0c0;
  text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.rank-list li:nth-child(3) .rank-num {
  color: #cd7f32;
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

/* 统计区块 */
.stats p {
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--border-color);
  padding: 12px 0;
  margin: 0;
  transition: padding-left 0.3s ease;
  cursor: pointer;
}

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

.stats p:hover {
  padding-left: 10px;
  color: var(--text-primary);
}

.stats p span:first-child {
  font-weight: 500;
}

.stats p span:last-child {
  font-weight: 700;
  color: var(--accent-light);
  font-size: 1.05rem;
}

/* ============================================================
   页脚
   ============================================================ */
footer {
  background: rgba(10, 10, 24, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

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

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

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-lighter);
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.legal-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(28, 28, 62, 0.8);
  padding-top: 20px;
  margin-top: 20px;
  line-height: 1.8;
}

/* ============================================================
   响应式设计
   ============================================================ */
@media (max-width: 1200px) {
  .grid-2 {
    grid-template-columns: 1fr 280px;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 1000px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  
  .nav-links a {
    white-space: nowrap;
    font-size: 0.9rem;
  }
  
  aside {
    position: static;
    margin-top: 30px;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .section {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 15px;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .char-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.4rem;
    padding-left: 14px;
  }
  
  section {
    padding: 18px;
    border-radius: 16px;
  }
  
  .card-body {
    padding: 10px;
  }
  
  .card-title {
    font-size: 0.95rem;
  }
  
  .card-text {
    font-size: 0.8rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .detail-block {
    padding: 18px;
  }
  
  .detail-block h3 {
    font-size: 1.3rem;
  }
  
  .download-btn-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
  }
  
  .comment-box {
    padding: 14px;
  }
  
  .comment-user {
    font-size: 0.85rem;
  }
  
  .comment-time {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
  
  .footer-links {
    gap: 12px;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .legal-links {
    gap: 12px;
  }
  
  .legal-links a {
    font-size: 0.75rem;
  }
  
  main {
    padding: 20px 0;
  }
  
  .grid-2 {
    gap: 20px;
  }
}

@media (max-width: 380px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .card-body {
    padding: 8px;
  }
  
  .card-title {
    font-size: 0.85rem;
  }
  
  .card-text {
    font-size: 0.75rem;
  }
}

/* ============================================================
   动画效果
   ============================================================ */
/* 滚动进入动画 */
@media (prefers-reduced-motion: no-preference) {
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 渐变背景动画 */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 呼吸光效 */
@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 旋转动画 */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 脉冲动画 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ============================================================
   暗色模式支持（默认就是暗色，这里做增强）
   ============================================================ */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #0a0a18;
    --bg-secondary: #14142e;
    --text-primary: #f0f0ff;
    --text-secondary: #d0d0e8;
    --text-muted: #8888aa;
  }
  
  body {
    background: var(--bg-primary);
    color: var(--text-secondary);
  }
}

/* ============================================================
   无障碍优化
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ============================================================
   工具类
   ============================================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(22, 22, 48, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(45, 45, 85, 0.6);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* 隐藏滚动条但保留滚动功能 */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}