/* =========================================================
   全局
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-width: 320px;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        Arial,
        sans-serif;

    background: #f6f7f9;
    color: #18191c;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}



/* =========================================================
   电脑端：公共头部 + Banner 共用背景
========================================================= */

.comic-header-shell {
    position: relative;
    width: 100%;
    min-height: 384px;
    overflow: hidden;

    background-image:
        url("/static/user/img/comic-hero-bg.png");

    background-position:
        center top;

    background-repeat:
        no-repeat;

    background-size:
        100% auto;

    background-color:
        #1c1327;
}



.comic-header-shell::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(8, 5, 14, 0.45) 0%,
            rgba(8, 5, 14, 0.16) 25%,
            rgba(8, 5, 14, 0.08) 60%,
            rgba(8, 5, 14, 0.15) 100%
        ),

        linear-gradient(
            90deg,
            rgba(18, 10, 31, 0.92) 0%,
            rgba(30, 17, 49, 0.80) 23%,
            rgba(34, 18, 52, 0.55) 41%,
            rgba(25, 14, 41, 0.20) 59%,
            rgba(0, 0, 0, 0.05) 100%
        );
}



.comic-site-header {
    position: relative;
    z-index: 20;
    min-height: 64px;
    background: transparent;
}



.comic-site-header #userHeaderMount {
    position: relative;
    z-index: 30;
    background: transparent;
}



.comic-site-header #userHeaderMount .top-nav {
    background: transparent;
}



.comic-site-header #userHeaderMount .nav-left,
.comic-site-header #userHeaderMount .nav-right {
    color: #ffffff;

    text-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.55);
}



.comic-site-header #userHeaderMount .search-box {
    background:
        rgba(255, 255, 255, 0.95);

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.08);
}



.comic-mobile-top {
    display: none;
}



/* =========================================================
   漫画 Hero
========================================================= */

.comic-hero {
    position: relative;
    z-index: 5;
    min-height: 320px;
    display: flex;
    align-items: center;
}



.comic-hero-content {
    width:
        min(
            1500px,
            calc(100% - 48px)
        );

    min-height: 320px;
    margin: 0 auto;

    padding:
        36px
        36px
        42px;

    display: flex;
    align-items: center;
}



.comic-hero-text {
    width: 560px;
    max-width: 52%;
}



.comic-hero-label {
    display: inline-flex;
    align-items: center;
    height: 31px;

    padding:
        0
        13px;

    margin-bottom: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.09);

    color:
        rgba(255, 255, 255, 0.90);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}



.comic-hero-text h1 {
    margin:
        5px
        0
        10px;

    color: #ffffff;

    font-size:
        clamp(
            46px,
            4.2vw,
            70px
        );

    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 3px;

    text-shadow:
        0 3px 18px
        rgba(0, 0, 0, 0.55);
}



.comic-hero-text p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.87);

    font-size: 16px;
    line-height: 1.8;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.50);
}



/* =========================================================
   Hero 操作区域

   第一行：
   热门漫画 / 每日更新 / 在线阅读

   第二行：
   我的漫画收藏 / 阅读历史
========================================================= */

.comic-hero-actions {
    margin-top: 22px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
}



.comic-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}



.comic-hero-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 32px;

    padding:
        0
        13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.23);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.10);

    color:
        rgba(255, 255, 255, 0.94);

    font-size: 12px;
    white-space: nowrap;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}



/* =========================================================
   收藏 / 历史 单独第二行
========================================================= */

.comic-hero-user-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;

    gap: 10px;
}



/* =========================================================
   我的漫画收藏
========================================================= */

.comic-hero-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    height: 34px;

    padding:
        0
        14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.94);

    color: #60427c;

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.16);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}



.comic-hero-favorite:hover {
    color: #7a4aa0;
    background: #ffffff;

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.22);
}



.comic-hero-favorite-icon {
    font-size: 14px;
}



/* =========================================================
   阅读历史
========================================================= */

.comic-hero-history {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    height: 34px;

    padding:
        0
        14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.14);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}



.comic-hero-history:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.22);

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.22);
}



.comic-hero-history-icon {
    font-size: 15px;
    line-height: 1;
}



/* =========================================================
   页面主体
========================================================= */

.comic-shell {
    width:
        min(
            1500px,
            calc(100% - 48px)
        );

    margin:
        28px
        auto
        70px;
}



/* =========================================================
   筛选卡片
========================================================= */

