/* ============================================
   棒棒TV - 完整样式系统
   设计风格：暗色玻璃拟态 + 霓虹渐变 + 微动效
   ============================================ */

/* ---------- CSS变量 ---------- */
:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --bg-deep: #0a0a18;
  --bg-base: #14142a;
  --bg-card: rgba(26, 26, 53, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-color: rgba(139, 92, 246, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0ff;
  --text-secondary: #d0d0e8;
  --text-muted: #8888aa;
  --text-dim: #666688;
  --shadow-primary: rgba(139, 92, 246, 0.3);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-base) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* 背景光效 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes bgFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, 2%) rotate(1deg); }
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

a:hover {
  color: #c4b5fd;
  text-decoration: none;
}

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

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

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

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

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

/* ---------- 容器 ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- 头部 ---------- */
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);
}

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

.logo {
  position: relative;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.logo h1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

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

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

nav a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.08);
}

nav a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

nav a.active {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.12);
  font-weight: 600;
}

nav a.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* ---------- Hero区域 ---------- */
.hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, transparent 50%, rgba(6, 182, 212, 0.05) 100%);
  padding: 70px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  animation: heroPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroPulse {
  0% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.hero h2 {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #e0d5ff 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease both;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* ---------- 区块 ---------- */
.section {
  padding: 60px 0;
  position: relative;
}

.section-title {
  font-size: 1.9rem;
  color: var(--text-primary);
  margin-bottom: 30px;
  position: relative;
  padding-left: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 32px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 3px;
  box-shadow: 0 0 15px var(--shadow-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 18px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

/* ---------- 网格布局 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.card-body h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

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

.card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-light);
  padding: 3px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  margin: 3px 3px 0 0;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.tag:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

/* ---------- 详细介绍 ---------- */
.detail-area {
  background: rgba(22, 22, 48, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.detail-area::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.detail-area h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 24px 0 12px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.detail-area h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.detail-area p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-indent: 2em;
  font-size: 1rem;
  line-height: 1.9;
}

/* ---------- 角色卡片 ---------- */
.role-card {
  text-align: center;
  padding: 24px 20px;
  background: rgba(26, 26, 53, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
  border-color: var(--border-color);
}

.role-card img {
  border-radius: 50%;
  margin-bottom: 16px;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 3px solid var(--border-color);
  box-shadow: 0 0 25px var(--shadow-primary);
  transition: var(--transition);
}

.role-card:hover img {
  border-color: var(--primary-light);
  box-shadow: 0 0 35px var(--shadow-primary);
}

.role-card h4 {
  color: var(--text-primary);
  margin-bottom: 5px;
  font-size: 1.1rem;
  font-weight: 600;
}

.role-card .role-title {
  color: var(--primary-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.role-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  text-indent: 0;
}

/* ---------- 平台介绍 ---------- */
.platform-area {
  background: rgba(20, 20, 46, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.platform-area::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

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

.platform-area h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.platform-area p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-indent: 2em;
  line-height: 1.9;
}

/* ---------- 下载区域 ---------- */
.download-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(22, 22, 48, 0.8), rgba(28, 28, 58, 0.8));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 60px 30px;
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
  animation: rotate 10s linear infinite;
  pointer-events: none;
}

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

.download-section h3 {
  color: var(--text-primary);
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.download-section p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  background-size: 200% auto;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
  background-position: right center;
}

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

/* ---------- 评论卡片 ---------- */
.comment-card {
  background: rgba(26, 26, 53, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 15px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.comment-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comment-card:hover {
  transform: translateX(4px);
  border-color: var(--border-color);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.1);
}

.comment-card:hover::before {
  opacity: 1;
}

.comment-user {
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

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

.comment-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- 侧边栏 ---------- */
.sidebar-card {
  background: rgba(20, 20, 46, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

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

.sidebar-card h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  font-weight: 600;
  position: relative;
}

.sidebar-card h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  align-items: center;
}

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

.rank-item:hover {
  background: rgba(139, 92, 246, 0.05);
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}

.rank-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.rank-item .rank-num {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 6px;
  padding: 2px 6px;
}

/* 统计 */
.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: scale(1.02);
}

.stat-item .num {
  font-size: 1.8rem;
  color: var(--primary-light);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ---------- 主布局 ---------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 60px 0;
  align-items: start;
}

.main-content {
  min-width: 0;
}

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

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.footer-links a {
  color: var(--primary-light);
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 20px;
  transition: var(--transition);
}

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

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

.footer-text a {
  color: var(--primary-light);
  font-size: 0.9rem;
}

.footer-text a:hover {
  color: #fff;
}

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

.section {
  animation: fadeIn 0.6s 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; }

/* 滚动进度条 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  z-index: 2000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--shadow-primary);
}

/* 鼠标跟随光晕 */
.card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  scale: 0;
}

.card:hover::after {
  opacity: 1;
  scale: 1;
  animation: glow 0.5s ease;
}

@keyframes glow {
  from { scale: 0; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .main-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    padding: 12px 0;
  }
  
  nav ul {
    justify-content: center;
    width: 100%;
    gap: 4px;
  }
  
  nav a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 16px;
  }
  
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  
  .detail-area,
  .platform-area {
    padding: 24px;
    border-radius: var(--radius-lg);
  }
  
  .detail-area p,
  .platform-area p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
  
  .download-section {
    padding: 40px 20px;
  }
  
  .download-section h3 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    margin: 6px;
  }
  
  .footer-links {
    gap: 10px;
  }
  
  .footer-links a {
    font-size: 0.85rem;
    padding: 3px 8px;
  }
  
  .footer-text {
    font-size: 0.8rem;
  }
  
  .card-body {
    padding: 12px;
  }
  
  .card-body h3 {
    font-size: 1rem;
  }
  
  .card-body p {
    font-size: 0.85rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 2px 8px;
  }
  
  .sidebar-card {
    padding: 16px;
  }
  
  .stat-item .num {
    font-size: 1.4rem;
  }
  
  .role-card img {
    width: 100px;
    height: 100px;
  }
  
  .role-card h4 {
    font-size: 1rem;
  }
  
  .role-card p {
    font-size: 0.8rem;
  }
  
  /* 移动端导航展开 */
  nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  
  nav li {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .logo h1 {
    font-size: 1.6rem;
  }
  
  nav a {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  .section-title {
    font-size: 1.3rem;
    padding-left: 14px;
  }
  
  .section-title::before {
    height: 24px;
  }
  
  .detail-area,
  .platform-area {
    padding: 16px;
  }
  
  .detail-area p,
  .platform-area p {
    font-size: 0.85rem;
    text-indent: 1.5em;
  }
  
  .download-section h3 {
    font-size: 1.4rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  
  .comment-card {
    padding: 14px;
  }
  
  .comment-user {
    font-size: 0.9rem;
  }
  
  .comment-content {
    font-size: 0.85rem;
  }
  
  .rank-item span {
    font-size: 0.8rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  
  .card-body h3 {
    font-size: 0.9rem;
  }
}

/* ---------- 暗色模式强制 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-deep: #0a0a18;
    --bg-base: #14142a;
  }
}

/* ---------- 动画效果 ---------- */
@keyframes cardHover {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* 卡片图片加载动画 */
.card img {
  background: linear-gradient(90deg, rgba(26, 26, 53, 0.5) 25%, rgba(139, 92, 246, 0.1) 50%, rgba(26, 26, 53, 0.5) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* 滚动渐入 */
@keyframes scrollFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section,
.hero,
.main-layout {
  animation: scrollFadeIn 0.8s ease both;
}

/* 悬停发光效果 */
.btn-primary::after,
.card:hover::before {
  animation: pulse 2s ease infinite;
}

/* 链接下划线动画 */
a:not(.btn) {
  position: relative;
}

a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 侧边栏固定 */
@media (min-width: 993px) {
  aside {
    position: sticky;
    top: 80px;
    height: fit-content;
  }
  
  .sidebar-card {
    animation: none;
  }
}

/* 打印样式 */
@media print {
  header,
  footer,
  .download-section,
  .btn {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #333;
  }
  
  .card,
  .detail-area,
  .platform-area,
  .sidebar-card,
  .comment-card {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
  }
}