/* 首页专用样式 */

/* 英雄区域增强样式 */
.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 {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(74, 20, 140, 0.06);
    border-radius: 18px;
    border: 1px solid rgba(156, 39, 176, 0.15);
    position: relative;
}

.featured-games::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #9c27b0;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

/* 标题特殊样式 */
.featured-games h2 {
    color: #7c4dff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
    position: relative;
    z-index: 1;
}

.game-highlight {
    background: #4a148c;
    border: 2px solid #4a148c;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.game-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.6s ease;
}

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

.game-highlight:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #e1bee7;
    box-shadow: 0 15px 40px rgba(156, 39, 176, 0.4);
}

.game-highlight h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-highlight p {
    color: #e9ecef;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.game-highlight .btn {
    background: #7c4dff;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

/* 导航菜单当前页面高亮 */
.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;
    }
}