/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    margin-right: 8px;
    font-size: 28px;
    color: #ff4757;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: none;
    width: 200px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box i {
    position: absolute;
    right: 12px;
    color: #fff;
}

.login-btn {
    background-color: #ff4757;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #e63946;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 22px;
    color: #2c3e50;
}

.section-header i {
    margin-right: 8px;
    color: #ff4757;
}

/* 今日焦点区域 */
.featured-section {
    margin-bottom: 30px;
}

.featured-match {
    background: linear-gradient(135deg, #2c3e50, #4a6572);
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.featured-match-content {
    display: flex;
    padding: 20px;
}

.featured-match-info {
    flex: 1;
}

.featured-match-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.featured-match-title span {
    background-color: #ff4757;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.featured-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.team {
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.team-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.team-score {
    font-size: 24px;
    font-weight: bold;
}

.match-status {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2ecc71;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

/* 标签页区域 */
.tabs-section {
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    color: #7f8c8d;
}

.tab-btn.active {
    color: #ff4757;
    border-bottom-color: #ff4757;
}

.tab-btn:hover {
    color: #2c3e50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 比赛网格 */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.match-header {
    background: linear-gradient(135deg, #2c3e50, #4a6572);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-league {
    font-weight: bold;
}

.match-status {
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.match-body {
    padding: 15px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.match-team {
    text-align: center;
    flex: 1;
}

.match-team-name {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-team-score {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
}

.match-time {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 10px;
}

.match-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
}

.match-viewers {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 14px;
}

.match-viewers i {
    margin-right: 5px;
    color: #ff4757;
}

.match-link {
    color: #ff4757;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.match-link:hover {
    text-decoration: underline;
}

.match-link i {
    margin-left: 5px;
}

/* 赛程表样式 */
.schedule-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.schedule-day {
    border-bottom: 1px solid #e0e0e0;
}

.schedule-day:last-child {
    border-bottom: none;
}

.schedule-header {
    background-color: #f8f9fa;
    padding: 15px;
    font-weight: bold;
    color: #2c3e50;
}

.schedule-matches {
    padding: 0;
}

.schedule-match {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-match:last-child {
    border-bottom: none;
}

.schedule-match-time {
    width: 80px;
    color: #7f8c8d;
    font-size: 14px;
}

.schedule-match-teams {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-match-team {
    flex: 1;
    text-align: center;
}

.schedule-match-league {
    width: 100px;
    text-align: right;
    font-size: 14px;
    color: #7f8c8d;
}

/* 比分表样式 */
.scores-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.score-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.score-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-league {
    font-weight: bold;
    color: #2c3e50;
}

.score-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.score-status.live {
    background-color: #e74c3c;
    color: #fff;
}

.score-status.finished {
    background-color: #2ecc71;
    color: #fff;
}

.score-status.upcoming {
    background-color: #f39c12;
    color: #fff;
}

.score-body {
    padding: 15px;
}

.score-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.score-team {
    text-align: center;
    flex: 1;
}

.score-team-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.score-team-score {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-team-score.winner {
    color: #2ecc71;
}

.score-stats {
    font-size: 12px;
    color: #7f8c8d;
}

.score-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

/* 新闻列表样式 */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 180px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff4757;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    height: 63px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #95a5a6;
    font-size: 12px;
}

/* 数据分析样式 */
.analysis-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.analysis-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.analysis-header {
    background-color: #f8f9fa;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.analysis-league {
    font-size: 14px;
    color: #7f8c8d;
}

.analysis-body {
    padding: 15px;
}

.teams-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comparison-team {
    text-align: center;
    flex: 1;
}

.comparison-team-logo {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-team-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.comparison-vs {
    margin: 0 15px;
    font-weight: bold;
    color: #7f8c8d;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.stat-name {
    font-size: 14px;
    color: #7f8c8d;
}

.stat-value {
    font-weight: bold;
}

.stat-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background-color: #ff4757;
}

/* 分类卡片样式 */
.categories-section {
    margin-bottom: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.nba-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.premier-league-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.la-liga-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.bundesliga-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.serie-a-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.cba-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 14px;
    color: #7f8c8d;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.footer-logo i {
    margin-right: 8px;
    color: #ff4757;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff4757;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff4757;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #ff4757;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .header-tools {
        gap: 10px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .scores-container {
        grid-template-columns: 1fr;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .analysis-container {
        grid-template-columns: 1fr;
    }
    
    .featured-match-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .search-box {
        display: none;
    }
    
    .tabs-nav {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #ff4757;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.empty-state p {
    font-size: 16px;
}