:root {
    --bg-light: #f9fafb;
    --card-bg: #ffffff;
    --accent-blue: #007aff;
    --accent-gold: #f59e0b;
    --text-main: #111827;
    --text-dim: #6b7280;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
}

.banner-text {
    padding: 0.8rem 1rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
    background-color: var(--card-bg);
    font-size: 0.95rem;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 1.5rem;
}

.page {
    width: 100%;
}

.hidden {
    display: none;
}

/* Hero Styling */
.hero-featured {
    background: linear-gradient(180deg, #f0f7ff 0%, #f9fafb 100%);
    padding: 3rem 1.5rem;
    text-align: center;
}

.hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Stats Bar */
.app-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 1.5rem auto;
    max-width: 500px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item i {
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 700;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    }
}

.btn-download {
    display: block;
    background: var(--accent-blue);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    text-align: center;
    animation: pulse 1s infinite ease-in-out;
    transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
    background-color: #0062cc;
    animation-play-state: paused;
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 98, 204, 0.3);
}

.btn-download:active {
    animation: none;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 98, 204, 0.2);
}

.btn-download-white {
    display: block;
    background: white;
    color: #007aff;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    text-align: center;
    transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-download-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-download-white:active {
    transform: translateY(0) scale(0.95);
    background-color: #f0f0f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Card Listings */
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.app-icon-wrapper {
    position: relative;
    width: 55px;
    height: 55px;
}

.app-rank-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #f0f7ff;
    color: #000;
    border: 1px solid #e5e7eb;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.app-list-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
}

.game-info {
    min-width: 0;
}

.game-info h3 {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 128px;
}

.get-badge {
    background: #f2f2f7;
    color: var(--accent-blue);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.get-badge:active {
    transform: scale(0.9);
    background: #e5e5ea;
}

/* Detail Page */
.btn-back {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background-color: #f1f2f6;
    padding: 3rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-notice {
    margin-bottom: 2rem;
    text-align: left;
}

.footer-notice h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.warning-box {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.footer-seo-content {
    text-align: left;
    white-space: pre-wrap;
    line-height: 1.6;
}

.footer-seo-content h4 {
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}