/* ============================================
   CSS变量 - 主题色管理
   ============================================ */
:root {
    /* 主色 */
    --primary-color: #2d2621;
    
    /* 辅助色 */
    --accent-color-1: #b58f6d;
    --accent-color-2: #8b9482;
    --accent-color-3: #8b8c8c;
    
    /* 文字颜色 */
    --text-primary: #2d2621;
    --text-secondary: #8b8c8c;
    --text-light: #ffffff;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #2d2621;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* 字体 */
    --font-primary: 'Noto Sans SC', 'Roboto', sans-serif;
    
    /* 过渡效果 */
    --transition: all 0.3s ease;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ============================================
   头部导航
   ============================================ */
.header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.logo-text {
    display: none;
}

@media (min-width: 768px) {
    .logo-text {
        display: inline;
    }
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu li a {
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color-1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        padding: var(--spacing-sm);
        justify-content: center;
    }
}

/* ============================================
   章节标题样式
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

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

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

/* ============================================
   英雄区
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color-2) 100%);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    min-height: auto;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    opacity: 0.95;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

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

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.feature-tag {
    background-color: var(--accent-color-1);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: var(--accent-color-1);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-info {
        gap: var(--spacing-xs);
    }
    
    .info-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ============================================
   新闻动态区
   ============================================ */
.news {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

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

.news-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--spacing-sm);
    transition: var(--transition);
}

.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;
    background-color: var(--accent-color-1);
    color: var(--text-light);
    border-radius: 8px;
    padding: var(--spacing-xs);
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
}

.date-month {
    font-size: 0.85rem;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.news-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.news-link {
    color: var(--accent-color-1);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    color: var(--accent-color-2);
}

/* ============================================
   媒体画廊
   ============================================ */
.gallery {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

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

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

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

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

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

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

/* ============================================
   用户评价区
   ============================================ */
.reviews {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

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

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color-1);
    margin-bottom: var(--spacing-xs);
}

.rating-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

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

.tags-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs);
}

.tag-item {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.review-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.review-header {
    margin-bottom: var(--spacing-sm);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.reviewer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

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

/* ============================================
   游戏角色介绍
   ============================================ */
.characters {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.character-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.character-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.character-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.character-info {
    text-align: left;
    color: var(--text-secondary);
}

.character-info p {
    margin-bottom: var(--spacing-xs);
}

.character-desc {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   游戏章节介绍
   ============================================ */
.chapters {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.chapter-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

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

.chapter-type {
    background-color: var(--accent-color-1);
    color: var(--text-light);
    padding: 0.25rem var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.85rem;
}

.chapter-desc {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.chapter-meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.chapter-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* ============================================
   游戏攻略
   ============================================ */
.guides {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

.guides-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid transparent;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.guide-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: none;
}

.guide-card.show {
    display: block;
}

.guide-card[data-category="all"],
.guide-card[data-category] {
    display: block;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-sm);
}

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

.guide-difficulty {
    padding: 0.25rem var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.guide-difficulty.easy {
    background-color: #4caf50;
    color: var(--text-light);
}

.guide-difficulty.medium {
    background-color: #ff9800;
    color: var(--text-light);
}

.guide-difficulty.hard {
    background-color: #f44336;
    color: var(--text-light);
}

.guide-desc {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-recommend {
    color: var(--accent-color-1);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   版本历史
   ============================================ */
.versions {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.versions-timeline {
    position: relative;
    padding-left: var(--spacing-md);
}

.versions-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color-1);
}

.version-item {
    position: relative;
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    margin-left: var(--spacing-md);
}

.version-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color-1);
    border: 2px solid var(--bg-primary);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.version-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color-1);
}

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

.version-content ul {
    list-style: disc;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.version-content li {
    margin-bottom: 0.5rem;
}

.version-meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.version-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.version-download {
    background-color: var(--accent-color-1);
    color: var(--text-light);
    padding: 0.5rem var(--spacing-sm);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ============================================
   常见问题
   ============================================ */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

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

.faq-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(181, 143, 109, 0.1);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--accent-color-1);
    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 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

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

/* ============================================
   页脚
   ============================================ */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color-1);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color-1);
    padding-left: 5px;
}

.footer-section p {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   响应式优化
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-info {
        flex-direction: column;
        align-items: center;
    }
    
    .news-grid,
    .gallery-grid,
    .reviews-carousel,
    .characters-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .version-item {
        margin-left: var(--spacing-sm);
    }
    
    .versions-timeline {
        padding-left: var(--spacing-sm);
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

