/* CSS变量 - 主题色管理 */
:root {
    --primary-color: #dfcdcc;
    --secondary-color-1: #dac6c5;
    --secondary-color-2: #573430;
    --secondary-color-3: #4f7b89;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f6f6;
    --white: #ffffff;
    --shadow: rgba(87, 52, 48, 0.1);
    --shadow-hover: rgba(87, 52, 48, 0.2);
    --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-dark);
    line-height: 1.6;
    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-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

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

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

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

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

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

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

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

.nav-menu a:hover {
    color: var(--secondary-color-3);
    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-color: var(--secondary-color-2);
    transition: var(--transition);
    border-radius: 3px;
}

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

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

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color-2);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-tag {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.feature-tag i {
    color: var(--secondary-color-3);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

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

.meta-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color-2);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color-3) 0%, var(--secondary-color-2) 100%);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-download:active {
    transform: translateY(-1px);
}

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

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

.news-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

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

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

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color-2);
    margin-bottom: 15px;
}

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

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

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

/* 媒体画廊 */
.gallery {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

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

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

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

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

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

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

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-1) 100%);
    border-radius: 15px;
    flex-wrap: wrap;
    gap: 30px;
}

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

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color-2);
    margin-bottom: 10px;
}

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

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

.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color-2);
    box-shadow: 0 2px 8px var(--shadow);
}

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

.review-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

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

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

.review-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

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

/* 版本历史 */
.versions {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

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

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

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

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

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

.version-date {
    color: var(--secondary-color-3);
    font-weight: 500;
}

.version-content ul {
    margin: 15px 0 20px 20px;
    color: var(--text-light);
    line-height: 2;
}

.version-content li {
    margin-bottom: 8px;
}

.version-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color-3);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.version-download:hover {
    gap: 12px;
    color: var(--secondary-color-2);
}

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

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

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--secondary-color-2);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.guide-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

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

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

.guide-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color-2);
    flex: 1;
}

.guide-difficulty {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    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-desc {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-tags span {
    background: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color-3);
}

/* 游戏章节 */
.chapters {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.chapters-list {
    display: grid;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.chapter-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

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

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

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

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

.chapter-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color-2);
}

.chapter-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary-color);
    color: var(--secondary-color-2);
}

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

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

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

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

.chapter-tone {
    padding: 8px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color-2);
    display: inline-block;
}

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

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

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

.faq-item.active {
    box-shadow: 0 4px 15px var(--shadow-hover);
}

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

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

.faq-question i {
    color: var(--secondary-color-3);
    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;
    padding: 0 25px;
}

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

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

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--secondary-color-2) 0%, var(--secondary-color-3) 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

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

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

.footer-section 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.2);
    color: rgba(255, 255, 255, 0.7);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color-3) 0%, var(--secondary-color-2) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

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

/* 响应式设计 */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-1) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

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

    .nav-menu li {
        width: 100%;
        padding: 15px 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;
        text-align: center;
    }

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

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

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

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

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

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

    .chapter-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .hero {
        padding: 40px 0;
    }

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

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

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

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

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

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

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

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

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

