/*@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@500;700;900&display=swap');*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0c29;
    overflow-x: hidden;
}

/* 动态渐变背景 */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(120, 50, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 50, 120, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(50, 200, 255, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #0f0c29 0%, #1a1a40 50%, #24243e 100%);
    z-index: 0;
}

/* 光效动画 */
.glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: rgba(255, 107, 157, 0.4);
}

.glow-2 {
    bottom: -100px;
    right: -100px;
    background: rgba(78, 205, 255, 0.4);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* 游戏列表 */
.games {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 游戏卡片 */
.game-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.game-card:hover::before,
.game-card:active::before {
    left: 100%;
}

.game-card:hover,
.game-card:active {
    transform: translateX(8px) scale(1.02);
    border-color: rgba(255, 107, 157, 0.5);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 107, 157, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* 游戏图标 */
.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-card:nth-child(1) .game-icon {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.game-card:nth-child(2) .game-icon {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

.game-card:nth-child(3) .game-icon {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

/* 游戏信息 */
.game-info {
    flex: 1;
    margin-left: 16px;
    min-width: 0;
}

.game-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.badge.hot {
    background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
    color: #fff;
}

.badge.new {
    background: linear-gradient(90deg, #00d2d3, #0abde3);
    color: #fff;
}

.game-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 播放按钮 */
.play-arrow {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 12px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s;
}

.play-arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}

.game-card:hover .play-arrow,
.game-card:active .play-arrow {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}

/* 底部CTA */
.cta-section {
    margin-top: 25px;
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(78, 205, 255, 0.15) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 50px;
    background: linear-gradient(90deg, #ff6b9d 0%, #ff8e53 100%);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.cta-btn:hover,
.cta-btn:active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4), 0 0 0 10px rgba(255, 107, 157, 0.1); }
}

/* ========== 手机适配 ========== */
@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }
    
    .logo { font-size: 3rem; }
    .header h1 { font-size: 1.7rem; }
    .header p { font-size: 0.9rem; }
    .header { margin-bottom: 25px; }
    
    .games { gap: 14px; }
    
    .game-card {
        padding: 14px;
        border-radius: 16px;
    }
    
    .game-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 15px;
    }
    
    .game-info { margin-left: 14px; }
    .game-title { font-size: 1.05rem; }
    .game-desc { font-size: 0.8rem; }
    
    .play-arrow {
        width: 40px;
        height: 40px;
        margin-left: 10px;
    }
    
    .play-arrow::after {
        border-left-width: 10px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
    
    .cta-section {
        padding: 22px 16px;
        margin-top: 20px;
    }
    
    .cta-title { font-size: 1.15rem; }
    .cta-desc { font-size: 0.85rem; }
    .cta-btn { 
        padding: 13px 40px; 
        font-size: 1rem;
        width: 100%;
    }
    
    .glow {
        width: 200px;
        height: 200px;
    }
}

/* 小屏手机 */
@media (max-width: 360px) {
    .logo { font-size: 2.5rem; }
    .header h1 { font-size: 1.5rem; }
    
    .game-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .game-title { font-size: 1rem; }
    .badge { font-size: 0.6rem; padding: 2px 6px; }
}
