/* ============================================
   CSS变量定义 - 主题色管理
   ============================================ */
:root {
    --primary-color: #302b2c;
    --accent-color-1: #b6a99f;
    --accent-color-2: #818997;
    --accent-color-3: #80959d;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Noto Sans SC', sans-serif;
    --font-secondary: 'Noto Serif SC', serif;
}

/* ============================================
   基础样式重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

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

/* ============================================
   头部导航
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(48, 43, 44, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

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

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

.logo-text {
    font-family: var(--font-secondary);
}

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

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

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

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

.nav-toggle {
    display: none;
    color: var(--bg-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   英雄区
   ============================================ */
.hero {
    margin-top: 70px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d3637 100%);
    color: var(--bg-color);
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-color-1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color-1);
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

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

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

.tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--accent-color-1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
    box-shadow: var(--shadow);
}

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

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

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

/* ============================================
   新闻/动态区
   ============================================ */
.news {
    background: var(--bg-light);
}

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

.news-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

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

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

.news-link {
    color: var(--accent-color-1);
    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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 16/9;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(48, 43, 44, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.gallery-overlay i {
    color: var(--bg-color);
    font-size: 2rem;
}

/* 图片查看器 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--bg-color);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   用户评价区
   ============================================ */
.reviews {
    background: var(--bg-light);
}

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

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

.stats-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.stats-label {
    color: var(--text-light);
    margin-top: 5px;
}

.stats-stars {
    color: #ffc107;
    margin-top: 10px;
    font-size: 1.2rem;
}

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

.review-tag {
    padding: 8px 16px;
    background: var(--accent-color-1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.review-card {
    display: none;
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

.review-rating {
    color: #ffc107;
}

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

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

.carousel-btn {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-color-1);
    color: var(--primary-color);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

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

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

/* ============================================
   版本历史
   ============================================ */
.versions-list {
    max-width: 900px;
    margin: 0 auto;
}

.version-item {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

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

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

.version-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

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

.version-platform,
.version-size {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

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

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--accent-color-1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ============================================
   游戏攻略
   ============================================ */
.guide {
    background: var(--bg-light);
}

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

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

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

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

.guide-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.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: 15px;
    gap: 10px;
}

.guide-title {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    color: var(--primary-color);
    flex: 1;
}

.guide-difficulty {
    padding: 4px 12px;
    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-light);
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.guide-footer {
    margin-top: auto;
}

.guide-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--accent-color-1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   游戏章节
   ============================================ */
.chapters-list {
    max-width: 1000px;
    margin: 0 auto;
}

.chapter-item {
    display: flex;
    gap: 30px;
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: var(--transition);
}

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

.chapter-number {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color-1);
    min-width: 80px;
    text-align: center;
}

.chapter-content {
    flex: 1;
}

.chapter-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.chapter-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.chapter-type {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.chapter-type.main {
    background: var(--accent-color-1);
    color: var(--primary-color);
}

.chapter-type.character {
    background: var(--accent-color-3);
    color: var(--primary-color);
}

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

.chapter-tone {
    color: var(--accent-color-2);
    font-size: 0.9rem;
    font-style: italic;
}

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

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

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

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

.faq-question span {
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

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

/* ============================================
   返回顶部按钮
   ============================================ */
.scroll-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);
    z-index: 999;
    box-shadow: var(--shadow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-color-1);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ============================================
   底部信息
   ============================================ */
.footer {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 60px 0 20px;
}

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

.footer-title {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

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

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

.footer-links a:hover {
    color: var(--accent-color-1);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition);
    }

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

    .nav-toggle {
        display: block;
    }

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

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

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

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

    .reviews-stats {
        gap: 30px;
    }

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

    .chapter-item {
        flex-direction: column;
        gap: 15px;
    }

    .chapter-number {
        min-width: auto;
    }

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

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

    .guide-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

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

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

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

    .hero {
        padding: 40px 0;
    }

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

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

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

