/* CSS变量 - 主题色管理 */
:root {
    --primary-color: #332940;
    --accent-color-1: #d2b1b1;
    --accent-color-2: #8688a9;
    --accent-color-3: #9a9dab;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(51, 41, 64, 0.1);
    --shadow-hover: 0 4px 20px rgba(51, 41, 64, 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-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) 0%, #4a3d5a 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

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

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

.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(--accent-color-1);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #fff;
    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(--accent-color-1);
    transition: var(--transition);
    border-radius: 3px;
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: 3rem 0;
    margin-bottom: 4rem;
}

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

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

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

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color-2);
    margin-bottom: 1rem;
    font-weight: 400;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.meta-item i {
    color: var(--accent-color-2);
}

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

.tag {
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a3d5a 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #4a3d5a 0%, var(--primary-color) 100%);
}

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

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

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

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

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

.news-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color-1);
}

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

.news-date {
    color: var(--accent-color-2);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

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

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

.news-link {
    color: var(--accent-color-2);
    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 {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 16/9;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

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

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

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

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

.modal-image {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 10px;
}

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

.modal-close:hover {
    color: var(--accent-color-1);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

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

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

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

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

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

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

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

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

.review-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 2px solid var(--accent-color-1);
    transition: var(--transition);
}

.review-tag:hover {
    background: var(--accent-color-1);
    color: #fff;
}

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

.review-card {
    display: none;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color-1);
}

.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;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.review-rating {
    color: #ffc107;
}

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

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

.carousel-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

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

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

.version-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.version-date {
    color: var(--accent-color-2);
    font-size: 1rem;
}

.version-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 2;
}

.version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.version-meta i {
    color: var(--accent-color-2);
}

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

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

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

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

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

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color-1);
    color: #fff;
    border-color: var(--accent-color-1);
}

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

.guide-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color-2);
}

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

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

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

.guide-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    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-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.guide-tag {
    background: var(--accent-color-3);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

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

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

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

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

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

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

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

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

.chapter-type {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.chapter-item.main .chapter-type {
    background: var(--accent-color-2);
    color: #fff;
}

.chapter-item.character .chapter-type {
    background: var(--accent-color-1);
    color: #fff;
}

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

.chapter-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.chapter-info i {
    color: var(--accent-color-2);
}

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

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

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

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    transition: var(--transition);
}

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

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    color: var(--accent-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;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a3d5a 100%);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

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

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

/* 底部信息 */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a3d5a 100%);
    color: var(--accent-color-1);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

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

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

.footer-section ul li a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(210, 177, 177, 0.2);
    color: var(--accent-color-1);
}

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

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

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

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

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

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

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

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

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

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

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

    .hero-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .reviews-stats {
        gap: 2rem;
    }

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

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

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

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

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

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

    .chapter-info {
        flex-direction: column;
        gap: 1rem;
    }

    .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;
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .hero-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}