.comic-filter-panel {
    padding: 20px;

    background: #ffffff;

    border:
        1px solid
        #eceef1;

    border-radius: 16px;

    box-shadow:
        0 4px 16px
        rgba(15, 23, 42, 0.035);
}



/* =========================================================
   搜索
========================================================= */

.comic-search-row {
    display: flex;
    gap: 10px;

    width:
        min(
            700px,
            100%
        );

    margin-bottom: 19px;
}



.comic-search-row input {
    flex: 1;

    height: 44px;

    padding:
        0
        15px;

    border:
        1px solid
        #dcdfe4;

    border-radius: 10px;

    background: #ffffff;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}



.comic-search-row input:focus {
    border-color: #00aeec;

    box-shadow:
        0 0 0 3px
        rgba(0, 174, 236, 0.08);
}



.comic-search-row button {
    width: 84px;

    border: 0;
    border-radius: 10px;

    background: #00aeec;
    color: #ffffff;

    font-weight: 700;
}



.comic-search-row button:hover {
    background: #00a1d6;
}



/* =========================================================
   分类 / 标签
========================================================= */

.filter-line {
    display: grid;

    grid-template-columns:
        58px
        1fr;

    gap: 10px;

    align-items: flex-start;

    margin-top: 13px;
}



.filter-label {
    line-height: 34px;
    color: #61666d;
    font-weight: 700;
}



.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}



/* =========================================================
   标签 收起 / 展开
========================================================= */

.comic-tag-filter-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;
    width: 100%;
}



.comic-tag-filter-wrap
.tag-chips {
    flex:
        1
        1
        auto;

    min-width: 0;

    overflow: hidden;

    max-height: 34px;
}



.comic-tag-filter-wrap
.tag-chips.is-expanded {
    max-height: 1000px;
    overflow: visible;
}



.comic-tag-filter-wrap
.tag-chips.is-collapsed {
    max-height: 34px;
    overflow: hidden;
}



.comic-tag-toggle {
    flex:
        0
        0
        auto;

    min-width: 64px;
    height: 34px;

    padding:
        0
        13px;

    border:
        1px solid
        #e3e5e7;

    border-radius: 999px;

    background: #ffffff;
    color: #61666d;

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}



.comic-tag-toggle:hover {
    color: #00aeec;
    border-color: #00aeec;
    background: #f4fbfe;
}



/* =========================================================
   筛选按钮
========================================================= */

.chip,
.sort-btn {
    min-height: 34px;

    padding:
        0
        12px;

    border: 0;
    border-radius: 999px;

    background: #f1f2f3;
    color: #61666d;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}



.chip:hover,
.sort-btn:hover {
    color: #00aeec;
}



.chip.active,
.sort-btn.active {
    background: #e5f6fc;
    color: #00aeec;
    font-weight: 700;
}



/* =========================================================
   排序
========================================================= */

.comic-sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 18px;
    padding-top: 16px;

    border-top:
        1px solid
        #f0f1f2;
}



/* =========================================================
   结果区域
========================================================= */

.comic-result-section {
    margin-top: 18px;
}



.comic-result-summary {
    margin:
        0
        0
        12px
        2px;

    color: #9499a0;
    font-size: 13px;
}



/* =========================================================
   漫画网格

   PC 宽屏：一行 6 个
========================================================= */

.comic-grid {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    gap:
        24px
        18px;
}



/* =========================================================
   漫画卡片
========================================================= */

.comic-card {
    min-width: 0;
    overflow: hidden;
}



.comic-card-cover {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio:
        3 / 4;

    overflow: hidden;

    border-radius: 10px;

    background: #e8eaed;
}



.comic-card-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.22s ease;
}



.comic-card:hover
.comic-card-cover img {
    transform:
        scale(1.035);
}



.comic-card-badge {
    position: absolute;

    left: 8px;
    bottom: 8px;

    max-width:
        calc(100% - 16px);

    padding:
        4px
        7px;

    border-radius: 6px;

    background:
        rgba(0, 0, 0, 0.68);

    color: #ffffff;

    font-size: 12px;
}



.comic-card-title {
    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    margin:
        9px
        1px
        5px;

    min-height: 42px;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}



.comic-card-title:hover {
    color: #00aeec;
}



.comic-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    color: #9499a0;

    font-size: 12px;
}



.comic-card-tags {
    display: flex;
    gap: 5px;
    overflow: hidden;
    margin-top: 7px;
}



.comic-card-tags span {
    max-width: 100px;

    padding:
        2px
        6px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    border-radius: 5px;

    background: #f1f2f3;
    color: #9499a0;

    font-size: 11px;
}



