/* 韩漫画网自定义样式 */
@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;
}

.comic-card {
  transition: all 0.4s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.comic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

.comic-cover {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

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

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

.category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95); /* 提高背景透明度 */
  padding: 5px 12px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  color: #333; /* 明确设置文本颜色为深色，提高对比度 */
}

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

.btn-primary {
  background: linear-gradient(90deg, #FF3E8C 0%, #FF6BB2 100%);
  color: white;
  border: none;
  border-radius: 35px;
  padding: 14px 32px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 62, 140, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 62, 140, 0.45);
}

.section-title {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 35px;
}

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

.new-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #FF3E8C;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 25px;
  z-index: 10;
}

.comic-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}

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

.comic-stats i {
  margin-right: 5px;
}

.search-box {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 35px;
  padding: 6px 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 10px 12px;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.mobile-menu.active {
  max-height: 550px;
}

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

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

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

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

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

/* 分类卡片响应式字体优化 */
.category-card h3 {
  color: #333; /* 确保分类文字颜色为深色 */
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .comic-cover {
height: 200px;
  }
  
  .hero-section {
height: 280px;
  }
  
  .hero-content h1 {
font-size: 22px;
  }
  
  .hero-content p {
font-size: 15px;
  }
  
  /* 移动端分类标签字体大小调整 */
  .category-tag {
font-size: 11px;
padding: 4px 10px;
  }
  
  /* 分类卡片文字大小优化 */
  .category-card h3 {
font-size: 14px;
  }
}

@media (max-width: 480px) {
  /* 超小屏幕进一步优化 */
  .category-tag {
font-size: 10px;
padding: 3px 8px;
  }
  
  .category-card h3 {
font-size: 12px;
  }
}