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

body {
  background: linear-gradient(135deg, #FAF0FF 0%, #F5E5FF 100%);
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.manga-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: white;
}

.manga-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

.manga-cover {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.6); /* 增强文字阴影 */
  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.9) 0%, transparent 100%); /* 加深背景渐变 */
  z-index: 1;
}

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

.tag-category {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95); /* 提高标签透明度 */
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  color: #333; /* 明确标签文字颜色 */
}

.header-gradient {
  background: linear-gradient(90deg, #FF6B9B 0%, #8A7BEB 100%);
}

.btn-primary {
  background: linear-gradient(90deg, #FF6B9B 0%, #FF9EC9 100%);
  color: white;
  border: none;
  border-radius: 36px;
  padding: 16px 36px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(255, 107, 155, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(255, 107, 155, 0.4);
}

.section-title {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 36px;
  font-size: 32px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, #FF6B9B 0%, #8A7BEB 100%);
  border-radius: 4px;
}

.badge-new {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #FF6B9B;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 24px;
  z-index: 10;
}

.manga-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

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

.manga-meta i {
  margin-right: 6px;
}

.search-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 36px;
  padding: 8px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

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

.footer-link {
  position: relative;
  padding-bottom: 7px;
  display: inline-block;
}

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

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

.app-download {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

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

/* 花瓣飘落动画 */
.petal {
  position: absolute;
  background: linear-gradient(135deg, #FFCCD5 0%, #FFDFE5 100%);
  border-radius: 50% 50% 0 50%;
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
  animation: falling linear forwards;
}

@keyframes falling {
  0% {
transform: translateY(-40px) rotate(0deg);
opacity: 0.7;
  }
  100% {
transform: translateY(calc(100vh + 80px)) rotate(1080deg);
opacity: 0.15;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .manga-cover {
height: 220px;
  }
  
  .hero-banner {
height: 340px;
  }
  
  .hero-content h1 {
font-size: 32px;
  }
  
  .hero-content p {
font-size: 20px;
  }
  
  .section-title {
font-size: 28px;
  }
}

@media (max-width: 480px) {
  .manga-cover {
height: 200px;
font-size: 18px;
  }
  
  .hero-banner {
height: 300px;
  }
  
  .hero-content h1 {
font-size: 28px;
  }
  
  .hero-content p {
font-size: 18px;
  }
  
  .btn-primary {
padding: 14px 28px;
font-size: 15px;
  }
}