/* ========== 全局重置 & 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, 'Noto Sans', sans-serif;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.75;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ========== 全屏布局结构 ========== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

/* ========== 左侧导航栏 (固定竖形) ========== */
.sidebar {
    width: 200px;
    background-color: #ffffff;
    border-right: 1px solid #eaeef2;
    flex-shrink: 0;
    padding: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

/* LOGO区域 */
.logo-area {
    padding: 13px;
    margin-bottom: 24px;
}

.logo-img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* 导航菜单 竖形结构 */
.nav-menu {
    flex: 1;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-list li a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.nav-list li .active {
    color: #e50914;
    font-weight: 700;
    background-color: #f7f8fa;
}

.nav-list li a:hover {
    background-color: #f7f8fa;
}


/* ========== 右侧主要内容区 ========== */
.main-content {
    flex: 1;
    min-width: 0;
    /* 防止flex溢出 */
    background-color: #ffffff;
}

/* 顶部搜索栏 */
.top-search-bar {
    padding: 20px 32px;
    border-bottom: 1px solid #f0f2f5;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 320px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid #e2e6ea;
    border-radius: 40px 0 0 40px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: 0.2s;
}

.search-input:focus {
    border-color: #aaa;
}

.search-btn {
    background-color: #f5f5f5;
    border: 1px solid #e2e6ea;
    border-left: none;
    padding: 9px 20px;
    border-radius: 0 40px 40px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.search-btn:hover {
    background-color: #e9ecef;
}

/* 通用区块容器 */
.section {
    padding: 40px 32px 32px 32px;
    border-bottom: 1px solid #f5f7fa;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background-color: #e2a56a;
    margin-top: 6px;
    border-radius: 3px;
}

/* 横向滚动网格(灵活换行) - 精品漫画横型6个 */
.grid-horizontal {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

/* 漫画卡片公用 */
.comic-card1 {
    transition: transform 0.2s;
}

.comic-card:hover {
    transform: translateY(-3px);
}

/* 精品漫画样式 (横型卡片，图片下方名字) */
.feature-card {
    position: relative;
}

.feature-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f6f2;
}

.feature-img {
    width: 100%;
    aspect-ratio: 200 / 260;
    /* 保持比例 200x260 风格 */
    object-fit: cover;
    display: block;
}

/* 状态标签 — 图片右上角 */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 2;
}

.comic-name {
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.comic-score {
    text-align: center;
}

/* 国产漫画区块 (竖形卡片: 图片在上，名称+章节在图片内下部) */
.domestic-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.domestic-img {
    width: 100%;
    aspect-ratio: 200 / 260;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.domestic-card:hover .domestic-img {
    transform: scale(1.02);
}

.domestic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    color: white;
}

.domestic-name {
    font-weight: 700;
    text-align: center;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-chapter {
    text-align: center;
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 排行榜区块: 四块竖形 (今日/本周/本月/总榜) */
.rank-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rank-panel {
    background: #fefcf9;
    border-radius: 16px;
    padding: 8px 0 12px 0;
    border: 1px solid #f1ede8;
}

.rank-header {
    font-size: 18px;
    font-weight: 700;
    padding: 12px 16px 8px 16px;
    border-bottom: 2px solid #e9e2d8;
    margin-bottom: 8px;
    color: #000;
}

.rank-list {
    padding: 0 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0ede9;
    gap: 12px;
}

.rank-number {
    width: 28px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

/* 彩色序号 1-3 高亮 */
.rank-number.top1 {
    color: #d4af37;
}

.rank-number.top2 {
    color: #a0a0c0;
}

.rank-number.top3 {
    color: #cd7f32;
}

.rank-number.normal {
    color: #999;
    font-weight: 600;
}

.rank-info {
    flex: 1;
}

.rank-comic-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-latest {
    font-size: 12px;
    color: #8b7a66;
}

/* 最新解读资讯 两列布局 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 32px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px dashed #ece8e2;
    padding: 10px 0;
    width: 100%;
    min-width: 0;
}

.news-title {
    font-weight: 500;
    font-size: 15px;
    color: #2c2c2c;
    line-height: 1.45;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
    padding-right: 8px;
    text-decoration: none;
}

.news-title:hover {
    color: #b26b2e;
}

.news-time {
    font-size: 12px;
    color: #9b8e7c;
    flex-shrink: 0;
}

/* 底部区域 */
.footer {
    background: #faf9f8;
    margin-top: 20px;
    padding: 32px 32px 28px;
    border-top: 1px solid #edeae5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 13px;
    color: #5e5e5e;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.6;
}

/* 分页组件 (共用样式预留) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-item {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e0dbd4;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: #4a4a4a;
    transition: all 0.2s;
}

.page-item.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.page-item:hover:not(.active) {
    background: #f3f0eb;
}

/* 响应式处理: 小于1200px 精品和国产 改为响应适配 */
@media (max-width: 1100px) {
    .grid-horizontal {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .rank-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar {
        width: 230px;
    }
}

@media (max-width: 768px) {
    .app-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #eaeef2;
        padding: 16px 0 8px;
    }

    .logo-area {
        padding: 0 40px;
    }

    .nav-list {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-direction: row;
        padding: 0 16px;
        gap: 4px;
    }

    .nav-list li a {
        padding: 8px 14px;
        border-radius: 30px;
        background: #f9f9f9;
    }

    .sidebar-footer {
        display: none;
    }

    .grid-horizontal {
        grid-template-columns: repeat(3, 1fr);
    }

    .rank-row {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .section {
        padding: 8px 10px;
    }

    .top-search-bar {
        padding: 12px 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 筛选区块容器 */
.filter-section {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

/* 每一筛选行 */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

/* 筛选项的 label / 分类名称 */
.filter-label {
    width: 56px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    letter-spacing: 0.3px;
}

/* 选项组（按钮/链接列表） */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.filter-item {
    display: inline-block;
    font-size: 14px;
    color: #3a3a3a;
    background-color: #f9f8f6;
    padding: 6px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e8e3dc;
    font-weight: 450;
    text-decoration: none;
    line-height: 1.4;
}

/* 普通悬浮效果 */
.filter-item:hover {
    background-color: #f0ede8;
    border-color: #cdc5ba;
    color: #000;
}

.filter-item.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    font-weight: 500;
    box-shadow: none;
}

/* 适配不同分辨率，移动端稍微缩小内边距 */
@media (max-width: 680px) {
    .filter-section {
        padding: 8px;
    }

    .filter-label {
        width: 100%;
        margin-bottom: 10px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-options {
        gap: 10px;
    }

    .filter-item {
        padding: 5px 14px;
        font-size: 13px;
    }
}

.current-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 13px;
    color: #5a5a5a;
    background: transparent;
    /* 完全透明/无底色，融入页面 */
    padding: 12px 0 8px 0;
    border-bottom: 1px solid #f0ede8;
    /* 柔和分割线，可选，若不需要可移除 */
}

/* 首页链接样式 */
.current-location a {
    display: inline-flex;
    align-items: center;
    color: #7a6a5c;
    text-decoration: none;
    font-weight: 450;
    transition: color 0.2s;
}

.current-location a:hover {
    color: #000000;
    text-decoration: underline;
}

.comic-info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #ffffff;
    border-radius: 24px;
    margin-bottom: 56px;
    padding: 0 0 12px 0;
}

/* 左侧信息区域 */
.comic-details {
    flex: 2;
    min-width: 240px;
}

.comic-title {
    font-size: 32px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* 信息网格（两列布局清晰） */
.info-grid {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px 12px;
    margin-bottom: 24px;
    background: #fefcf9;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid #f2efe9;
}

.info-label {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.info-value {
    color: #4a4a4a;
}

/* 标签组 (tags) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag-item {
    background: #f0ede8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #2c2c2c;
}

/* 热度 (❤️ 自定义) */
.hot-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-icon {
    font-size: 16px;
}

/* 开始阅读按钮 */
.btn-read {
    display: inline-block;
    background-color: #000000;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 36px;
    border-radius: 40px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-read:hover {
    background-color: #2c2c2c;
    transform: translateY(-2px);
}

/* 右侧缩略图 (自适应比例 不变形) */
.comic-cover {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
}

.cover-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.2);
    background-color: #f5f1ea;
    display: block;
    object-fit: cover;
    aspect-ratio: 200 / 260;
    /* 保持竖形比例，避免变形 */
}

/* ========== 第二区块：章节列表 (一行三列) ========== */
.chapters-section {
    margin-top: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: -0.2px;
    border-left: 4px solid #e2a56a;
    padding-left: 14px;
}

/* 章节列表 ul 样式: 一行三列网格 */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    list-style: none;
    margin-top: 8px;
}

.chapter-grid li {
    background-color: #fefcf9;
    border: 1px solid #f0ece6;
    border-radius: 40px;
    transition: all 0.2s;
}

.chapter-grid li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #2b2b2b;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 40px;
}

.chapter-grid li:hover {
    background-color: #000000;
    border-color: #000000;
}

.chapter-grid li:hover a {
    color: #ffffff;
}

/* 响应式 */
@media (max-width: 900px) {
    .page-container {
        padding: 24px 20px;
    }

    .comic-title {
        font-size: 28px;
    }

    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .comic-info-section {
        flex-direction: column;
    }

    .comic-cover {
        max-width: 220px;
        margin-top: 8px;
        align-self: center;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        gap: 10px;
    }

    .info-label {
        margin-bottom: -6px;
    }
}

.comic-intro {
    background: #fefcf9;
    /* 柔和暖白底色，与漫画信息区统一 */
    border-radius: 20px;
    padding: 22px 28px;
    border: 1px solid #f2efe9;
    margin: 28px 0 32px 0;
    transition: all 0.2s;
}

/* 简介标题 */
.intro-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

/* 可选小装饰线 (低调) */
.intro-title:before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: #e2a56a;
    border-radius: 2px;
}

/* 简介内容文本 */
.intro-content {
    font-size: 14px;
    line-height: 1.65;
    color: #3e3a34;
    text-align: justify;
}



/* 移动端适配 */
@media (max-width: 640px) {
    .comic-intro {
        padding: 18px 20px;
        margin: 20px 0 24px;
    }

    .intro-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .intro-content {
        font-size: 13px;
    }
}

/* 顶部章节名称区域 */
.chapter-header {
    padding: 24px 30px 16px 30px;
    border-bottom: 1px solid #ece8e2;
    background: #ffffff;
}

.chapter-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.2px;
    line-height: 1.3;
    text-align: center;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.2px;
    line-height: 1.3;
    text-align: center;
}

.chapter-sub {
    text-align: center;
    font-size: 13px;
    color: #8f887e;
    margin-top: 8px;
}

/* 中间漫画内容区域 (图片展示区域) */
.chapter-content,
.article-content {
    flex: 1;
    padding: 32px 24px 48px 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.article-content p {
    font-size: 16px;
    font-weight: 400;
    color: #222;
    line-height: 30px;
}

/* 漫画图片通用样式 (模拟从上到下的图片流) */
.comic-page-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #faf7f2;
}

/* 多张图片示例容器，通常漫画页是一张张纵向排列 */
.page-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

/* 底部固定导航栏 (上一话, 目录, 下一话) */
.bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e9e2d9;
    padding: 12px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.02);
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.nav-btn {
    flex: 1;
    text-align: center;
    background: #fefcf9;
    border: 1px solid #e2dbd1;
    padding: 12px 12px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 15px;
    color: #2b2b2b;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* 目录按钮特殊样式微调 */
.nav-btn.directory {
    background: #ffffff;
    border-color: #cdc2b4;
}

/* 响应式: 手机适配底部导航间距缩小 */
@media (max-width: 640px) {
    .chapter-header {
        padding: 8px 16px 8px;
    }

    .chapter-title {
        font-size: 20px;
    }

    .chapter-content {
        padding: 24px 16px 36px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-btn {
        padding: 10px 8px;
        font-size: 14px;
    }
}

.comic-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 28px;
    border: 1px solid #edeae5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 28px 30px;
    transition: all 0.2s ease;
}

/* 左侧内容区 (弹性占据剩余空间) */
.card-info {
    flex: 2;
    min-width: 200px;
}

/* 漫画标题 */
.comic-title {
    font-size: 26px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    line-height: 1.25;
}

/* 作者行 */
.comic-author {
    font-size: 14px;
    color: #6b6256;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.author-label {
    font-weight: 500;
    color: #2c2c2c;
}

/* 标签组 (tag) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    background-color: #f4f1ec;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    color: #3f3a33;
    font-weight: 450;
}

/* 最新章节 */
.latest-chapter2 {
    margin-bottom: 14px;
    background: #fefbf6;
    display: inline-block;
    padding: 4px 0;
    font-size: 14px;
    color: #9b7c5c;
    font-weight: 500;
}

.latest-chapter2 strong {
    color: #000;
    font-weight: 600;
}

.comic-summary {
    font-size: 14px;
    line-height: 1.55;
    color: #4a443c;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 开始阅读按钮 */
.btn-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: 40px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-read:hover {
    background-color: #2c2c2c;
    transform: translateY(-2px);
}

/* 右侧缩略图 (不变形, 固定比例) */
.card-cover {
    flex-shrink: 0;
    width: 180px;
}

.cover-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    background-color: #f2ede5;
    object-fit: cover;
    aspect-ratio: 200 / 260;
    /* 竖型漫画比例，防止变形 */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.cover-img:hover {
    transform: scale(1.02);
}

/* 响应式: 当宽度小于720px时，改为上下结构 (右图在上或左文在上，优雅适配) */
@media (max-width: 700px) {
    .comic-card {
        flex-direction: column;
        padding: 24px 22px;
        gap: 20px;
    }

    .card-cover {
        width: 160px;
        align-self: center;
        order: -1;
        /* 将图片移到上方，更符合移动端习惯 */
    }

    .card-info {
        width: 100%;
    }

    .comic-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .comic-card {
        padding: 20px 18px;
    }

    .btn-read {
        padding: 8px 22px;
        font-size: 13px;
    }

    .comic-summary {
        -webkit-line-clamp: 3;
    }
}

.rank-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ffd966;
    font-weight: 800;
    font-size: 18px;
    font-family: monospace, system-ui;
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 3;
    letter-spacing: 0.5px;
    padding: 0 6px;
}

/* 序号特殊样式可选: 前三名特殊颜色高亮 */
.rank-badge.top1 {
    background: #d4af37;
    color: #1f1a12;
    border-color: #ffea9e;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.rank-badge.top2 {
    background: #b0b0b0;
    color: #1e1b16;
    border-color: #e0e0e0;
}

.rank-badge.top3 {
    background: #cd7f32;
    color: #fff2e0;
    border-color: #e09d5e;
}

@media (max-width: 768px) {
    .rank-badge {
        font-size: 16px;
        min-width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}

.rank-nav-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #edeae5;
    padding: 20px 28px 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
    margin-bottom: 24px;
}

.nav-row:last-child {
    margin-bottom: 0;
}

.nav-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: #5a554c;
    background-color: transparent;
    padding: 6px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.2px;
}

/* 悬浮效果 */
.nav-link:hover {
    color: #000000;
    border-bottom-color: #d6cdc0;
}

/* 高亮样式 (active 选中态) */
.nav-link.active {
    color: #000000;
    font-weight: 700;
    border-bottom-color: #000000;
}

/* 为了使不同行视觉独立，但风格统一无需额外修饰 */
/* 第二行因为分类较多，可稍微调小间距响应式 */
@media (max-width: 680px) {
    .rank-nav-wrapper {
        padding: 16px 20px;
    }

    .nav-row {
        gap: 16px 24px;
    }

    .nav-link {
        font-size: 14px;
        padding: 4px 0;
    }
    .comic-details .btns {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .nav-row {
        gap: 12px 18px;
    }

    .nav-link {
        font-size: 13px;
    }
    .comic-details .btns {
        justify-content: center;
    }
}

#user-score {
    position: relative;
}

.comic-details .btn-favorite {
    font-weight: 600;
    font-size: 14px;
    padding: 0 28px;
    border-radius: 40px;
    height: 40px;
    line-height: 40px;
    background-position-x: 18px;
    padding-left: 43px;
    color: #fff;
}

.comic-details .btns {
    display: flex;
    gap: 10px;
}