/* 小说卡片网格模块样式 */
.novel-grid-section {
  padding: 15px;
  margin-bottom: 20px;
}

.novel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.novel-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.novel-card:hover {
  transform: translateY(-5px);
}

.novel-cover {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 140%; /* 控制封面高宽比 */
  overflow: hidden;
}

.novel-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.novel-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.novel-title-overlay h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

/* 移动端最新小说更新模块样式 */
.latest-manga {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.manga-section-title {
  position: relative;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.more-link {
  position: absolute;
  right: 0;
  color: #1a1a1a;
  font-weight: 550;
  font-size: 16px;
}

.manga-list {
  display: flex;
  flex-direction: column;
}

.manga-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.manga-left {
  width: 90px;
  margin-right: 12px;
}

.manga-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 130px;
  border-radius: 5px;
  overflow: hidden;
}

.manga-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-label {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 10px;
}

.manga-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.manga-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 3px solid #4a90e2;
  padding-left: 8px;
}

.manga-info {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 12px;
}

.author {
  color: #666;
  margin-right: 8px;
}

.status {
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

.status.ongoing {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status.completed {
  background-color: #e8f5e9;
  color: #388e3c;
}

.category {
  color: #4a90e2;
  text-decoration: none;
  margin-right: 8px;
}

.category a {
  color: #4a90e2;
  text-decoration: none;
}

.word-count {
  color: #999;
}

/* 小说详情页样式 */
.novel-detail {
  background-color: #fff;
}

.bg {
  padding: 15px;
  background-image: url(../images/bg.jpg);
}
.novel-header {
  position: relative;
  margin-bottom: 15px;
}

.hot-tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ff4757;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 12px;
}

.novel-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
  padding-top: 5px;
}
.novel-cover-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.novel-cover-detail {
  border: 15px solid #fff;
  width: 70%;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.novel-info-list {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  margin-bottom: 10px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  width: 80px;
  color: #666;
  font-size: 14px;
}

.info-value {
  flex: 1;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* 标签样式 */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-link {
  display: inline-block;
  padding: 2px 8px;
  background-color: #f0f4ff;
  color: #4a90e2;
  border-radius: 12px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-link:hover {
  background-color: #4a90e2;
  color: #fff;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-tag.completed {
  background-color: #e8f5e9;
  color: #388e3c;
}

.status-tag.ongoing {
  background-color: #e3f2fd;
  color: #1976d2;
}

.category-link {
  color: #2962ff;
  text-decoration: none;
}

.category-link:hover {
  text-decoration: underline;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.novel-description {
  padding: 0 15px;
  margin-bottom: 20px;
}

.novel-description div {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
.chapter-list {
  padding: 0 15px;
  margin-bottom: 20px;
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.chapter-item a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.chapter-item a:hover {
  color: #2962ff;
}

.chapter-date {
  color: #999;
  font-size: 12px;
}

.more-chapters {
  text-align: center;
  margin-top: 15px;
}

.more-chapters a {
  display: inline-block;
  color: #2962ff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 15px;
  border: 1px solid #2962ff;
  border-radius: 20px;
  transition: all 0.3s;
}

.more-chapters a:hover {
  background-color: #2962ff;
  color: #fff;
}


/* 章节列表头部样式 */
.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.chapter-controls {
  display: flex;
  align-items: center;
}

.chapter-count {
  font-size: 12px;
  color: #666;
  margin-right: 10px;
}

.sort-toggle {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: all 0.3s ease;
}

.sort-toggle:hover {
  background-color: #e0e0e0;
}

.sort-icon {
  color: #666;
  transition: transform 0.3s ease;
}

.sort-toggle.desc .sort-icon {
  transform: rotate(180deg);
}

/* 分类筛选区域样式 */
.filter-section {
  background-color: #fff;
  border-radius: 8px;
  margin: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.filter-group {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option {
  display: inline-block;
  padding: 4px 8px;
  background-color: #f5f5f5;
  border-radius: 20px;
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.filter-option:hover {
  background-color: #e8e8e8;
}

.filter-option.active {
  background-color: #2962ff;
  color: #fff;
}

/* 排行榜容器样式 */
.rank-container {
  padding: 15px;
  background-color: #fff;
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.rank-header-more {
  display: block;
}

.rank-container .rank1 {
  margin: 10px 0;
  font-size: 22px;
}

.rank-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
  position: relative;
  padding-left: 12px;
}

.rank-title:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background-color: #ff3955;
  border-radius: 2px;
}

.more {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.more:hover {
  color: #ff3955;
}


.rank-tabs {
  display: flex;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 3px;
}

.rank-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  color: #666;
  text-decoration: none;
  border-radius: 17px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.rank-tab.active {
  background-color: #2962ff;
  color: #fff;
}

/* 排行榜列表样式 */
.rank-list {
  padding: 10px 0;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.rank-number {
  font-size: 18px;
  font-weight: bold;
  color: #999;
  margin-right: 15px;
  min-width: 24px;
  text-align: center;
}

/* 前三名特殊样式 */
.rank-item:nth-child(1) .rank-number {
  color: #ff6b6b;
}

.rank-item:nth-child(2) .rank-number {
  color: #ff922b;
}

.rank-item:nth-child(3) .rank-number {
  color: #ffd43b;
}

.rank-book {
  display: flex;
  flex: 1;
}

.book-cover {
  width: 80px;
  height: 110px;
  border-radius: 5px;
  object-fit: cover;
  margin-right: 12px;
}

.book-info {
  flex: 1;
}

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

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #666;
}

.book-desc {
  font-size: 13px;
  color: #999;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* 排行榜顶部项目特殊样式 */
.rank-top {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
}

.rank-top .book-cover {
  width: 100px;
  height: 140px;
}

.rank-top .book-title {
  font-size: 18px;
}

.rank-top .book-desc {
  -webkit-line-clamp: 3;
}

/* 阅读容器样式 */
.read-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 15px 10px;
  background: #f8f9fa;
  min-height: 100vh;
}

/* 章节标题样式 */
.title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  position: relative;
}

.title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #2962ff, #82b1ff);
  border-radius: 3px;
}

/* 章节内容样式 */
.chapter-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
}

.chapter-content p {
  margin-bottom: 1em;
  text-indent: 2em;
  transition: background-color 0.3s;
  border-radius: 4px;
  padding: 2px 4px;
}

.chapter-content p:hover {
  background-color: #f0f4ff;
}

/* 自定义滚动条 */
.chapter-content::-webkit-scrollbar {
  width: 8px;
}

.chapter-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.chapter-content::-webkit-scrollbar-thumb {
  background: #2962ff;
  border-radius: 4px;
}

.chapter-content::-webkit-scrollbar-thumb:hover {
  background: #1e4ec7;
}

/* 章节导航样式 */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid #eee;
}

.chapter-nav a {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  color: #fff;
  text-decoration: none;
  background: #2962ff;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}




.chapter-nav .prev::before {
  content: '←';
  margin-right: 8px;
}

.chapter-nav .next::after {
  content: '→';
  margin-left: 8px;
}

/* 阅读设置浮动按钮 */
.read-settings {
  position: fixed;
  right: 20px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.setting-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: #2962ff;
}

.setting-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 夜间模式样式 */
body.night-mode .read-container {
  background: #1a1a1a;
  color: #ccc;
}

body.night-mode .title {
  color: #fff;
}

body.night-mode .chapter-content {
  color: #bbb;
}

body.night-mode .chapter-content p:hover {
  background-color: #2a2a2a;
}

body.night-mode .setting-btn {
  background: #2a2a2a;
  color: #fff;
}

body.night-mode .chapter-nav a {
  background: #2a2a2a;
  color: #fff;
}

.author_color {
 color: #2962ff; 
}

.font-size-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.font-size-controls .setting-btn {
  margin: 0 4px;
}

.font-size-controls .current-size {
  min-width: 36px;
  text-align: center;
  font-size: 16px;
  color: #333;
}