/* 首页样式 */

/* 轮播图区域 */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
}

.hero-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 实时比分 */
.live-scores {
    padding: 60px 0;
    background: #fff;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    transition: transform 0.3s ease;
}

.score-card:hover {
    transform: translateY(-5px);
}

.score-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.live-badge {
    background: #e94560;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.match-time {
    font-size: 14px;
    opacity: 0.9;
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team {
    text-align: center;
    flex: 1;
}

.team-name {
    font-size: 14px;
    font-weight: 500;
}

.score {
    font-size: 32px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.match-meta {
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

/* 热门资讯 */
.news-section {
    padding: 60px 0;
    background: #f5f7fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.featured {
    grid-column: span 2;
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.news-card.featured .news-image {
    height: 240px;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e94560;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.news-card.featured .news-content h3 {
    font-size: 22px;
}

.news-content h3 a {
    color: #1a1a2e;
}

.news-content h3 a:hover {
    color: #e94560;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.news-views {
    color: #e94560;
}

/* 赛事分类 */
.category-section {
    padding: 60px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* 数据统计 */
.stats-section {
    padding: 60px 0;
    background: #1a1a2e;
    color: #fff;
}

.stats-section .section-header h2 {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 30px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .scores-grid,
    .news-grid,
    .category-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
    }
}
