/* ===== 金牌影院 全局样式 ===== */
:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --bg-dark: #0a0a18;
  --bg-card: #1a1a35;
  --bg-section: #161630;
  --border-color: #2d2d55;
  --text-primary: #f0f0ff;
  --text-secondary: #d0d0e8;
  --text-muted: #8888aa;
  --shadow-glow: 0 0 20px rgba(167, 139, 250, 0.3);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, #7c3aed, #6d28d9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

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

body {
  background: linear-gradient(135deg, #0a0a18 0%, #14142a 50%, #0d0d20 100%);
  color: #e0e0f0;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #0a0a18;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

a {
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 头部导航 ===== */
header {
  background: rgba(13, 13, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #2d2d55;
  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: 15px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.logo h1 {
  font-size: 1.8rem;
  color: #f0f0ff;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
  background: linear-gradient(135deg, #f0f0ff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.logo h1:hover {
  text-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
}

.logo span {
  color: #a78bfa;
  -webkit-text-fill-color: #a78bfa;
}

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

nav ul li a {
  color: #d0d0e8;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  text-decoration: none;
}

nav ul li a:hover::after {
  width: 60%;
}

nav ul li a.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

nav ul li a.active::after {
  width: 60%;
  background: #ffffff;
}

/* ===== 主内容区 ===== */
main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 40px 0;
}

@media (max-width: 992px) {
  main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: -1;
  }
  .header-inner {
    flex-direction: column;
  }
  .logo {
    text-align: center;
  }
}

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

/* ===== 区块样式 ===== */
section {
  background: rgba(22, 22, 48, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

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

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

h2 {
  color: #f0f0ff;
  font-size: 1.6rem;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #8b5cf6;
  position: relative;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #a78bfa, transparent);
}

h3 {
  color: #f0f0ff;
  font-size: 1.2rem;
  margin: 20px 0 15px;
  font-weight: 600;
  line-height: 1.4;
}

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

.card {
  background: rgba(26, 26, 53, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}

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

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

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

.card-body {
  padding: 15px;
  position: relative;
  z-index: 2;
}

.card-body h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #f0f0ff;
  font-weight: 600;
}

.card-body p {
  font-size: 0.85rem;
  color: #b0b0d0;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.card-body .tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 8px;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.card-body .tag:hover {
  background: rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

/* ===== 精品推荐 ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.featured-card {
  display: flex;
  gap: 15px;
  background: rgba(28, 28, 62, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.featured-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

.featured-info h3 {
  font-size: 1rem;
  margin: 0 0 5px;
  color: #f0f0ff;
  font-weight: 600;
}

.featured-info p {
  font-size: 0.85rem;
  color: #b0b0d0;
  line-height: 1.5;
}

/* ===== 详情内容 ===== */
.detail-content {
  background: rgba(22, 22, 48, 0.9);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #8b5cf6;
  margin-bottom: 20px;
}

.detail-content p {
  color: #e0e0f0;
  line-height: 1.9;
  margin-bottom: 15px;
  text-align: justify;
  font-size: 0.95rem;
}

.detail-content h3 {
  color: #f0f0ff;
  margin-bottom: 15px;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding-bottom: 10px;
}

/* ===== 角色介绍 ===== */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.character-card {
  background: rgba(26, 26, 53, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.character-card:hover {
  border-color: #8b5cf6;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.character-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 3px solid #8b5cf6;
  transition: all 0.3s ease;
}

.character-card:hover img {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

.character-card h3 {
  color: #f0f0ff;
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.character-card .role {
  color: #a78bfa;
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.character-card p {
  color: #d0d0e8;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== 平台特色 ===== */
.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  background: rgba(26, 26, 53, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  border-color: #8b5cf6;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.feature-item h3 {
  color: #a78bfa;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-item p {
  color: #d0d0e8;
  font-size: 0.9rem;
}

/* ===== 下载按钮 ===== */
.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 25px;
}

.download-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  padding: 14px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  display: inline-block;
}

.download-btn:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  text-decoration: none;
  color: #fff;
}

/* ===== 用户评论 ===== */
.comment-item {
  background: rgba(26, 26, 53, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.comment-item:hover {
  border-color: #8b5cf6;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-user {
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-user::before {
  content: '👤';
  font-size: 1rem;
}

.comment-time {
  color: #8888aa;
  font-size: 0.8rem;
}

.comment-content {
  color: #e0e0f0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== 侧边栏 ===== */
.sidebar {
  background: rgba(20, 20, 46, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 16px;
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar h3 {
  color: #f0f0ff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8b5cf6;
  font-weight: 600;
}

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

.ranking-list li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(45, 45, 85, 0.5);
  gap: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.ranking-list li:hover {
  padding-left: 10px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
}

.ranking-num {
  width: 30px;
  height: 30px;
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ranking-list li:hover .ranking-num {
  background: #8b5cf6;
  color: #fff;
  transform: scale(1.1);
}

.ranking-name {
  color: #d0d0e8;
  font-size: 0.9rem;
  flex: 1;
  font-weight: 500;
}

.ranking-value {
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
}

.stats-box {
  background: rgba(26, 26, 53, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45, 45, 85, 0.3);
  transition: all 0.3s ease;
}

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

.stats-item:hover {
  padding-left: 5px;
}

.stats-label {
  color: #d0d0e8;
  font-size: 0.9rem;
}

.stats-value {
  color: #a78bfa;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== 页脚 ===== */
footer {
  background: #0a0a18;
  border-top: 1px solid #2d2d55;
  padding: 30px 0;
  margin-top: 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: #d0d0e8;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

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

.footer-text {
  text-align: center;
  color: #8888aa;
  font-size: 0.8rem;
  line-height: 1.8;
  padding: 0 20px;
}

.footer-text a {
  color: #a78bfa;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 15px 0;
  font-size: 0.85rem;
}

.legal-links a {
  color: #d0d0e8;
  transition: all 0.3s ease;
}

.legal-links a:hover {
  color: #a78bfa;
  text-decoration: none;
}

/* ===== 横幅 Banner ===== */
.banner {
  background: linear-gradient(135deg, #1a1a35, #14142e);
  border: 1px solid #2d2d55;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 35px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
  animation: glow 4s ease-in-out infinite;
}

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

.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #a78bfa, #8b5cf6, transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

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

.banner h2 {
  font-size: 2.2rem;
  color: #f0f0ff;
  margin-bottom: 15px;
  border: none;
  padding: 0;
  font-weight: 800;
  letter-spacing: 1px;
}

.banner p {
  color: #d0d0e8;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.banner .highlight {
  color: #a78bfa;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.pagination a {
  background: rgba(26, 26, 53, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2d2d55;
  color: #d0d0e8;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.pagination a:hover {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.pagination a.active {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  font-weight: 600;
}

/* ===== 徽章 ===== */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-right: 8px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* ===== 回到顶部 ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  border: none;
}

.scroll-top:hover {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* ===== 响应式布局 ===== */
@media (max-width: 768px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .banner h2 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 20px;
  }
  
  main {
    padding: 20px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .featured-card {
    flex-direction: column;
  }
  
  .featured-card img {
    width: 100%;
    height: 180px;
  }
  
  .download-btn {
    width: 100%;
    text-align: center;
  }
  
  .sidebar {
    position: static;
    margin-bottom: 30px;
  }
  
  .banner {
    padding: 25px;
  }
  
  .banner p {
    font-size: 0.95rem;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .card-body {
    padding: 10px;
  }
  
  .card-body h3 {
    font-size: 0.9rem;
  }
  
  .card-body p {
    font-size: 0.75rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  nav ul li a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .platform-features {
    grid-template-columns: 1fr;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== 暗色模式支持 ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: #0a0a18;
    --bg-card: #1a1a35;
    --bg-section: #161630;
    --border-color: #2d2d55;
  }
  
  body {
    background: linear-gradient(135deg, #0a0a18 0%, #14142a 50%, #0d0d20 100%);
  }
  
  section {
    background: rgba(22, 22, 48, 0.85);
  }
}

/* ===== 打印样式 ===== */
@media print {
  header, footer, .sidebar, .scroll-top, .pagination, .download-buttons {
    display: none !important;
  }
  
  main {
    grid-template-columns: 1fr;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  section {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* ===== 动画效果 ===== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

/* ===== 工具类 ===== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

/* ===== 悬停效果增强 ===== */
.card, .featured-card, .character-card, .feature-item, .comment-item {
  will-change: transform;
}

/* ===== 图片加载动画 ===== */
img {
  animation: imageFade 0.5s ease;
}

@keyframes imageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== 焦点状态 ===== */
a:focus, button:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* ===== 选择文本样式 ===== */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

/* ===== 占位符样式 ===== */
::placeholder {
  color: #8888aa;
  opacity: 0.7;
}

/* ===== 响应式字体 ===== */
html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

/* ===== 性能优化 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 暗色模式滚动条 ===== */
@media (prefers-color-scheme: dark) {
  body::-webkit-scrollbar-track {
    background: #0a0a18;
  }
  
  body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
  }
}

/* ===== 移动端触摸优化 ===== */
@media (hover: none) {
  .card:hover, .featured-card:hover, .character-card:hover {
    transform: none;
  }
  
  .card:active, .featured-card:active, .character-card:active {
    transform: scale(0.98);
  }
}

/* ===== 暗色模式表单 ===== */
input, textarea, select {
  background: #1a1a35;
  border: 1px solid #2d2d55;
  color: #e0e0f0;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
  outline: none;
}

/* ===== 暗色模式表格 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a35;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  border-bottom: 1px solid #2d2d55;
  text-align: left;
}

th {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  font-weight: 600;
}

tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

/* ===== 暗色模式提示框 ===== */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin: 15px 0;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: #10b981;
  color: #6ee7b7;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
  color: #fcd34d;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
  color: #fca5a5;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  color: #93c5fd;
}

/* ===== 暗色模式标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 2px;
}

.tag-purple {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.tag-green {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.tag-red {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.tag-yellow {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* ===== 暗色模式加载动画 ===== */
.loading {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== 暗色模式卡片悬停光效 ===== */
.card::after, .featured-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.card:hover::after, .featured-card:hover::after {
  left: 100%;
}

/* ===== 暗色模式边栏滚动条 ===== */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 10px;
}

/* ===== 暗色模式响应式调整 ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 992px) {
  main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar {
    order: -1;
    position: static;
    margin-bottom: 20px;
  }
  
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 20px;
    border-radius: 12px;
  }
  
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .banner {
    padding: 25px;
  }
  
  .banner h2 {
    font-size: 1.5rem;
  }
  
  .banner p {
    font-size: 0.9rem;
  }
  
  .download-btn {
    width: 100%;
    text-align: center;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  
  .card-body {
    padding: 10px;
  }
  
  .card-body h3 {
    font-size: 0.9rem;
  }
  
  .card-body p {
    font-size: 0.75rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .logo h1 {
    font-size: 1.4rem;
  }
  
  nav ul li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== 暗色模式滚动动画 ===== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== 暗色模式悬浮提示 ===== */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a35;
  color: #f0f0ff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid #2d2d55;
  z-index: 10;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* ===== 暗色模式按钮变体 ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}

.btn-outline {
  background: transparent;
  color: #a78bfa;
  border: 1px solid #8b5cf6;
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
}

/* ===== 暗色模式表单控件 ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #d0d0e8;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(26, 26, 53, 0.9);
  border: 1px solid #2d2d55;
  border-radius: 8px;
  color: #f0f0ff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
  outline: none;
}

.form-input::placeholder {
  color: #8888aa;
}

/* ===== 暗色模式分割线 ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #2d2d55, transparent);
  margin: 20px 0;
}

/* ===== 暗色模式文本工具 ===== */
.text-primary {
  color: #a78bfa;
}

.text-secondary {
  color: #d0d0e8;
}

.text-muted {
  color: #8888aa;
}

.text-success {
  color: #6ee7b7;
}

.text-warning {
  color: #fcd34d;
}

.text-error {
  color: #fca5a5;
}

.text-info {
  color: #93c5fd;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

/* ===== 暗色模式间距工具 ===== */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-5 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pt-1 { padding-top: 0.25rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pb-3 { padding-bottom: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pt-5 { padding-top: 2rem; }
.pb-5 { padding-bottom: 2rem; }

/* ===== 暗色模式布局工具 ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== 暗色模式响应式显示 ===== */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

@media (max-width: 768px) {
  .d-mobile-none { display: none; }
  .d-mobile-block { display: block; }
}

/* ===== 暗色模式动画类 ===== */
.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ===== 暗色模式背景效果 ===== */
.bg-gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #1a1a35, #14142e);
}

.bg-glass {
  background: rgba(26, 26, 53, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== 暗色模式边框效果 ===== */
.border-purple {
  border-color: #8b5cf6;
}

.border-dark {
  border-color: #2d2d55;
}

.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-xl {
  border-radius: 16px;
}

.rounded-full {
  border-radius: 50%;
}

/* ===== 暗色模式阴影效果 ===== */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shadow-lg {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.shadow-purple {
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* ===== 暗色模式文本溢出 ===== */
.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 暗色模式滚动容器 ===== */
.scroll-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 10px;
}

/* ===== 暗色模式响应式字体大小 ===== */
@media (max-width: 768px) {
  .text-lg { font-size: 1rem; }
  .text-xl { font-size: 1.125rem; }
  .text-sm { font-size: 0.8rem; }
  .text-xs { font-size: 0.7rem; }
}

/* ===== 暗色模式链接样式 ===== */
.link-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-underline:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-purple {
  color: #a78bfa;
}

.link-purple:hover {
  color: #c4b5fd;
}

.link-white {
  color: #f0f0ff;
}

.link-white:hover {
  color: #a78bfa;
}

/* ===== 暗色模式列表样式 ===== */
.list-none {
  list-style: none;
}

.list-disc {
  list-style: disc;
  padding-left: 1.5rem;
}

.list-decimal {
  list-style: decimal;
  padding-left: 1.5rem;
}

.list-inside {
  list-style-position: inside;
}

/* ===== 暗色模式表格样式 ===== */
.table-responsive {
  overflow-x: auto;
}

.table-responsive table {
  min-width: 600px;
}

/* ===== 暗色模式图片样式 ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-rounded {
  border-radius: 8px;
}

.img-circle {
  border-radius: 50%;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ===== 暗色模式徽章样式 ===== */
.badge-outline {
  background: transparent;
  border: 1px solid #8b5cf6;
  color: #a78bfa;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.badge-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* ===== 暗色模式信息框 ===== */
.info-box {
  background: rgba(26, 26, 53, 0.9);
  border: 1px solid #2d2d55;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.info-box-title {
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.info-box-content {
  color: #d0d0e8;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== 暗色模式标签组 ===== */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-group .tag {
  margin: 0;
}

/* ===== 暗色模式统计卡片 ===== */
.stat-card {
  background: rgba(26, 26, 53, 0.9);
  border: 1px solid #2d2d55;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 5px;
}

.stat-label {
  color: #d0d0e8;
  font-size: 0.9rem;
}

/* ===== 暗色模式评论输入框 ===== */
.comment-input {
  width: 100%;
  min-height: 100px;
  background: rgba(26, 26, 53, 0.9);
  border: 1px solid #2d2d55;
  border-radius: 12px;
  padding: 15px;
  color: #f0f0ff;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.3s ease;
}

.comment-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
  outline: none;
}

.comment-input::placeholder {
  color: #8888aa;
}

/* ===== 暗色模式搜索框 ===== */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  background: rgba(26, 26, 53, 0.9);
  border: 1px solid #2d2d55;
  border-radius: 25px;
  color: #f0f0ff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
  outline: none;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #8888aa;
  font-size: 1rem;
}

/* ===== 暗色模式加载更多按钮 ===== */
.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 30px;
  background: transparent;
  border: 1px solid #8b5cf6;
  color: #a78bfa;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #a78bfa;
  transform: translateY(-2px);
}

/* ===== 暗色模式空状态 ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8888aa;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.empty-state-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ===== 暗色模式错误状态 ===== */
.error-state {
  text-align: center;
  padding: 40px 20px;
  color: #fca5a5;
}

.error-code {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-message {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ===== 暗色模式响应式间距 ===== */
@media (max-width: 768px) {
  .mt-5 { margin-top: 1.5rem; }
  .mb-5 { margin-bottom: 1.5rem; }
  .pt-5 { padding-top: 1.5rem; }
  .pb-5 { padding-bottom: 1.5rem; }
}

/* ===== 暗色模式响应式网格 ===== */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== 暗色模式响应式字体 ===== */
@media (max-width: 480px) {
  .stat-value {
    font-size: 1.5rem;
  }
  
  .empty-state-icon {
    font-size: 2rem;
  }
  
  .error-code {
    font-size: 2rem;
  }
}