/* CSS变量定义 - 主题色管理 */
:root {
    --primary-color: #d9c5bf;
    --secondary-color-1: #2f2327;
    --secondary-color-2: #d2b8ad;
    --secondary-color-3: #b08fa0;
    --secondary-color-4: #766d75;
    --text-dark: #2f2327;
    --text-light: #ffffff;
    --bg-light: #f5f3f1;
    --shadow: rgba(47, 35, 39, 0.1);
    --shadow-hover: rgba(47, 35, 39, 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);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--secondary-color-1) 0%, var(--secondary-color-4) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

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

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

.nav-menu li a i {
    font-size: 0.9rem;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

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

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

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

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

/* 响应式导航菜单 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color-1);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateX(-100%);
        transition: var(--transition);
        box-shadow: 0 5px 15px var(--shadow);
    }

    .nav-menu.active {
        transform: translateX(0);
    }
}

/* 章节标题样式 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--secondary-color-3);
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    color: var(--text-dark);
}

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

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

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

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

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

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

.feature-tag {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color-1);
    font-weight: 500;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--secondary-color-1);
}

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

.hero-actions {
    margin-top: 30px;
}

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

.btn-primary {
    background: var(--secondary-color-1);
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    background: var(--secondary-color-4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* 响应式英雄区 */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

@media (max-width: 768px) {
    .hero-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* 新闻动态区 */
.news-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.news-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

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

.news-date {
    color: var(--secondary-color-3);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

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

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

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

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

/* 媒体画廊 */
.gallery-section {
    padding: 80px 20px;
    background: white;
}

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

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

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

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

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

/* 用户评价区 */
.reviews-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.stats-item {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

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

.stats-label {
    color: var(--secondary-color-4);
    font-size: 1rem;
    margin-bottom: 15px;
}

.stats-stars {
    color: #ffc107;
    font-size: 1.5rem;
}

.stats-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

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

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

.review-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px 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: 20px;
}

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

.review-rating {
    color: #ffc107;
}

.review-content {
    color: var(--secondary-color-4);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

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

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

.carousel-btn {
    background: var(--secondary-color-1);
    color: var(--text-light);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

/* 版本历史 */
.versions-section {
    padding: 80px 20px;
    background: white;
}

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

.version-item {
    background: white;
    border-left: 4px solid var(--secondary-color-3);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    padding-left: 40px;
}

.version-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

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

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

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

.version-desc {
    color: var(--secondary-color-4);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

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

.version-details li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--secondary-color-4);
}

.version-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color-3);
    font-size: 1.5rem;
}

.version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: var(--secondary-color-4);
}

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

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

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

/* 游戏攻略 */
.guides-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

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

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

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

.guide-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

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

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

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

.guide-difficulty {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.guide-difficulty.easy {
    background: #e8f5e9;
    color: #2e7d32;
}

.guide-difficulty.medium {
    background: #fff3e0;
    color: #e65100;
}

.guide-difficulty.hard {
    background: #ffebee;
    color: #c62828;
}

.guide-desc {
    color: var(--secondary-color-4);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.guide-recommend {
    color: var(--secondary-color-3);
    font-size: 0.9rem;
}

/* 游戏章节介绍 */
.chapters-section {
    padding: 80px 20px;
    background: white;
}

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

.chapter-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    border-top: 4px solid var(--secondary-color-2);
}

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

.chapter-card.character {
    border-top-color: var(--secondary-color-4);
}

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

.chapter-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color-1);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.chapter-desc {
    color: var(--secondary-color-4);
    line-height: 1.8;
    margin-bottom: 20px;
}

.chapter-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--secondary-color-4);
    font-size: 0.95rem;
}

.chapter-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chapter-info i {
    color: var(--secondary-color-3);
}

.chapter-tone {
    background: var(--primary-color);
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--secondary-color-1);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 常见问题 */
.faq-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 20px var(--shadow-hover);
}

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

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

.faq-question i {
    color: var(--secondary-color-3);
    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 30px;
}

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

.faq-answer p {
    color: var(--secondary-color-4);
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-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: 0 5px 20px var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--secondary-color-3);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--secondary-color-1) 0%, var(--secondary-color-4) 100%);
    color: var(--text-light);
    padding: 60px 20px 30px;
}

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

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

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

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

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

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

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

    .reviews-stats {
        grid-template-columns: 1fr;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

/* 隐藏筛选后的元素 */
.guide-card.hidden {
    display: none;
}

