/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #1a3c6e;
    color: #fff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

#main-nav ul {
    display: flex;
    list-style: none;
}

#main-nav li {
    margin-left: 20px;
}

#main-nav a {
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

#main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
    color: #fff;
}

/* 通用部分样式 */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #1a3c6e;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #666;
}

/* 热门直播模块 */
#live-matches {
    background-color: #fff;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.match-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-time {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 15px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.team-name {
    font-size: 14px;
    font-weight: 700;
}

.vs {
    font-size: 16px;
    font-weight: 700;
    color: #666;
}

.match-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.watch-btn {
    display: inline-block;
    background-color: #1a3c6e;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.watch-btn:hover {
    background-color: #0e2346;
    color: #fff;
}

/* 赛程表模块 */
#match-schedule {
    background-color: #f9f9f9;
}

.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.schedule-day {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.day-header {
    background-color: #1a3c6e;
    color: #fff;
    padding: 10px 15px;
    font-weight: 700;
}

.day-matches {
    padding: 15px;
}

.schedule-match {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
}

.schedule-match:last-child {
    border-bottom: none;
}

.time {
    font-weight: 700;
    color: #e74c3c;
    margin-right: 10px;
    width: 60px;
}

.league {
    font-size: 14px;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.teams {
    flex: 1;
    font-weight: 500;
}

.more-btn-container {
    text-align: center;
}

.more-btn {
    display: inline-block;
    background-color: transparent;
    color: #1a3c6e;
    border: 2px solid #1a3c6e;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.more-btn:hover {
    background-color: #1a3c6e;
    color: #fff;
}

/* 热门联赛模块 */
#leagues {
    background-color: #fff;
}

.leagues-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.league-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.league-card:hover {
    transform: translateY(-5px);
}

.league-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.league-info {
    padding: 15px;
    flex: 1;
}

.league-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a3c6e;
}

.league-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.league-btn {
    display: inline-block;
    background-color: #1a3c6e;
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.league-btn:hover {
    background-color: #0e2346;
    color: #fff;
}

/* 足球资讯模块 */
#news {
    background-color: #f9f9f9;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-img {
    width: 250px;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a3c6e;
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: #1a3c6e;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-color: #1a3c6e;
}

/* 精彩集锦模块 */
#highlights {
    background-color: #fff;
}

.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.highlight-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.highlight-info {
    padding: 15px;
}

.highlight-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1a3c6e;
}

.highlight-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.highlight-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.highlight-btn:hover {
    background-color: #c0392b;
    color: #fff;
}

/* 球队阵容模块 */
#teams {
    background-color: #f9f9f9;
}

.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.team-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-banner {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.team-info {
    padding: 15px;
}

.team-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a3c6e;
}

.team-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.key-players {
    font-size: 14px;
    margin-bottom: 12px;
}

.key-players span:first-child {
    font-weight: 700;
}

.team-btn {
    display: inline-block;
    background-color: #1a3c6e;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.team-btn:hover {
    background-color: #0e2346;
    color: #fff;
}

/* 赛事分析模块 */
#analysis {
    background-color: #fff;
}

.analysis-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.analysis-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.analysis-img {
    width: 250px;
    height: 200px;
    object-fit: cover;
}

.analysis-content {
    padding: 20px;
    flex: 1;
}

.analysis-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a3c6e;
}

.analysis-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 足球文化模块 */
#culture {
    background-color: #f9f9f9;
}

.culture-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.culture-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.culture-img {
    width: 250px;
    height: 200px;
    object-fit: cover;
}

.culture-content {
    padding: 20px;
    flex: 1;
}

.culture-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a3c6e;
}

.culture-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 页脚样式 */
footer {
    background-color: #1a3c6e;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e74c3c;
}

.footer-section p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
}

.footer-bottom a {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner {
        height: 350px;
    }
    
    .banner h2 {
        font-size: 30px;
    }
    
    .news-item, .analysis-item, .culture-item {
        flex-direction: column;
    }
    
    .news-img, .analysis-img, .culture-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    #main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #main-nav li {
        margin: 5px 10px;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .league-card {
        flex-direction: column;
    }
    
    .league-img {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 250px;
    }
    
    .banner h2 {
        font-size: 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .news-content h3, .analysis-content h3, .culture-content h3 {
        font-size: 18px;
    }
}

