/* ============================================
   现代化小说网站样式 - 重新设计版本
   ============================================ */

/* ========== 基础样式 ========== */
#searchForm {
    display: none;
}

.search-active .logo-a {
    display: none;
}

.search-active~*:not(header),
.search-active+* {
    display: none !important;
}

.search {
    margin-right: 10px;
    width: 20px !important;
}

.icon {
    display: flex;
    align-items: center;
}

.search-active .search-form {
    display: flex !important;
}

.search-active .home-nav,
.search-active #searchContainer {
    display: none;
}

.search-reset {
    position: absolute;
    top: 0;
    right: 0;
    height: inherit;
    width: 2rem;
    border: 0 none;
    background: none;
    padding: 0;
    -webkit-animation: fadein .15s;
    animation: fadein .15s;
}

.header a {
    font-size: 9px;
    color: #ffffff;
}

.search-cancel {
    width: 3.25rem;
    height: 2rem;
    line-height: 2rem;
    position: absolute;
    right: .25rem;
    top: 0;
    bottom: 0;
    margin: auto;
    font-size: 0.875rem;
    text-align: center;
}

/* ========== 导航栏样式 ========== */
.home-nav {
    display: flex;
    justify-content: space-around;
    margin: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    padding: 1rem 0.625rem 0.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.home-nav .guide-nav-a {
    display: block;
}

.guide-nav-a {
    display: inline-block;
    width: 3.5rem;
    height: 0.625rem;
    text-align: center;
    font-size: 15px !important;
    position: relative;
}

.guide-nav-h {
    position: absolute;
    margin: 0;
    left: 0;
    right: 0;
    bottom: 0.1875rem;
    display: block;
    font-weight: 600;
}

.guide-nav-a>.icon {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 1.625rem;
    width: 48px;
    height: 48px;
    background-image: url(../images/sprite.png);
    background-size: 430px 420px;
}

.icon-hongxiu-sort {
    background-position: -208px -156px;
}

.icon-hongxiu-rank {
    background-position: 0px 0px;
}

.icon-hongxiu-fuli {
    background-position: -156px -104px;
}

.icon-hongxiu-newbook {
    background-position: -104px -156px;
}

.active {
    color: #2563eb;
    font-weight: 700;
}

.guide-nav-a.active .guide-nav-h {
    color: #2563eb;
    font-weight: 700;
}

/* ========== 模块容器样式 ========== */
.module {
    margin: 0.75rem 0.75rem;
    background: transparent;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 0.25rem;
    position: relative;
}

.module-header-l {
    flex: 1;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.module-title::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 2px;
}

.module-header-r {
    display: flex;
    align-items: center;
}

.module-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: #2563eb;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.module-header-btn .arrow_r {
    width: 14px;
    height: 14px;
}

/* ========== 书籍列表容器 ========== */
.book-ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-ol-normal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ========== 书籍卡片布局 ========== */
.book-layout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
}

/* ========== 书籍封面样式 ========== */
.book-cover-container {
    position: relative;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.book-cover {
    width: 5rem;
    height: 7.5rem;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* ========== 作者覆盖层 ========== */
.author-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.95) 0%, rgba(6, 182, 212, 0.95) 100%);
    padding: 0.5rem;
    text-align: center;
    border-radius: 0 0 12px 12px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.author-overlay .book-author {
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-overlay .author_color {
    color: #ffffff !important;
    text-decoration: none;
}

/* ========== 书籍信息区域 ========== */
.book-cell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.book-title {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-title a {
    color: #1a202c;
    text-decoration: none;
}

.word-count-inline {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

/* ========== 书籍描述 ========== */
.book-desc {
    margin: 0.25rem 0;
    line-height: 1.6;
    font-size: 0.875rem;
    color: #4a5568;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8rem;
}

/* ========== 书籍元信息 ========== */
.book-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.tag-small-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-small {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.lightgreen {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.lightblue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.smallblue {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #ffffff;
}

/* ========== 排行榜序号 ========== */
.rank-num {
    position: absolute;
    top: 3px;
    left: 3px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 0px 7px;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* ========== 特殊列表样式 ========== */

/* 每日推荐 */
.day-recommend .book-layout {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%);
}

.day-recommend .book-cover {
    width: 6rem;
    height: 9rem;
}

/* 人气榜 */
.popularity-rank .book-layout {
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.98) 100%); */
}

.popularity-rank .rank-num {
    display: block;
}

/* 完本推荐 */
.completed-recommend .book-layout {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 250, 0.95) 100%);
}

.completed-recommend .book-cover {
    width: 6rem;
    height: 9rem;
}

/* 月榜 */
.month-rank .book-layout {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 255, 0.95) 100%);
}

