```css
:root {
  --primary: #7c3aed;
  --primary-dark: #4c1d95;
  --primary-light: #8b5cf6;
  --primary-bg: #f5f3ff;
  --primary-border: #ede9fe;
  --primary-tag-bg: #f3e8ff;
  --accent: #fbbf24;
  --accent-dark: #f59e0b;
  --text-main: #2e1065;
  --text-secondary: #4c1d95;
  --text-muted: #a78bfa;
  --text-light: #ddd6fe;
  --card-bg: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 25px rgba(124, 58, 237, 0.15);
  --header-gradient: linear-gradient(135deg, #6d28d9, #4c1d95);
  --footer-bg: #2e1065;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
  --primary-bg: #1a1025;
  --primary-border: #2d1b4e;
  --primary-tag-bg: #2d1b4e;
  --text-main: #e9d5ff;
  --text-secondary: #c4b5fd;
  --text-muted: #8b5cf6;
  --text-light: #a78bfa;
  --card-bg: #251638;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 25px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(37, 22, 56, 0.7);
  --glass-border: rgba(139, 92, 246, 0.3);
}

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

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

body {
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.7;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(109, 40, 217, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Header */
header {
  background: var(--header-gradient);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.9), rgba(76, 29, 149, 0.95));
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  position: relative;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6)); }
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all var(--transition-normal);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-normal);
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-menu a:hover::before {
  width: 60%;
}

/* Main Layout */
.main-container {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* Section Titles */
.section-title {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin: 30px 0 20px;
  padding-left: 15px;
  border-left: 6px solid var(--primary);
  font-weight: 800;
  position: relative;
  transition: color var(--transition-normal);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 15px;
  bottom: -5px;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 2px;
}

/* Comic Grid */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.comic-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--primary-border);
  animation: fadeInUp 0.6s ease backwards;
  position: relative;
}

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

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

.comic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.comic-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--primary-border);
  transition: transform var(--transition-normal);
}

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

.comic-card .comic-info {
  padding: 15px;
}

.comic-card .comic-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.comic-card .comic-author {
  color: var(--primary-light);
  font-size: 0.85rem;
}

.comic-card .comic-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.comic-card .tag {
  background: var(--primary-tag-bg);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  display: inline-block;
  margin-top: 8px;
  transition: all var(--transition-normal);
}

.comic-card:hover .tag {
  background: var(--primary);
  color: #fff;
}

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

.recommend-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--primary-border);
  animation: fadeInUp 0.6s ease backwards;
}

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

.recommend-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.recommend-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.recommend-card:hover img {
  transform: scale(1.03);
}

.recommend-body {
  padding: 20px;
  flex: 1;
}

.recommend-body h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.recommend-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Detail Box */
.detail-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-border);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

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

.detail-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.detail-box h2 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.detail-box p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  text-indent: 2em;
  position: relative;
  z-index: 1;
}

.detail-box .tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.detail-box .tag {
  background: var(--primary-tag-bg);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all var(--transition-normal);
}

.detail-box .tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Character Grid */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.character-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--primary-border);
  animation: fadeInUp 0.6s ease backwards;
}

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

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

.character-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--primary-border);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

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

.character-card h3 {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.character-card .role {
  color: var(--primary-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.character-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
}

/* Platform Box */
.platform-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-border);
  animation: fadeIn 0.8s ease;
}

.platform-box h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.platform-box p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.8;
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.feature-item {
  background: var(--primary-bg);
  padding: 15px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid transparent;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.feature-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

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

.feature-item h4 {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* App Download */
.app-download {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  text-align: center;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

.app-download::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  animation: rotate 10s linear infinite;
}

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

.app-download h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.app-download p {
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  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, height 0.6s;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Comments */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid transparent;
  animation: fadeInUp 0.6s ease backwards;
}

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

.comment-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.comment-item .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-border);
  transition: border-color var(--transition-normal);
}

.comment-item:hover .avatar {
  border-color: var(--primary);
}

.comment-item .comment-body {
  flex: 1;
}

.comment-item .username {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

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

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

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.sidebar-widget:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-border);
  padding-bottom: 10px;
  position: relative;
}

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

.rank-list li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-bg);
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}

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

.rank-list li:hover {
  background: var(--primary-bg);
  padding-left: 5px;
}

.rank-list .rank-num {
  width: 30px;
  height: 30px;
  background: var(--primary-tag-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.rank-list li:hover .rank-num {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.rank-list .rank-name {
  flex: 1;
  color: var(--text-secondary);
}

.rank-list .rank-value {
  color: var(--primary-light);
  font-size: 0.85rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-item {
  background: var(--primary-bg);
  padding: 15px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-item .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  animation: countUp 2s ease;
}

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

.stat-item .label {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-top: 5px;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--text-light);
  padding: 40px 20px 20px;
  margin-top: 50px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent), var(--primary));
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-section a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 0;
}

.footer-section a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #4c1d95;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(45deg);
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
  .comic-card, .recommend-card, .character-card, .comment-item {
    animation: fadeInUp 0.6s ease backwards;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .comic-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .nav-container {
    gap: 0.5rem;
  }
  
  .nav-menu {
    gap: 0.3rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-menu {
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  
  .nav-menu a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  .comic-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  
  .comic-card img {
    height: 180px;
  }
  
  .recommend-grid {
    grid-template-columns: 1fr;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .app-download {
    padding: 20px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .detail-box {
    padding: 20px;
  }
  
  .platform-box {
    padding: 20px;
  }
  
  .comment-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .comment-item .avatar {
    width: 60px;
    height: 60px;
  }
  
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .stat-item .num {
    font-size: 1.4rem;
  }
  
  .logo h1 {
    font-size: 1.4rem;
  }
  
  .theme-toggle {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0 10px;
    margin: 20px auto;
  }
  
  .comic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .comic-card img {
    height: 160px;
  }
  
  .comic-card .comic-info {
    padding: 10px;
  }
  
  .comic-card .comic-name {
    font-size: 0.9rem;
  }
  
  .comic-card .comic-author {
    font-size: 0.75rem;
  }
  
  .comic-card .comic-meta {
    font-size: 0.7rem;
  }
  
  .platform-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .feature-item {
    padding: 10px;
  }
  
  .feature-item .icon {
    font-size: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-section {
    min-width: 100%;
  }
  
  .copyright {
    font-size: 0.75rem;
  }
  
  .app-download h2 {
    font-size: 1.5rem;
  }
  
  .app-download p {
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  header, footer, .sidebar, .theme-toggle {
    display: none;
  }
  
  .main-container {
    display: block;
  }
  
  .content {
    width: 100%;
  }
  
  body {
    background: #fff;
    color: #000;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* Focus States for Accessibility */
a:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Card Hover Effects for All Cards */
.comic-card, .recommend-card, .character-card, .comment-item, .sidebar-widget, .feature-item {
  will-change: transform;
}

/* Smooth Theme Transition */
body, header, .comic-card, .recommend-card, .character-card, .comment-item, .sidebar-widget, .detail-box, .platform-box {
  transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
}
```