/* CSS变量定义 - 主题色 */
:root {
    --primary-color: #38303d;
    --secondary-color-1: #413748;
    --secondary-color-2: #ba9ba0;
    --secondary-color-3: #907fab;
    --secondary-color-4: #82ab89;
    --text-color: #ffffff;
    --text-secondary: #e0e0e0;
    --bg-dark: #2a2329;
    --bg-light: #3d3542;
    --shadow: rgba(0, 0, 0, 0.3);
    --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;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-1) 100%);
    color: var(--text-color);
    line-height: 1.6;
    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(--text-color);
    text-shadow: 2px 2px 4px var(--shadow);
}

.section-title i {
    margin-right: 10px;
    color: var(--secondary-color-3);
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(56, 48, 61, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

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

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

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

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

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

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

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

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

/* 英雄区 */
.hero {
    margin-top: 70px;
    padding: 60px 0;
    min-height: auto;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--secondary-color-3), var(--secondary-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color-2);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

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

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

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

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

.tag {
    padding: 6px 15px;
    background: rgba(144, 127, 171, 0.2);
    border: 1px solid var(--secondary-color-3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary-color-3);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(144, 127, 171, 0.4);
    transform: translateY(-2px);
}

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

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(144, 127, 171, 0.6);
}

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

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

/* 新闻动态区 */
.news {
    background: rgba(65, 55, 72, 0.5);
}

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

.news-card {
    background: rgba(56, 48, 61, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(144, 127, 171, 0.3);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--secondary-color-3);
}

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

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

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

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

/* 媒体画廊 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

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

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

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

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

/* 用户评价区 */
.reviews {
    background: rgba(65, 55, 72, 0.5);
}

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

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

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

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

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

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

.review-tag {
    padding: 8px 18px;
    background: rgba(144, 127, 171, 0.2);
    border: 1px solid var(--secondary-color-3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color-3);
}

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

.review-card {
    display: none;
    background: rgba(56, 48, 61, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(144, 127, 171, 0.3);
}

.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;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.review-rating {
    color: #ffd700;
}

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

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

.carousel-btn {
    background: rgba(144, 127, 171, 0.3);
    border: 1px solid var(--secondary-color-3);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(144, 127, 171, 0.5);
    transform: scale(1.1);
}

/* 版本历史 */
.versions-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.version-item {
    background: rgba(56, 48, 61, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(144, 127, 171, 0.3);
    transition: var(--transition);
}

.version-item:hover {
    transform: translateX(10px);
    border-color: var(--secondary-color-3);
    box-shadow: 0 5px 20px var(--shadow);
}

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

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

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

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

.version-size,
.version-platform {
    padding: 5px 15px;
    background: rgba(144, 127, 171, 0.2);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color-3);
}

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

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

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

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

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

/* 游戏攻略 */
.guide-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(144, 127, 171, 0.2);
    border: 1px solid var(--secondary-color-3);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(144, 127, 171, 0.4);
    border-color: var(--secondary-color-2);
    transform: translateY(-2px);
}

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

.guide-card {
    background: rgba(56, 48, 61, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(144, 127, 171, 0.3);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--secondary-color-3);
}

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

.guide-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

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

.guide-difficulty.easy {
    background: rgba(130, 171, 137, 0.3);
    color: var(--secondary-color-4);
    border: 1px solid var(--secondary-color-4);
}

.guide-difficulty.medium {
    background: rgba(144, 127, 171, 0.3);
    color: var(--secondary-color-3);
    border: 1px solid var(--secondary-color-3);
}

.guide-difficulty.hard {
    background: rgba(186, 155, 160, 0.3);
    color: var(--secondary-color-2);
    border: 1px solid var(--secondary-color-2);
}

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

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-tag {
    padding: 5px 12px;
    background: rgba(144, 127, 171, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--secondary-color-3);
}

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

/* 游戏章节 */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.chapter-card {
    background: rgba(56, 48, 61, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(144, 127, 171, 0.3);
    transition: var(--transition);
}

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

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

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

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

.chapter-type {
    padding: 5px 15px;
    background: rgba(144, 127, 171, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--secondary-color-3);
}

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

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

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

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

/* 常见问题 */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(56, 48, 61, 0.8);
    margin-bottom: 15px;
    border-radius: 15px;
    border: 1px solid rgba(144, 127, 171, 0.3);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary-color-3);
}

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

.faq-question:hover {
    background: rgba(144, 127, 171, 0.1);
}

.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;
}

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

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(144, 127, 171, 0.8);
    border: 1px solid var(--secondary-color-3);
    color: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: rgba(144, 127, 171, 1);
    transform: translateY(-5px);
}

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

/* 页脚 */
.footer {
    background: rgba(42, 35, 41, 0.95);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(144, 127, 171, 0.3);
}

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

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color-3);
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(144, 127, 171, 0.2);
    color: var(--text-secondary);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(56, 48, 61, 0.98);
        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 {
        margin: 10px 0;
    }

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

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

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

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

    .reviews-stats {
        gap: 30px;
    }

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

    .hero-info {
        justify-content: space-between;
    }

    .info-item {
        flex: 1;
        min-width: calc(50% - 10px);
    }

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

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

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

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

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

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

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

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

    .news-grid,
    .gallery-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hero-info {
        flex-direction: column;
        gap: 15px;
    }

    .info-item {
        width: 100%;
    }
}
