/* 基础样式重置 */
* {
    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: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    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: 30px;
    margin-bottom: 6px;
    font-weight: 700;
}

.logo h1 a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo h1 a:hover {
    opacity: 0.9;
}

.tagline {
    font-size: 13px;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

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

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    opacity: 0.9;
}

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

/* 轮播横幅 */
.banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #8e44ad 100%);
    color: #fff;
    padding: 70px 0;
    margin-bottom: 45px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    position: relative;
    z-index: 1;
}

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

.banner-content h2 {
    font-size: 38px;
    margin-bottom: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.96;
    line-height: 1.7;
}

.banner-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}

.banner-image:hover {
    transform: scale(1.02);
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 2px;
}

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

.comic-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.comic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

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

.comic-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

.comic-card h3 {
    padding: 18px;
    font-size: 19px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.comic-info {
    padding: 0 18px 18px;
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 210px;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.category-item img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item span {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
}

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

.update-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    margin-bottom: 25px;
    transition: box-shadow 0.3s;
}

.update-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

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

.update-item img {
    width: 160px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.update-item:hover img {
    transform: scale(1.03);
}

.update-info {
    flex: 1;
}

.update-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.update-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.update-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* 介绍区块 */
.intro {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 45px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.intro h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
}

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

.intro-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 22px;
    text-align: justify;
}

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

/* 内容页面 */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 15px;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #e74c3c;
    text-decoration: none;
    transition: opacity 0.3s;
}

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

.content-page {
    background: #fff;
    padding: 45px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    margin-bottom: 45px;
}

.content-page h1 {
    font-size: 34px;
    margin-bottom: 28px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.content-page h2 {
    font-size: 26px;
    margin: 35px 0 18px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.content-page p {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 18px;
    text-align: justify;
}

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

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

.category-box {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.category-box img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.category-box:hover img {
    transform: scale(1.05);
}

.category-box h3 {
    font-size: 21px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.category-box p {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 18px;
    text-align: left;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s, transform 0.3s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.feature-item {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.feature-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.feature-item:hover img {
    transform: scale(1.05);
}

.feature-item h3 {
    font-size: 21px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.feature-item p {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.7;
}

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

.advantage-item {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.advantage-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.advantage-item:hover img {
    transform: scale(1.05);
}

.advantage-item h3 {
    font-size: 21px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.advantage-item p {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.7;
}

/* 返回首页区域 */
.content-page p[style*="background: #f8f9fa"] {
    margin: 30px 0 !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.content-page p[style*="background: #f8f9fa"] a {
    transition: opacity 0.3s;
}

.content-page p[style*="background: #f8f9fa"] a:hover {
    opacity: 0.8;
}

/* 相关链接 */
.related-links {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid #ecf0f1;
}

.related-links h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #2c3e50;
    font-weight: 600;
}

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

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

.related-links a {
    color: #e74c3c;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

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

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 45px 0 25px;
    margin-top: 70px;
}

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

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

.footer-section p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.92;
}

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

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

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

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

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

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

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

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

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

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

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

/* 性能优化 */
.comic-card img,
.update-item img,
.category-item img {
    will-change: transform;
}

/* 无障碍优化 */
a:focus,
button:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