/* =========================================================
   阅读历史进度
========================================================= */

.comic-history-progress {
    display: inline-flex;
    align-items: center;

    min-width: 0;
    max-width: 100%;

    color: #7a4aa0;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* =========================================================
   空数据
========================================================= */

.comic-empty {
    padding:
        70px
        20px;

    text-align: center;
    color: #9499a0;
}



/* =========================================================
   分页
========================================================= */

.comic-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 30px;
}



.comic-pager button {
    min-width: 38px;
    height: 38px;

    border:
        1px solid
        #e3e5e7;

    border-radius: 8px;

    background: #ffffff;
    color: #61666d;
}



.comic-pager button.active {
    border-color: #00aeec;
    background: #00aeec;
    color: #ffffff;
}



.comic-pager button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}



/* =========================================================
   漫画详情页
========================================================= */

.comic-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    color: #9499a0;
    font-size: 13px;
}



.comic-breadcrumb a:hover {
    color: #00aeec;
}



.comic-detail-card {
    display: grid;

    grid-template-columns:
        260px
        1fr;

    gap: 30px;

    padding: 22px;

    border:
        1px solid
        #eceef1;

    border-radius: 14px;

    background: #ffffff;
}



.comic-detail-cover-wrap {
    min-width: 0;
}



.comic-detail-cover {
    display: block;

    width: 100%;

    aspect-ratio:
        3 / 4;

    object-fit: cover;

    border-radius: 10px;

    background: #e8eaed;
}



.comic-detail-main {
    min-width: 0;

    padding:
        5px
        0;
}



.comic-category-badge {
    display: inline-flex;

    padding:
        5px
        9px;

    border-radius: 999px;

    background: #e5f6fc;
    color: #00aeec;

    font-size: 12px;
    font-weight: 700;
}



.comic-detail-main h1 {
    margin:
        14px
        0
        12px;

    font-size: 30px;
    line-height: 1.35;
}



.comic-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    color: #9499a0;
    font-size: 13px;
}



.comic-detail-stats b {
    color: #61666d;
}



.comic-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin:
        16px
        0;
}



.comic-detail-tags a {
    padding:
        5px
        9px;

    border-radius: 6px;

    background: #f1f2f3;
    color: #61666d;

    font-size: 12px;
}



.comic-detail-tags a:hover {
    color: #00aeec;
}



.comic-description {
    max-width: 980px;

    margin: 0;

    color: #61666d;
    font-size: 14px;
    line-height: 1.8;

    white-space: pre-wrap;
}



/* =========================================================
   详情按钮
========================================================= */

.comic-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 24px;
}



.comic-primary-btn,
.comic-action-btn {
    min-width: 112px;
    height: 42px;

    border-radius: 9px;

    font-weight: 700;
}



.comic-primary-btn {
    border: 0;

    background: #00aeec;
    color: #ffffff;
}



.comic-action-btn {
    border:
        1px solid
        #e3e5e7;

    background: #ffffff;
    color: #61666d;
}



.comic-action-btn.active {
    color: #00aeec;
    border-color: #00aeec;
    background: #f4fbfe;
}



/* =========================================================
   章节
========================================================= */

.comic-chapter-section {
    margin-top: 18px;

    padding:
        20px
        22px
        24px;

    border:
        1px solid
        #eceef1;

    border-radius: 14px;

    background: #ffffff;
}



.comic-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 16px;
}



.comic-section-title-row h2 {
    margin: 0;

    font-size: 20px;
}



.comic-section-title-row span {
    color: #9499a0;

    font-size: 12px;
}



.comic-chapter-grid {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 10px;
}



.comic-chapter-item {
    min-width: 0;

    padding:
        11px
        12px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    border:
        1px solid
        #e3e5e7;

    border-radius: 8px;

    background: #ffffff;
    color: #61666d;

    font-size: 13px;
}



.comic-chapter-item:hover {
    border-color: #00aeec;
    color: #00aeec;
    background: #f7fdff;
}



/* =========================================================
   Toast
========================================================= */

.comic-toast {
    position: fixed;

    z-index: 30000;

    left: 50%;
    bottom: 84px;

    display: none;

    padding:
        10px
        16px;

    border-radius: 8px;

    background:
        rgba(0, 0, 0, 0.82);

    color: #ffffff;
    font-size: 13px;

    transform:
        translateX(-50%)
        translateY(10px);
}



.comic-toast.show {
    display: block;

    transform:
        translateX(-50%)
        translateY(0);
}



