
/* Reset & Base Styles */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #1e293b;
    --accent-color: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 600px; /* Mobile-first constraint for desktop view */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.game-header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    object-fit: cover;
}

.game-title-wrapper h1 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.game-genre {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    color: #fbbf24;
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.download-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Screenshots Carousel */
.screenshots-section {
    padding: 20px 0 40px;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-left: 5px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-out;
    gap: 10px;
}

.slide {
    min-width: 100%;
    scroll-snap-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

/* Description Section */
.description-section {
    padding: 20px 0 60px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-content {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.lead-text {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.text-content p {
    margin-bottom: 20px;
}

.text-content h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-list svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}
/* 安装按钮基础 */
		.install-btn {
			width: 100%;
			padding: 18px;
			border-radius: 16px;
			border: none;
			font-size: 20px;
			font-weight: bold;
			cursor: pointer;
			transition: all 0.2s ease;
			margin-top: 20px;
			background: linear-gradient(90deg, #7c4dff, #512da8);
			color: white;
			box-shadow: 0 6px 20px #7c4dff70;
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 12px;
		}
		.install-btn:disabled {
			background: #444466;
			cursor: not-allowed;
			box-shadow: none;
			opacity: 0.7;
			transform: none !important;
		}
		.install-btn:active:not(:disabled) {
			transform: scale(0.97);
			box-shadow: 0 3px 10px #7c4dff70;
		}

		/* 按钮内部小型加载转圈 */
		.btn-spinner {
			width: 20px;
			height: 20px;
			border: 3px solid #aaa;
			border-top-color: #fff;
			border-radius: 50%;
			animation: spin 0.8s linear infinite;
		}
		.btn-text {
			display: inline-block;
		}

		/* 安装时大转圈区域 */
		.install-spinner-wrap {
			display: none;
			flex-direction: column;
			align-items: center;
			gap: 20px;
			margin: 50px 0;
		}
		.spinner {
			width: 80px;
			height: 80px;
			border: 6px solid #322458;
			border-top-color: #7c4dff;
			border-radius: 50%;
			animation: spin 0.8s linear infinite;
		}
		@keyframes spin {
			to { transform: rotate(360deg); }
		}
		.loading-text {
			font-size: 18px;
			color: #d1c7ff;
		}

		/* 游玩按钮 */
		.play-btn {
			display: none;
			width: 100%;
			padding: 18px;
			border-radius: 16px;
			border: none;
			background: linear-gradient(90deg, #00c853, #009624);
			color: white;
			font-size: 20px;
			font-weight: bold;
			cursor: pointer;
			box-shadow: 0 6px 20px #00c85370;
			transition: all 0.2s ease;
			margin-top: 40px;
		}
		.play-btn:active {
			transform: scale(0.97);
			box-shadow: 0 3px 10px #00c85370;
		}
/* Footer */
.game-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    .container {
        max-width: 800px;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        min-width: 200px;
    }

    .carousel-track {
        gap: 20px;
    }
    
    .slide {
        min-width: calc(50% - 10px);
    }
}
