/**
 * 首页样式
 */

.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 200, 120, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.games-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 游戏卡片特殊样式 */
.game-card {
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 200, 120, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-card-content {
    position: relative;
    z-index: 1;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.controls-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.control-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-section {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* 麻将特色游戏卡片：去掉max-width融入四列 */
    .games-grid[style*="max-width"] {
        max-width: none !important;
        margin: 0 !important;
    }
    
    /* 隐藏特色游戏区的 subtitle */
    .hero-section .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

