/* CSS变量定义 - 统一管理主题色 */
:root {
    --primary-color: #62708c;
    --secondary-color-1: #d9dbe2;
    --secondary-color-2: #1e2129;
    --secondary-color-3: #aabcd3;
    --text-color: #1e2129;
    --text-light: #62708c;
    --bg-color: #ffffff;
    --bg-light: #f5f6f8;
    --shadow: 0 2px 10px rgba(30, 33, 41, 0.1);
    --shadow-hover: 0 4px 20px rgba(30, 33, 41, 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', 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-3));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

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

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

.logo-text {
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

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

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

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

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

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

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

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    box-shadow: var(--shadow);
}

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

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

.tag {
    padding: 0.4rem 0.8rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-3));
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    width: fit-content;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* 通用区块标题 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

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

.news-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.news-content {
    color: var(--text-color);
    line-height: 1.8;
    flex-grow: 1;
}

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

/* 媒体画廊 */
.gallery {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

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

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 33, 41, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view {
    background: var(--bg-color);
    border: none;
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-view:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

/* 图片查看器模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 33, 41, 0.95);
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--bg-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color-1);
    transform: scale(1.2);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--bg-color);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

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

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 2rem;
}

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

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

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

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

.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.review-card {
    display: none;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.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: 1rem;
}

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

.review-rating {
    color: #ffc107;
}

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

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

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-btn {
    background: var(--primary-color);
    border: none;
    color: var(--bg-color);
    padding: 0.8rem 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

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

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color-1);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 版本历史 */
.versions {
    padding: 4rem 0;
    background: var(--bg-light);
}

.versions-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.version-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    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: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

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

.version-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.version-changes {
    list-style: none;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.version-changes li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
}

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

.version-download {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--secondary-color-1);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.guide-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

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

.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-color);
    line-height: 1.8;
    flex-grow: 1;
}

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

.guide-card.hidden {
    display: none;
}

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

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

.chapter-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.chapter-item.main {
    border-left: 4px solid var(--primary-color);
}

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

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

.chapter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.chapter-type {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.chapter-item.main .chapter-type {
    background: var(--primary-color);
    color: var(--bg-color);
}

.chapter-item.character .chapter-type {
    background: var(--secondary-color-3);
    color: var(--bg-color);
}

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

.chapter-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.chapter-tone {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* 常见问题 */
.faq {
    padding: 4rem 0;
    background: var(--bg-color);
}

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

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

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.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, padding 0.3s ease;
    padding: 0 1.5rem;
}

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

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

/* 下载区域 */
.download {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-3));
    color: var(--bg-color);
}

.download-content {
    text-align: center;
}

.download-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.btn-download-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 3rem;
    background: var(--bg-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-download-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

/* 页脚 */
.footer {
    background: var(--secondary-color-2);
    color: var(--secondary-color-1);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--bg-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

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

    .info-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .reviews-summary {
        flex-direction: column;
        text-align: 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;
    }

    .download-details {
        flex-direction: column;
        gap: 1rem;
    }

    .guides-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

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

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

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

    .section-title i {
        font-size: 1.2rem;
    }

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

    .btn-download,
    .btn-download-large {
        width: 100%;
        justify-content: center;
    }
}