/* =========================================================
   阅读页
========================================================= */

.comic-reader-page {
    padding-bottom: 74px;

    background: #111111;
    color: #eeeeee;
}



.comic-reader-toolbar {
    position: sticky;

    top: 0;
    z-index: 1000;

    display: grid;

    grid-template-columns:
        160px
        1fr
        120px;

    align-items: center;

    min-height: 58px;
    gap: 10px;

    padding:
        8px
        18px;

    background:
        rgba(18, 18, 18, 0.94);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);

    backdrop-filter:
        blur(14px);
}



.reader-back {
    color: #dddddd;
    font-size: 14px;
}



.reader-title-wrap {
    min-width: 0;

    text-align: center;
}



.reader-title-wrap strong,
.reader-title-wrap span {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}



.reader-title-wrap strong {
    font-size: 14px;
}



.reader-title-wrap span {
    margin-top: 3px;
    color: #aaaaaa;
    font-size: 12px;
}



.reader-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}



.reader-actions button {
    width: 38px;
    height: 36px;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 8px;

    background: #222222;
    color: #eeeeee;
}



.reader-actions button.active {
    color: #00aeec;
    border-color: #00aeec;
}



/* =========================================================
   阅读顶部章节切换
========================================================= */

.comic-reader-nav {
    position: sticky;

    top: 58px;
    z-index: 900;

    display: flex;
    justify-content: center;
    gap: 8px;

    padding: 9px;

    background:
        rgba(24, 24, 24, 0.94);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);
}



.comic-reader-nav button,
.comic-reader-nav select {
    height: 36px;

    padding:
        0
        10px;

    border:
        1px solid
        #3a3a3a;

    border-radius: 7px;

    background: #242424;
    color: #eeeeee;
}



.comic-reader-nav select {
    width:
        min(
            340px,
            40vw
        );
}



/* =========================================================
   阅读图片
========================================================= */

.comic-reader-main {
    width: 100%;
}



.reader-loading {
    padding:
        60px
        20px;

    text-align: center;
    color: #aaaaaa;
}



.comic-reader-images {
    width:
        min(
            1050px,
            100%
        );

    margin:
        0
        auto;
}



.comic-reader-image-wrap {
    width: 100%;
    margin: 0;
    background: #151515;
}



.comic-reader-image-wrap img {
    display: block;

    width: 100%;
    height: auto;
    min-height: 120px;

    object-fit: contain;
}



/* =========================================================
   阅读底部
========================================================= */

.comic-reader-bottom-nav {
    display: flex;
    justify-content: center;
    gap: 10px;

    width:
        min(
            1050px,
            calc(100% - 24px)
        );

    margin:
        20px
        auto;
}



.comic-reader-bottom-nav button {
    flex: 1;

    max-width: 220px;
    height: 42px;

    border:
        1px solid
        #3a3a3a;

    border-radius: 8px;

    background: #222222;
    color: #eeeeee;
}



/* =========================================================
   小一点电脑
========================================================= */

@media (max-width: 1200px) {

    .comic-header-shell {
        background-size: cover;

        background-position:
            62%
            top;
    }


    .comic-grid {
        grid-template-columns:
            repeat(
                5,
                minmax(0, 1fr)
            );
    }


    .comic-chapter-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

}



/* =========================================================
   900
========================================================= */

@media (max-width: 900px) {

    .comic-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }


    .comic-detail-card {
        grid-template-columns:
            210px
            1fr;

        gap: 20px;
    }


    .comic-chapter-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}



/* =========================================================
   手机端
========================================================= */

