/* 最新发布模块样式 */
.section-title {
  position: relative;
  width: fit-content;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff5252;
  text-transform: uppercase;
}

.scroll-container {
  position: relative;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-wrapper {
  display: flex;
  padding: 10px 15px 10px 0;
}

.scroll-item {
  flex: 0 0 auto;
  width: 93px;
  margin-right: 15px;
}

.scroll-cover {
  position: relative;
  width: 93px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
}

.scroll-cover img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.book-link:hover .scroll-cover img {
  transform: scale(1.05);
}

.scroll-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.book-link {
  text-decoration: none;
  display: block;
}

.latest-releases {
  position: relative;
  padding: 1rem;
  background-color: #020d18;
  color: #fff;
}

.book-grid {
  display: grid;
  flex-direction: column;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* 添加广告样式 */
.book-grid .ad-div,
.t_de {
  grid-column: 1 / -1;
  /* 跨越所有列 */
  width: 100%;
  margin: 1rem 0;
}

.book-card {
  background-color: #0a1622;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.book-cover {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
}

.hot-tag {
  position: absolute;
  top: 10px;
  left: 0;
  background-color: #18a3e9;
  color: white;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
}

.book-info {
  padding: 0.8rem;
  background-color: #0a1622;
}

.book-title {
  width: 100%;
  display: block;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.rating,
.views {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #aaa;
}

.rating a {
  color: #18a3e9;
}

.star {
  color: #18a3e9;
  margin-right: 0.3rem;
}

.eye-icon {
  margin-right: 0.3rem;
  opacity: 0.7;
}

.chapters {
  padding: 0.5rem 0.8rem;
  background-color: #0a1622;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chapter {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
}

.chapter-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 0.75rem;
}

.chapter-date {
  color: #6c757d;
  font-size: 0.7rem;
  text-align: right;
}

.detail {
  background: #030d19;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book-info-detail {
  /* width: 100%; */
  /* background-image: url('../images/1.jpg'); */
  background-size: cover;
  background-position: center;
}



.book-info-detail img {
  width: 224px;
  height: 320px;
}

.book-content {
  margin: 10px 0px;
  border-radius: 16px;
  border: 1px solid #fff;
  background-color: #0c101c;
}

.book-title-detail {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  color: #fff;
}

.book-meta-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  gap: 10px;
}

.book-meta-detail p {
  line-height: 25px;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.book-tags a {
  padding: 0 8px;
  margin: 0 8px 5px 0;
  background-color: #fff;
  border-radius: 10px;
  color: #18a3e9;
}

.book-tags h3 {
  color: #fff;
}

.status {
  color: #fff;
}

.book-desc-detail {
  color: #fff;
}


.latest-chapters {
  padding: 1rem;
  background-color: #020d18;
  color: #fff;
}

.chapter-directory {
  background-color: #020d18;
  color: #fff;
}

/* General styling for both modules */
.latest-chapters,
.chapter-directory {
  padding-bottom: 30px;
  background-color: #020d18;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Section header styling */
.section-header {
  padding: 15px 20px;
  border-bottom: 1px solid #c16475;
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;

  display: flex;
  align-items: center;
}

.section-header img {
  margin-left: 10px;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Chapter list styling */
.chapter-list,
.directory-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.chapter-item {
  padding: 15px 20px;
  border-bottom: 1px solid #c16475;
  transition: background-color 0.2s ease;
}

.chapter-item:last-child {
  border-bottom: none;
}


.chapter-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #444;
}

/* View all button styling */
.view-all {
  padding: 15px 20px;
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f0f0f0;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}

.chapter-title {
  color: #fff;
}


/* 阅读页面样式 */
.read-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
}

.chapter-title-read {
  font-size: 1.5rem;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
}

.chapter-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 3rem;
}

.chapter-content p {
  text-indent: 2em;
}

.chapter-content.small {
  font-size: 0.9rem;
}

.chapter-content.medium {
  font-size: 1.1rem;
}

.chapter-content.large {
  font-size: 1.3rem;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.nav-btn {
  padding: 0.8rem 2rem;
  background: #020d18;
  color: #fff;
  text-decoration: none;
  border-radius: 2rem;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background: #020d18;
}

/* 设置面板 */
.settings-panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  transition: bottom 0.3s ease;
  z-index: 999;
  margin: 0 auto;
  max-width: 750px;
}

.current-size {
  line-height: 44px;
  color: #cc3e64;
}

.settings-panel.show {
  bottom: 50px;
}

.settings-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem;
}

