/* 儿童绘本阅读网站 - 详情页样式 */

/* 导航横幅样式 - 与首页保持一致 */
.nav-banner {
  background: linear-gradient(135deg, #ffd6e7 0%, #b5f0ff 100%);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #fff;
}

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

.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-item {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-item:hover::before {
  left: 0;
}

.nav-item:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.nav-item.active {
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
  color: white;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu {
    justify-content: center;
  }

  .nav-item {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.5rem;
  }

  .nav-menu {
    width: 100%;
    justify-content: space-between;
  }

  .nav-item {
    padding: 6px 12px;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
  }
}

/* 详情页原有样式保持不变 */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Comic Neue', cursive, sans-serif;
}

.reading-area {
  background: linear-gradient(135deg, #fff5f5 0%, #f0f9ff 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
}

.content-header {
  text-align: center;
  margin-bottom: 30px;
}

.content-title {
  font-size: 2.5rem;
  color: #ff6b9d;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
}

.content-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #666;
  font-size: 0.9rem;
}

.book-cover {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.book-cover:hover {
  transform: scale(1.02);
}

.story-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.story-paragraph {
  margin-bottom: 20px;
  text-align: justify;
}

.interaction-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-interaction {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-like {
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
  color: white;
}

.btn-like:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.btn-share {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-read {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.btn-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.recommendation-section {
  margin-top: 40px;
}

.recommendation-title {
  font-size: 1.8rem;
  color: #ff6b9d;
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.recommendation-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b9d 0%, #feca57 100%);
  border-radius: 2px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.recommendation-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recommendation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.recommendation-cover {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.recommendation-info {
  padding: 15px;
}

.recommendation-book-title {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
}

.recommendation-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.reading-progress {
  background: #f0f9ff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.progress-bar {
  background: #e0e0e0;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #ff6b9d 0%, #feca57 100%);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

.progress-text {
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 0.9rem;
}

.page-turner {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.page-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.page-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.page-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .detail-container {
    padding: 15px;
  }

  .content-title {
    font-size: 2rem;
  }

  .story-content {
    padding: 20px;
    font-size: 1rem;
  }

  .interaction-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-interaction {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .recommendation-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .recommendation-cover {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .content-meta {
    flex-direction: column;
    gap: 10px;
  }

  .reading-area {
    padding: 20px;
  }

  .story-content {
    padding: 15px;
  }

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