/* CSS变量定义 */
:root {
    --primary-color: #d6b9c0;
    --secondary-color-1: #d0b2ba;
    --secondary-color-2: #4e3a60;
    --secondary-color-3: #a06f4d;
    --secondary-color-4: #864466;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f6f7;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-1));
    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-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.3s ease;
}

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

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

.logo-text {
    white-space: nowrap;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

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

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

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

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

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

.info-item i {
    font-size: 16px;
}

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

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color-4);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    margin-top: 20px;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(134, 68, 102, 0.3);
}

.download-btn:hover {
    background: var(--secondary-color-2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(134, 68, 102, 0.4);
}

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

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

/* 通用区块标题 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

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

.news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(214, 185, 192, 0.2);
}

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

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

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color-2);
}

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

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

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

/* 媒体画廊 */
.gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

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

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

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

.stats-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color-4);
    margin-bottom: 5px;
}

.stats-label {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    font-size: 20px;
}

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

.review-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-1));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

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

.review-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 10px var(--shadow);
    border-left: 4px solid var(--primary-color);
}

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

.review-author {
    font-weight: 600;
    color: var(--secondary-color-2);
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
}

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

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

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

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

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

.version-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color-4);
}

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

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

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

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

.version-content {
    margin-bottom: 20px;
}

.version-content h4 {
    color: var(--secondary-color-2);
    margin-bottom: 10px;
    font-size: 16px;
}

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

.version-content li {
    color: var(--text-light);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.version-content li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color-4);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* 游戏攻略 */
.guide {
    padding: 80px 0;
    background: var(--white);
}

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

.filter-btn {
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    color: var(--secondary-color-2);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.guide-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 10px var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

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

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

.guide-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color-2);
    flex: 1;
}

.guide-difficulty {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    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-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.guide-meta {
    font-size: 14px;
    color: var(--text-light);
}

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

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

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.chapter-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.chapter-card.main {
    border-left-color: var(--secondary-color-4);
}

.chapter-card.character {
    border-left-color: var(--secondary-color-3);
}

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

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

.chapter-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color-2);
}

.chapter-type {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.chapter-card.main .chapter-type {
    background: var(--secondary-color-4);
}

.chapter-card.character .chapter-type {
    background: var(--secondary-color-3);
}

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

.chapter-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

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

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

.faq-item {
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(214, 185, 192, 0.2);
}

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

.faq-question:hover {
    background: rgba(214, 185, 192, 0.1);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color-4);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(134, 68, 102, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color-2);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(134, 68, 102, 0.4);
}

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

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--white);
    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.8);
}

/* 按钮点击波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

a, button {
    position: relative;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-1));
        width: 100%;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px var(--shadow);
    }

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

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

    .hero-title {
        font-size: 32px;
    }

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

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

    .download-btn {
        margin: 20px auto 0;
    }

    .section-title {
        font-size: 26px;
    }

    .reviews-stats {
        gap: 30px;
    }

    .stats-number {
        font-size: 36px;
    }

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

    .version-info {
        flex-direction: column;
        gap: 10px;
    }

    .guide-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

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

    .chapter-info {
        flex-direction: column;
        gap: 10px;
    }

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

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

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .news-grid,
    .gallery-grid,
    .reviews-carousel,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .tag {
        font-size: 12px;
        padding: 5px 12px;
    }
}