@media (max-width: 768px) {

    body {
        padding-bottom: 66px;
    }



    .comic-header-shell {
        min-height: 0;
        overflow: visible;
        background-image: none;
        background: transparent;
    }



    .comic-header-shell::before {
        display: none;
    }



    .comic-site-header {
        min-height: 58px;
        background: #ffffff;
    }



    .comic-site-header
    #userHeaderMount {
        display: none;
    }



    .comic-mobile-top {
        position: relative;

        z-index: 1200;

        display: flex;
        align-items: center;
        gap: 10px;

        min-height: 58px;

        padding:
            8px
            12px;

        background: #ffffff;

        border-bottom:
            1px solid
            #f0f1f2;
    }



    .comic-mobile-logo {
        flex:
            0
            0
            auto;

        width: 72px;

        display: flex;
        align-items: center;
    }



    .comic-mobile-logo.mini {
        width: 62px;

        margin-left: auto;
    }



    .comic-mobile-logo img {
        display: block;
        width: 100%;
        height: auto;
    }



    .comic-mobile-back {
        color: #61666d;
        font-weight: 700;
    }



    .comic-mobile-search {
        display: flex;
        flex: 1;
        height: 38px;
        overflow: hidden;

        border:
            1px solid
            #e3e5e7;

        border-radius: 9px;

        background: #f6f7f8;
    }



    .comic-mobile-search input {
        min-width: 0;
        flex: 1;

        padding:
            0
            10px;

        border: 0;
        outline: 0;
        background: transparent;
    }



    .comic-mobile-search button {
        padding:
            0
            12px;

        border: 0;
        background: #00aeec;
        color: #ffffff;
    }



    .comic-hero {
        position: relative;

        min-height: 205px;

        overflow: hidden;

        background-image:
            url("/static/user/img/comic-hero-bg.png");

        background-size: cover;

        background-position:
            67%
            top;

        background-repeat: no-repeat;

        background-color: #1c1327;
    }



    .comic-hero::before {
        content: "";

        position: absolute;
        inset: 0;

        z-index: 0;

        background:
            linear-gradient(
                90deg,
                rgba(18, 9, 31, 0.94) 0%,
                rgba(27, 13, 45, 0.82) 42%,
                rgba(24, 11, 40, 0.38) 68%,
                rgba(0, 0, 0, 0.12) 100%
            );
    }



    .comic-hero-content {
        position: relative;
        z-index: 2;

        width: 100%;
        min-height: 205px;

        margin: 0;

        padding:
            21px
            15px;

        align-items: center;
    }



    .comic-hero-text {
        width: 72%;
        max-width: 72%;
    }



    .comic-hero-label {
        height: 22px;

        padding:
            0
            8px;

        margin-bottom: 6px;

        font-size: 9px;
    }



    .comic-hero-text h1 {
        margin:
            3px
            0
            5px;

        font-size: 28px;
        letter-spacing: 1px;
    }



    .comic-hero-text p {
        font-size: 12px;
        line-height: 1.5;
    }



    /* =====================================================
       手机 Hero 两行按钮布局
    ====================================================== */

    .comic-hero-actions {
        margin-top: 12px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }



    .comic-hero-tags {
        display: flex;
        flex-wrap: nowrap;

        gap: 5px;
    }



    .comic-hero-tags span {
        height: 25px;

        padding:
            0
            8px;

        font-size: 10px;
    }



    .comic-hero-user-actions {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;

        gap: 6px;
    }



    .comic-hero-favorite {
        height: 27px;

        padding:
            0
            9px;

        font-size: 10px;

        white-space: nowrap;
    }



    .comic-hero-favorite-icon {
        font-size: 12px;
    }



    .comic-hero-history {
        height: 27px;

        padding:
            0
            9px;

        font-size: 10px;

        white-space: nowrap;
    }



    .comic-hero-history-icon {
        font-size: 12px;
    }



    .comic-shell {
        width: 100%;

        margin:
            0
            auto
            20px;

        padding:
            12px
            10px
            20px;
    }



    .comic-filter-panel {
        padding: 12px;

        border-radius: 10px;
    }



    .comic-search-row {
        display: none;
    }



    .filter-line {
        grid-template-columns:
            1fr;

        gap: 6px;
        margin-top: 6px;
    }



    .filter-label {
        line-height: 24px;
        font-size: 13px;
    }



    .filter-chips {
        flex-wrap: nowrap;

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 4px;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }



    .filter-chips::-webkit-scrollbar {
        display: none;
    }



    .chip {
        flex:
            0
            0
            auto;
    }



    .comic-tag-filter-wrap {
        gap: 7px;
    }



    .comic-tag-filter-wrap
    .tag-chips {
        flex-wrap: wrap;

        overflow-x: hidden;
        overflow-y: hidden;

        padding-bottom: 0;

        max-height: 34px;
    }



    .comic-tag-filter-wrap
    .tag-chips.is-expanded {
        max-height: 1000px;
        overflow: visible;
    }



    .comic-tag-toggle {
        min-width: 58px;
        height: 34px;

        padding:
            0
            10px;

        font-size: 12px;
    }



    .comic-sort-row {
        flex-wrap: nowrap;

        overflow-x: auto;
        overflow-y: hidden;

        margin-top: 9px;
        padding-top: 10px;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }



    .comic-sort-row::-webkit-scrollbar {
        display: none;
    }



    .sort-btn {
        flex:
            0
            0
            auto;
    }



    .comic-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap:
            16px
            10px;
    }



    .comic-card-title {
        min-height: 38px;
        margin-top: 7px;
        font-size: 13px;
    }



    .comic-card-meta {
        gap: 5px;
        font-size: 10px;
    }



    .comic-card-tags {
        display: none;
    }



    .comic-card-badge {
        left: 5px;
        bottom: 5px;
        font-size: 10px;
    }



    .comic-result-summary {
        font-size: 12px;
    }



    .comic-breadcrumb {
        display: none;
    }



    .comic-detail-shell {
        padding-top: 10px;
    }



    .comic-detail-card {
        grid-template-columns:
            120px
            1fr;

        gap: 14px;
        padding: 12px;
        border-radius: 10px;
    }



    .comic-detail-main {
        padding: 0;
    }



    .comic-category-badge {
        padding:
            3px
            6px;

        font-size: 10px;
    }



    .comic-detail-main h1 {
        margin:
            7px
            0;

        font-size: 19px;
    }



    .comic-detail-stats {
        gap:
            7px
            10px;

        font-size: 11px;
    }



    .comic-detail-tags {
        margin:
            8px
            0;

        gap: 5px;
    }



    .comic-detail-tags a {
        padding:
            3px
            6px;

        font-size: 10px;
    }



    .comic-description {
        display: -webkit-box;

        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;

        overflow: hidden;

        font-size: 12px;
        line-height: 1.6;
    }



    .comic-action-row {
        gap: 7px;
        margin-top: 10px;
    }



    .comic-primary-btn,
    .comic-action-btn {
        min-width: 0;
        height: 36px;

        padding:
            0
            10px;

        font-size: 12px;
    }



    .comic-chapter-section {
        margin-top: 10px;
        padding: 12px;
        border-radius: 10px;
    }



    .comic-section-title-row {
        margin-bottom: 10px;
    }



    .comic-section-title-row h2 {
        font-size: 17px;
    }



    .comic-chapter-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }



    .comic-chapter-item {
        padding:
            10px
            9px;

        font-size: 12px;
    }



    .comic-reader-page {
        padding-bottom: 130px;
    }



    .comic-reader-toolbar {
        grid-template-columns:
            90px
            1fr
            80px;

        min-height: 52px;

        padding:
            6px
            8px;
    }



    .reader-back {
        font-size: 12px;
    }



    .reader-actions {
        gap: 5px;
    }



    .reader-actions button {
        width: 34px;
        height: 34px;
    }



    .comic-reader-nav {
        top: 52px;
        padding: 7px;
    }



    .comic-reader-nav select {
        width: 45vw;
    }



    .comic-reader-nav button {
        padding:
            0
            8px;

        font-size: 12px;
    }



    .comic-reader-images {
        width: 100%;
    }



    .comic-reader-bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 62px;

        z-index: 1100;

        width: auto;

        margin: 0;

        padding:
            7px
            8px;

        background:
            rgba(20, 20, 20, 0.96);

        border-top:
            1px solid
            rgba(255, 255, 255, 0.08);
    }



    .comic-reader-bottom-nav button {
        height: 38px;
        font-size: 12px;
    }

}



