/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-type: none;
}

body.sports-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.main-content .container {
                max-width: 1200px;
                margin:0px auto !important;
                width: 100%;
        }
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* PC端专用样式 */
@media screen and (min-width: 992px) {
    .container {
        margin: 0 auto;
        width: 90%;
        max-width: 1200px;
    }
    
    .match-section, .widget {
    }
    
    /* 赛事直播部分PC端优化 */
    .match-row {
        display: flex;
        align-items: center;
    }
    
    .match-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .teams {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* 全局居中修复 */
.sports-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* 广告通知条 */
.notice-bar {
    background: linear-gradient(to right, var(--primary-light), var(--primary-lighter));
    padding: 10px 0;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.notice-bar .container {
    display: flex;
    align-items: center;
}

.highlight {
    color: var(--primary-dark);
    font-weight: 600;
    margin-right: 8px;
}

.notice-text {
    color: var(--text-medium);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
}

.main-content .container {
    max-width: 1200px;
    width: 100%;
}

/* 内容布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
}

.primary-content {
    display: flex;
    flex-direction: column;
}

.sidebar {
    display: flex;
    flex-direction: column;
    /*gap: 20px;*/
}

/* 通用区块样式 */
.match-section,
.news-section,
.widget {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.match-section:hover,
.news-section:hover,
.widget:hover {
    box-shadow: var(--shadow-lg);
}

.match-section.featured {
    border-top: 3px solid var(--primary);
}

/* 区块标题样式 */
.section-header,
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-lighter);
}

.section-title,
.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.section-title i,
.widget-title i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--primary);
}

.section-title .layui-icon,
.widget-title .layui-icon {
    margin-right: 8px;
    font-size: 16px;
    color: var(--primary);
}

.more-link {
    color: var(--primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.more-link:hover {
    color: #fa2e74;
}

.icon-arrow {
    display: inline-block;
    margin-left: 4px;
}

/* 今日热门赛事滑动部分 */
.match-slider-container {
    position: relative;
    overflow: hidden;
    width: 55rem;

}

.match-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.match-slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
}

.slider-prev, 
.slider-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 10;
}

.slider-prev:hover, 
.slider-next:hover {
    background-color: var(--primary);
    color: white;
}

.match-cards {
    display: flex;
    transition: transform 0.3s ease;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 15px 0;
}

.match-card {
    flex: 0 0 auto;
    width: calc(33.333% - 10px);
    min-width: 280px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 18px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--bg-white);
}

/*.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}*/

.match-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.15);
}

.match-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 64, 129, 0.3);
}

