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

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

main {
  flex: 1;
}

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

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

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

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

.tag-category {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92); /* 提高标签透明度 */
  padding: 5px 12px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  color: #333; /* 明确标签文字颜色 */
}

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

.btn-primary {
  background: linear-gradient(90deg, #FF3E8F 0%, #FF7EB3 100%);
  color: white;
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(255, 62, 143, 0.35);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(255, 62, 143, 0.45);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@keyframes falling {
  0% {
transform: translateY(-30px) rotate(0deg);
opacity: 0.75;
  }
  100% {
transform: translateY(calc(100vh + 60px)) rotate(720deg);
opacity: 0.2;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .comic-cover {
height: 200px;
  }
  
  .hero-banner {
height: 320px;
  }
  
  .hero-content h1 {
font-size: 28px;
  }
  
  .hero-content p {
font-size: 18px;
  }
  
  .section-title {
font-size: 24px;
  }
}

@media (max-width: 480px) {
  .comic-cover {
height: 180px;
font-size: 16px;
  }
  
  .hero-banner {
height: 280px;
  }
  
  .hero-content h1 {
font-size: 24px;
  }
  
  .hero-content p {
font-size: 16px;
  }
  
  .btn-primary {
padding: 12px 24px;
font-size: 14px;
  }
}