/* =========================================================
   超小屏
========================================================= */

@media (max-width: 430px) {

    .comic-hero {
        min-height: 205px;

        background-position:
            70%
            top;
    }



    .comic-hero-content {
        min-height: 205px;

        padding:
            15px
            12px;
    }



    .comic-hero-text {
        width: 78%;
        max-width: 78%;
    }



    .comic-hero-text h1 {
        font-size: 24px;
    }



    .comic-hero-text p {
        font-size: 11px;
    }



    /*
     * 小屏仍然保留第一行三个标签。
     */
    .comic-hero-tags {
        gap: 4px;
    }



    .comic-hero-tags span {
        height: 24px;

        padding:
            0
            7px;

        font-size: 9px;
    }



    /*
     * 收藏 / 阅读历史始终保持第二行
     */
    .comic-hero-user-actions {
        width: auto;

        display: flex;
        align-items: center;
        flex-wrap: nowrap;

        gap: 5px;
    }



    .comic-hero-favorite,
    .comic-hero-history {
        height: 26px;

        padding:
            0
            8px;

        font-size: 9px;
    }



    .comic-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }



    .comic-detail-card {
        grid-template-columns:
            105px
            1fr;
    }



    .comic-detail-main h1 {
        font-size: 17px;
    }



    .comic-action-row
    .comic-primary-btn {
        width: 100%;
    }

}