/* CSS变量定义 - 主题色 */
:root {
    --primary-color: #cac6c9;
    --secondary-color-1: #b9c0c7;
    --secondary-color-2: #287f92;
    --secondary-color-3: #90434b;
    --secondary-color-4: #a07151;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 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;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* 头部导航 */
.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;
    transition: var(--transition);
}

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

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

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

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

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    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(--text-dark);
    transition: var(--transition);
    border-radius: 3px;
}

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

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px var(--shadow);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tag {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.tag:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

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

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

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

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

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

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

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

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

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

.news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}

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

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: linear-gradient(135deg, var(--secondary-color-2) 0%, var(--secondary-color-1) 100%);
    border-radius: 10px;
    padding: 1rem;
    color: var(--white);
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.news-link {
    color: var(--secondary-color-2);
    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-section {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 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-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-color) 100%);
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

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

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

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

.review-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.review-tag {
    background-color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

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

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

.review-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    display: none;
    animation: fadeIn 0.5s ease;
}

.review-card.active {
    display: block;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color-2) 0%, var(--secondary-color-1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

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

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

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

.carousel-btn {
    background: var(--secondary-color-2);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.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-color: var(--secondary-color-1);
    cursor: pointer;
    transition: var(--transition);
}

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

/* 版本历史 */
.versions-section {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.version-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

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

.version-date {
    min-width: 120px;
    font-weight: 600;
    color: var(--secondary-color-2);
    font-size: 1.1rem;
}

.version-content {
    flex: 1;
}

.version-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

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

.version-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

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

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color-2);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* 游戏攻略 */
.guide-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

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

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

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color-2);
    color: var(--white);
    border-color: var(--secondary-color-2);
    transform: translateY(-2px);
}

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

.guide-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.guide-icon {
    font-size: 3rem;
    color: var(--secondary-color-2);
    margin-bottom: 1rem;
}

.guide-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.guide-card-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.guide-difficulty {
    display: flex;
    justify-content: center;
}

.difficulty-tag {
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.difficulty-tag.easy {
    background-color: #d4edda;
    color: #155724;
}

.difficulty-tag.medium {
    background-color: #fff3cd;
    color: #856404;
}

.difficulty-tag.hard {
    background-color: #f8d7da;
    color: #721c24;
}

/* 游戏章节介绍 */
.chapters-section {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.chapter-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color-2);
}

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

.chapter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chapter-type {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chapter-type.main {
    background-color: var(--secondary-color-2);
    color: var(--white);
}

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

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

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

.chapter-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.chapter-tone {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tone-tag {
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* 常见问题 */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-color) 100%);
}

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

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

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

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

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

.faq-question i {
    color: var(--secondary-color-2);
    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 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

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

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

/* 底部信息 */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    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: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@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 rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-link {
        padding: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

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

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

    .hamburger.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.5rem;
    }

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

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

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

    .reviews-stats {
        gap: 2rem;
    }

    .version-item {
        flex-direction: column;
    }

    .version-date {
        min-width: auto;
        text-align: center;
    }
}

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

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

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

    .info-item {
        font-size: 0.85rem;
    }

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .btn-download {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-card {
        flex-direction: column;
    }

    .news-date {
        min-width: auto;
        width: 100%;
    }
}

