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

:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --secondary: #06B6D4;
  --accent: #F97316;
  --accent-light: #FB923C;
  --bg-main: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card-bg: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #0EA5E9, #06B6D4);
  --gradient-accent: linear-gradient(135deg, #F97316, #FB923C);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease);
}

.age-gate.hidden {
  display: none;
}

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

.gate-card {
  background: var(--card-bg);
  border-radius: 32px;
  padding: 64px 56px;
  max-width: 560px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.5s var(--ease);
}

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

.gate-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: bounce 2s ease-in-out infinite;
}

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

.gate-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gate-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.gate-warning {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
  border: 2px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.warning-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.warning-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.gate-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.gate-btn {
  flex: 1;
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gate-btn.enter {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.gate-btn.enter:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4);
}

.gate-btn.enter svg {
  width: 20px;
  height: 20px;
}

.gate-btn.leave {
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.gate-btn.leave:hover {
  background: var(--card-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.gate-notice {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  z-index: 1000;
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.3));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-item {
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.menu-item::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.menu-item:hover {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
}

.menu-item.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.12));
}

.menu-item.active::before {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  transition: all 0.3s var(--ease);
}

.search-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.search-input {
  background: none;
  border: none;
  padding: 12px;
  color: var(--text-primary);
  font-size: 14px;
  width: 200px;
  outline: none;
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s var(--ease);
}

.search-btn:hover {
  color: var(--primary);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.content {
  padding-top: 80px;
  min-height: 100vh;
}

.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: var(--card-bg);
  margin-bottom: 40px;
}

.hero-container {
  position: relative;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-item {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s var(--ease);
}

.hero-item.active {
  opacity: 1;
  visibility: visible;
}

.hero-visual {
  position: relative;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-item.active .hero-visual img {
  animation: zoomIn 0.8s var(--ease);
}

@keyframes zoomIn {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.hero-item:hover .hero-visual img {
  transform: scale(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.3) 100%);
}

.hero-details {
  padding: 40px 0;
}

.hero-label {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.12));
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.stat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-cta {
  padding: 16px 48px;
  background: var(--gradient-primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  transition: all 0.3s var(--ease);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 40px;
  height: 5px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.dot.active {
  width: 60px;
  background: var(--primary);
}

.filter-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 66px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.filter-scroll {
  overflow-x: auto;
  white-space: nowrap;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-tag {
  display: inline-block;
  padding: 10px 24px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
}

.filter-tag.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.section {
  padding: 72px 0;
}

.alt-bg {
  background: var(--card-bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.head-icon {
  font-size: 36px;
}

.head-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
}

.head-more {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  padding: 8px 16px;
  border-radius: 10px;
}

.head-more:hover {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
}

.big-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.big-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.big-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.big-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.big-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 165, 233, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.big-card:hover .big-card-overlay {
  opacity: 1;
}

.play-btn {
  width: 72px;
  height: 72px;
  background: white;
  border: none;
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.big-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  background: var(--gradient-accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.big-card-body {
  padding: 28px;
}

.big-card-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.big-card-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.big-card-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.big-card-tags {
  display: flex;
  gap: 10px;
}

.btag {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.side-card:hover {
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.side-img {
  position: relative;
  width: 100px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
}

.side-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.side-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.side-badge.hot {
  background: var(--gradient-accent);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.side-badge.new {
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.side-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.side-chapter {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.side-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.comic-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.comic-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.comic-cover {
  position: relative;
  overflow: hidden;
}

.comic-cover img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.comic-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.comic-card:hover .comic-mask {
  opacity: 1;
}

.read-btn {
  padding: 12px 32px;
  background: white;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s var(--ease);
}

.read-btn:hover {
  transform: scale(1.05);
}

.comic-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.comic-label.hot {
  background: var(--gradient-accent);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.comic-label.new {
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.comic-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  color: #FFD700;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 2;
}

.comic-content {
  padding: 18px;
}

.comic-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comic-extra {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rank-card {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.rank-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.rank-card.top {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(6, 182, 212, 0.03));
}

.rank-number {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border: 3px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  z-index: 2;
}

.rank-number.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-color: #FFD700;
  color: white;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.rank-number.silver {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  border-color: #C0C0C0;
  color: white;
  box-shadow: 0 4px 16px rgba(192, 192, 192, 0.4);
}

.rank-number.bronze {
  background: linear-gradient(135deg, #CD7F32, #B87333);
  border-color: #CD7F32;
  color: white;
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.4);
}

.rank-thumb {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.rank-thumb img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.rank-details {
  text-align: center;
}

.rank-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.rank-score,
.rank-views {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.cate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cate-item {
  position: relative;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cate-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.cate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.3s var(--ease);
}

.cate-item:hover .cate-overlay {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.5), rgba(14, 165, 233, 0.9));
}

.cate-name {
  font-size: 26px;
  font-weight: 900;
  color: white;
  margin-bottom: 6px;
}

.cate-count {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.footer {
  background: var(--card-bg);
  border-top: 2px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.footer-alert {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
  border: 2px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
}

.alert-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.alert-text p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-col h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: all 0.3s var(--ease);
  padding: 4px 0;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-tags {
  font-size: 12px;
  opacity: 0.8;
}

.back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  transition: all 0.3s var(--ease);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4);
}

.back-top svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 1200px) {
  .hero-item {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .hero-visual {
    height: 400px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .rank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .cate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 500px;
  }

  .hero-title {
    font-size: 36px;
  }

  .search-input {
    width: 140px;
  }

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

  .rank-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .head-title {
    font-size: 24px;
  }

  .cate-grid {
    grid-template-columns: 1fr;
  }

  .gate-card {
    padding: 48px 32px;
  }

  .gate-actions {
    flex-direction: column;
  }
}
