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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo h1 a {
    color: white;
    text-decoration: none;
}

.tagline {
    font-size: 0.9em;
    opacity: 0.9;
}

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

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

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

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* 视频卡片区域 */
.video-section {
    padding: 60px 0;
    background-color: white;
}

.video-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

.video-card {
    display: flex;
    gap: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.video-thumbnail {
    position: relative;
    flex: 0 0 300px;
    max-width: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 8px;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    flex: 1;
    min-width: 250px;
}

.video-info h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #667eea;
}

.video-info p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.video-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s;
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 特色功能区域 */
.features {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.features h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* 漫画展示区域 */
.comics-showcase {
    padding: 60px 0;
    background-color: white;
}

.comics-showcase h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

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

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

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

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

.comic-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.comic-card h3 {
    padding: 20px;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.comic-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* SEO内容区域 */
.seo-content {
    padding: 60px 0;
    background: #f9f9f9;
}

.seo-content article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.seo-content h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #667eea;
}

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

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

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

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

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav ul {
        justify-content: center;
        margin-top: 20px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .video-card {
        flex-direction: column;
    }

    .video-thumbnail {
        flex: 1 1 100%;
    }

    .feature-grid,
    .comics-grid {
        grid-template-columns: 1fr;
    }

    .seo-content article {
        padding: 20px;
    }

    .logo h1 {
        font-size: 1.5em;
    }

    .tagline {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .video-section,
    .features,
    .comics-showcase,
    .seo-content {
        padding: 40px 0;
    }

    .video-card {
        padding: 20px;
    }

    .feature-card,
    .seo-content article {
        padding: 20px;
    }
}

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

/* 链接样式优化 */
a {
    transition: all 0.3s ease;
}

/* 加载优化 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img[loading="lazy"].loaded,
img.loaded {
    opacity: 1;
}

/* 确保图片容器有最小高度，避免布局抖动 */
img[src*="tse-mm.bing.com"],
img[src*="tse1.mm.bing.net"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 50px;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb-section {
    padding: 20px 0;
    background-color: #f9f9f9;
}

.breadcrumb {
    font-size: 0.9em;
    color: #666;
}

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

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

.breadcrumb span {
    color: #333;
}

/* 分类卡片样式 */
.categories-section {
    padding: 60px 0;
    background-color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card h2 {
    padding: 20px 20px 10px;
    font-size: 1.5em;
    color: #667eea;
}

.category-card p {
    padding: 0 20px 15px;
    color: #666;
    line-height: 1.8;
}

.category-count {
    display: block;
    padding: 10px 20px 20px;
    color: #999;
    font-size: 0.9em;
}

/* 更新时间样式 */
.update-time {
    display: block;
    padding: 10px 20px 20px;
    color: #999;
    font-size: 0.9em;
}

/* 热门标签 */
.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.comic-card.featured {
    position: relative;
}

/* 相关链接区域 */
.related-links {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.related-links h2 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}

.related-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.related-link {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.related-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 关于页面样式 */
.about-content {
    padding: 60px 0;
    background-color: white;
}

.about-article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 300px;
    border-radius: 10px;
    margin: 0 auto 30px;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    object-fit: cover;
}

.about-article h2 {
    font-size: 1.8em;
    margin: 30px 0 20px;
    color: #667eea;
}

.about-article p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.feature-list {
    margin: 20px 0;
    padding-left: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.feature-list strong {
    color: #667eea;
}

.back-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.back-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 教程页面样式 */
.tutorial-content {
    padding: 60px 0;
    background-color: white;
}

.tutorial-article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.tutorial-article h2 {
    font-size: 1.8em;
    margin: 40px 0 20px;
    color: #667eea;
}

.tutorial-article h2:first-child {
    margin-top: 0;
}

.tutorial-article p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.tutorial-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    min-height: 300px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    object-fit: cover;
}

.tutorial-list {
    margin: 20px 0;
    padding-left: 20px;
}

.tutorial-list li {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.faq-section {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.faq-section h3 {
    font-size: 1.3em;
    margin: 25px 0 10px;
    color: #667eea;
}

.faq-section h3:first-child {
    margin-top: 0;
}

.faq-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

/* 漫画详情页样式 */
.comic-detail {
    padding: 40px 0;
    background-color: white;
}

.comic-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.comic-cover {
    flex: 0 0 300px;
    max-width: 100%;
}

.comic-cover img {
    width: 100%;
    height: auto;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    object-fit: cover;
}

.comic-details {
    flex: 1;
    min-width: 300px;
}

.comic-details h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.comic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    color: #666;
}

.meta-item {
    font-size: 0.95em;
}

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

.meta-item a:hover {
    text-decoration: underline;
}

.comic-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    text-align: justify;
}

.comic-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.read-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: transform 0.3s;
}

.read-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.back-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.back-button:hover {
    background: #667eea;
    color: white;
}

/* 章节列表样式 */
.comic-chapters {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.comic-chapters h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.chapters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.chapter-item {
    display: block;
    padding: 15px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    text-align: center;
}

.chapter-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 相关推荐样式 */
.related-comics {
    padding: 40px 0;
    background-color: white;
}

.related-comics h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

/* FAQ页面样式 */
.faq-content {
    padding: 60px 0;
    background-color: white;
}

.faq-article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.faq-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

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

.faq-item h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #667eea;
}

.faq-item p {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

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

.faq-item a:hover {
    text-decoration: underline;
}

/* 联系页面样式 */
.contact-content {
    padding: 60px 0;
    background-color: white;
}

.contact-article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.contact-article h2 {
    font-size: 1.8em;
    margin: 40px 0 20px;
    color: #667eea;
}

.contact-article h2:first-child {
    margin-top: 0;
}

.contact-article p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
}

.contact-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #667eea;
}

.contact-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.contact-article a:hover {
    text-decoration: underline;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2em;
    }

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

    .about-article,
    .tutorial-article,
    .faq-article,
    .contact-article {
        padding: 20px;
    }

    .back-links {
        justify-content: center;
    }

    .comic-info {
        flex-direction: column;
    }

    .comic-cover {
        flex: 1 1 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .comic-details h1 {
        font-size: 2em;
    }

    .chapters-list {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

