/* CSS变量定义 - 主题色管理 */
:root {
    --primary-color: #d9bfb5;
    --secondary-color-1: #381f1e;
    --secondary-color-2: #cca689;
    --secondary-color-3: #a59d92;
    --secondary-color-4: #8c8784;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f8f6f4;
    --white: #ffffff;
    --shadow: rgba(56, 31, 30, 0.1);
    --shadow-hover: rgba(56, 31, 30, 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-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);
    position: relative;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color-2));
    margin: 15px auto;
    border-radius: 2px;
}

/* 头部导航 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    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 {
    transform: scale(1.05);
    color: var(--primary-color);
}

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

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

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

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

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

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-2) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    text-align: center;
}

.cover-img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-hover);
    transition: var(--transition);
}

.cover-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color-1);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color-4);
    margin-bottom: 20px;
    font-style: italic;
}

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

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

.meta-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color-1);
}

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

.tag {
    background: var(--secondary-color-1);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color-1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(56, 31, 30, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color-4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 31, 30, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary-color-1);
    border: 2px solid var(--secondary-color-1);
}

.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

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

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

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

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

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

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

.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-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.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(--secondary-color-1);
    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;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(56, 31, 30, 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: var(--white);
    font-size: 2.5rem;
}

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

.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

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

.rating-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color-1);
    margin-bottom: 10px;
}

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

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

.tags-summary h3 {
    font-size: 1.2rem;
    color: var(--secondary-color-1);
    margin-bottom: 15px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: var(--white);
    color: var(--secondary-color-1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
}

.reviews-carousel {
    position: relative;
    min-height: 200px;
}

.review-card {
    display: none;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px 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: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

.reviewer-name {
    font-weight: 600;
    color: var(--secondary-color-1);
    margin-bottom: 5px;
}

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

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

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

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

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

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

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

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

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

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

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

.version-item {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.version-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

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

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

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

.version-desc {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

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

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

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.version-download:hover {
    color: var(--secondary-color-1);
    gap: 12px;
}

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

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

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

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

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

.guide-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

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

.guide-difficulty {
    padding: 4px 12px;
    border-radius: 15px;
    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-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--primary-color);
}

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

.guide-recommend {
    color: var(--primary-color);
}

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

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

.chapter-item {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    position: relative;
}

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

.chapter-badge {
    min-width: 80px;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    height: fit-content;
}

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

.chapter-item.character .chapter-badge {
    background: linear-gradient(135deg, var(--secondary-color-2), var(--secondary-color-3));
    color: var(--white);
}

.chapter-content {
    flex: 1;
}

.chapter-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color-1);
    margin-bottom: 12px;
}

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

.chapter-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.chapter-tone {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    font-style: italic;
}

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

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

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

.faq-item.active {
    box-shadow: 0 4px 15px var(--shadow-hover);
}

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

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

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

.faq-question i {
    color: var(--primary-color);
    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: 0 25px 20px 25px;
}

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

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

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

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

/* 底部信息 */
.footer {
    background: var(--secondary-color-1);
    color: var(--white);
    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-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.1);
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

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

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

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

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

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

    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tag-list {
        justify-content: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chapter-item {
        flex-direction: column;
    }

    .chapter-badge {
        width: fit-content;
    }
}

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

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

    .hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

