/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

ul {
    list-style: none;
}

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 200px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    width: 250px;
    border-color: #e74c3c;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    padding: 5px 0;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #e74c3c;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
}

.nav-menu a:hover::after {
    width: 100%;
}

.download-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 分类下拉菜单 */
.category-dropdown {
    position: relative;
    cursor: pointer;
}

.category-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 100;
}

.category-dropdown:hover .category-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-content a {
    display: block;
    padding: 10px 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    transition: none !important;
}

.category-content a:hover {
    background-color: #f5f5f5;
    color: #e74c3c;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0px 0px 0px;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 60px 40px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 30px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.hero-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-download-btn {
    display: none;
}

/* 轮播图 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    padding: 0;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 左右渐变遮罩 */
.carousel-overlay-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.9), transparent);
    z-index: 10;
    pointer-events: none;
}

.carousel-overlay-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(to left, rgba(26, 26, 46, 0.9), transparent);
    z-index: 10;
    pointer-events: none;
}

/* 漫画标题文字覆盖 */
.carousel-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
    pointer-events: none;
}

.carousel-text-overlay h2 {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    white-space: nowrap;
}

.carousel-text-overlay p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* 导航箭头 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(231, 76, 60, 0.8);
    border-color: #e74c3c;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 25;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-indicator.active {
    background-color: #e74c3c;
    border-color: #e74c3c;
    transform: scale(1.3);
}

