@charset "UTF-8";

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-banner: #1a1a2e;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-white: #ffffff;
    --accent: #4facfe;
    --accent-hover: #3598db;
    --border: #e8e8e8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-secondary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

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

.home-banner {
    position: relative;
    margin-top: 0;
    background: var(--bg-banner);
    overflow: hidden;
    padding-bottom: 45px;
    width: 100%;
}

.banner-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.banner-scroll-container::-webkit-scrollbar {
    display: none;
}

.banner-scroll-track {
    display: flex;
    padding: 15px 20px;
    width: max-content;
}

.banner-page {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    flex-shrink: 0;
    width: calc((100vw - 40px) / 3 - 8px);
    min-width: 300px;
    height: 320px;
}

.banner-cell {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #f0f0f0;
}

.banner-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.banner-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-cell.cell-lg {
    grid-column: 1;
    grid-row: 1 / 3;
}

.banner-cell.cell-sm {
    grid-column: auto;
    grid-row: auto;
}

.banner-tag {
    position: absolute;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.banner-tag.tag-hot {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b9d, #ff8e53);
}

.banner-tag.tag-new {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.banner-tag.tag-sub {
    top: 36px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 10px;
    padding: 3px 10px;
}

.banner-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    max-width: calc(100% - 80px);
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    z-index: 20;
    overflow-x: auto;
    scrollbar-width: none;
}

.banner-nav::-webkit-scrollbar {
    display: none;
}

.nav-tag {
    padding: 5px 12px;
    background: transparent;
    color: #fff !important;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
}

.nav-tag.nav-all {
    color: #ffe066 !important;
    font-weight: 600;
}

.nav-tag.nav-all:hover {
    background: rgba(255, 224, 102, 0.25);
    color: #fff !important;
}

.banner-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 30;
    pointer-events: none;
}

.arrow-prev,
.arrow-next {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.arrow-prev:hover,
.arrow-next:hover {
    background: rgba(255, 107, 157, 0.8);
    border-color: #fff;
    transform: scale(1.1);
}

.arrow-prev svg,
.arrow-next svg {
    display: block;
}

.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-more {
    font-size: 13px;
    color: var(--text-tertiary);
}

.section-more:hover {
    color: var(--accent);
}

.recommend-section {
    padding-bottom: 20px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 8px;
}

.recommend-card {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    height: 340px;
}

.recommend-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/4cc.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    border-radius: 16px;
    overflow: hidden;
    transition: background-image 0.5s ease;
}

.recommend-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.5) 40%, rgba(15, 52, 96, 0.2) 70%, rgba(15, 52, 96, 0.1) 100%);
}

.recommend-content {
    position: relative;
    display: flex;
    gap: 30px;
    padding: 28px 30px;
    z-index: 1;
    border-radius: 16px;
    height: 100%;
}

.recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    padding-right: 10px;
    height: 100%;
}

.recommend-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 10px;
    line-height: 1.3;
}

.recommend-title a {
    color: #fff !important;
    text-decoration: none;
}

.recommend-title a:hover {
    color: #ffe066 !important;
}

.recommend-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-item {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 11px;
    color: #fff !important;
}

.recommend-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-thumbs {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.thumb-item {
    width: 80px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: block;
}

.thumb-item:hover {
    transform: scale(1.08);
}

.thumb-item.active {
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recommend-featured {
    width: 540px;
    height: 320px;
    flex-shrink: 0;
    margin-top: -45px;
    margin-right: 0;
}

.featured-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-link:hover .featured-img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: flex-end;
}

.featured-btn {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.featured-btn:hover {
    background: #fff;
    color: #ff6b9d !important;
}

.scroll-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.scroll-wrap {
    position: relative;
    overflow: visible;
    padding: 0 28px;
}

.scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-y: visible;
}

.scroll-track::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex-shrink: 0;
    width: calc((100% - 80px) / 5);
    max-width: 220px;
    min-width: 180px;
}

