/* ==========================================
   CSS变量 - 主题配色
   ========================================== */
:root {
    --color-primary: #a09aa4;
    --color-secondary: #a47a81;
    --color-accent: #e4ced4;
    --color-dark: #716270;
    --color-light: #f9f6f7;
    --color-white: #ffffff;
    --color-black: #2a2a2a;
    
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-light) 100%);
    
    --shadow-sm: 0 2px 8px rgba(113, 98, 112, 0.1);
    --shadow-md: 0 4px 16px rgba(113, 98, 112, 0.15);
    --shadow-lg: 0 8px 32px rgba(113, 98, 112, 0.2);
    --shadow-xl: 0 16px 48px rgba(113, 98, 112, 0.25);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --font-primary: 'Noto Sans SC', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

section {
    padding: 80px 0;
}

/* ==========================================
   返回顶部按钮
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   头部导航
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    font-family: var(--font-display);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo:hover {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--color-dark);
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

.download-btn-nav {
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
}

.download-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-dark);
    border-radius: 3px;
    transition: var(--transition-fast);
}

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

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

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

/* ==========================================
   英雄区
   ========================================== */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: var(--gradient-secondary);
    color: var(--color-white);
    margin-top: 70px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(113, 98, 112, 0.8) 0%, rgba(160, 122, 129, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 20px;
}

.title-main {
    display: block;
    font-size: 56px;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-sub {
    display: block;
    font-size: 28px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 10px;
}

.hero-tagline {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

.feature-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

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

.hero-description {
    text-align: left;
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-description p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    color: var(--color-dark);
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   通用区块标题
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--color-primary);
}

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

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

.news-card {
    position: relative;
    background: var(--color-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

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

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 14px;
}

.news-category {
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--color-black);
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.news-link:hover {
    gap: 12px;
}

/* ==========================================
   游戏截图画廊
   ========================================== */
.gallery-section {
    background: var(--gradient-accent);
}

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

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

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

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

.gallery-overlay i {
    color: var(--color-white);
    font-size: 48px;
    transform: scale(0.5);
    transition: var(--transition-normal);
}

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

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

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

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

.stat-card {
    background: var(--gradient-accent);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.stat-icon {
    font-size: 36px;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 14px;
    color: var(--color-primary);
    margin-top: 5px;
}

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

.tag {
    background: var(--color-light);
    color: var(--color-dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--color-accent);
    transition: var(--transition-fast);
}

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

.reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 60px;
}

.review-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 100%;
    background: var(--color-light);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

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

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

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 24px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 16px;
}

.review-date {
    color: var(--color-primary);
    font-size: 14px;
}

.review-rating {
    color: #ffd700;
    font-size: 18px;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    z-index: 10;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

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

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

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: 10px;
    top: 0;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 20px;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.timeline-content {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

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

.version-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    font-family: var(--font-display);
}

.version-date {
    color: var(--color-primary);
    font-size: 15px;
}

.version-badge {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 14px;
}

.version-details {
    margin-bottom: 25px;
}

.version-details h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--color-dark);
    margin: 20px 0 12px 0;
}

.version-details h4:first-child {
    margin-top: 0;
}

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

.version-details li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--color-black);
}

.version-details li::before {
    content: '▸';
    position: absolute;
    left: 5px;
    color: var(--color-secondary);
    font-weight: 700;
}

.btn-download-version {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.btn-download-version:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.faq-item {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-light);
}

.faq-question {
    width: 100%;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.faq-question span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question i:last-child {
    transition: var(--transition-fast);
    color: var(--color-secondary);
    font-size: 16px;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer > :first-child {
    margin-top: 0;
}

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

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

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--color-black);
}

.faq-answer ol,
.faq-answer ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--color-black);
}

.faq-answer ol {
    list-style: decimal;
}

.faq-answer ul {
    list-style: disc;
}

.faq-answer strong {
    color: var(--color-dark);
    font-weight: 600;
}

/* ==========================================
   页脚
   ========================================== */
.footer {
    background: var(--gradient-secondary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

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

.footer-section {
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.footer-text {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

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

.footer-links a {
    opacity: 0.9;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    margin-bottom: 10px;
    font-weight: 500;
}

.disclaimer {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 992px) {
    .title-main {
        font-size: 44px;
    }
    
    .title-sub {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero {
        min-height: 550px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 20px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-accent);
    }
    
    .download-btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    .title-main {
        font-size: 36px;
    }
    
    .title-sub {
        font-size: 18px;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero-info {
        gap: 15px;
    }
    
    .info-item {
        font-size: 13px;
    }
    
    .reviews-carousel {
        padding: 20px 0;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-btn.prev {
        left: -5px;
    }
    
    .carousel-btn.next {
        right: -5px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-badge {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .review-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .title-main {
        font-size: 28px;
    }
    
    .title-sub {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero {
        min-height: 450px;
    }
    
    .hero-features {
        gap: 10px;
    }
    
    .feature-tag {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .hero-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .review-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .version-number {
        font-size: 24px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

