/* 全新设计 - 现代卡片式布局风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --accent: #ffe66d;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

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

/* 顶部导航 - 简洁风格 */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
}

.tagline {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    background: var(--light);
    color: var(--primary);
}

/* 轮播横幅区 */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.banner-slide.active {
    opacity: 1;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px;
    color: var(--white);
}

.banner-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.banner-desc {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.banner-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 5px;
}

/* 分类标签区 */
.category-section {
    margin-bottom: 60px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-tag {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.category-tag:hover,
.category-tag.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 热门推荐网格 */
.recommend-section {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.section-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.comics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.comic-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.comic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.comic-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

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

.comic-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

.comic-info {
    padding: 12px;
}

.comic-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* 最近更新列表 */
.update-section {
    margin-bottom: 60px;
}

.update-list {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.update-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

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

.update-item:hover {
    background: var(--light);
}

.update-cover {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

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

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

.update-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.update-tag {
    padding: 2px 8px;
    background: var(--light);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-light);
}

.update-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

.update-link {
    color: var(--secondary);
    font-weight: 600;
}

/* 排行榜区 */
.ranking-section {
    margin-bottom: 60px;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ranking-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ranking-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.ranking-header h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.ranking-list {
    padding: 16px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.ranking-item:hover {
    background: var(--light);
}

.ranking-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.ranking-cover {
    width: 50px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
}

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

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

.ranking-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.ranking-stats {
    font-size: 12px;
    color: var(--text-light);
}

/* 功能特色区 */
.features-section {
    margin-bottom: 60px;
    padding: 60px 0;
    background: var(--white);
    border-radius: var(--radius);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--light);
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.feature-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.feature-link:hover {
    color: var(--secondary);
}

/* 关于介绍区 */
.about-section {
    margin-bottom: 60px;
    padding: 60px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.about-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--primary);
    font-weight: 700;
}

/* 内容页面样式 */
.content-main {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-top: 16px;
}

.content-article {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.content-article h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--dark);
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.content-article p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.content-article strong {
    color: var(--primary);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.feature-box {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-box:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.feature-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.feature-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

.content-list {
    list-style: none;
    margin: 30px 0;
}

.content-list li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.content-list strong {
    color: var(--primary);
    font-weight: 700;
}

.related-pages {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.related-pages h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.related-pages ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-pages a {
    display: block;
    padding: 16px 20px;
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.related-pages a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 页脚 */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-info {
    text-align: center;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.8;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .comics-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-desc {
        font-size: 14px;
    }
    
    .comics-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .ranking-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 40px 24px;
    }
    
    .content-article {
        padding: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .related-pages ul {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
