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

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

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

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0 auto;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
    background-color: #f0f8ff;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 分类区块样式 */
.category {
    padding: 80px 0;
    background-color: #fff;
    margin: 20px 0;
}

.category:nth-child(even) {
    background-color: #f9f9f9;
}

.category h2 {
    text-align: center;
    font-size: 30px;
    color: #2c3e50;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    width: auto;
}

.category > .container {
    text-align: center;
}

/* 漫画网格布局 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.comic-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.comic-cover {
    width: 100%;
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: #fff;
}

.comic-info {
    padding: 15px;
}

.comic-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.comic-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    height: 90px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.about h2 {
    font-size: 30px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.about p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .category h2 {
        font-size: 24px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
}