/* ============================================
   CSS变量 - 主题色管理
   ============================================ */
:root {
    --primary-color: #e9dbdf;
    --secondary-color-1: #2c3d52;
    --secondary-color-2: #c7e1dd;
    --secondary-color-3: #adb6c3;
    --secondary-color-4: #9799a8;
    
    --text-dark: #2c3d52;
    --text-light: #ffffff;
    --text-gray: #666666;
    
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    --shadow-sm: 0 2px 8px rgba(44, 61, 82, 0.1);
    --shadow-md: 0 4px 16px rgba(44, 61, 82, 0.15);
    --shadow-lg: 0 8px 24px rgba(44, 61, 82, 0.2);
    
    --transition: all 0.3s ease;
    --border-radius: 12px;
    
    --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-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    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(--secondary-color-1);
    font-family: var(--font-secondary);
}

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

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

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

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

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

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

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

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

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

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

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

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--secondary-color-1);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   英雄区
   ============================================ */
.hero {
    margin-top: 70px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-2) 100%);
    min-height: auto;
}

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

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

.hero-badge {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.version-badge,
.date-badge {
    padding: 8px 16px;
    background: var(--secondary-color-1);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color-1);
    font-family: var(--font-secondary);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color-4);
    font-weight: 400;
    margin-top: -10px;
}

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

.hero-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--secondary-color-1);
}

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

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

.tag {
    padding: 6px 14px;
    background: var(--secondary-color-1);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--secondary-color-1), var(--secondary-color-4));
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: var(--shadow-md);
    width: fit-content;
}

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

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

.cover-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

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

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

.news-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

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

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

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

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color-1);
    margin-bottom: 10px;
}

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

.news-link {
    color: var(--secondary-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 {
    background: var(--bg-light);
}

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

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

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

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

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

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

.image-viewer.active {
    display: flex;
}

.viewer-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

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

.viewer-close:hover {
    transform: scale(1.2);
}

.viewer-prev,
.viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.viewer-prev {
    left: 30px;
}

.viewer-next {
    right: 30px;
}

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

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-2));
    border-radius: var(--border-radius);
    flex-wrap: wrap;
    gap: 30px;
}

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

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color-1);
    line-height: 1;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 10px 0;
}

.rating-count {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

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

.rating-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color-1);
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 100%;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.review-author {
    font-weight: 600;
    color: var(--secondary-color-1);
    font-size: 1.1rem;
}

.review-stars {
    color: #ffd700;
}

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

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

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-2));
    color: var(--secondary-color-1);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* ============================================
   版本历史
   ============================================ */
.versions {
    background: var(--bg-light);
}

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

.version-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

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

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

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

.version-meta span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.version-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.version-content h4 {
    color: var(--secondary-color-1);
    margin-bottom: 10px;
}

.version-content ul {
    list-style: none;
    padding-left: 0;
}

.version-content li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
}

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

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--secondary-color-1), var(--secondary-color-4));
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-top: 15px;
    transition: var(--transition);
}

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

/* ============================================
   游戏章节
   ============================================ */
.chapters {
    background: var(--bg-white);
}

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

.chapter-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.chapter-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chapter-badge.main {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-2));
    color: var(--secondary-color-1);
}

.chapter-badge.character {
    background: linear-gradient(135deg, var(--secondary-color-1), var(--secondary-color-4));
    color: var(--text-light);
}

.chapter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color-1);
    margin-bottom: 15px;
    margin-top: 10px;
}

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

.chapter-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.chapter-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.chapter-tone {
    padding: 8px 12px;
    background: rgba(233, 219, 223, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--secondary-color-1);
    margin-top: 10px;
}

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

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

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

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-2));
    border-color: var(--primary-color);
    color: var(--secondary-color-1);
}

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

.guide-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.guide-difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

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

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

.guide-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color-1);
    margin-bottom: 12px;
    margin-top: 10px;
}

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

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

.guide-tag {
    font-size: 0.85rem;
    color: var(--secondary-color-1);
}

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

/* ============================================
   常见问题
   ============================================ */
.faq {
    background: var(--bg-white);
}

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

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

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

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

.faq-question:hover {
    background: rgba(233, 219, 223, 0.3);
}

.faq-question i {
    transition: var(--transition);
    color: var(--primary-color);
}

.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 25px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ============================================
   底部信息
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--secondary-color-1), var(--secondary-color-4));
    color: var(--text-light);
    padding: 60px 0 30px;
}

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

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

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

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

.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: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-info {
        justify-content: center;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .btn-download {
        margin: 10px auto;
    }
    
    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .info-item {
        justify-content: center;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-date {
        align-self: flex-start;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .chapters-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .version-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-download {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