/* 经典必看和人气榜区域 */
.classic-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.classic-left {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.classic-right {
    width: 280px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.classic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.classic-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.classic-header a {
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

.classic-header a:hover {
    color: #e74c3c;
}

/* 经典必看漫画网格 */
.classic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.classic-card {
    cursor: pointer;
    transition: all 0.3s;
}

.classic-cover {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

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

.classic-tags {
    position: absolute;
    bottom: 5px;
    left: 5px;
    display: flex;
    gap: 3px;
}

.classic-tag {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
}

.classic-status {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #3498db;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
}

.classic-status.hot {
    background: #e74c3c;
}

.classic-status.new {
    background: #2ecc71;
}

.classic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.classic-card:hover .classic-overlay {
    opacity: 1;
}

.classic-overlay-desc {
    padding: 12px;
    color: white;
    font-size: 12px;
    line-height: 1.5;
}

.classic-info {
    padding: 0 2px;
}

.classic-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.classic-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #666;
}

.classic-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
}

.classic-read {
    color: #e74c3c;
    font-weight: bold;
}

.classic-update {
    font-size: 10px;
    color: #999;
}

/* 人气榜 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: #f9f9f9;
    padding-left: 8px;
    border-radius: 4px;
}

.ranking-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.ranking-rank.top1 {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
}

.ranking-rank.top2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: white;
}

.ranking-rank.top3 {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.ranking-rank.other {
    background: #f0f0f0;
    color: #999;
}

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

.ranking-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.ranking-desc {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-update {
    font-size: 11px;
    color: #666;
}

/* 漫画分类区域 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.section-title h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.section-title a {
    color: #999;
    font-size: 14px;
    transition: color 0.3s;
}

.section-title a:hover {
    color: #e74c3c;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 0;
}

.comic-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.comic-cover {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.comic-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comic-info {
    padding: 12px;
}

.comic-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.comic-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 分类漫画板块 */
.category-section {
    background: linear-gradient(180deg, #f8f8f8 0%, #eaeaea 100%);
    padding: 20px;
    margin-top: 0;
    margin-bottom: 30px;
}

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

.category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tab {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 6px 12px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.category-tab:hover {
    color: #e74c3c;
}

.category-tab.active {
    color: #e74c3c;
    font-weight: bold;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #e74c3c;
}

.category-more {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    margin-left: 10px;
}

.category-more:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.category-comics {
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-comics.active {
    display: grid;
}

.category-comic-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.category-comic-status {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #3498db;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    z-index: 10;
}

.category-comic-status.hot {
    background: #e74c3c;
}

.category-comic-status.new {
    background: #2ecc71;
}

.category-comic-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-comic-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.category-comic-card:hover .category-comic-hover {
    opacity: 1;
}

.category-comic-card:hover img {
    transform: scale(1.05);
}

.category-comic-read {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 14px;
}

.category-comic-read i {
    font-size: 32px;
    margin-bottom: 8px;
}

.category-comic-info {
    padding: 8px 4px;
    background-color: white;
}

.category-comic-title {
    display: block;
    color: #333;
    font-size: 13px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.category-comic-author {
    display: block;
    color: #999;
    font-size: 11px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.category-comic-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.category-comic-count {
    color: #e74c3c;
    font-weight: bold;
}

.category-comic-update {
    color: #999;
}

/* 应用下载板块 */
.download-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.download-section h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.download-content {
    text-align: center;
}

.download-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.download-btn-android,
.download-btn-ios {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.download-btn-android:hover {
    background-color: #e8f5e9;
    border-color: #34a853;
}

.download-btn-ios:hover {
    background-color: #fafafa;
    border-color: #ddd;
}

.download-btn-android i {
    font-size: 28px;
    color: #34a853;
}

.download-btn-ios i {
    font-size: 28px;
    color: #555;
}

.download-btn-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-btn-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.download-btn-version {
    font-size: 11px;
    color: #999;
}

/* 底部区域 */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-download-btn {
        display: inline-block;
        background-color: #e74c3c;
        color: white;
        padding: 12px 30px;
        border-radius: 5px;
        font-weight: bold;
        font-size: 16px;
        margin-top: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s;
    }

    .mobile-download-btn:hover {
        background-color: #c0392b;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .hero-stats {
        flex-wrap: nowrap;
        gap: 15px;
        overflow-x: auto;
        padding: 0 10px;
    }

    .hero-stat-item {
        flex-shrink: 0;
    }

    .hero-stat-number {
        font-size: 20px;
    }

    .hero-stat-label {
        font-size: 12px;
    }

    .nav-container {
        padding: 0 20px;
    }
    
    a {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        user-select: none !important;
        transition: none !important;
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -ms-transition: none !important;
        -o-transition: none !important;
    }
    
    .nav-right {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 60px);
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: right 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-right.active {
        right: 0;
    }
    
    .search-box,
    .nav-menu {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .download-btn {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .search-box input:focus {
        width: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-content {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
    }
    
    .category-dropdown.active .category-content {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .carousel {
        height: 200px;
    }
    
    .carousel-text-overlay h2 {
        font-size: 24px;
    }
    
    .carousel-text-overlay p {
        font-size: 12px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 15px;
    }
    
    .category-tab {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .category-comics {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-comic-card img {
        height: 140px;
    }
    
    /* 移动端人气榜优化 */
    .classic-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .classic-left,
    .classic-right {
        width: 100%;
        min-width: 100%;
        padding: 15px;
    }
    
    .classic-right {
        order: -1;
    }
    
    .ranking-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .ranking-item {
        flex-direction: row;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
        background: transparent;
        transition: background 0.2s;
    }
    
    .ranking-item:last-child {
        border-bottom: none;
    }
    
    .ranking-item:hover {
        background: #f9f9f9;
        padding-left: 15px;
        border-radius: 0;
    }
    
    .ranking-rank {
        width: 28px;
        height: 28px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 4px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .ranking-rank.top1 {
        background: linear-gradient(135deg, #ff4757, #ff6b81);
        color: white;
    }
    
    .ranking-rank.top2 {
        background: linear-gradient(135deg, #ffa502, #ff7f50);
        color: white;
    }
    
    .ranking-rank.top3 {
        background: linear-gradient(135deg, #ffd93d, #ff9f43);
        color: white;
    }
    
    .ranking-rank.other {
        background: #f0f0f0;
        color: #999;
        font-weight: normal;
    }
    
    .ranking-info {
        flex: 1;
        min-width: 0;
    }
    
    .ranking-title {
        font-size: 15px;
        font-weight: bold;
        color: #333;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ranking-desc {
        display: block;
        font-size: 12px;
        color: #999;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ranking-update {
        font-size: 11px;
        color: #666;
    }
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .download-btn-android,
    .download-btn-ios {
        width: 100%;
        justify-content: center;
    }
    
    .carousel {
        height: 150px;
    }
    
    .carousel-text-overlay h2 {
        font-size: 18px;
    }
    
    .carousel-text-overlay p {
        font-size: 10px;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        display: none;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .comic-title {
        font-size: 14px;
    }
}

/* 排行榜板块 */
.ranking-section {
    background: linear-gradient(135deg, #c0392b 0%, #8b2c2c 100%);
    padding: 20px 0;
    /* margin-bottom: 30px; */
}

.ranking-section .container {
    padding: 0 20px;
}

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

.ranking-tab {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.ranking-tab:hover {
    color: white;
}

.ranking-tab.active {
    color: white;
    font-weight: bold;
}

.ranking-tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

.ranking-more {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.ranking-more:hover {
    color: white;
}

.ranking-content {
    display: none;
}

.ranking-content.active {
    display: block;
}

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

.ranking-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.ranking-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.ranking-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.ranking-card:hover .ranking-card-overlay {
    opacity: 1;
}

.ranking-card-desc {
    padding: 12px;
    color: white;
    font-size: 12px;
    line-height: 1.5;
}

.ranking-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    z-index: 10;
}

.ranking-badge.top1 {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.ranking-badge.top2 {
    background: linear-gradient(135deg, #ffa502, #ff7f50);
}

.ranking-badge.top3 {
    background: linear-gradient(135deg, #ffd93d, #ff9f43);
}

.ranking-card-status {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #3498db;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    z-index: 10;
}

.ranking-card-status.hot {
    background: #e74c3c;
}

.ranking-card-status.new {
    background: #2ecc71;
}

.ranking-card-info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.ranking-card-title {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-card-author {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.ranking-card-count {
    color: #ffd93d;
    font-weight: bold;
}

.ranking-card-update {
    color: rgba(255, 255, 255, 0.6);
}

/* 排行榜响应式 */
@media (max-width: 768px) {
    .ranking-section {
        padding: 20px 0;
    }
    
    .ranking-tabs {
        gap: 15px;
    }
    
    .ranking-tab {
        font-size: 14px;
    }
    
    .ranking-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .ranking-card img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ranking-card img {
        height: 130px;
    }
    
    .ranking-more {
        display: none;
    }
}

/* 页面弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 10px;
}

.popup-btn {
    flex: 1;
    display: inline-block;
    padding: 10px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.popup-btn.download {
    background: #f5a623;
    color: white;
}

.popup-btn.close {
    background: #e0e0e0;
    color: #666;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}