.section {
  background: #fff;
  padding: 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.fire-icon {
  font-size: 1.2rem;
}

.more-link {
  color: #666;
  font-size: 0.8rem;
  text-decoration: none;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 1rem;
}

.book-card {
  width: 90px;
}

.book-cover {
  position: relative;
  width: 90px;
  height: 120px;
  border-radius: 0.2rem;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

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

.book-card .book-views {
  position: absolute;
  left: 0.2rem;
  bottom: 0.2rem;
  color: #fff;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.1rem 0.2rem;
  border-radius: 0.2rem;
}

.book-card .book-title {
  font-size: 14px;
  color: #333;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  height: 2.4em;
  margin-top: .24rem;
  font-family: SF Pro;
  font-weight: 700;
  color: #333;
}

/*  */
.novel-list {
  display: flex;
  flex-direction: column;
}

.novel-item {
  overflow-x: hidden;
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
}

.novel-cover {
  width: 90px;
  height: 120px;
  margin-right: 15px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.novel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.novel-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: var(--text-color);
}

.novel-desc {
  font-size: 12px;
  color: #999;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}


/* 热门小说排行榜样式 */
.popular-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 10px 0;
}

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

.popular-scroll {
  display: flex;
  flex-direction: row;
  gap: 15px;
  padding: 5px 0;
}

.popular-page {
  width: calc(100% - 50px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popular-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  background-color: #fff;
  border-radius: 0;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  position: relative;
}

.rank-number {
  font-weight: bold;
  min-width: 40px;
  color: #333;
}

.popular-cover {
  width: 50px;
  height: 66px;
  margin: 0 5px;
  border-radius: 4px;
  overflow: hidden;
}

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

.popular-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.popular-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}

.popular-desc {
  font-size: 12px;
  color: #999;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}



/* 详情页样式 */
.detail-container {
  padding: 15px;
  background-color: #f8f8f8;
}

/* 小说卡片 */
.novel-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 小说头部信息 */
.novel-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.novel-cover-detail {
  position: relative;
  width: 130px;
  height: 172px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

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

/* 已完本标签 - 丝带样式 */
.novel-status {
  position: absolute;
  top: 10px;
  right: -30px;
  background-color: #ff3333;
  color: white;
  padding: 5px 30px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.novel-basic-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.novel-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 15px 0;
  line-height: 1.3;
  color: #333;
  width: 100%;
}

.novel-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  text-align: left;
}

.meta-item {
  display: flex;
  font-size: 12px;
  line-height: 1.5;
}


.meta-value {
  color: #333;
  font-size: 14px;
}

.meta-link {
  color: #0066cc;
  text-decoration: none;
}

/* 标签样式 */
.novel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid #eee;
  width: 100%;
}

.tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-decoration: none;
}

/* 小说章节 */
.novel-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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


/* 章节控制区域 */
.chapter-controls {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

/* 章节总数 */
.chapter-count {
  margin-right: 15px;
  font-weight: normal;
  font-size: 14px;
}

/* 排序按钮 */
.sort-btn {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  padding: 4px 10px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-btn i {
  margin-right: 5px;
  font-size: 12px;
}

.sort-btn:hover {
  background-color: #f5f5f5;
  color: #6c5ce7;
  border-color: #6c5ce7;
}


.novel-synopsis {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  position: relative;
}

.novel-synopsis.expanded {
  max-height: none;
}

.novel-synopsis p {
  margin: 0 0 10px 0;
}

.read-more-container {
  text-align: center;
  margin-top: 10px;
}

.read-more-btn {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
}

/* 阅读按钮 */
.read-btn {
  padding: 12px 0;
  margin: 10px 0;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 92%;
  max-width: 660px;
  background-color: #ff3333;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(255, 51, 51, 0.3);
  z-index: 999;
}

/* 章节列表 */
.chapter-list {
  display: flex;
  flex-direction: column;
}

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

.chapter-title {
  font-size: 14px;
}

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

.view-all-container {
  text-align: center;
  margin-top: 15px;
}

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

/* 作者页面特定样式 */
.author-container {
  padding: 20px 15px;
  background-color: #f8f8f8;
}

.author-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.author-header {
  background: linear-gradient(135deg, #3a6186, #89253e);
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  position: relative;
}

.author-name {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

.author-description {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.author-stats {
  display: flex;
  justify-content: space-around;
  padding: 10px;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 6px;
  position: relative;
}

.stat-item:nth-child(2) {
  flex: none;
  width: 70px;
}

.stat-item:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #eee;
}

.stat-value {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* 作者作品列表标题 */
.author-works-title {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0;
  padding-left: 10px;
  border-left: 4px solid #89253e;
}

.list {
  padding: 15px;
  background-color: #fff;
}

.filter-container {
  position: relative;
  background-color: #f8f9ff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.15);
}

.filter-section {
  position: relative;
  padding: 15px 8px;
  border-bottom: 1px dashed rgba(108, 92, 231, 0.2);
}

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

.filter-title {
  position: relative;
  font-size: 16px;
  font-weight: bold;
  color: #6c5ce7;
  margin-bottom: 8px;
  padding-left: 15px;
  display: flex;
  align-items: center;
}

.filter-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #6c5ce7;
  border-radius: 2px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 5px;
}

.filter-option {
  background-color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #666;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-option:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.1), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.filter-option:hover:before {
  left: 100%;
}

.filter-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
  border-color: #6c5ce7;
  color: #6c5ce7;
}

.filter-option.active {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border: none;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
  font-weight: 500;
}

/* 添加波浪装饰 */
.filter-container:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 10px;
  max-width: 750px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%236c5ce7'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%236c5ce7'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%236c5ce7'%3E%3C/path%3E%3C/svg%3E") center bottom no-repeat;
  background-size: 100% 100%;
  z-index: 1000;
}

/* 排行榜模块样式 */
.rank {
  padding: 15px;
  max-width: 750px;
  margin: 0 auto;
}

.rank-module {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px dashed rgba(108, 92, 231, 0.2);
}

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

.rank-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, #6c5ce7, #a29bfe);
  border-radius: 2px;
}

.rank-more {
  color: #6c5ce7;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.rank-more i {
  margin-left: 5px;
  font-size: 12px;
}

.rank-list {
  padding: 10px 15px;
}

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

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

.rank-index {
  width: 24px;
  height: 24px;
  background-color: #f0f0f0;
  color: #999;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

.rank-index.top1 {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: #fff;
}

.rank-index.top2 {
  background: linear-gradient(135deg, #a8c0ff, #3f2b96);
  color: #fff;
}

.rank-index.top3 {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: #fff;
}

.rank-cover {
  width: 70px;
  height: 95px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.rank-book-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.rank-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  color: #999;
  gap: 8px;
}

.rank-author,
.rank-category,
.rank-wordcount {
  display: flex;
  align-items: center;
}

.rank-author i,
.rank-category i,
.rank-wordcount i {
  margin-right: 4px;
  font-size: 12px;
}

.rank-category {
  color: #6c5ce7;
  text-decoration: none;
}

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

/* 响应式调整 */
@media (max-width: 360px) {
  .rank-cover {
    width: 60px;
    height: 85px;
  }

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

  .rank-desc {
    font-size: 12px;
  }
}


.rank-page {
  padding: 15px;
  max-width: 750px;
  margin: 0 auto;
}

/* 排行榜选项卡 */
.rank-tabs {
  display: flex;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 100;
}

.rank-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: #666;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rank-tab.active {
  color: #6c5ce7;
  font-weight: bold;
}

.rank-tab.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(to right, #6c5ce7, #a29bfe);
  border-radius: 3px 3px 0 0;
}

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

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

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

.rank-index {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 24px;
  height: 24px;
  background-color: #f0f0f0;
  color: #999;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  z-index: 1;
}

.rank-index.top1 {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: #fff;
}

.rank-index.top2 {
  background: linear-gradient(135deg, #a8c0ff, #3f2b96);
  color: #fff;
}

.rank-index.top3 {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: #fff;
}

.rank-cover {
  width: 80px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

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

.rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.rank-book-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.rank-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  color: #999;
  gap: 8px;
}

.rank-author,
.rank-category,
.rank-wordcount {
  display: flex;
  align-items: center;
}

.rank-author i,
.rank-category i,
.rank-wordcount i {
  margin-right: 4px;
  font-size: 12px;
}

.rank-author {
  text-decoration: none;
  color: #999;
}

.rank-author:hover {
  color: #6c5ce7;
}

.rank-category {
  color: #6c5ce7;
  text-decoration: none;
}

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

/* 响应式调整 */
@media (max-width: 360px) {
  .rank-cover {
    width: 70px;
    height: 95px;
  }

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

  .rank-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .rank-tab {
    font-size: 14px;
    padding: 10px 0;
  }
}

.rank-h1 {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #6c5ce7;
  margin: 15px 0;
  padding: 10px 15px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.rank-h1:before,
.rank-h1:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 25px;
  background: linear-gradient(to right, #6c5ce7, #a29bfe);
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.rank-h1:before {
  left: -35px;
}

.rank-h1:after {
  right: -35px;
}


/* 阅读页面整体样式 */
.read {
  max-width: 750px;
  margin: 0 auto;
  padding: 15px;
  background-color: #f9f5e9;
  /* 米黄色背景，类似纸张 */
  min-height: 100vh;
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

/* 章节标题样式 */
.read h1 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 20px 0 30px;
  padding-bottom: 15px;
  position: relative;
  letter-spacing: 1px;
}

.read h1:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #d1c4a1, #8c7e58);
  border-radius: 2px;
}

/* 正文内容样式 */
.desc-read {
  padding: 0 10px;
}

.chapter-content p {
  margin-bottom: 18px;
  text-indent: 2em;
  /* 首行缩进 */
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}



/* 响应式调整 */
@media (max-width: 480px) {
  .read {
    padding: 12px;
    font-size: 15px;
  }

  .read h1 {
    font-size: 20px;
    margin: 15px 0 25px;
  }

  .desc-read p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
  }
}



/* 主题切换按钮样式 */
.theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 各种主题按钮的颜色 */
#lightTheme {
  background: #f9f5e9;
  color: #f39c12;
}

#darkTheme {
  background: #252525;
  color: #bbb;
}

#yellowTheme {
  background: #fff9c4;
  color: #f39c12;
}

#greenTheme {
  background: #e8f5e9;
  color: #4caf50;
}

