/* 首页专用样式 */

/* 英雄区域增强样式 */
.hero-section {
    background: rgba(74, 20, 140, 0.12);
    padding: 2.5rem 0;
    margin: 1rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(156, 39, 176, 0.2);
    box-shadow: 0 8px 32px rgba(74, 20, 140, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(156, 39, 176, 0.05);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-section p {
    color: #e9ecef;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

/* Featured Games Section - New Design */
.featured-games-section {
    background: linear-gradient(135deg, #0b1533 0%, #0f1b3d 50%, #132149 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.featured-games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(21, 65, 139, 0.35);
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #e9ecef;
    opacity: 0.8;
    margin-bottom: 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 65, 139, 0.15), transparent);
    transition: left 0.6s ease;
}

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

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15, 27, 61, 0.35);
    border-color: rgba(21, 65, 139, 0.35);
}

.featured-card {
    background: linear-gradient(135deg, rgba(21, 65, 139, 0.25) 0%, rgba(15, 27, 61, 0.15) 100%);
    border: 2px solid rgba(21, 65, 139, 0.35);
    box-shadow: 0 15px 35px rgba(15, 27, 61, 0.3);
}

.featured-card:hover {
    box-shadow: 0 25px 50px rgba(15, 27, 61, 0.4);
}

.game-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

/* Image sizing for game icons */
.game-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 480px) {
    .game-icon img {
        width: 192px;
        height: 192px;
    }
}

.game-content {
    text-align: center;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-description {
    font-size: 1rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.35);
}

.game-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    color: #1a1a1a;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(253, 216, 53, 0.35);
    position: relative;
    overflow: hidden;
}

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

.game-btn:hover::before {
    left: 100%;
}

.game-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(253, 216, 53, 0.55);
    color: #1a1a1a;
    text-decoration: none;
}

.btn-icon {
    font-style: normal;
    transition: transform 0.3s ease;
}

.game-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-games-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .featured-games-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .game-card {
        padding: 1.2rem;
    }
    
    .game-icon {
        font-size: 2rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-features {
        gap: 0.3rem;
    }
    
    .feature-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* 导航菜单当前页面高亮 */
.nav-menu a[href="index.html"] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.3) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
    transform: translateY(-2px);
    position: relative;
    overflow: hidden;
}

.nav-menu a[href="index.html"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-menu a[href="index.html"]:hover::before {
    left: 100%;
}

/* 首页导航特殊样式 */
.nav-menu .nav-item:first-child .nav-link {
    position: relative;
}

.nav-menu .nav-item:first-child .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #9c27b0;
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
        margin: 0.5rem 0;
        border-radius: 15px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        margin-bottom: 0.75rem;
    }
    
    .game-highlight {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .featured-games {
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .featured-games::before {
        border-radius: 17px;
    }
}