/* 省略之前的样式，保留与之前相同的部分 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Songti", "Kaiti", "Heiti", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 40px;
}

.main—box {
  padding: 0 15px;
}
.breadcrumb {
  max-width: 600px;
  margin: 20px auto;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}
.breadcrumb a {
  text-decoration: none;
  color: #007bff;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #efefef;
  padding: 0px 15px;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  overflow: hidden;
}

.navbar a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  margin-right: 15px;
}
.custom-Songti {
  font-family: "Songti";
}
.custom-Kaiti {
  font-family: "STKaiti";
}
.custom-Heiti {
  font-family: "Heiti";
}
.chapter-content {
  /* display: flex; */
  /* flex-direction: column; */
  padding: 20px;
  background-color: #ffffff;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.chapter-content p {
  /*text-indent: 2em;*/
  margin-bottom: 15px;
}
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 50%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-buttons button {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  width: 50px;
  height: 50px;
}

.floating-buttons button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.settings-panel {
  position: fixed;
  /*right: 20px;*/
  bottom: 300px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: none;
}

.settings-panel label {
  display: block;
  margin-bottom: 5px;
}

.settings-panel select,
.settings-panel input[type="color"] {
  font-size: 16px;
  margin-bottom: 10px;
  width: 100%;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background-color: #efefef;
  border-top: 1px solid #ddd;
}

.footer-nav a {
  text-decoration: none;
  color: #007bff;
  font-size: 16px;
}

@media (min-width: 768px) {
  body {
    max-width: 600px;
    margin: 0 auto;
  }
}
.page-header {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}
.search-box {
  margin: 40px auto 20px;
  text-align: center;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.search-box input[type="text"] {
  padding: 10px;
  flex: 1;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  outline: none;
  transition: border-color 0.3s;
}

.search-box button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: #0056b3;
}

.category-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.category-content {
  display: flex;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
  flex-wrap: wrap;
}

.category-content button {
  padding: 10px;
  margin: 5px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.category-content button:hover {
  background-color: #0056b3;
}

.category-content a {
  padding: 10px;
  margin: 5px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  text-decoration: none; /* 去掉下划线 */
}

.category-content a:hover {
  background-color: #0056b3;
}

.book-info {
  max-width: 600px;
  margin: 20px auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.info—cover {
  display: flex;
  justify-content: center;
}
.book-info-cover {
  width: 108px; /* 设置图片宽度 */
  height: 150px; /* 设置图片高度 */
  border-radius: 8px;
  margin-right: 20px; /* 添加右边距 */
}
.book-info-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.book-info-author {
  font-size: 18px;
  color: #555;
  margin-bottom: 15px;
}
.book-details {
  flex: 1; /* 使书籍信息部分占据剩余空间 */
  display: flex;
  flex-direction: column; /* 纵向排列 */
}
.book-details a {
  text-decoration: none;
  color: #007bff;
}
.book-list {
  max-width: 600px;
  margin: 0px auto 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-item {
  display: flex;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd; /* 边框 */
}

.book-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.book-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ff5733; /* 书名颜色亮化 */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* 书名阴影效果 */
}
.book-author {
  font-size: 14px;
  color: #666;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* 书名阴影效果 */
}
.book-description {
  font-size: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
}

.book-cover {
  width: 90px;
  height: 120px;
  border-radius: 8px;
  margin-right: 15px;
}

.section-title {
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}
.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px; /* 添加顶部间距 */
}

.action-buttons button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.action-buttons button:hover {
  background-color: #0056b3;
}
.book-info-description,
.chapter-list {
  max-width: 600px;
  margin: 20px auto;
  background-color: #f2f2f2;
  padding: 15px;
  border-radius: 8px;
}
.chapter-list ul {
  list-style-type: none;
  padding: 0;
}

.chapter-list li {
  margin-bottom: 10px;
}

.chapter-list a {
  text-decoration: none;
  color: #007bff;
}

.chapter-list a:hover {
  text-decoration: underline;
}

.chapter-list hr {
  margin: 10px 0; /* 横线的上下间距 */
  border: 0;
  border-top: 1px solid #ddd; /* 横线样式 */
}

.tab-input {
  display: none;
}
.tab-label {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 8px;
}
.tab-content {
  display: none;
  padding: 20px;
  border-top: none;
}
#tab1:checked ~ .content1,
#tab2:checked ~ .content2 {
  display: block;
}
#tab1:checked ~ .tab1,
#tab2:checked ~ .tab2 {
  background: #c3c3c3;
  border-bottom: 1px solid white;
}

.sidebar {
  width: 100%;
  top: 0;
  display: flex;
  margin: auto;
  padding: 5px 0;
}
.nav {
  width: calc(100vw - 45px);
  transition: width 0.3s ease;
}
.nav {
  -webkit-overflow-scrolling: touch;
}

.navbar-item {
  display: inline-block;
  white-space: nowrap;
}

.navbar-items {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.navbar-hr {
  display: none;
}

.navbar-item a {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #616161;
  padding: 0 10px 0;
  height: 44px;
  line-height: 44px;
}

.navbar-item .current {
  position: absolute;
  background: #fcd877;
  width: 60%;
  height: 20%;
  bottom: 10px;
  left: 20%;
  z-index: -1;
}

.navbar-item.active a {
  color: #0c0d0f;
}

@media (max-width: 750px) {
  .sidebar {
    width: 100%;
    top: 0;
    display: flex;
    padding: 5px 0;
  }
  .nav {
    width: calc(100vw - 45px);
    transition: width 0.3s ease;
  }
  .nav {
    -webkit-overflow-scrolling: touch;
  }

  .book-info {
    align-items: center;
  }

  .navbar-item {
    display: inline-block;
    white-space: nowrap;
  }

  .navbar-items {
    display: inline-flex !important;
    justify-content: flex-start;
    padding: 0 5px;
  }

  .navbar-hr {
    display: none;
  }

  .navbar-item a {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #616161;
    padding: 0 10px 0;
    height: 44px;
    line-height: 44px;
  }

  .navbar-item .current {
    position: absolute;
    background: #fcd877;
    width: 60%;
    height: 20%;
    bottom: 10px;
    left: 20%;
    z-index: -1;
  }

  .navbar-item.active a {
    color: #0c0d0f;
  }
}

.swiper-container-pointer-events {
  touch-action: pan-y;
}

.radian,
.navbar-item.active,
.links {
  position: relative;
}

.navbar .swiper-slide,
#playSwiper .swiper-slide {
  width: auto;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
}

@media (min-width: 980px) {
  .page {
    margin-top: 10px;
  }
}

.page a,
.page span {
  padding: 3px 5px;
}

.page a {
  text-decoration: none;
  text-transform: none;
  color: #0c0d0f;
}

.page .btn {
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
}

.page {
  font-size: 12px;
  display: flex;
  margin: 0 10px;
  justify-content: flex-end;
  align-items: center;
}

#ad_cs {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mob_ad {
  width: 100%;
  display: block;
  position: relative;
}

#page_input {
  width: 50px;
  height: 25px;
}
