/* ===== 贪吃蛇 - Snake Game Landing Page ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --snake: #4ADE80;
    --snake-dark: #22C55E;
    --snake-glow: rgba(74, 222, 128, 0.4);
    --food: #FB923C;
    --bg-deep: #0A0A0A;
    --bg-card: #141414;
    --bg-elevated: #1C1C1C;
    --border: rgba(255, 255, 255, 0.06);
    --text-primary: #F5F5F5;
    --text-secondary: #A3A3A3;
    --text-dim: #737373;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    color: var(--text-primary);
    background: var(--bg-deep);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Grid Background ===== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.grid-bg .glow-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.grid-bg .glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: drift 30s ease-in-out infinite;
}

.grid-bg .glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
    bottom: 10%;
    right: -100px;
    animation: drift 25s ease-in-out infinite reverse;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--snake);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 100px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 520px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(74, 222, 128, 0.08);
    color: var(--snake);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-text h1 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--snake) 0%, #86EFAC 50%, var(--food) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--snake);
    color: #0A0A0A;
    box-shadow: 0 0 20px var(--snake-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--snake-glow), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    border-color: var(--snake);
    color: var(--snake);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 36px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ===== Phone Mockup ===== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 270px;
    height: 560px;
    background: linear-gradient(145deg, #1c1c1e 0%, #000000 100%);
    border-radius: 44px;
    padding: 6px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
}

.phone-frame::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 120px;
    width: 3px;
    height: 80px;
    background: linear-gradient(180deg, #2a2a2c 0%, #1a1a1c 100%);
    border-radius: 0 2px 2px 0;
}

.phone-frame::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 100px;
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, #2a2a2c 0%, #1a1a1c 100%);
    border-radius: 2px 0 0 2px;
    box-shadow: 0 50px 0 #1a1a1c, 0 90px 0 #1a1a1c;
}

.phone-notch {
    width: 90px;
    height: 28px;
    background: #000000;
    border-radius: 0 0 15px 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 3px;
    z-index: 10;
}

.phone-notch::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #1a3a5c 0%, #0a1520 100%);
    border-radius: 50%;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.screen-image {
    width: 100%;
    height: 100%;
    object-position: top;
    border-radius: 38px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
    z-index: 1;
    filter: blur(50px);
}

/* ===== Snake Game Preview ===== */
.snake-game-preview {
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    display: flex;
    flex-direction: column;
    padding: 44px 10px 10px;
}

.game-score {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--snake);
    text-align: center;
    padding: 8px 0 10px;
    letter-spacing: 2px;
}

.game-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(24, 1fr);
    gap: 1px;
    background: rgba(74, 222, 128, 0.03);
    border: 1px solid rgba(74, 222, 128, 0.08);
    border-radius: 4px;
    padding: 2px;
}

.game-grid .cell {
    border-radius: 2px;
    transition: background 0.15s ease;
}

.game-grid .cell.snake {
    background: var(--snake);
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
    border-radius: 3px;
}

.game-grid .cell.snake-head {
    background: #86EFAC;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    border-radius: 3px;
}

.game-grid .cell.food {
    background: var(--food);
    box-shadow: 0 0 6px rgba(251, 146, 60, 0.5);
    border-radius: 50%;
}

/* ===== Features ===== */
.features {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(74, 222, 128, 0.08);
    color: var(--snake);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    border-color: rgba(74, 222, 128, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ===== Download Section ===== */
.download {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

.download-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    filter: blur(60px);
}

.download-info {
    position: relative;
    z-index: 1;
}

.download-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.download-info > p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.version-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.version-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.version-item i {
    color: var(--snake);
    font-size: 12px;
}

.version-item strong {
    color: var(--text-primary);
}

.release-notes {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.release-notes h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.release-notes h4 i {
    color: var(--snake);
    font-size: 12px;
}

.notes-content {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.9;
    white-space: pre-line;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn.android {
    background: var(--snake);
    color: #0A0A0A;
}

.download-btn.ios {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.download-btn.android:hover {
    box-shadow: 0 12px 30px var(--snake-glow);
}

.btn-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.download-btn.ios .btn-icon {
    background: rgba(255, 255, 255, 0.06);
}

.btn-text {
    flex: 1;
}

.btn-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
}

.btn-format {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
}

.btn-arrow {
    font-size: 16px;
    opacity: 0.5;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 24px 20px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand .logo-text {
    color: var(--text-primary);
}

.footer-brand p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-column h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--snake);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-dim);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-frame {
        width: 230px;
        height: 480px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 16px 60px;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .download-card {
        padding: 24px;
        border-radius: 20px;
    }

    .download-info h2 {
        font-size: 22px;
    }

    .version-info {
        flex-direction: column;
        gap: 10px;
    }
}
