* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*background:#f4f5fb;*/
    font-family: Inter, sans-serif;
    background: linear-gradient(135deg, #f0e6ff 0%, #e6e6ff 10%, #ffffff 70%, #ffffff 100%);
    /*background:linear-gradient(
            180deg,
            #f0e6ff 0,
            #ffffff 30%
    );*/
}

.container {
    width: 1200px;
    max-width: 95%;
    margin: auto;
}

.header {
    height: 72px;
    /*background:rgba(255,255,255,.8);*/
    backdrop-filter: blur(20px);
    position: sticky;
    /*top:0;*/
    z-index: 999;
}

.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    cursor: pointer;
    color: #777;
    font-weight: 500;
    transition: .3s;
}

.menu a:hover,
.menu .active {
    color: #20b2aa;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    background: white;
    border-radius: 30px;
    padding: 0 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
}

.search-box input {
    height: 42px;
    border: none;
    outline: none;
}

.signup {
    color: #666;
    cursor: pointer;
}

.login-btn {
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    background: #12b886;
    color: white;
    cursor: pointer;
}

.banner-section {
    margin-top: 30px;
}

.bannerSwiper {
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
}

.bannerSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet {
    background: white;
    opacity: .7;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 22px;
    border-radius: 20px;
}

.series-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0 30px;
}

.series-header h2 {
    font-size: 40px;
}

.series-header span {
    color: #888;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    /*padding-bottom:80px;*/
}

.book-card {
    background: white;
    border-radius: 20px;
    padding: 18px;
    transition: .35s;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

.book-cover {
    height: 190px;
    overflow: hidden;
    border-radius: 5px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card h3 {
    font-size: 18px;
    margin-top: 15px;
    line-height: 1.4;
}

.book-card p {
    margin-top: 10px;
    color: #888;
}

.price {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #0ca678;
}

@media (max-width: 1200px) {

    .book-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media (max-width: 768px) {

    .menu {
        display: none;
    }

    .search-box {
        display: none;
    }

    .bannerSwiper {
        height: 220px;
    }

    .series-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .series-header h2 {
        font-size: 30px;
    }

    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .book-cover {
        height: 220px;
    }

    .logo span {
        font-size: 20px;
    }

}

@media (max-width: 480px) {

    .book-grid {
        grid-template-columns: 1fr;
    }

    .bannerSwiper {
        height: 180px;
    }

}


/* =========================
双栏区域
========================= */

.double-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 70px;
}

.novel-panel {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 34px;
}

.panel-header a {
    color: #13b8a6;
    text-decoration: none;
}

.mini-book-list {
    display: grid;
    gap: 20px;
}

.mini-book-item {
    display: flex;
    gap: 15px;
}

.mini-book-item img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.mini-info {
    flex: 1;
}

.mini-info h4 {
    font-size: 18px;
}

.mini-info span {
    color: #999;
    display: block;
    /*margin-top: 5px;*/
}

.mini-info p {
    color: #777;
    margin-top: 4px;
    line-height: 1.5;
    font-size: 14px;
}

.mini-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.mini-footer strong {
    color: #15b39d;
}

/* =========================
Recently
========================= */

.recent-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 42px;
}

.section-title a {
    color: #13b8a6;
    text-decoration: none;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.recent-card {
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: .3s;
}

.recent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.recent-card img {
    width: 90px;
    height: 120px;
    border-radius: 3px;
    object-fit: cover;
}

.recent-content {
    flex: 1;
}

.recent-content h4 {
    font-size: 18px;
}

.recent-content span {
    display: block;
    /*margin-top: 5px;*/
    color: #999;
}

.recent-content p {
    margin-top: 10px;
    color: #777;
    line-height: 1.5;
    font-size: 14px;
}

.recent-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.recent-footer strong {
    color: #15b39d;
}

@media (max-width: 768px) {

    .double-section {
        grid-template-columns: 1fr;
    }

    .recent-grid {
        grid-template-columns: 1fr;
    }

    .panel-header h2 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 28px;
    }

}


.comic-section {
    margin-top: 80px;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.comic-card {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 12px;
    transition: .3s;
    border: 1px solid #eee;
}

.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.comic-card img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

.comic-content {
    flex: 1;
}

.comic-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.comic-content span {
    color: #999;
    font-size: 13px;
}

.comic-content p {
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.comic-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.comic-footer strong {
    color: #16b39d;
}

.shortplay-section {
    margin-top: 80px;
    margin-bottom: 100px;
}

.shortplay-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shortplay-prev,
.shortplay-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.shortPlaySwiper {
    flex: 1;
}

.play-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

.play-cover {
    position: relative;
    height: 180px;
}

.play-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.episode {
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: white;
    font-size: 12px;
}

.play-content {
    padding: 14px;
}

.play-content h4 {
    font-size: 18px;
}

.play-content p {
    color: #888;
    margin-top: 6px;
    font-size: 13px;
}

@media (max-width: 768px) {

    .comic-grid {
        grid-template-columns: 1fr;
    }

    .shortplay-prev,
    .shortplay-next {
        display: none;
    }

    .play-cover {
        height: 220px;
    }

}

/* ===========================
Trending Books
=========================== */

.ranking-section {
    margin-top: 90px;
    margin-bottom: 100px;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ranking-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececec;
}

.ranking-card.male {
    background: linear-gradient(
            180deg,
            #e4daff 0,
            #ffffff 200px
    );
}

.ranking-card.female {
    background: linear-gradient(
            180deg,
            #caf2ff 0,
            #ffffff 200px
    );
}

.ranking-card.publish {
    background: linear-gradient(
            180deg,
            #c6ddfd 0,
            #ffffff 200px
    );
}

.ranking-header {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ranking-header h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.ranking-header p {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
}

.ranking-header span {
    font-size: 26px;
    color: #777;
}

.rank-top {
    margin: 0 20px;
    padding: 20px 0;
    border-top: 1px solid #e6e6e6;
    display: flex;
    gap: 15px;
}

.rank-number {
    font-size: 28px;
    font-weight: 700;
    color: #ff4f7a;
}

.rank-info {
    flex: 1;
}

.rank-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.rank-info span {
    color: #999;
    font-size: 13px;
}

.rank-info p {
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.rank-top img {
    width: 70px;
    height: 90px;
    border-radius: 5px;
    object-fit: cover;
}

.rank-list {
    list-style: none;
    padding: 0 20px 25px;
}

.rank-list li {
    display: flex;
    align-items: center;
    height: 38px;
}

.rank-list .no {
    width: 36px;
    color: #999;
    font-weight: 600;
}

.rank-list .second {
    color: #ff8b2c;
}

.rank-list .third {
    color: #16c59f;
}

.rank-list .title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list .count {
    color: #aaa;
    font-size: 12px;
}

@media (max-width: 768px) {

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .ranking-header {
        padding: 20px;
    }

    .rank-list li {
        height: 42px;
    }

}

.trending-section {
    margin-top: 90px;
    margin-bottom: 100px;
}

.mini-book-item {
    width: 50%; /* 大屏一行 2 个 */
}

@media (max-width: 768px) {
    .mini-book-item {
        width: 100%; /* 小屏一行 1 个 */
    }

    .comment-book-cover {
        width: 100%!important;
    }
    .comment-card-body {
        display: grid!important;
    }
}