/* ===================================
   沙漠追猎者 - 废土风格样式表
   主色调：棕黄色+灰色，辅色：黑色
   风格：末日、废土、未来、欧美风
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #8B7355;
    --secondary-color: #5A4A3A;
    --accent-color: #D4A574;
    --dark-bg: #1A1A1A;
    --darker-bg: #0D0D0D;
    --text-light: #E8E8E8;
    --text-dark: #2C2C2C;
    --gray-dark: #3A3A3A;
    --gray-medium: #5A5A5A;
    --border-color: #4A4A4A;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-color: rgba(26, 26, 26, 0.85);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--darker-bg);
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px);
    overflow-x: hidden;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

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

/* Header */
.header {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 115, 85, 0.4);
}

.logo-wrapper h1 {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 80%;
}

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

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px var(--shadow-color);
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--text-dark);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.4);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.6);
    color: var(--text-dark);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(58, 58, 58, 0.3));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.section h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px var(--shadow-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.section ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.section strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.text-content {
    padding-right: 1rem;
}

.image-content img {
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 2px solid var(--border-color);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.4), rgba(26, 26, 26, 0.6));
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-card img {
    border-radius: 8px;
    margin-top: 1rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Gameplay Content */
.gameplay-content {
    margin-top: 2rem;
}

.gameplay-text img {
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 2px solid var(--border-color);
}

/* Updates Section */
.update-card {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.3), rgba(26, 26, 26, 0.5));
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.update-card h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.update-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.update-date {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-item {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.3), rgba(26, 26, 26, 0.5));
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.faq-item h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.2), rgba(26, 26, 26, 0.8));
    border: 2px solid var(--primary-color);
}

.download-content {
    text-align: center;
}

.download-info h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.download-features {
    list-style: none;
    margin: 2rem 0;
    display: inline-block;
    text-align: left;
}

.download-features li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.download-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.download-btn.primary {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--text-dark);
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.4);
}

.download-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.6);
}

.download-btn.secondary {
    background: linear-gradient(135deg, var(--gray-dark), var(--secondary-color));
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

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

.download-note {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, var(--darker-bg) 100%);
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--gray-medium);
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.15), rgba(26, 26, 26, 0.9));
}

.gallery-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    aspect-ratio: 16/10;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.4);
    border-color: var(--accent-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

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

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-light);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    max-width: 80%;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 115, 85, 0.8);
    color: var(--text-light);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .hero {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

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

@media (max-width: 640px) {
    .logo-wrapper h1 {
        font-size: 1.2rem;
    }

    .nav ul {
        gap: 0.5rem;
    }

    .nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 1.5rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .section h3 {
        font-size: 1.4rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .hero,
    .download-section,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}