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

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F77F00;
    --text-dark: #1A1A2E;
    --text-light: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-dark: #1F2937;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.search-input {
    border: none;
    background: none;
    outline: none;
    width: 200px;
    font-size: 14px;
    color: var(--text-dark);
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 主要内容区 */
main {
    margin-top: 70px;
}

/* 首页横幅 */
.hero-section {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--bg-white);
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.btn-primary {
    padding: 16px 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 区块样式 */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* 漫画卡片网格 */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.manga-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.manga-cover {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.manga-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.manga-badge.hot {
    background: linear-gradient(135deg, #FF6B35, #F77F00);
}

.manga-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.btn-read {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-read:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.manga-info {
    padding: 20px;
}

.manga-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.manga-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.manga-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    opacity: 0.8;
}

/* 更新列表 */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.update-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.update-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    flex-shrink: 0;
}

.update-info {
    flex: 1;
}

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

.update-chapter {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

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

.btn-update {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-update:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* 排行榜 */
.ranking-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ranking-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.ranking-content {
    padding: 30px;
}

.ranking-list {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.ranking-list.active {
    display: flex;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.rank-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    flex-shrink: 0;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--bg-white);
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: var(--bg-white);
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: var(--bg-white);
}

.rank-cover {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
}

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

.rank-author {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.rank-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
}

/* 关于板块 */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-grid {
    display: grid;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-box {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

.cta-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 12px;
    color: var(--bg-white);
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    padding: 16px 50px;
    background: var(--bg-white);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* 底部 */
.footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section .logo {
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
    opacity: 0.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links button,
.footer-links a {
    background: none;
    border: none;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    padding: 0;
}

.footer-links button:hover,
.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .search-input {
        width: 150px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

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

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .about-text-section {
        padding: 25px;
    }

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