/* 省略之前的样式，保留与之前相同的部分 */
* {
    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: 15px;
    padding-top: 60px;
}
.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: 10px 15px;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.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: 70px 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);
}
.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: 20px auto;
}

.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;
}

.book-cover {
    width: 90px;
    height: 120px;
    border-radius: 8px;
    margin-right: 15px;
}

.section-title {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    font-weight: bold;
}
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px; /* 添加顶部间距 */
}

.action-buttons button {
    padding: 10px 15px;
    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;
}
