/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #415a77;
    --highlight-color: #778da9;
    --gold-color: #ffd700;
    --text-light: #e0e1dd;
    --text-dark: #0d1b2a;
    --gradient-primary: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
    --gradient-accent: linear-gradient(135deg, #778da9 0%, #ffd700 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', '微软雅黑', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--primary-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(119, 141, 169, 0.2);
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -2;
}

.hero-background::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(13, 27, 42, 0.8) 100%);
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10px, 10px);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    display: block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-top: 0.5rem;
    color: var(--highlight-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--highlight-color);
}

.btn-secondary:hover {
    background: var(--highlight-color);
    color: var(--text-dark);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--highlight-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Features Section */
.features {
    background: var(--secondary-color);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(65, 90, 119, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(119, 141, 169, 0.2);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: rgba(65, 90, 119, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.feature-card p {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.screenshot-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Game Info Section */
.game-info {
    background: var(--secondary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(119, 141, 169, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(119, 141, 169, 0.2);
}

.info-card h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(119, 141, 169, 0.1);
}

.info-card li:last-child {
    border-bottom: none;
}

/* Updates Section */
.update-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.update-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(65, 90, 119, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--gold-color);
}

.update-date {
    flex-shrink: 0;
    font-weight: bold;
    color: var(--gold-color);
    font-size: 0.9rem;
}

.update-content h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.update-content ul {
    color: var(--text-light);
    opacity: 0.8;
    padding-left: 1rem;
}

.update-content li {
    margin-bottom: 0.5rem;
}

/* Gift Codes Section */
.gift-codes {
    background: var(--secondary-color);
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.code-category {
    background: rgba(119, 141, 169, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(119, 141, 169, 0.2);
}

.code-category h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    text-align: center;
}

.code-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(13, 27, 42, 0.5);
    border-radius: 8px;
    flex-wrap: wrap;
}

.code {
    font-family: 'Courier New', monospace;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    flex: 1;
    min-width: 120px;
}

.code-label {
    color: var(--highlight-color);
    font-size: 0.9rem;
    min-width: 80px;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--highlight-color);
}

/* Download Section */
.download {
    text-align: center;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.download-info h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.download-info p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.platform-requirements {
    display: grid;
    gap: 1rem;
}

.requirement {
    text-align: left;
    padding: 1rem;
    background: rgba(65, 90, 119, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(119, 141, 169, 0.2);
}

.requirement h4 {
    color: var(--gold-color);
    margin-bottom: 0.5rem;
}

.requirement p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

.btn-download {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 3rem;
    background: var(--gradient-accent);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.download-icon {
    font-size: 2rem;
}

.btn-download small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Footer */
.footer {
    background: var(--primary-color);
    border-top: 1px solid rgba(119, 141, 169, 0.2);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(119, 141, 169, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-info {
        order: 2;
    }

    .download-buttons {
        order: 1;
    }

    .update-item {
        flex-direction: column;
        gap: 1rem;
    }

    .code-item {
        flex-direction: column;
        text-align: center;
    }

    .copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .info-card,
    .code-category {
        padding: 1.5rem;
    }
}

/* Animation and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.screenshot-item,
.info-card,
.update-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-color);
}