/* ============================================
   CSS变量 - 主题色管理
   ============================================ */
:root {
    --primary-color: #4a2e29;
    --accent-color-1: #c69a8d;
    --accent-color-2: #a5a4a5;
    --accent-color-3: #8f8d96;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(74, 46, 41, 0.1);
    --shadow-hover: 0 4px 20px rgba(74, 46, 41, 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', 'Roboto', 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%, #5a3e39 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

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

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

.logo-text {
    display: none;
}

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

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

.nav-menu li a {
    color: var(--bg-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-color);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color) 0%, #5a3e39 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   英雄区
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--primary-color) 100%);
    color: var(--bg-color);
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-tag {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.download-btn {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin-top: 20px;
}

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

.download-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-info {
        gap: 10px;
    }
    
    .info-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* ============================================
   通用区块样式
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

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

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

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

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

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

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

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

.news-link:hover {
    color: var(--accent-color-1);
    gap: 10px;
}

/* ============================================
   媒体画廊
   ============================================ */
.gallery-section {
    background-color: var(--bg-color);
}

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

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

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

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

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

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

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

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

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

.tag {
    background-color: var(--accent-color-1);
    color: var(--bg-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

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

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

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

.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.review-rating {
    color: #ffc107;
}

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

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

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

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

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

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

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

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

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

.version-item {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    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: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

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

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

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

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

.version-changes {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 20px;
}

.version-changes li {
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.version-changes li::before {
    content: "•";
    color: var(--accent-color-1);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

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

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

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

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

.filter-btn:hover,
.filter-btn.active {
    background-color: 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: 25px;
}

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

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

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

.guide-difficulty {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

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

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

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

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

.guide-tag {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.guide-card[data-category] {
    display: block;
}

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

/* ============================================
   游戏章节介绍
   ============================================ */
.chapters-section {
    background-color: var(--bg-color);
}

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

.chapter-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border-top: 4px solid transparent;
}

.chapter-card.main {
    border-top-color: var(--primary-color);
}

.chapter-card.character {
    border-top-color: var(--accent-color-1);
}

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

.chapter-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chapter-card.character .chapter-badge {
    background-color: var(--accent-color-1);
}

.chapter-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    padding-right: 80px;
}

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

.chapter-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

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

.chapter-mood {
    color: var(--accent-color-1);
    font-size: 0.85rem;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

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

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

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

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

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

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

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

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

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

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

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

/* ============================================
   底部信息
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a3e39 100%);
    color: var(--bg-color);
    padding: 50px 0 20px;
}

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

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    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);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bg-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: 768px) {
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-grid,
    .gallery-grid,
    .guide-grid,
    .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-stats {
        gap: 30px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