.scroll-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.scroll-item:hover img {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.scroll-item .comic-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.scroll-item .comic-author {
    font-size: 12px;
    color: var(--text-tertiary);
}

.scroll-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 18px;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.scroll-wrap:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}

.scroll-prev {
    left: 0;
}

.scroll-next {
    right: 0;
}

.ranking-section {
    padding-top: 20px;
}

.ranking-section .section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ranking-section .section-title {
    flex-shrink: 0;
    margin: 0;
}

.section-more-btn {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    color: #fff !important;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.section-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.ranking-tabs {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 0;
}

.rank-tab-item {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    padding-bottom: 4px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.rank-tab-item:hover {
    color: var(--accent);
}

.rank-tab-item.active {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom-color: var(--accent);
}

.ranking-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.rank-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: visible;
    transition: all 0.3s ease;
    padding-top: 20px;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rank-big-num {
    position: absolute;
    top: -15px;
    left: -5px;
    font-size: 72px;
    font-weight: 900;
    font-style: italic;
    z-index: 3;
    pointer-events: none;
    line-height: 1;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-family: 'Arial Black', sans-serif;
}

.rank-card-1 .rank-big-num {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-card-2 .rank-big-num {
    background: linear-gradient(135deg, #ffa751, #ffe259);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-card-3 .rank-big-num {
    background: linear-gradient(135deg, #ffcf71, #ffb75e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-card-4 .rank-big-num,
.rank-card-5 .rank-big-num,
.rank-card-6 .rank-big-num {
    color: rgba(200, 200, 200, 0.6);
}

.rank-card-cover {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    border-radius: 6px;
}

.rank-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rank-card:hover .rank-card-cover img {
    transform: scale(1.06);
}

.rank-card-info {
    padding: 0 6px 12px;
    position: relative;
    z-index: 2;
}

.rank-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-card-title a {
    color: var(--text-primary) !important;
}

.rank-card-title a:hover {
    color: var(--accent) !important;
}

.rank-card-tags {
    font-size: 12px;
    color: var(--text-tertiary);
}

.rank-card-tags span {
    display: inline-block;
}

@media screen and (min-width: 1200px) {
    .banner-grid {
        width: calc((100vw - 40px) / 3 - 8px);
        height: 320px;
    }
}

@media screen and (min-width: 990px) and (max-width: 1199px) {
    .banner-page {
        gap: 10px;
    }

    .banner-grid {
        width: calc((100vw - 40px) / 3 - 7px);
        min-width: 260px;
        height: 280px;
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .recommend-card {
        height: 320px;
    }

    .recommend-featured {
        width: 420px;
        height: 300px;
    }
}

@media screen and (min-width: 768px) and (max-width: 989px) {
    .banner-page {
        gap: 10px;
    }

    .banner-grid {
        width: calc((100vw - 40px) / 2 - 5px);
        min-width: 240px;
        height: 240px;
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .nav-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .recommend-card {
        height: auto;
    }

    .recommend-content {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .recommend-featured {
        width: 100%;
        max-width: 400px;
        margin: -45px auto 0;
        height: 280px;
    }

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

    .ranking-tabs {
        margin-left: 0;
        gap: 16px;
    }

    .rank-tab-item {
        font-size: 15px;
    }

    .ranking-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .rank-big-num {
        font-size: 55px;
    }
}

@media screen and (max-width: 767px) {
    .banner-page {
        gap: 8px;
    }

    .banner-grid {
        width: calc(100vw - 40px);
        min-width: 280px;
        height: 280px;
        grid-template-columns: 1.6fr 1fr 1fr;
    }

    .nav-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .recommend-card {
        height: auto;
    }

    .recommend-content {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        height: auto;
    }

    .recommend-title {
        font-size: 18px;
    }

    .recommend-featured {
        width: 100%;
        max-width: 320px;
        margin: -40px auto 0;
        height: 220px;
    }

    .thumb-item {
        width: 65px;
        height: 90px;
    }

    .scroll-wrap {
        padding: 0 20px;
    }

    .scroll-item {
        width: calc((100% - 40px) / 3);
        min-width: 140px;
        max-width: 170px;
    }

    .scroll-item img {
        height: 200px;
    }

    .scroll-arrow {
        width: 36px;
        height: 36px;
    }

    .scroll-arrow svg {
        width: 16px;
        height: 16px;
    }

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

    .ranking-tabs {
        margin-left: 0;
        gap: 12px;
    }

    .rank-tab-item {
        font-size: 14px;
    }

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

    .rank-big-num {
        font-size: 48px;
    }

    .section-more-btn {
        padding: 5px 14px;
        font-size: 12px;
    }

    .scroll-item {
        width: 140px;
    }

    .scroll-item img {
        height: 185px;
    }
}

/* 排行榜页面样式 */
.ranking-page {
    padding: 30px 0;
    background: #f5f7fa;
    min-height: calc(100vh - 64px);
}

.ranking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 左侧侧边栏 */
.ranking-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    padding: 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 0 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.ranking-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-categories li {
    padding: 0;
}

.category-item a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-item a:hover {
    color: #4facfe;
    background: #f5f9ff;
}

.category-item.active a {
    color: #4facfe;
    background: linear-gradient(90deg, #e8f4ff 0%, #f5f9ff 100%);
    border-left-color: #4facfe;
    font-weight: 600;
}

/* 右侧内容区 */
.ranking-main {
    flex: 1;
    min-width: 0;
}

.main-header {
    background: #fff;
    border-radius: 10px;
    padding: 24px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.main-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.rank-date {
    font-size: 13px;
    color: #999;
}

/* 排行榜网格 */
.ranking-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ranking-grid.active {
    display: grid;
}

.rank-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rank-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
}

.rank-number.rank-gold {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-number.rank-silver {
    background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-number.rank-bronze {
    background: linear-gradient(135deg, #ffcf71 0%, #ffb75e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-number.rank-normal {
    color: #d4d4d4;
}

.rank-cover {
    width: 80px;
    height: 108px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-item:hover .rank-cover img {
    transform: scale(1.05);
}

.rank-info {
    flex: 1;
    min-width: 0;
    padding-top: 40px;
}

.rank-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.rank-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-title a:hover {
    color: #4facfe;
}

.rank-author {
    font-size: 12px;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.4;
}

.rank-update {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式适配 */
@media screen and (max-width: 989px) {
    .ranking-container {
        padding: 0 16px;
    }

    .ranking-sidebar {
        width: 150px;
    }

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

    .rank-item {
        padding: 16px;
    }

    .rank-number {
        font-size: 40px;
    }
}

@media screen and (max-width: 767px) {
    .ranking-container {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .ranking-sidebar {
        width: 100%;
        position: static;
        padding: 16px 0;
    }

    .sidebar-title {
        padding: 0 16px 12px;
    }

    .category-item a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .main-header {
        padding: 16px 20px;
    }

    .main-title h1 {
        font-size: 20px;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rank-item {
        padding: 14px;
    }

    .rank-number {
        font-size: 36px;
    }

    .rank-cover {
        width: 70px;
        height: 94px;
    }

    .rank-info {
        padding-top: 32px;
    }
}

/* ===== 漫画详情页样式 ===== */
.p-detail {
    background: #fff;
    min-height: 100vh;
}

/* 顶部信息区 */
.comic-detail-header {
    position: relative;
    background: #e8e8e8;
    padding: 40px 0 60px;
    overflow: hidden;
    border-radius: 0 0 50% 50%/0 0 80px 80px;
    width: 100%;
}

.header-bg {
    position: absolute;
    top: -300px;
    left: -300px;
    right: -300px;
    bottom: -300px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(100px) saturate(1.5);
    -webkit-filter: blur(100px) saturate(1.5);
    z-index: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.92) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

.comic-cover-wrap {
    flex-shrink: 0;
    width: 180px;
}

.comic-cover-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comic-cover-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.comic-cover-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.comic-info-wrap {
    flex: 1;
    min-width: 0;
    color: #333;
}

.comic-main-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
    line-height: 1.3;
}

.comic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.comic-tags .tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
}

.tag-primary {
    background: #ffe066;
    color: #333;
}

.tag-tag {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
}

.tag-status {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.comic-meta-line {
    font-size: 13px;
    margin-bottom: 10px;
    color: #666;
    line-height: 1.8;
}

.comic-meta-line b {
    color: #4facfe;
    font-weight: 600;
}

.meta-split {
    margin: 0 6px;
    color: #333;
}

.author-link {
    color: #4facfe;
    text-decoration: none;
}

.author-link:hover {
    color: #4facfe;
    text-decoration: underline;
}

.comic-header-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-start-read {
    background: linear-gradient(135deg, #4facfe, #ff7e5f);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-start-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
    color: #fff;
}

.btn-fav {
    background: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-fav:hover {
    background: #fff8f0;
    color: #4facfe;
    border-color: #4facfe;
}

/* 收藏成功后图标变蓝 */
.btn-fav.collected {
    border-color: #4facfe;
}

/* 实心蓝色星形图标 */
.btn-fav.collected .icon-de-coll {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234facfe' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") no-repeat center center;
}

/* 打赏弹窗去充值按钮 */
.dialog--gift .my-gold .go-recharge-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 12px;
    font-size: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, #4facfe 0%, #00c6ff 100%);
    border-radius: 12px;
    text-decoration: none;
    vertical-align: middle;
    line-height: 18px;
}

/* 主体内容区 */
.comic-detail-body {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 20px 20px 40px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.comic-main-content {
    flex: 1;
    min-width: 0;
}

.comic-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 通用区块样式 */
.comic-section {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffe066;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-count {
    font-size: 13px;
    color: #999;
    font-weight: normal;
}

/* 章节列表区 */
.chapter-section {
    padding: 0;
    overflow: hidden;
}

.section-toolbar {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.select-date {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
}

.sort-toggle {
    display: inline-flex;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.sort-toggle span {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s ease;
}

.sort-toggle span.active {
    background: #4facfe;
    color: #fff;
}

.chapter-list-wrapper {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
}

.chapter-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fafafa;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 0;
    overflow: hidden;
}

.chapter-list-item:hover {
    background: #fff8f0;
    border-color: #ffd4a3;
    color: #4facfe;
}

.chapter-list-item.is-vip {
    color: #b8860b;
}

.chapter-list-item.is-lock {
    color: #999;
}

.chapter-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.chapter-list-item:hover .chapter-index {
    background: #4facfe;
    color: #fff;
}

.chapter-list-item.is-vip .chapter-index {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #fff;
}

.chapter-list-item.is-lock .chapter-index {
    background: #e0e0e0;
    color: #999;
}

.chapter-name {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-tag {
    padding: 1px 4px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1.4;
}

.lock-tag {
    font-size: 10px;
    flex-shrink: 0;
}

/* 支持作者区 */
.author-support-section {
    background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
    border: 1px solid #ffe8cc;
    border-radius: 14px;
}

.support-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.support-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-3px);
}

.support-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
}

.support-like {
    background: #ffe8e8;
    color: #ff6b6b;
}

.support-heart {
    background: #ffecf1;
    color: #ff8fa3;
}

.support-star {
    background: #fff8e1;
    color: #ffc107;
}

.support-ticket {
    background: #e8f4ff;
    color: #4facfe;
}

.support-share {
    background: #e8fff1;
    color: #4caf50;
}

.support-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.support-count {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.support-action-btn {
    text-align: center;
    margin-bottom: 10px;
}

.btn-reward {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #4facfe, #ff7e5f);
    color: #fff;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-reward:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    color: #fff;
}

.support-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* 相关推荐 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-item {
    text-align: center;
}

.related-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-cover img {
    transform: scale(1.05);
}

.related-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 11px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.related-title a {
    color: #333;
    text-decoration: none;
}

.related-title a:hover {
    color: #4facfe;
}

.related-author {
    font-size: 12px;
    color: #999;
}

/* 猜你喜欢 */
.guess-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.guess-tabs {
    display: flex;
    gap: 8px;
}

.guess-tab {
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
}

.guess-tab.active {
    background: #ffe066;
    color: #333;
    font-weight: 500;
}

.guess-refresh {
    font-size: 13px;
    color: #999;
    cursor: pointer;
}

.guess-refresh:hover {
    color: #4facfe;
}

.guess-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.guess-item {
    display: block;
    padding: 10px;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.guess-item:hover {
    background: #fff8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guess-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.guess-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guess-item:hover .guess-cover img {
    transform: scale(1.05);
}

.guess-info {
    min-width: 0;
}

.guess-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guess-title a {
    color: #333;
    text-decoration: none;
}

.guess-title a:hover {
    color: #4facfe;
}

.guess-desc {
    display: none;
}

.guess-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f4ff;
    color: #4facfe;
    border-radius: 10px;
    font-size: 11px;
}

/* 评论区 */
.comment-section {
    margin-top: 20px;
}

.comment-input-wrap {
    background: #fafafa;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.comment-input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.comment-user-name {
    font-size: 14px;
    color: #666;
}

.comment-input-body {
    margin-bottom: 12px;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-textarea:focus {
    border-color: #4facfe;
}

.comment-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-input-tools {
    display: flex;
    gap: 10px;
}

.tool-emoji {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-emoji:hover {
    border-color: #4facfe;
    color: #4facfe;
}

.btn-comment-submit {
    padding: 8px 28px;
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.btn-comment-submit:hover {
    background: linear-gradient(135deg, #ff8a00, #ff6a00);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
    transform: translateY(-1px);
}

/* 评论列表 3列网格 - 强制一行3个 */
.comment-list-grid,
.mccms_comment_list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    overflow: hidden !important;
}

/* 评论卡片样式 - 强制覆盖所有其他样式 */
.mccms_comment_list > .de-comment__item,
.mccms_comment_list > .comment-item,
.mccms_comment_list > .comment-card {
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
}

/* 强制覆盖author.css等其他文件的float和定位样式 */
.mccms_comment_list > .de-comment__item *,
.mccms_comment_list > .comment-item *,
.mccms_comment_list > .comment-card * {
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
}

/* 评论头部 */
.mccms_comment_list .de-comment__item--header,
.mccms_comment_list .comment-item-header,
.comment-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

/* 头像 */
.mccms_comment_list .de-comment__item--avatar,
.mccms_comment_list .comment-item-avatar,
.comment-card-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #eee !important;
    flex-shrink: 0 !important;
}

/* 昵称 */
.mccms_comment_list .de-comment__item--nickname,
.mccms_comment_list .comment-item-nickname,
.comment-card-name {
    font-size: 13px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

/* 日期 - 强制隐藏 */
.mccms_comment_list .de-comment__item--date,
.mccms_comment_list .comment-item-date,
.comment-card-time,
.de-comment__item--date,
.comment-item-date {
    display: none !important;
}

/* 评论内容 */
.mccms_comment_list .de-comment__item--comment,
.mccms_comment_list .comment-item-content,
.comment-card-content {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* 操作区域 */
.mccms_comment_list .de-comment__item--actions,
.mccms_comment_list .comment-item-actions,
.comment-card-actions {
    display: flex !important;
    gap: 16px !important;
    padding-top: 10px !important;
    border-top: 1px solid #f5f5f5 !important;
}

.mccms_comment_list .de-comment__item--actions span,
.mccms_comment_list .comment-item-actions span,
.action-btn {
    font-size: 12px !important;
    color: #999 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 评论卡片hover效果 */
.mccms_comment_list > .de-comment__item:hover,
.mccms_comment_list > .comment-item:hover,
.mccms_comment_list > .comment-card:hover,
.comment-card:hover {
    border-color: #ffd4a3 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* 评论卡片默认样式 */
.comment-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s ease;
}

.comment-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}

.comment-card-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.comment-card-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.comment-card-time {
    display: none !important;
    font-size: 11px;
    color: #999;
}

.comment-card-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.comment-card-actions {
    display: flex;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.action-btn {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.action-btn:hover {
    color: #4facfe;
}

.action-btn .iconfont {
    font-size: 14px;
}

/* 右侧边栏卡片 */
.sidebar-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 18px;
    overflow: hidden;
}

.sidebar-card-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
    font-size: 15px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

/* 信息卡片 */
.info-card-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

.more-link {
    font-size: 12px;
    font-weight: normal;
    color: #4facfe;
    text-decoration: none;
}

.more-link:hover {
    color: #4facfe;
}

.info-card-content {
    padding: 16px 18px;
    display: flex;
    gap: 12px;
}

.info-cover-small {
    width: 70px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.info-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-text {
    flex: 1;
    min-width: 0;
}

.info-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.info-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-card-stats {
    padding: 12px 18px 16px;
    display: flex;
    align-items: center;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: #f0f0f0;
}

.stat-num {
    font-size: 16px;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* 粉丝贡献榜 */
.fans-list {
    padding: 8px 0;
}

.fans-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
}

.fans-rank {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #f5f5f5;
    color: #999;
    flex-shrink: 0;
}

.fans-item:nth-child(1) .fans-rank {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
}

.fans-item:nth-child(2) .fans-rank {
    background: linear-gradient(135deg, #ffa751, #ffe259);
    color: #fff;
}

.fans-item:nth-child(3) .fans-rank {
    background: linear-gradient(135deg, #ffcf71, #ffb75e);
    color: #fff;
}

.fans-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.fans-name {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fans-num {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 打赏用户 */
.reward-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
}

.reward-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reward-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.reward-action {
    padding: 3px 10px;
    background: #fff4e0;
    color: #4facfe;
    font-size: 11px;
    border-radius: 10px;
}

.reward-count {
    padding: 0 18px 16px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

.reward-num {
    color: #4facfe;
    font-weight: 700;
    font-size: 14px;
    margin: 0 4px;
}

/* 综合榜 */
.rank-list-small {
    padding: 8px 0;
}

.rank-small-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    font-size: 13px;
}

.rank-num {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    background: #f5f5f5;
    color: #999;
    flex-shrink: 0;
}

.rank-num-1 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
}

.rank-num-2 {
    background: linear-gradient(135deg, #ffa751, #ffe259);
    color: #fff;
}

.rank-num-3 {
    background: linear-gradient(135deg, #ffcf71, #ffb75e);
    color: #fff;
}

.rank-name-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-name-link:hover {
    color: #4facfe;
}

.rank-value {
    font-size: 11px;
    color: #bbb;
    flex-shrink: 0;
}

/* 看了又看 */
.look-alike-list {
    padding: 10px 0;
}

.look-alike-item {
    display: flex;
    gap: 10px;
    padding: 10px 18px;
    transition: background 0.2s ease;
}

.look-alike-item:hover {
    background: #fafafa;
}

.look-cover {
    width: 56px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.look-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.look-info {
    flex: 1;
    min-width: 0;
}

.look-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.look-title:hover {
    color: #4facfe;
}

.look-author {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式适配 */
@media screen and (max-width: 989px) {
    .comic-detail-body {
        flex-direction: column;
        padding: 16px;
    }

    .comic-sidebar {
        width: 100%;
    }

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

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

    .comment-list-grid,
    .mccms_comment_list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .comic-info-wrap {
        width: 100%;
    }

    .comic-tags {
        justify-content: center;
    }

    .comic-header-actions {
        justify-content: center;
    }

    .support-buttons {
        gap: 20px;
    }
}

@media screen and (max-width: 767px) {
    .chapter-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .comment-list-grid,
    .mccms_comment_list {
        grid-template-columns: 1fr !important;
    }

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

    .comic-main-title {
        font-size: 22px;
    }

    .support-buttons {
        flex-wrap: wrap;
        gap: 16px;
    }
}