/* CSS Variables for Theme Colors */
:root {
    --color-primary: #76716e;
    --color-secondary: #c5bdbe;
    --color-accent-1: #445845;
    --color-accent-2: #2c362e;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-dark: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-overlay: rgba(44, 54, 46, 0.85);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent-1) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(44, 54, 46, 0.9) 0%, rgba(68, 88, 69, 0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans SC', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.logo img {
    width: 32px;
    height: 32px;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-list a {
    color: var(--color-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-overlay), url('img/游戏截图1.webp') center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    margin-top: 70px;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--shadow-lg);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.meta-item i {
    font-size: 1.125rem;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, #445845 0%, #2c362e 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Section */
.section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

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

/* News Section */
.news-section {
    background-color: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.news-card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
}

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

.news-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-2);
}

.news-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.news-link {
    color: var(--color-accent-1);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.news-link:hover {
    color: var(--color-accent-2);
    gap: 0.75rem;
}

/* Gallery Section */
.gallery-section {
    background: var(--color-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    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;
    width: 100%;
    height: 100%;
    background: rgba(44, 54, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-overlay i {
    color: var(--color-white);
    font-size: 3rem;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

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

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

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

/* Reviews Section */
.reviews-section {
    background: var(--color-white);
}

.reviews-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stats-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 180px;
}

.stats-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.stats-label {
    color: var(--color-white);
    font-weight: 500;
}

.stars {
    color: #ffc107;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.review-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.review-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-light);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-xl);
    font-weight: 500;
    color: var(--color-accent-2);
    border: 2px solid var(--color-border);
    transition: var(--transition-normal);
}

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

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.review-card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.review-author {
    display: flex;
    gap: var(--spacing-sm);
}

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

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--color-accent-2);
}

.review-stars {
    color: #ffc107;
    font-size: 0.875rem;
}

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

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

/* Version Section */
.version-section {
    background: var(--color-light);
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent-1);
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.version-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.version-header h3 {
    font-size: 1.5rem;
    color: var(--color-accent-2);
}

.version-badge {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
}

.version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.version-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.version-features {
    margin-top: var(--spacing-md);
}

.version-features h4 {
    color: var(--color-accent-2);
    margin-bottom: var(--spacing-sm);
}

.version-features ul {
    list-style: none;
}

.version-features li {
    padding: 0.5rem 0;
    color: var(--color-text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.version-features li i {
    color: var(--color-accent-1);
    margin-top: 0.25rem;
}

.timeline-content .btn {
    margin-top: var(--spacing-md);
}

/* FAQ Section */
.faq-section {
    background: var(--color-white);
}

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

.faq-item {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-normal);
}

.faq-question:hover {
    background-color: rgba(68, 88, 69, 0.05);
}

.faq-question h3 {
    font-size: 1.125rem;
    color: var(--color-accent-2);
    font-weight: 600;
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--color-accent-1);
    transition: var(--transition-normal);
}

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

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

.faq-answer > p,
.faq-answer > ul {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-answer ul {
    list-style: disc;
    padding-left: calc(var(--spacing-md) + 1.5rem);
    margin-top: 0.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

.faq-answer code {
    background: var(--color-white);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-accent-2);
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
}

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

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    opacity: 0.9;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.footer-bottom p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

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

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

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
}

.modal-close:hover {
    color: var(--color-secondary);
    transform: scale(1.2);
}

.modal-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 1.125rem;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--gradient-primary);
        transition: var(--transition-normal);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }

    .nav-list a {
        padding: var(--spacing-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero {
        min-height: 60vh;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

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

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-meta {
        gap: var(--spacing-sm);
    }

    .meta-item {
        font-size: 0.875rem;
        padding: 0.375rem 0.875rem;
    }

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

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

    .reviews-stats {
        gap: var(--spacing-md);
    }

    .stats-item {
        min-width: 140px;
        padding: var(--spacing-sm);
    }

    .stats-number {
        font-size: 2.25rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2.375rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .modal-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}

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

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

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

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

