/* 韩漫网自定义样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
  background: linear-gradient(135deg, #F9F5FF 0%, #F3EEFF 100%);
  background-attachment: fixed;
  color: #333;
}

.manga-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.manga-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.manga-cover {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.manga-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 1;
}

.manga-cover span {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 12px;
}

.genre-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: #333; /* 明确设置分类标签文字颜色为深色，提高对比度 */
}

.header-gradient {
  background: linear-gradient(90deg, #FF3E88 0%, #7B61FF 100%);
}

.btn-primary {
  background: linear-gradient(90deg, #FF3E88 0%, #FF6BB2 100%);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 62, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 15px rgba(255, 62, 136, 0.4);
}

.section-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 25px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #FF3E88 0%, #7B61FF 100%);
  border-radius: 2px;
}

.new-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #FF3E88;
  color: white;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 20px;
  z-index: 10;
}

.manga-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #777;
}

.manga-stats span {
  display: flex;
  align-items: center;
}

.manga-stats i {
  margin-right: 3px;
}

.search-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-container input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 6px 8px;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-nav.active {
  max-height: 400px;
}

.footer-links a {
  position: relative;
  padding-bottom: 4px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF3E88;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.app-download {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.app-download:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

/* 分类卡片文字优化 - 提高对比度和可读性 */
.category-card h3 {
  color: #333; /* 分类文字使用深色，提高对比度 */
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .manga-cover {
height: 160px;
  }
  
  .hero-section {
height: 280px;
  }
  
  .hero-content h1 {
font-size: 22px;
  }
  
  .hero-content p {
font-size: 14px;
  }
  
  /* 移动端分类文字大小优化 */
  .category-card h3 {
font-size: 12px; /* 小屏幕上适当减小字体大小，保持清晰度 */
  }
}