/* CSS变量 - 主题色管理 */
:root {
    --primary-color: #2d2621;
    --accent-color-1: #b58f6d;
    --accent-color-2: #8b9482;
    --accent-color-3: #8b8c8c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

/* 头部导航 */
.header {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Noto Sans SC', sans-serif;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color-2) 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color-1);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color-1);
}

.hero-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color-1);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(181, 143, 109, 0.3);
}

.btn-download:hover {
    background: #a07d5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 143, 109, 0.4);
}

.hero-image {
    text-align: center;
}

.cover-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

/* 章节标题 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-color-1);
}

/* 新闻/动态区 */
.news {
    padding: 3rem 0;
    background: var(--bg-light);
}

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

.news-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-date {
    color: var(--accent-color-1);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-content {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.news-link {
    color: var(--accent-color-1);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-link:hover {
    gap: 10px;
}

/* 媒体画廊 */
.gallery {
    padding: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* 用户评价区 */
.reviews {
    padding: 3rem 0;
    background: var(--bg-light);
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.rating-overview {
    text-align: center;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.review-rating {
    color: #ffc107;
}

.review-content {
    color: var(--text-light);
    line-height: 1.7;
}

/* 版本历史 */
.versions {
    padding: 3rem 0;
}

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.version-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color-1);
    transition: var(--transition);
}

.version-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.version-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.version-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.version-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.version-platform,
.version-size {
    background: var(--accent-color-2);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.version-content {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.version-content p {
    margin-bottom: 0.5rem;
}

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color-1);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.version-download:hover {
    gap: 10px;
}

/* 游戏攻略 */
.guides {
    padding: 3rem 0;
    background: var(--bg-light);
}

.guides-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--accent-color-2);
    background: #fff;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color-1);
    color: #fff;
    border-color: var(--accent-color-1);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.guide-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.guide-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.guide-difficulty.easy {
    background: #d4edda;
    color: #155724;
}

.guide-difficulty.medium {
    background: #fff3cd;
    color: #856404;
}

.guide-difficulty.hard {
    background: #f8d7da;
    color: #721c24;
}

.guide-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.guide-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 游戏角色 */
.characters {
    padding: 3rem 0;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.character-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.character-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color-2) 0%, var(--accent-color-1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-placeholder {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
}

.character-info {
    padding: 1.5rem;
}

.character-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.character-details {
    color: var(--text-light);
    line-height: 1.8;
}

.character-details p {
    margin-bottom: 0.5rem;
}

.character-description {
    margin-top: 1rem;
    font-style: italic;
}

/* 游戏章节 */
.chapters {
    padding: 3rem 0;
    background: var(--bg-light);
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chapter-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.chapter-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chapter-title {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.chapter-type {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.chapter-type.main {
    background: var(--accent-color-1);
    color: #fff;
}

.chapter-type.character {
    background: var(--accent-color-2);
    color: #fff;
}

.chapter-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.chapter-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.chapter-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 常见问题 */
.faq {
    padding: 3rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: #fff;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-question i {
    color: var(--accent-color-1);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color-1);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #a07d5a;
    transform: translateY(-3px);
}

/* 底部信息 */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color-1);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color-1);
    padding-left: 5px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-list.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-info {
        justify-content: center;
    }

    .hero-tags {
        justify-content: center;
    }

    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }

    .rating-tags {
        justify-content: center;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chapter-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