.month-rank .rank-num {
    display: block;
}

/* ========== 广告区域 ========== */
.ad-div {
    clear: both;
    min-width: 250px;
    margin: 0.75rem 0.75rem;
    width: calc(100% - 1.5rem);
    border-radius: 8px;
    overflow: hidden;
}

.t_de {
    height: 0.2rem;
    max-width: 100%;
    line-height: 0.3rem;
    font-size: 0.6rem;
    padding: 0.5rem 0 1rem 0;
    box-sizing: border-box;
    color: #a0aec0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== 其他组件样式 ========== */
.book-ol-small {
    overflow: hidden;
    padding: 0.5rem 0;
}

.book-ol-small .book-li {
    width: 50%;
    float: left;
}

.book-ol-small .book-li .book-layout {
    padding: 0.75rem;
}

.book-ol-small .book-li .book-cover {
    width: 3rem;
    height: 4rem;
}

.module-slide-ol {
    display: none;
    padding-left: .5rem;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 10.75rem;
    position: relative;
}

.module-slide-ol.module-slide-ol-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding-right: .5rem;
}

.module-slide-li {
    display: inline-block;
    vertical-align: top;
    white-space: normal;
}

.module-slide-a {
    display: block;
    width: 4.125rem;
    padding: .75rem .5rem .5rem;
    box-sizing: content-box;
}

.module-slide-img {
    display: block;
    width: inherit;
    height: 5.5rem;
    box-shadow: 0 4px 8px 0 #0000001a;
    border-radius: 8px;
}

.module-slide-caption {
    margin: .5rem 0 .25rem;
    font-size: 0.8125rem;
    max-height: 2.125rem;
    line-height: 1.125rem;
    overflow: hidden;
    font-weight: bold;
    color: #191919;
}

/* ========== 详情页样式 ========== */
.book-detail-info {
    position: relative;
    background: linear-gradient(to top, var(--background-bw-white), transparent 8rem) no-repeat center bottom;
    color: #191919;
}

.book-detail .book-cover {
    width: 7rem;
    height: 9.5rem;
}

.book-detail-info .book-cell {
    line-height: 1.4rem;
}

.book-detail .book-title {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 18px;
    overflow: auto;
    white-space: normal;
}

/* ========== 书籍详情卡片样式 ========== */
.book-detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 0.75rem 0.75rem;
    padding: 1.25rem;
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.book-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.book-header-info {
    flex: 1;
}

.book-detail-card .book-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    display: block;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-detail-card .book-author {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.book-detail-card .book-author a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.book-detail-card .book-genre {
    font-size: 0.85rem;
    color: #4a5568;
}

.book-detail-card .book-genre a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.book-cover-section {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    display: inline-block;
    width: 100%;
}

.book-cover-section::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(50% + 8px);
    height: calc(100% + 8px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(6, 182, 212, 0.95) 100%);
    border-radius: 12px;
    z-index: 0;
}

.book-cover-image {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.book-tag {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: #2563eb;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-weight: 500;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-start-read {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    display: block;
}

.book-rand-a {
    font-size: 13px;
}

.book-meta {
    font-size: 13px;
    overflow: hidden;
}

p {
    word-break: break-all;
}

.book-summary {
    padding: 1rem;
    margin: 0.75rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.08);
    text-align: justify;
    max-height: 5.92rem;
    overflow: hidden;
    position: relative;
    color: #4a5568;
}

