* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.logo .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 主要内容 */
.main-content {
    max-width: 900px;
    margin: 0 auto;
}

/* 游戏介绍 */
.game-intro {
    text-align: center;
    margin-bottom: 60px;
}

.game-icon {
    margin-bottom: 30px;
}

.icon-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.game-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.game-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 下载区域 */
.download-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.download-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.platform-icon svg {
    width: 100%;
    height: 100%;
}

.platform-info {
    text-align: center;
    margin-bottom: 25px;
    flex-grow: 1;
}

.platform-info h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.platform-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.download-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

.download-btn:active {
    transform: scale(0.98);
}

.download-btn.highlight {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.download-btn.backup-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
}

.download-btn.backup-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.download-actions {
    width: 100%;
}

/* 下载进度条 */
.download-progress {
    width: 100%;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-info span {
    display: block;
}

#android-speed-text,
#ios-speed-text {
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
    }
}

/* 游戏特色 */
.features {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.feature-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 注意事项 */
.notice {
    margin-bottom: 40px;
}

.notice-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    line-height: 1.8;
}

.notice-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.notice-content strong {
    color: var(--primary-color);
    font-weight: 500;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    .game-title {
        font-size: 2rem;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 20px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card,
.feature-item,
.notice-content {
    animation: fadeInUp 0.6s ease-out;
}

.download-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.3s;
}