.settings-group {
  margin-bottom: 1.5rem;
}

.settings-group h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.font-size-controls,
.theme-controls {
  display: flex;
  gap: 1rem;
}

.more-link {
  position: absolute;
  color: #fff;
  right: 20px;
  top: 18px;
}

.more-link2 {
  color: #555;
}


.size-btn,
.theme-btn {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  background: #fff;
  color: #666;
  cursor: pointer;
}

.theme-btn1 {
  background-color: #fff;
}

.theme-btn2 {
  background-color: #f4ecd8;
}

.theme-btn3 {
  background-color: #1a1a1a;
}



/* 主题样式 */
body.light {
  background: #fff;
  color: #333;
}

body.sepia {
  background: #f4ecd8;
  color: #5c4b37;
}

body.dark {
  background: #1a1a1a;
  color: #ccc;
}

body.dark .read-container {
  background: #1a1a1a;
}

body.dark .chapter-title,
body.dark .chapter-content {
  color: #ccc;
}

body.sepia .read-container {
  background: #f4ecd8;
}

body.sepia .chapter-title,
body.sepia .chapter-content {
  color: #5c4b37;
}


/* 排行榜容器 */
.rank-container {
  background-color: #f5f5f5;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 排行榜标签 */
.rank-tabs {
  display: flex;
  justify-content: space-around;
  padding: 15px 20px;
  background: #020d18;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
}

.tab-item {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

.tab-item.active {
  background-color: #fff;
  color: #ff3366;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 排行榜列表 */
.rank-list {
  background-color: #fff;
  padding: 10px 0;
  border-radius: 10px;
  margin: 0 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rank-header {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rank-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  transition: all 0.3s ease;
}

.rank-item:hover {
  background-color: #f9f9f9;
  transform: translateX(5px);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-number {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 26px;
  height: 26px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rank-item:nth-child(1) .rank-number {
  background: linear-gradient(135deg, #ff4500, #ff7043);
}

.rank-item:nth-child(2) .rank-number {
  background: linear-gradient(135deg, #ff8c00, #ffb74d);
}

.rank-item:nth-child(3) .rank-number {
  background: linear-gradient(135deg, #ffd700, #ffeb3b);
}

.rank-item:nth-child(n+4) .rank-number {
  background: linear-gradient(135deg, #9e9e9e, #bdbdbd);
}

.book-cover-rank {
  width: 120px;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.rank-item:hover .book-cover-rank {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.book-cover-rank img {
  width: 100%;
  height: 100%;
}

.book-info-rank {
  flex: 1;
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
}

.book-title-rank {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
  font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
  margin-top: auto;
}

.book-meta span,
.book-meta a {
  margin-right: 15px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.author {
  display: flex;
  color: #666;
}


.category {
  color: #ff3366;
  text-decoration: none;
  font-weight: 500;
}

.word-count {
  display: flex;
  color: #999;
}


.search-container {
  margin: 15px 0;
  padding: 0 15px;
}

.search-form {
  display: flex;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  font-size: 14px;
  border: none;
  outline: none;
  background: #fff;
}

.search-button {
  width: 50px;
  background: #020d18;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.search-button:hover {
  background: #0a1e2e;
}

/* 空状态样式 */
.search-empty-state {
  text-align: center;
  padding: 20px 5px;
  background: #fff;
  border-radius: 8px;
  margin: 10px 5px;
}

.empty-icon {
  margin-bottom: 20px;
}

.empty-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 0;
}

.no-results {
  font-size: 16px;
  color: #666;
}

/* 搜索结果标题 */
#text {
  font-size: 18px;
  color: #333;
  margin: 15px;
  padding-left: 5px;
  border-left: 3px solid #ff2b57;
}

.author_color {
  color: #18a3e9;
  margin: 0!important;
}
