body {
    font-family: "Microsoft JhengHei", "Microsoft YaHei", -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    background: #f2f5f7;
    height: auto;
}
/* 通用样式 */
.btn-round {
    -webkit-border-radius: 10rem;
    border-radius: 10rem;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0096FF;
    border-color: #0096FF;
}

a {
    color: #4d5259;
}
a:hover {
    text-decoration: underline;
    color: #007bff;
}
.fs-1 {
    font-size: 1rem;
}
/* 分割线 */
.lyear-divider {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-flex: 0;
    flex: 0 1;
    color: #4d5259;
    font-size: 14px;
    letter-spacing: .5px;
    margin: 2rem auto;
    width: 100%;
}
.lyear-divider::before,
.lyear-divider::after {
    content: '';
    -webkit-box-flex: 1;
    flex-grow: 1;
    border-top: 1px solid rgba(77, 82, 89, 0.07);
}
.lyear-divider::before {
    margin-right: 15px;
}
.lyear-divider::after {
    margin-left: 15px;
}
/* 首页 */
.site-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.site-title .small {
    font-size: 60%;
}
.book-card {
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    padding: 0 0 20px 20px;
}

.book-card-img {
    width: 160px;
    border-radius: 2px;
    box-shadow: 0px 1px 7px 2px #c7c9d3;
    border-bottom: 1px solid #dcddde;
    object-fit: cover;
    transition: 0.3s ease;
}
.book-card-img:hover {
    transform: scale(1.04);
}
.card-content {
    padding: 30px;
    overflow: hidden;
    position: relative;
}
.book-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.book-name a:hover {
    text-decoration: none;
}
.book-by {
    margin-bottom: 1rem;
}
.img-box {
    min-width: 160px;
}
.divider-name {
    font-size: 1.75rem;
    font-weight: 300;
}
.site-footer {
    border-top: 1px solid rgba(77, 82, 89, 0.07);
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* 书籍列表 */
.block-title {
    position: relative;
    display: block;
    margin-top: 40px;
    margin-bottom: 40px;
    line-height: 22px;
}
.block-title h2 {
    position: relative;
    display: inline;
    padding-right: 16px;
    font-size: 26px;
    z-index: 1;
    font-weight: 300;
    margin: 0px;
}
.block-title-line {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    color: rgba(0,0,0,.075);
    background: currentColor;
    margin-left: 60px;
}
.book-reader {
    background-color: #fff;
    min-height: 100vh;
    padding: 30px 50px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0px 2px 50px 10px rgba(0, 0, 0, 0.21);
}
.book-list ul li {
    font-size: 1rem;
    line-height: 2.75;
    width: 50%;
}

/* 阅读详情 */

.book-info p {
    text-indent: 32px;
    line-height: 2.1;
}
.chapter-title {
    font-size: 1.5rem;
    font-weight: 300;
}

/* 阅读设置工具栏样式 */
.reading-settings {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 20px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.reading-settings label {
    color: white;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
}
.reading-settings select, .reading-settings input {
    border-radius: 30px;
    padding: 4px 12px;
    border: none;
    background: #fff;
    font-size: 0.85rem;
}
.reading-settings .btn-setting {
    background: #f8f9fa;
    border: none;
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.reading-settings .btn-setting:hover {
    background: #e9ecef;
    transform: scale(1.02);
}
.reading-settings .color-input {
    width: 40px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid white;
    cursor: pointer;
    padding: 0;
}
.toolbar-container {
    text-align: center;
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .reading-settings {
        border-radius: 20px;
        padding: 12px 16px;
        gap: 10px;
    }
    .book-reader {
        padding: 20px 20px;
    }
}
blockquote {
    background: rgba(0, 0, 0, 0.035);
    border-radius: 5px;
    padding: 0.5rem;
    padding-left: 36px;
    position: relative;
}
blockquote:after {
    content: "”";
    position: absolute;
    right: -60px;
    top: -38px;
    font-size: 80px;
    color: #e0e0e0;
}
blockquote p {
    text-indent: 0px!important;
}
blockquote p:last-child {
    margin-bottom: 0px;
}
/* 卡牌 */
.card-body {
    font-family: "Microsoft JhengHei", "Microsoft YaHei", -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    min-height: 100vh;
    color: #fff;
    background: url(../images/bg.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}
.card-box {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}
.shuihu-title {
    font-size: 3.4rem;
    font-weight: 800;
    color: #e0e0e0;
    text-transform: uppercase;
    -webkit-text-fill-color: #313C40;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #e0e0e0;
    letter-spacing: 3px;
    text-stroke: 1px #e0e0e0;
}
.card-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    margin-bottom: 30px;
    padding: 3px;
    background-color: rgba(0,0,0,.15);
    border-radius: 5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.35);
}
.card-item img {
    border-radius: 5px;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.comic-strip img {
    aspect-ratio: 16/9;
}
.card-name {
    font-size: 16px;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    margin: 3px;
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 100%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 100%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    text-align: center;
}
.card-item:hover {
    transform: translateY(-8px);
}

/* 全屏模态框样式 (完全全屏，无边界) */
.modal-fullscreen {
    padding: 0 !important;
}
.modal-fullscreen .modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}
.modal-fullscreen .modal-content {
    height: 100%;
    border-radius: 0;
    background: #131423;
    border: none;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 44px;
    color: #E0E0E0;
    cursor: pointer;
    z-index: 1050;
    transition: 0.2s;
    opacity: 0.8;
    font-weight: 300;
}
.close-modal:hover {
    color: #f96868;
    transform: rotate(90deg);
}
.modal-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
}
.card-img-box {
    background-color: #E0E0E0;
    padding: 15px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #00000026;
    border-radius: 0px 0px 0px 0px;
    position: relative;
    border-radius: 5px;
    transform: rotate(-3.52deg);
}
.no-transform {
    transform: rotate(0);
}
.modal-card-name {
    position: absolute;
    right: -20%;
    bottom: 10%;
    background: #256E9B;
    padding: 10px 50px;
    text-align: center;
    font-size: 1rem;
    transform: rotate(3.52deg);
}
.modal-card-name p {
    margin-bottom: 0px;
}
.modal-card-img {
    max-width: 450px;
    width: 100%;
}
.modal-comic-img {
    max-width: 750px;
    width: 100%;
}
.modal-info {
    min-width: 500px;
    max-width: 500px;
}
.modal-comic-info {
    min-width: 450px;
    max-width: 450px;
}
.modal-info h2,
.modal-comic-info h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #E0E0E0;
    position: relative;
}
.modal-info h2:after {
    content: "";
    position: absolute;
    left: 25%;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #FFFFFF33;
    margin-left: 120px;
}
.modal-info p,
.modal-comic-info p {
    margin: 0.75rem 0;
    font-size: 1.25rem;
    display: flex;
    flex-wrap: wrap;
}
.modal-info p span:first-child,
.modal-comic-info p span:first-child {
    font-weight: 700;
    color: #E0E0E0;
    display: inline-block;
}
.modal-info p span:last-child,
.modal-comic-info p span:last-child {
    flex: 1;
    color: #E0E0E0;
}
/* 导航按钮样式 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #f96868;
    transform: translateY(-50%) scale(1.1);
}
.icon-arrow-left {
    width: 50%;
    transform: rotate(90deg);
}
.icon-arrow-right {
    width: 50%;
    transform: rotate(-90deg);
}
.prev-btn {
    left: 35px;
}
.next-btn {
    right: 35px;
}
@media (max-width: 768px) {
    .modal-info p span:first-child {
        width: 85px;
    }
    .modal-info {
        padding: 1rem;
    }
    .shuihu-title {
        font-size: 2.2rem;
    }
    .card-name {
        font-size: 0.85rem;
        padding: 8px;
    }
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }
    .prev-btn {
        left: 15px;
    }
    .next-btn {
        right: 15px;
    }
}

/* 分页 */
.pagination {
    border-radius: 2px;
}
.page-link {
    color: #6c757d;
    margin: 0 3px;
    line-height: 1.3;
    border-radius: 2px;
    border-color: #ececec;
    white-space: nowrap!important;
}
.page-link:hover {
    color: #4d5259;
    background-color: #f9fafb;
}
.page-item:first-child .page-link {
    margin-left: 0px;
}
.page-item:last-child .page-link {
    margin-right: 0px;
}
.page-item:first-child .page-link,
.page-item:last-child .page-link,
.pagination-lg .page-item:first-child .page-link,
.pagination-sm .page-item:first-child .page-link,
.pagination-lg .page-item:last-child .page-link,
.pagination-sm .page-item:last-child .page-link {
    border-radius: 2px;
}
.page-item.disabled .page-link {
    color: #6c757d;
    opacity: 0.6;
}

.page-link:focus {
    background-color: #f9fafb;
    color: #4d5259;
    box-shadow: none;
}
.pagination-lg .page-link {
    padding: .5rem 1.5rem;
}
.pagination.no-border > li a,
.pagination.no-border > li span {
    border: none;
}
.pagination.no-gutters > li a,
.pagination.no-gutters > li span {
    margin: 0;
    margin-left: -1px;
    -webkit-border-radius: 0 !important;
    border-radius: 0 !important;
}