/* CSS变量定义 - 主题配色 */
:root {
    --primary-color: #5a6669;
    --secondary-color-1: #928875;
    --secondary-color-2: #d1c8ba;
    --secondary-color-3: #5f4337;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

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

.logo-text {
    color: var(--white);
}

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* 英雄区样式 */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color-2), var(--secondary-color-1));
    padding: 60px 20px;
    min-height: auto;
}

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

.hero-content {
    text-align: center;
    color: var(--text-color);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color-3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    min-width: 100px;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

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

.tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color-3), var(--primary-color));
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(95, 67, 55, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(95, 67, 55, 0.4);
}

.download-btn i {
    margin-right: 8px;
}

/* 通用区块样式 */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

/* 新闻/动态区样式 */
.news-section {
    background: var(--white);
}

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

.news-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

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

.news-date {
    color: var(--secondary-color-1);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-content {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

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

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

/* 媒体画廊样式 */
.gallery-section {
    background: var(--bg-color);
}

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

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

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px var(--shadow);
}

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

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

/* 用户评价区样式 */
.reviews-section {
    background: var(--white);
}

.reviews-summary {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, var(--secondary-color-2), var(--white));
    border-radius: 10px;
}

.rating-display {
    margin-bottom: 20px;
}

.rating-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-stars {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 10px;
}

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

.tags-summary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}

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

.review-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
}

.review-rating {
    color: #ffd700;
}

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

/* 版本历史样式 */
.versions-section {
    background: var(--bg-color);
}

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

.version-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 20px;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color-2);
}

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

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

.version-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.version-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.version-changes {
    margin-bottom: 20px;
}

.version-changes h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

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

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

.version-download {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

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

/* 游戏攻略样式 */
.guides-section {
    background: var(--white);
}

.guides-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--bg-color);
    border: 2px solid var(--secondary-color-2);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.guide-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

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

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

.guide-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    flex: 1;
}

.guide-difficulty {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.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: 15px;
    line-height: 1.8;
}

.guide-meta {
    color: var(--text-light);
    font-size: 14px;
}

/* 游戏章节样式 */
.chapters-section {
    background: var(--bg-color);
}

.chapters-list {
    max-width: 1000px;
    margin: 0 auto;
}

.chapter-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 25px;
    transition: var(--transition);
}

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

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

.chapter-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.chapter-type {
    background: var(--secondary-color-1);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

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

.chapter-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 14px;
}

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

.chapter-tone {
    color: var(--secondary-color-1);
    font-size: 14px;
    font-style: italic;
}

/* 常见问题样式 */
.faq-section {
    background: var(--white);
}

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

.faq-item {
    background: var(--bg-color);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow);
}

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

.faq-question:hover {
    background: var(--secondary-color-2);
}

.faq-question i {
    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;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

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

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

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

/* 底部信息样式 */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-3));
    color: var(--white);
    padding: 50px 20px 20px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-section a {
    color: var(--secondary-color-2);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-1));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

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

    .nav-menu li {
        padding: 15px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-info {
        gap: 10px;
    }

    .info-item {
        min-width: 80px;
        padding: 10px 15px;
    }

    .section-title {
        font-size: 28px;
    }

    section {
        padding: 50px 20px;
    }

    .news-grid,
    .gallery-grid,
    .reviews-carousel,
    .guides-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

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

    .section-title {
        font-size: 24px;
    }
}

