* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; */
}

body {
  background-color: #f5f5f7;
  color: #333;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部导航 */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 20px;
  /* position: sticky; */
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: #0071e3;
  text-decoration: none;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 8px 16px;
  background: #f5f5f7;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: inherit;
}

.nav-btn:hover {
  background: #e0e0e0;
}

/* 书籍信息部分 */
.book-header {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.book-cover {
  flex-shrink: 0;
  width: 240px;
  height: 360px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  flex: 1;
  min-width: 300px;
}

.book-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.book-author {
  font-size: 20px;
  color: #86868b;
  margin-bottom: 20px;
}

.book-meta {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.meta-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}

.btn {
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;

}

.btn-primary {
  background: #0071e3;
  color: white;
}

.btn-primary:hover {
  background: #0077ed;
  transform: translateY(-2px);
}

/* 阅读历史记录样式 */
.reading-history {
     background: linear-gradient(90deg, #0086ff, #00c2ff);
  border-radius: 16px;
  padding: 15px;
  margin-top: 15px;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0px;
}

.history-header i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}


.last-read-chapter {
  font-size: 18px;
  font-weight: 700;
 
}

.reading-progress {
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.last-read-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}



/* 书籍简介 */
.book-description {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1d1d1f;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.description-text {
  color: #515154;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 章节目录 */
.chapters-container {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.chapters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.chapters-filter {
  display: flex;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  background: #f5f5f7;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #0071e3;
  color: white;
}

.chapters-list {
  list-style: none;
}

.chapter-item {
  padding: 18px 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
}

.chapter-item:hover {
  background: #f9f9f9;
}

.chapter-item:last-child {
  border-bottom: none;
}

.chapter-item.read {
  background: rgba(0, 113, 227, 0.05);
}

.chapter-item.current {
  background: rgba(0, 113, 227, 0.1);
  border-left: 4px solid #0071e3;
}

.chapter-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.status-icon.read {
  background: #34c759;
  color: white;
}

.status-icon.current {
  background: #0071e3;
  color: white;
}

.status-icon.unread {
  background: #f0f0f0;
  color: #86868b;
}

.chapter-title {
  font-size: 16px;
  color: #1d1d1f;
}

.chapter-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.chapter-date {
  font-size: 14px;
  color: #86868b;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .book-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 200px;
    height: 300px;
  }

  .book-meta {
    justify-content: center;
  }

  .action-buttons {
    flex-direction: column;
  }

  .chapters-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chapters-filter {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .nav-buttons {
    gap: 8px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 底部导航 - 移动端 */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.bottom-nav-buttons {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #86868b;
}

.bottom-nav-btn i {
  font-size: 22px;
  margin-bottom: 5px;
}

.bottom-nav-btn.active {
  color: #0071e3;
}
@media (max-width: 640px) {
  .bottom-nav {
    display: block;
  }
  
  .book-header {
    gap: 14px;
    margin: 0px 0;
  }
  .book-title {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .book-author {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .book-meta {
    margin: 10px 0;
  }
.action-buttons {
   
    margin: 0px 0;
}
.chapters-container {
    padding: 12px;
    margin: 20px 0;
}
.section-title {
    font-size: 20px;
    margin-bottom: 6px;
    padding-bottom: 12px;
}
.container {
  
    padding: 10px;
}



}