/* ==================== 首页特有样式 ==================== */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
    border-radius: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.hero .btn-hero {
    margin-top: 10px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #e0e0e0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.btn-hero {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #0a0e27;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 35px;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    cursor: pointer;
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.8);
}

.games-section {
    padding: 30px 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.game-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffd700;
    position: relative;
    z-index: 1;
}

.game-desc {
    font-size: 13px;
    color: #d0d0d0;
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.game-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.promo-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
    border-radius: 25px;
    padding: 35px 25px;
    margin: 30px 20px;
    text-align: center;
    border: 3px solid rgba(255, 215, 0, 0.4);
}

.promo-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffd700;
}

.promo-text {
    font-size: 16px;
    margin-bottom: 25px;
    color: #e0e0e0;
    line-height: 1.7;
}

.promo-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #0a0e27;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 35px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.8);
}

.ad-banner {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 20px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
}

.ad-text {
    font-size: 16px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 15px;
}

.ad-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s;
    text-transform: uppercase;
}

.ad-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* 移动端优化 */
@media (max-width: 767px) {
    .hero {
        padding: 30px 15px;
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .btn-hero {
        padding: 12px 18px !important;
        font-size: 13px !important;
        width: auto;
        max-width: 95%;
        display: inline-block;
        margin: 0 auto;
        white-space: normal !important;
        line-height: 1.5 !important;
        min-height: auto;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 22px;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