.theme-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
}

/* 各种主题的样式 */
/* 默认浅色主题 */
.read {
  background-color: #f9f5e9;
  color: #333;
}

/* 深色主题 */
.read.dark-theme {
  background-color: #252525;
  color: #bbb;
}

.read.dark-theme h1 {
  color: #ddd;
}

.read.dark-theme .chapter-nav {
  border-top-color: #444;
}

.read.dark-theme .nav-btn {
  background-color: #333;
  color: #bbb;
}

/* 黄色主题 */
.read.yellow-theme {
  background-color: #fff9c4;
  color: #5d4037;
}

.read.yellow-theme h1 {
  color: #5d4037;
}

.read.yellow-theme h1:after {
  background: linear-gradient(to right, #f9a825, #ffd54f);
}

.read.yellow-theme .chapter-nav {
  border-top-color: #ffe082;
}

/* 绿色主题 */
.read.green-theme {
  background-color: #e8f5e9;
  color: #1b5e20;
}

.read.green-theme h1 {
  color: #2e7d32;
}

.read.green-theme h1:after {
  background: linear-gradient(to right, #66bb6a, #a5d6a7);
}

.read.green-theme .chapter-nav {
  border-top-color: #c8e6c9;
}


/* 悬浮设置按钮 */
.floating-settings {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.floating-settings.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
  .floating-settings {
    right: calc(50% - 375px + 20px); /* 居中内容区域的右侧 */
    top: 50%;
    transform: translateY(-50%);
  }
}

/* 移动端定位 */
@media (max-width: 768px) {
  .floating-settings {
    right: 15px;
    top: 50%;
    /* transform: translateY(-50%); */
  }
}


.settings-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6c5ce7;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.settings-btn:hover {
  transform: scale(1.1);
}

.settings-btn i {
  font-size: 18px;
}

.settings-panel {
  position: absolute;
  top: 45px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  right: -32px;
  width: 110px;
  padding: 12px;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.settings-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.settings-item {
  margin-bottom: 15px;
}

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

.settings-item span {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.font-size-controls,
.mode-switch {
  display: flex;
  justify-content: space-between;
}

.font-btn,
.mode-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  color: #666;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-btn:hover,
.mode-btn:hover {
  background: #6c5ce7;
  color: #fff;
  border-color: #6c5ce7;
}

.mode-btn.active {
  background: #6c5ce7;
  color: #fff;
  border-color: #6c5ce7;
}

/* 夜间模式样式 */
.read.night-mode {
  background-color: #252525;
  color: #bbb;
}

.read.night-mode h1 {
  color: #ddd;
}

.read.night-mode h1:after {
  background: linear-gradient(to right, #555, #777);
}

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

.read.night-mode .chapter-nav {
  border-top-color: #444;
}

.read.night-mode .nav-btn {
  background-color: #333;
  color: #bbb;
}

.read.night-mode .toc-btn {
  background-color: #5649c0;
}

.nav-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4e54c8;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: #3a3f99;
  transform: scale(1.05);
}

/* 禁用状态样式 */
.nav-btn.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none; /* 禁止点击 */
}

.nav-btn.disabled:hover {
  background-color: #ccc;
  transform: none;
}


.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
}


.toc-btn {
  background-color: #6c5ce7;
  color: #fff;
}

.toc-btn:hover {
  background-color: #5649c0;
}