.match-time {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.match-league {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

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

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.team-name {
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.vs {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    position: relative;
    width: 60px;
}

.vs::before,
.vs::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 15px;
    background-color: var(--border-color);
    top: 50%;
}

.vs::before {
    left: -20px;
}

.vs::after {
    right: -20px;
}

.watch-btn {
    display: block;
    width: 100px;
    margin: 0 auto;
    margin-top: 8px;
    padding: 5px 0;
    text-align: center;
    background-color: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    box-shadow: 0 2px 5px rgba(255, 64, 129, 0.3);
}

.watch-btn:hover {
    color: #fafafa;
}

/* 赛事直播区域 */
.filter-bar {
    padding: 0 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-lighter);
}

.date-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 12px 15px;
    color: var(--text-medium);
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.tab.active {
    color: var(--primary);
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.category-filter {
    display: flex;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-item {
    padding: 5px 12px;
    margin-right: 8px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-medium);
    background-color: var(--bg-light);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.filter-item.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 5px rgba(255, 64, 129, 0.3);
}

/* 时间分组 */
.time-group {
    width: 100%;
    box-sizing: border-box;
   
}

.time-header {
    padding: 10px 15px;
    background-color: var(--bg-lighter);
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.time-header .icon-clock,
.time-header .layui-icon-time {
    margin-right: 5px;
    color: var(--primary);
}

.match-row {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    transition: var(--transition);
}

.match-row:hover {
    background-color: #cae7f740;
}

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

.match-status {
    padding: 3px 8px;
    color: #82c891;
    background: #ddfde66b;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
    height: fit-content;
    align-self: center;
}

.match-status.live {
    background-color: #ff4081;
    color: #fff;
}

.match-status.upcoming {
    background-color: rgb(121 115 117 / 10%);
    color: #343232ab;
}

.match-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.league {
    font-size: 12px;
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.teams {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.team-name {
    font-size: 14px;
    color: var(--text-dark);
}

.score {
    margin: 0 10px;
    font-weight: bold;
    color: var(--primary);
}

.detail-btn {
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    transition: var(--transition);
    font-size: 14px;
}

.detail-btn:hover {
 color: #f73074;
}

.detail-btn.hot {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 5px rgba(255, 64, 129, 0.3);
}

/* 新闻区域 */
.news-list {
    padding: 15px;
}

.news-item {
    display: flex;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.news-item:hover {
    background-color: var(--bg-lighter);
    transform: translateY(-3px);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item.featured {
    background-color: var(--primary-lighter);
}

.news-image {
    width: 140px;
    height: 90px;
    background-color: var(--bg-light);
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-content {
    flex: 1;
    position: relative;
}

.news-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
    line-height: 1.4;
}

.news-summary {
    font-size: 13px;
    color: var(--text-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    font-size: 12px;
    color: var(--text-light);
    align-items: center;
}

.time {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.views {
    display: flex;
    align-items: center;
}

.icon-time,
.icon-view,
.layui-icon-time,
.layui-icon-fire {
    margin-right: 4px;
}

/* 侧边栏组件 */
.widget {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border-top: 3px solid var(--primary);
}

.widget-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.widget-tabs {
    display: flex;
}

.widget-tabs .tab {
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
}

.widget-tabs .tab.active {
    background-color: var(--primary);
    color: white;
}

.widget-content {
    padding: 15px;
}

/* 排行榜部件 */
.rankings-tab {
    display: none;
}

.rankings-tab.active {
    display: block;
}

.rankings-header {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 500;
}

.rankings-list {
    padding: 5px 0;
}

.ranking-item {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    transition: var(--transition);
}

.ranking-item:hover {
    background-color: var(--primary-lighter);
}

.rank {
    font-weight: 500;
    text-align: center;
    color: var(--text-medium);
}

.rank-1, .rank-2, .rank-3 {
    font-weight: 700;
}

.rank-1 {
    color: #ffd700;
}

.rank-2 {
    color: #c0c0c0;
}

.rank-3 {
    color: #cd7f32;
}

.ranking-item .team {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
}

.mini-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
}

.ranking-item .team-name {
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
}

.points {
    text-align: right;
    color: var(--text-dark);
    font-weight: 500;
    padding-right: 10px;
}

.view-more {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.view-more:hover {
    background-color: var(--primary-lighter);
}

/* 热门联赛部件 */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.league-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #fafafa;
    padding: 5px;
    border-radius: 20px;
}

.league-item:hover {
    background: #fafafa;
}

.league-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 8px;
    background-color: var(--bg-light);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.league-name {
    font-size: 12px;
    color: var(--text-medium);
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
}
.so_tags{display:none}
.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--bg-light);
    border-radius: 50px;
    color: var(--text-medium);
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.tag.hot {
    background-color: var(--primary-transparent);
    color: var(--primary);
}

/* 侧边栏新闻样式 */
.sidebar .news-section .news-list {
    padding: 10px;
}

.sidebar .news-item {
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
}

.sidebar .news-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.sidebar .news-image {
    width: 100%;
    height: 130px;
    margin-right: 0;
    margin-bottom: 10px;
}

.sidebar .news-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.sidebar .news-meta {
    font-size: 11px;
}

/* 热门联赛样式 */
.hot-leagues {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
}

.hot-league-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: 20px;
    padding: 5px 10px;
    transition: var(--transition);
    cursor: pointer;
}

.hot-league-item:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.hot-league-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.hot-league-item span {
    font-size: 12px;
    color: var(--text-medium);
}

/* 响应式设计优化 */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar {
        order: -1;
    }

    .match-card {
        width: calc(50% - 10px);
        min-width: 240px;
    }

    .team-logo {
        width: 48px;
        height: 48px;
    }

    .match-slider-controls {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .leagues-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .match-card {
        width: calc(100% - 20px);
        min-width: auto;
    }

    .slider-prev, 
    .slider-next {
        width: 32px;
        height: 32px;
    }

    .content-wrapper {
        display: block !important;
    }
    
    .sidebar {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
    }

    .match-row {
        flex-direction: column;
    }

    .match-status {
        margin-bottom: 5px;
    }

    .match-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .teams {
        margin: 8px 0;
    }

    .detail-btn {
        margin-top: 8px;
        margin: 0 auto;
        padding: 6px 20px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 160px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .leagues-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .match-card {
        width: 100%;
        min-width: auto;
        padding: 12px;
    }
    
    .slider-prev, 
    .slider-next {
        width: 28px;
        height: 28px;
        opacity: 0.9;
    }

    .team-logo {
        width: 42px;
        height: 42px;
    }

    .match-label {
        font-size: 10px;
        padding: 2px 8px;
    }

    .watch-btn {
        padding: 8px 0;
    }

    .section-title,
    .widget-title {
        font-size: 16px;
    }
    .match-slider-container {
        position: relative;
        overflow: hidden;
        width: auto !important;
 
      }
}

@media (max-width: 375px) {
    .leagues-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-logo {
        width: 40px;
        height: 40px;
    }

    .match-teams {
        margin-bottom: 15px;
    }

    .match-league {
        font-size: 11px;
        padding: 2px 8px;
    }

    .team-name {
        font-size: 12px;
    }

    .match-time {
        font-size: 12px;
    }

    .vs {
        font-size: 14px;
    }

    .vs::before,
    .vs::after {
        width: 10px;
    }

    .vs::before {
        left: -15px;
    }

    .vs::after {
        right: -15px;
    }

    .watch-btn {
        font-size: 12px;
    }
}

/* 移动端特定优化 */
@media screen and (max-width: 576px) {
    /* 强制宽度为100% */
    body, html, .container, .content-wrapper, .primary-content, .sidebar, .widget {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* 排行榜特定修复 */
    .rankings-header, .ranking-item {
        grid-template-columns: 30px 1fr 40px !important;
        padding: 5px 8px !important;
        font-size: 12px !important;
    }
    
    .ranking-item .team {
        width: 100% !important;
        padding: 0 3px !important;
    }
    
    .ranking-item .team-name {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 80% !important;
        font-size: 12px !important;
    }
    
    .mini-logo {
        width: 12px !important;
        height: 12px !important;
        margin-right: 3px !important;
    }
    
    .league-item {
        padding: 2px !important;
    }
    
    .league-logo {
        width: 30px !important;
        height: 30px !important;
        margin-bottom: 2px !important;
    }
    
    .league-name {
        font-size: 10px !important;
    }
    
    /* 移除所有可能导致布局问题的边距 */
    .points {
        padding-right: 2px !important;
        font-size: 12px !important;
    }
    
    /* 圆角和间距调整 */
    .widget, .match-section, .news-section {
        border-radius: 4px !important;
        margin-bottom: 8px !important;
    }
    
    /* 内容边距调整 */
    .widget-content, .widget-header, .section-header {
        padding: 8px !important;
    }
}

/* 移动端媒体查询根本解决方案 */
@media only screen and (max-width: 576px) {
    .container, .content-wrapper, .primary-content, .sidebar, .widget, .match-section, .news-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    .container {
        padding: 0 8px !important;
    }
    
    .widget, .match-section, .news-section {
        margin-bottom: 10px !important;
        border-radius: 6px !important;
    }
    
    .widget-header, .section-header {
        padding: 10px !important;
    }
    
    .mobile-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 8px !important;
    }
    
    .league-item {
        margin-bottom: 0 !important;
    }
    
    .league-logo {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 3px !important;
    }
    
    /* 排行榜特定修复 */
    .rankings-list {
        padding: 3px 0 !important;
    }
    
    .ranking-item {
        padding: 5px 0 !important;
        font-size: 12px !important;
    }
    
    .rank {
        font-size: 12px !important;
    }
    
    .rank-1, .rank-2, .rank-3 {
        font-size: 12px !important;
    }
}

/* 特定PC端样式修复 - 必须放在文件末尾以确保优先级 */
@media screen and (min-width: 1200px) {
    .container {
       
        margin: 0 auto;
    }
    
    .match-section,
    .news-section,
    .widget {
        margin-bottom: 10px;
    }
    
    .content-wrapper {
        gap: 20px;
    }
    
    /* 赛事直播部分 */
    .match-row {
        padding: 15px;
    }
    
    .match-info {
        padding: 0 15px;
    }
    
    .teams {
        padding: 0 20px;
    }
}

/* 中等屏幕优化 */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        margin: 0 auto;
    }
} 

 /* 修复H5布局 */
 @media screen and (max-width: 576px) {
    body {
        padding-top: 0;
    }
    .main-content {
        width: 100%;
        padding-top: 10px;
    }
    .container {
        padding: 0 10px;
    }
    /* 修复搜索图标 */
    .search-form input {
        padding-left: 30px;
    }
    .search-form .search-icon {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
}

/* 完赛赛事样式 */
.finished-matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.finished-match-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.finished-match-item:hover {
    background-color: #cae7f740;;
    transform: translateY(-2px);
}

.finished-match-item .match-time {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

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

.finished-match-item .team {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 40%;
}

.finished-match-item .team-name {
    font-size: 13px;
    color: var(--text-dark);
}

.finished-match-item .score {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary);
    padding: 0 10px;
}

.finished-match-item .league-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.finished-match-item .mini-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 50%;
}
