/* ============================================
   CSS变量 - 主题色管理
   ============================================ */
:root {
    --primary-color: #c5aea1;
    --secondary-color-1: #1c1d23;
    --secondary-color-2: #bd9784;
    --secondary-color-3: #575656;
    --secondary-color-4: #717072;
    --text-light: #ffffff;
    --text-dark: #1c1d23;
    --bg-light: #f5f5f5;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

/* ============================================
   头部导航
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--secondary-color-1) 0%, var(--secondary-color-3) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.logo:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a i {
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
    border-radius: 3px;
}

/* ============================================
   英雄区
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-2) 100%);
    padding: 60px 0;
    min-height: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.hero-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

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

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color-1);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color-1);
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: var(--secondary-color-1);
    color: var(--text-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color-1);
    color: var(--text-light);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-download:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

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

.news-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-date {
    color: var(--secondary-color-4);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color-1);
    margin-bottom: 15px;
}

.news-content {
    color: var(--secondary-color-3);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.news-link:hover {
    gap: 10px;
    color: var(--secondary-color-1);
}

/* ============================================
   媒体画廊
   ============================================ */
.gallery {
    background: linear-gradient(135deg, var(--secondary-color-1) 0%, var(--secondary-color-3) 100%);
}

.gallery .section-title {
    color: var(--text-light);
}

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

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

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

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

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

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

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stats-item {
    text-align: center;
}

.stats-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1rem;
    color: var(--secondary-color-3);
    margin-bottom: 10px;
}

.stats-stars {
    color: #ffd700;
    font-size: 1.5rem;
}

.reviews-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.review-tag {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.reviews-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
}

.review-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: none;
}

.review-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.review-author {
    font-weight: 700;
    color: var(--secondary-color-1);
}

.review-rating {
    color: #ffd700;
}

.review-text {
    color: var(--secondary-color-3);
    line-height: 1.8;
    font-style: italic;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--secondary-color-1);
    transform: scale(1.1);
}

/* ============================================
   版本历史
   ============================================ */
.versions {
    background: var(--bg-light);
}

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.version-item {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

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

.version-date {
    color: var(--secondary-color-4);
    font-size: 1rem;
}

.version-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.version-size,
.version-platform {
    color: var(--secondary-color-3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.version-changes {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 20px;
}

.version-changes li {
    color: var(--secondary-color-3);
    margin-bottom: 8px;
    position: relative;
}

.version-changes li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.version-download:hover {
    background: var(--secondary-color-1);
    transform: translateY(-2px);
}

/* ============================================
   游戏攻略
   ============================================ */
.guides {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-2) 100%);
}

.guides .section-title {
    color: var(--text-light);
}

.guide-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-light);
    color: var(--secondary-color-1);
    border-color: var(--text-light);
}

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

.guide-card {
    background: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    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: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color-1);
    flex: 1;
}

.guide-difficulty {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.guide-difficulty.easy {
    background: #4caf50;
    color: var(--text-light);
}

.guide-difficulty.medium {
    background: #ff9800;
    color: var(--text-light);
}

.guide-difficulty.hard {
    background: #f44336;
    color: var(--text-light);
}

.guide-description {
    color: var(--secondary-color-3);
    line-height: 1.8;
    margin-bottom: 15px;
}

.guide-meta {
    color: var(--secondary-color-4);
    font-size: 0.9rem;
}

/* ============================================
   游戏章节
   ============================================ */
.chapters {
    background: var(--bg-light);
}

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

.chapter-card {
    background: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.chapter-card.main {
    border-left-color: var(--primary-color);
}

.chapter-card.side {
    border-left-color: var(--secondary-color-2);
}

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

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.chapter-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color-1);
    flex: 1;
}

.chapter-type {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    background: var(--primary-color);
    color: var(--text-light);
}

.chapter-card.side .chapter-type {
    background: var(--secondary-color-2);
}

.chapter-description {
    color: var(--secondary-color-3);
    line-height: 1.8;
    margin-bottom: 15px;
}

.chapter-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color-4);
}

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

.chapter-info i {
    color: var(--primary-color);
}

.chapter-tone {
    color: var(--secondary-color-3);
    font-size: 0.9rem;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
}

/* ============================================
   常见问题
   ============================================ */
.faq {
    background: linear-gradient(135deg, var(--secondary-color-1) 0%, var(--secondary-color-3) 100%);
}

.faq .section-title {
    color: var(--text-light);
}

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

.faq-item {
    background: var(--text-light);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color-1);
    transition: var(--transition);
}

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

.faq-question i {
    color: var(--primary-color);
    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.3s ease;
}

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

.faq-answer p {
    color: var(--secondary-color-3);
    line-height: 1.8;
    padding-top: 10px;
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--secondary-color-1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   底部信息
   ============================================ */
.footer {
    background: var(--secondary-color-1);
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-color-4);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color-1);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 20px 0;
        box-shadow: var(--shadow);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

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

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

    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }

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

    .reviews-stats {
        gap: 30px;
    }

    .stats-value {
        font-size: 2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

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

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

    .section {
        padding: 50px 0;
    }

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

    .btn-download {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