.book-summary.enabled {
    height: 6.2rem;
    max-height: none;
}

.book-summary-more {
    width: 35px;
    height: 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white 1rem);
    position: absolute;
    right: 1rem;
    bottom: 0;
    text-align: right;
}

.book-summary-more>img {
    float: right;
    color: #2563eb;
    margin-top: .5em;
    width: 14px;
    height: 14px;
}

.book-summary.expanded .book-summary-more img {
    transform: rotate(180deg);
}

.book-chapter {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.08);
    padding: 0.875rem;
    margin: 0.75rem 0.75rem;
}

.book-chapter p {
    font-size: 1.1rem;
    display: block;
    color: #1a202c;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.15);
}

.book-chapter .chapter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.book-chapter .chapter:last-child {
    border-bottom: none;
}

.book-chapter em {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 10px;
    flex-shrink: 0;
}

.catalogue {
    padding: 0 !important;
}

.book-chapter .chapter .chapterName {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.6;
    font-size: 0.9375rem;
    color: #1a202c;
    padding-right: 15px;
    font-weight: 500;
    text-decoration: none;
}

.book-chapter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-sub-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.cate-dis {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cate-dis p {
    margin: 0;
}

/* ========== 阅读页面样式 ========== */
.read-book-name {
    font-size: .75rem;
    position: absolute;
    left: 1rem;
    top: 15px;
    color: var(--chapter-secondary-text);
    font-weight: 400;
    max-width: 10.625rem;
}

.ell {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.read-top-right {
    position: absolute;
    right: 1rem;
    top: 0.625rem;
    display: flex;
    align-items: center;
    color: #777;
}

.read-book-catlog {
    font-size: 0.75rem;
    font-weight: 400;
}

.top-right-item {
    display: flex;
    align-items: center;
    height: 1.5rem;
    font-size: 0.75rem;
    background-color: #ebebeb;
    border-radius: 0.5rem;
    padding: 0 0.5rem;
}

.top-right-item img {
    margin-right: 6px;
}

.read-article {
    min-height: calc(100vh - 144px);
    line-height: 1.8;
    margin: 0 16px;
    font-size: 1rem;
    text-align: justify;
    overflow: hidden;
}

.read-section {
    overflow: hidden;
    min-height: inherit;
}

.read-article h3 {
    line-height: 1.2;
    font-size: 1.5em;
    margin: 1em 0;
    font-weight: 400;
}

.read-article p {
    font-size: 1em;
    margin: 1em 0;
}

/* ========== 按钮样式 ========== */
.btn-group-tab {
    position: relative;
    background-color: #fff;
}

.btn-group {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-left: auto;
    margin-right: auto;
}

.btn-group-cell {
    display: table-cell;
    font-size: 100%;
    font-weight: 400;
}

.btn-group-tab .active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.btn-group-tab .btn-blank {
    line-height: 2.75rem;
    color: #d33c33;
    border-bottom: 1px solid #d33c33;
    font-size: 0.875rem;
    -webkit-transition: color .15s;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-blank {
    display: block;
    text-align: center;
    line-height: 2.5rem;
}

.btn {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin: 20px 0;
}

.btn-prev,
.btn-next {
    padding: 0.6rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-prev {
    margin-right: 10px;
}

.more {
    margin-top: 10px;
    color: #fff;
    border-radius: 30px;
    font-size: 15px;
    text-align: center;
}

.more a {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ========== 筛选器样式 ========== */
.sort-ul {
    display: block;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin: 0.5rem;
}

.sort-li {
    margin-bottom: 0.75rem;
    padding: 0 0.875rem 0.875rem;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.sort-li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%);
}

.sort-li-title {
    padding: 0.75rem 0;
    font: bold 0.875rem / 1.5rem a;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-li-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 40px;
    padding: 0;
    position: relative;
    cursor: pointer;
}

.sort-li-header::after,
.sort-li-title::after {
    content: '';
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    left: 0;
    right: 0;
    position: absolute;
    bottom: 0;
}

.sort-toggle-btn {
    font-size: 14px;
    color: #2563eb;
    user-select: none;
    background: rgba(37, 99, 235, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.sort-li.collapsed .sort-toggle-btn {
    transform: rotate(-90deg);
}

.sort-li.collapsed .sort-li-detail {
    display: none;
}

.sort-li-detail {
    padding: 1rem 0;
    line-height: 0;
    font-size: 0.75rem;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    text-align: left;
    white-space: nowrap;
    flex-wrap: wrap;
    background: rgba(37, 99, 235, 0.02);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
}

.sort-li-detail .btn-tag {
    flex-shrink: 0;
}

.btn-tag {
    margin-top: 0.4rem;
    font-family: 'pingfang sc';
    line-height: 1.25rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #2563eb;
    text-decoration: none;
    display: inline-block;
    background: #fff;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.module-filter-list .btn-tag.active,
.btn-tag.active {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    font-weight: 600;
}

/* ========== 现代化筛选器样式 ========== */
.modern-filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0.75rem;
}

.filter-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
}

.filter-title-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.filter-icon {
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filter-icon svg {
    width: 16px;
    height: 16px;
}

.filter-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.filter-toggle {
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filter-toggle svg {
    width: 12px;
    height: 12px;
    transform: rotate(0deg);
}

.filter-card.collapsed .filter-toggle svg {
    transform: rotate(180deg);
}

.filter-content {
    overflow: hidden;
    max-height: 0;
    padding: 0 0.75rem;
}

.filter-card:not(.collapsed) .filter-content {
    max-height: 1000px;
    padding: 0.625rem 0.75rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-tag {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    color: #2563eb;
    padding: 0.35rem 0.625rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.filter-tag.active {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    font-weight: 600;
}

/* ========== 模块包装器 ========== */
.module-wrapper {
    margin-top: 0.5rem;
}

.book-ol-top {
    margin-top: 0;
}

.book-ol-top .book-li {
    margin-bottom: 0;
}

/* ========== 作者页面样式 ========== */
.author-page {
    padding: 0;
}

.author-profile {
    padding: 1rem 0.875rem;
    margin: 0.75rem 0.75rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.author-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 0.5rem;
}

.stat-card {
    flex: 1;
    padding: 0.875rem 0.625rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.375rem;
    line-height: 1.2;
    word-break: break-all;
}

.stat-label {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.3;
}

/* PC端适配 */
@media screen and (min-width: 750px) {
    .author-profile {
        padding: 1.25rem 1rem;
        margin: 1rem auto;
        max-width: 1200px;
    }

    .author-stats {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem 0.875rem;
    }

    .stat-value {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }
}

/* 移动端适配 */
@media screen and (max-width: 749px) {
    .author-profile {
        padding: 0.875rem 0.75rem;
        margin: 0.75rem 0.75rem;
    }

    .author-stats {
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
    }

    .stat-value {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* ========== 页脚样式 ========== */
.footer {
    color: #e2e8f0;
    padding: 1.4em 0 1.4em;
}

.footer a {
    color: #a0aec0;
    text-decoration: none;
}

.footer .flink {
    margin-top: 0.4em;
}

/* ========== 响应式设计 ========== */
@media screen and (min-width: 750px) {
    .module {
        margin: 1rem auto;
        max-width: 1200px;
        padding: 0 2rem;
    }

    .book-layout {
        padding: 1rem;
    }

    .book-cover {
        width: 6.5rem;
        height: 9rem;
    }

    .module-title {
        font-size: 1.75rem;
    }

    .book-detail-card {
        margin: 1rem auto;
        max-width: 1200px;
        padding: 1.5rem;
    }

    .book-cover-image {
        max-width: 40%;
    }

    .book-summary {
        margin: 1rem auto;
        max-width: 1200px;
        padding: 1.25rem;
    }

    .book-chapter {
        margin: 1rem auto;
        max-width: 1200px;
        padding: 1.25rem;
    }

    #catalogWrapper {
        margin: 1rem auto;
        max-width: 1200px;
    }

    .chapter-ol-catalog {
        max-height: 700px;
    }

    .modern-filter-container {
        margin: 1rem auto;
        max-width: 1200px;
        gap: 0.625rem;
    }

    .filter-card-header {
        padding: 0.75rem 1rem;
    }

    .filter-content {
        padding: 0 1rem;
    }

    .filter-card:not(.collapsed) .filter-content {
        padding: 0.75rem 1rem;
    }

    .filter-title {
        font-size: 0.875rem;
    }

    .filter-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media screen and (max-width: 749px) {
    .module {
        margin: 0.75rem 0.75rem;
    }

    .book-layout {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .book-cover {
        width: 5rem;
        height: 7.5rem;
    }

    .book-title {
        font-size: 1rem;
    }

    .book-desc {
        font-size: 0.8125rem;
    }

    .book-detail-card {
        margin: 0.75rem 0.75rem;
        padding: 1rem;
    }

    .book-detail-card .book-title {
        font-size: 1.25rem;
    }

    .book-cover-image {
        max-width: 60%;
    }

    .book-summary {
        margin: 0.75rem 0.75rem;
        padding: 0.875rem;
    }

    .book-chapter {
        margin: 0.75rem 0.75rem;
        padding: 0.875rem;
    }

    #catalogWrapper {
        margin: 0.75rem 0.75rem;
    }

    .chapter-ol-catalog {
        max-height: 500px;
    }

    .chapter-tab-x .module-header p {
        font-size: 1.1rem;
    }

    .modern-filter-container {
        margin: 0.75rem 0.75rem;
        gap: 0.5rem;
    }

    .filter-card-header {
        padding: 0.625rem 0.75rem;
    }

    .filter-content {
        padding: 0 0.75rem;
    }

    .filter-card:not(.collapsed) .filter-content {
        padding: 0.625rem 0.75rem;
    }

    .filter-title {
        font-size: 0.8125rem;
    }

    .filter-tag {
        padding: 0.35rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== 工具类 ========== */
.gray {
    color: #777;
}

.clip,
aria {
    position: absolute;
    clip: rect(0 0 0 0);
}

ol,
li {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    box-sizing: border-box;
}

/* ========== 平滑滚动 ========== */
html {
    scroll-behavior: smooth;
}

/* ========== 隐藏元素 ========== */
.grecaptcha-badge {
    visibility: hidden;
}

/* ========== 图标样式 ========== */
.icon-mwen {
    background-image: url(../images/sprite.png);
    background-position: -134px -402px;
    width: 15px;
    height: 16px;
    background-size: 430px 420px;
}

.icon-mtui {
    background-image: url(../images/sprite.png);
    background-position: -172px -402px;
    width: 15px;
    height: 16px;
    background-size: 430px 420px;
}

.header .icon .search,
.header .icon .home-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* ========== 详情页特殊样式 ========== */
.book-detail .book-rand-a:last-child {
    margin-bottom: 0;
}

.book-detail .book-meta {
    margin-top: 0.5rem;
}

.book-detail .book-rand-a,
.book-detail .book-meta,
.book-detail .book-title {
    color: #666;
}

.book-detail .book-rand-a a {
    color: #666;
}

.tags {
    padding: 0;
}

.tags a {
    background-color: transparent;
    color: #666;
    padding: 0 8px 0 0;
    border-radius: 0;
    text-decoration: none;
    position: relative;
}

.tags a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #ccc;
}

/* ========== 阅读设置 ========== */
.setFoot .set {
    transition: all .5s ease;
    position: fixed;
    bottom: -60px;
    display: flex;
    flex-flow: row nowrap;
    height: 60px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background: rgba(0, 0, 0, .8);
    z-index: 999;
}

.setFoot .set a {
    flex-grow: 1;
    text-align: center;
    color: #fff;
    font-size: .7rem;
    line-height: 2px;
}

.setFoot .set a div {
    height: 40px;
}

.setFoot .set a.nightSet div {
    height: 60px;
}

.setFoot .set .menuSet>div {
    background: url(../images/catalog@2x.png) no-repeat center;
    background-size: 20px auto;
}

.setFoot .set .fontSet>div {
    background: url(../images/AaC@2x.png) no-repeat center;
    background-size: 22px auto;
}

.setFoot .set .nightSet>div {
    background: url(../images/Cnight@2x.png) no-repeat center;
    background-size: 22px auto;
}

.setFoot .set .day>div {
    background: url(../images/Cday@2x.png) no-repeat center;
    background-size: 22px auto;
}

.changeFont {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    transition: all .5s ease;
}

.mod-page .hd {
    font-size: .75em;
    padding-bottom: 10px;
    color: #999;
}

.mod-page .hd .config {
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mod-page .hd .config span {
    display: inline-block;
    width: 70px;
    height: 30px;
    line-height: 30px;
    margin: 0 10px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
}

.mod-page .hd .bgcolor span.active {
    box-shadow: 0 0 0 2px #ff593e;
}

@media (max-width: 750px) {
    .once {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        background-color: #d33c33;
        color: #fff;
    }
}

.positionFixed {
    bottom: 0px;
    left: 50%;
    position: fixed;
    transform: translate(-50%, 0%);
    z-index: 999;
    width: 100%;
    display: flex;
    justify-content: center;
}

.page-read-top {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 44px;
    background: inherit;
}

.book-update-time {
    height: 24px;
}

/* ========== 章节标签页 ========== */
.module-merge {
    margin: 0;
}

.chapter-tab-x.active {
    display: block;
}

.chapter-tab-x {
    display: none;
}

.chapter-tab-x.active {
    display: block;
}

.chapter-tab-x .module-header {
    padding: 0 0.5rem;
    border-top: 0;
    position: static;
    margin-bottom: 0.5rem;
}

.chapter-tab-x .module-header p {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.chapter-ol {
    border-bottom: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-bar {
    padding: 4px 1rem 4px;
    line-height: 28px;
    color: #777;
    background-color: rgba(37, 99, 235, 0.05);
    font-size: 13px;
    border-radius: 8px 8px 0 0;
}

/* ========== 目录列表样式 ========== */
#catalogWrapper {
    margin: 0.75rem 0.75rem;
}

.chapter-ol-catalog {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.08);
    padding: 0.5rem 0;
    margin: 0;
    /* max-height: 600px; */
    overflow-y: auto;
}

/* 目录列表滚动条样式 */
.chapter-ol-catalog::-webkit-scrollbar {
    width: 6px;
}

.chapter-ol-catalog::-webkit-scrollbar-track {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 3px;
}

.chapter-ol-catalog::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: 3px;
}

.chapter-ol-catalog::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.3);
}

.chapter-ol-catalog .chapter-li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.chapter-ol-catalog .chapter-li::after {
    display: none;
}

.chapter-ol-catalog .chapter-li-a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    overflow: hidden;
    color: #1a202c;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.chapter-ol-catalog .chapter-li:last-child .chapter-li-a {
    border-bottom: none;
}


.chapter-index {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #1a202c;
}

.chapter-li-a {
    display: block;
    font: 14px / 20px a;
    padding: 10px 1rem;
    overflow: hidden;
    color: #4a5568;
    text-decoration: none;
}

.chapter-li {
    box-sizing: content-box;
}

.chapter-li::after {
    content: '';
    display: block;
    margin-left: 1rem;
    border-top: 1px solid rgba(37, 99, 235, 0.08);
    transform: scaleY(0.75);
    margin-top: -1px;
}

/* ========== 分享按钮 ========== */
.share {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btnAddShelf {
    width: 115px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.take-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 160px;
    height: 40px;
}

.share .blue {
    margin-left: 4px;
    width: 20px;
    height: 20px !important;
}

@media screen and (min-width: 750px) {
    .once {
        display: none;
    }

    .book-category,
    .book-update-time {
        justify-content: flex-start;
    }

    .book-meta a {
        margin-right: 10px;
    }

    .share .take-wrap .blue {
        margin-left: 20px;
        width: 40px;
        height: 40px;
    }
}
