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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.logo h1 a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

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

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 5px 0;
}

.nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 主要内容区 */
.main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* 轮播横幅 */
.banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.banner-content {
    flex: 1;
    min-width: 300px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.95;
}

.banner-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 区块标题 */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

.comic-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.comic-card h3 {
    padding: 15px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.comic-info {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #666;
}

/* 分类列表 */
.category-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 200px;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.category-item span {
    font-size: 16px;
    font-weight: 600;
}

/* 最新更新列表 */
.update-list {
    margin-bottom: 40px;
}

.update-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.update-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 20px;
    padding: 20px;
    transition: background 0.3s;
}

.update-item a:hover {
    background: #f9f9f9;
}

.update-item img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.update-info {
    flex: 1;
}

.update-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.update-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.update-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* 介绍区块 */
.intro {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-weight: 700;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.intro-content strong {
    color: #667eea;
    font-weight: 600;
}

/* 内容页面 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

.content-page {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.content-page h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.content-page h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
    font-weight: 600;
}

.content-page p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.content-page strong {
    color: #667eea;
    font-weight: 600;
}

/* 分类详情网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.category-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.category-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* 特性列表 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 优势列表 */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.advantage-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.advantage-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 相关链接 */
.related-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-links h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.related-links ul {
    list-style: none;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 15px;
}

.related-links a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        margin-top: 15px;
        width: 100%;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .banner-image {
        max-width: 100%;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .category-list {
        gap: 20px;
    }
    
    .category-item {
        min-width: 150px;
        padding: 20px;
    }
    
    .update-item a {
        flex-direction: column;
    }
    
    .update-item img {
        width: 100%;
        height: auto;
    }
    
    .content-page {
        padding: 25px 20px;
    }
    
    .content-page h1 {
        font-size: 26px;
    }
    
    .content-page h2 {
        font-size: 20px;
    }
    
    .category-grid,
    .feature-list,
    .advantage-list {
        grid-template-columns: 1fr;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    .nav ul {
        gap: 10px;
        font-size: 14px;
    }
    
    .banner {
        padding: 40px 0;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .comic-card img {
        height: 220px;
    }
    
    .comic-card h3 {
        font-size: 16px;
        padding: 12px;
    }
    
    .category-item {
        min-width: 120px;
        padding: 15px;
    }
    
    .category-item img {
        width: 80px;
        height: 80px;
    }
    
    .category-item span {
        font-size: 14px;
    }
    
    .content-page {
        padding: 20px 15px;
    }
    
    .content-page h1 {
        font-size: 22px;
    }
    
    .content-page h2 {
        font-size: 18px;
    }
    
    .content-page p {
        font-size: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

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

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comic-card,
.category-item,
.update-item {
    animation: fadeIn 0.5s ease-out;
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .nav {
        display: none;
    }
    
    .main {
        padding: 0;
    }
}

