```css
/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #4c1d95;
  --accent: #4a6cf7;
  --bg: #f8f4ff;
  --bg-dark: #0f0f1a;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-dark: rgba(30, 30, 50, 0.85);
  --text: #1a1a2e;
  --text-dark: #e8e8f0;
  --muted: #6b7280;
  --muted-dark: #9ca3af;
  --card-shadow: 0 4px 20px rgba(26, 26, 46, 0.12);
  --card-shadow-hover: 0 12px 35px rgba(26, 26, 46, 0.2);
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --gradient-primary: linear-gradient(135deg, #7c3aed, #4a6cf7);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #3b2a5e 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(74, 108, 247, 0.1));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --text: #e8e8f0;
    --surface: rgba(30, 30, 50, 0.85);
    --muted: #9ca3af;
  }
  
  body {
    background: var(--bg);
    color: var(--text);
  }
  
  .card, .detail-section, .char-card, .comment-card, .sidebar {
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .card-body h3, .char-card h4, .comment-user, .rank-name {
    color: var(--text);
  }
  
  .card-body p, .char-card p, .comment-text, .rank-value {
    color: var(--muted);
  }
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Links ===== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ===== Header ===== */
header {
  background: var(--gradient-hero);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.5)); }
  50% { filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.8)); }
}

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

nav a {
  color: #f5f0ff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 5px 10px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

nav a:hover {
  background: rgba(167, 139, 250, 0.2);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== Hero Section ===== */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.3), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(74, 108, 247, 0.3), transparent 50%);
  animation: float 20s infinite;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, 20px) rotate(1deg); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(124, 58, 237, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #f5f0ff;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

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

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
  animation: fadeIn 1s ease-out;
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
  position: relative;
  padding-left: 1.2rem;
  border-left: 5px solid var(--primary);
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.section-title:hover {
  border-left-color: var(--accent);
  transform: translateX(5px);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 0;
}

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

.card-body {
  padding: 1.2rem;
  position: relative;
  z-index: 2;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 700;
  transition: color 0.3s ease;
}

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

.card-body p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.rating {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-right: 5px;
  margin-bottom: 4px;
  transition: var(--transition);
  cursor: default;
}

.tag:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

/* ===== Detail Section ===== */
.detail-section {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section:hover {
  box-shadow: var(--card-shadow-hover);
}

.detail-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.detail-section h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.detail-section p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== Character Grid ===== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.char-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

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

.char-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

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

.char-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.char-card:hover img {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent);
}

.char-card h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.char-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Platform Section ===== */
.platform-section {
  background: linear-gradient(135deg, #1a1a2e, #3b2a5e);
  color: #fff;
  padding: 4rem 0;
  border-radius: 24px;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.4);
}

.platform-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.2), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(74, 108, 247, 0.2), transparent 50%);
  animation: float 15s infinite;
}

.platform-section .container {
  position: relative;
  z-index: 1;
}

.platform-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
}

.platform-section p {
  color: #f5f0ff;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ===== Download Section ===== */
.download-section {
  text-align: center;
  padding: 4rem 0;
}

.download-section .detail-section {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  margin: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* ===== Comments ===== */
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.comment-card {
  background: var(--surface);
  border-radius: var(--border-radius-sm);
  padding: 1.2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.comment-user {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.comment-time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

.comment-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: sticky;
  top: 90px;
}

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

.sidebar h3 {
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
}

.sidebar h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--accent);
}

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

.rank-list li {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.rank-list li:hover {
  background: var(--gradient-card-hover);
  padding-left: 0.5rem;
  border-radius: 8px;
}

.rank-num {
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.rank-list li:hover .rank-num {
  transform: scale(1.1) rotate(-5deg);
}

.rank-name {
  color: var(--text);
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.rank-value {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Stats ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 1rem;
}

.stat-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(128, 128, 128, 0.1);
}

.stat-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ===== Layout ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  align-items: start;
}

/* ===== Footer ===== */
footer {
  background: #1a1a2e;
  color: #f5f0ff;
  padding: 3rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-light);
}

.footer-grid a {
  color: #a78bfa;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #f5f0ff;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

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

.footer-links a {
  color: #a78bfa;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* ===== Selection ===== */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-top: 1rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    justify-content: center;
    gap: 10px;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .card img {
    height: 200px;
  }
  
  .card-body {
    padding: 0.8rem;
  }
  
  .card-body h3 {
    font-size: 0.95rem;
  }
  
  .card-body p {
    font-size: 0.75rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .detail-section {
    padding: 1.5rem;
  }
  
  .detail-section h3 {
    font-size: 1.2rem;
  }
  
  .detail-section p {
    font-size: 0.85rem;
  }
  
  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .char-card {
    padding: 1.2rem;
  }
  
  .char-card img {
    width: 90px;
    height: 90px;
  }
  
  .platform-section {
    padding: 2.5rem 0;
    border-radius: 16px;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 1rem;
    display: block;
    width: 100%;
    margin: 10px 0;
  }
  
  .comments-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-num {
    font-size: 1.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  nav ul {
    gap: 5px;
  }
  
  nav a {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .card img {
    height: 160px;
  }
  
  .card-body {
    padding: 0.6rem;
  }
  
  .card-body h3 {
    font-size: 0.85rem;
  }
  
  .tag {
    font-size: 0.65rem;
    padding: 1px 8px;
  }
  
  .char-grid {
    grid-template-columns: 1fr;
  }
  
  .char-card {
    padding: 1rem;
  }
  
  .char-card img {
    width: 80px;
    height: 80px;
  }
  
  .detail-section {
    padding: 1rem;
  }
  
  .platform-section p {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
  
  .rank-list li {
    padding: 0.6rem 0;
  }
  
  .rank-num {
    width: 25px;
    height: 25px;
    font-size: 0.85rem;
    margin-right: 8px;
  }
}

/* ===== Animations for scroll ===== */
@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: scrollReveal 0.8s ease-out;
}

/* ===== Glass effect utility ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* ===== Gradient text utility ===== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Card hover glow effect ===== */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

/* ===== Loading animation for images ===== */
img {
  opacity: 0;
  animation: imgFadeIn 0.5s ease forwards;
}

@keyframes imgFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Mobile menu improvements ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  nav li {
    flex: 1;
    min-width: 60px;
  }
  
  nav a {
    display: block;
    text-align: center;
  }
}

/* ===== Dark mode overrides ===== */
@media (prefers-color-scheme: dark) {
  header {
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #2d1b4e 100%);
  }
  
  .hero {
    background: linear-gradient(135deg, #0a0a14, #1a1a2e);
  }
  
  .platform-section {
    background: linear-gradient(135deg, #0a0a14, #2d1b4e);
  }
  
  footer {
    background: #0a0a14;
  }
  
  .btn-secondary {
    background: var(--surface);
    color: var(--text);
  }
  
  .btn-secondary:hover {
    background: var(--primary);
    color: #fff;
  }
  
  .stat-item {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .rank-list li {
    border-color: rgba(255, 255, 255, 0.1);
  }
}

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

/* ===== Print styles ===== */
@media print {
  header, footer, .hero, .sidebar, .btn {
    display: none !important;
  }
  
  .layout {
    display: block;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card, .detail-section, .char-card, .comment-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== Focus styles for accessibility ===== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Utility classes ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }
```