/* 韩漫网全局样式 */
:root {
    --primary: #FF6B9D;
    --primary-dark: #E65386;
    --secondary: #9D6EF3;
    --secondary-dark: #8A55E9;
    --accent: #FFD1DC;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #F5F5F7;
}

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

/* 自定义动画和过渡效果 */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.text-balance {
    text-wrap: balance;
}

/* 导航栏样式 */
.main-nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background-color: white;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
    width: 250px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--gray);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
}

/* 横幅区域 */
.banner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    z-index: 1;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    color: white;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-desc {
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* 漫画卡片样式 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.comic-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comic-cover {
    height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    position: relative;
    overflow: hidden;
}

.comic-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.comic-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.comic-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-clamp: 2;
    overflow: hidden;
}

.comic-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
}

.comic-status {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.comic-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
}

.comic-rating {
    color: #FFD700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 5px;
}

/* 最新更新区域 */
.latest-updates {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 30px 0;
}

.update-list {
    list-style: none;
}

.update-item {
    padding: 20px 0;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    gap: 20px;
}

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

.update-cover {
    width: 100px;
    height: 140px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border-radius: 10px;
    flex-shrink: 0;
}

.update-content {
    flex-grow: 1;
}

.update-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray);
}

.update-desc {
    font-size: 14px;
    color: var(--gray);
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 15px;
}

.update-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background-color: #F9FAFB;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* 分类区域 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-love .category-icon {
    background-color: rgba(255, 107, 157, 0.1);
    color: var(--primary);
}

.category-fantasy .category-icon {
    background-color: rgba(157, 110, 243, 0.1);
    color: var(--secondary);
}

.category-city .category-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.category-school .category-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.category-comedy .category-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.category-action .category-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.category-card:hover .category-icon {
    transform: translateY(-5px);
}

.category-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 15px;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-link a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-title {
font-size: 36px;
    }
    
    .comic-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links, .search-container {
display: none;
    }
    
    .mobile-menu-btn {
display: block;
    }
    
    .banner-title {
font-size: 28px;
    }
    
    .banner-desc {
font-size: 16px;
    }
    
    .section-title {
font-size: 28px;
    }
}

@media (max-width: 576px) {
    .banner {
min-height: 300px;
    }
    
    .comic-grid, .category-grid {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .update-item {
flex-direction: column;
gap: 15px;
    }
    
    .update-cover {
width: 100%;
height: 160px;
    }
}