/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #f9fafb;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 日期标题样式美化 */
.panel-title {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4299e1;
}
.panel-title h2 {
    font-size: 18px;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-title h2 .today-mark {
    background-color: #4299e1;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* 核心：对阵布局样式 - 桌面端 */
.match-vs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
}
.home-team, .away-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.home-team {
    justify-content: flex-end;
    padding-right: 4px;
}
.away-team {
    justify-content: flex-start;
    padding-left: 4px;
}

/* 球队图标样式 */
.team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background-color: white;
}
.match-item:hover .team-logo {
    border-color: #4299e1;
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(66,153,225,0.3);
}

/* 球队名称样式 */
.team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    max-width: 120px;
}

/* VS分隔符样式 */
.vs-separator {
    font-size: 16px;
    font-weight: 700;
    color: #4299e1;
    background: #e8f4f8;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(66,153,225,0.15);
    flex: 0 0 auto;
}

/* 热门标签样式 */
.hot-tag {
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    vertical-align: middle;
    box-shadow: 0 2px 3px rgba(238,82,83,0.2);
}

/* 状态标签样式：统一为未开始的颜色（背景#e8f4f8，文字#4299e1） */
.match-status {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* 统一背景和文字颜色（未开始样式） */
    background: #e8f4f8;
    color: #4299e1;
}
/* 已结束状态单独设置（保持区分） */
.status-ended {
    background: #f5f5f5;
    color: #718096;
}

/* 时间区域布局 - 桌面端 */
.match-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.match-meta time {
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 12px;
    color: #718096;
    flex: 0 0 auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.league-name {
    flex: 1;
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}
.league-name i {
    color: inherit;
}

/* 对阵+按钮区域布局 - 桌面端 */
.match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}
.match-main {
    flex: 1;
}
.match-action {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 列表项样式：统一背景（白色），取消直播中特殊背景 */
.panel-body {
    list-style: none;
    display: grid;
    gap: 14px;
}
.match-item {
    /* 统一背景为白色，取消直播中特殊背景 */
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    /* 统一边框（取消直播中红色边框） */
    border-left: 3px solid transparent;
}
/* 直播中仅保留呼吸点动画，取消背景和边框特殊样式 */
.match-item.live-highlight {
    border-left: 3px solid transparent;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.match-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* 观看按钮样式：统一为未开始的颜色（背景#4299e1渐变，文字白色） */
.type.recommend {
    padding: 4px 14px;
    /* 统一背景（未开始按钮样式） */
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(66,153,225,0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.type.recommend i {
    font-size: 14px;
}
.type.recommend:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    box-shadow: 0 3px 6px rgba(66,153,225,0.3);
    transform: translateY(-1px);
}
/* 已结束赛事按钮单独设置（保持区分） */
.status-ended + .type.recommend {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}
.status-ended + .type.recommend:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* 直播中呼吸点动画（保留，作为唯一区分标识） */
.status-live .live-dot {
    animation: livePulse 1.2s infinite ease-in-out;
    display: inline-block;
    width: 8px;
    height: 8px;
    /* 呼吸点仍用红色，保持醒目 */
    background: #dc2626;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 4px rgba(220,38,38,0.5);
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* 响应式适配 - 平板（768px-992px） */
@media (max-width: 992px) {
    .team-logo {
        width: 32px;
        height: 32px;
    }
    .team-name {
        max-width: 100px;
        font-size: 14px;
    }
    .vs-separator {
        font-size: 15px;
        padding: 3px 10px;
    }
    .match-vs-container {
        gap: 8px;
    }
}

/* 响应式适配 - 移动端（≤768px）核心调整 */
@media (max-width: 768px) {
    .blogs {
        padding: 16px 12px;
    }
    .panel-title h2 {
        font-size: 16px;
    }

    /* 第一行：时间 + 联赛 + 状态（横向排列，占满宽度） */
    .match-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap; /* 不换行，强制一行显示 */
        gap: 6px;
        margin-bottom: 10px;
        width: 100%;
    }
    .match-meta time {
        padding: 2px 6px;
        font-size: 11px;
        flex: 0 0 auto;
    }
    .league-name {
        flex: 1; /* 联赛名称占满中间宽度 */
        min-width: auto;
        margin-top: 0;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* 状态标签移到时间+联赛同一行末尾 - 保持统一样式 */
    .mobile-status {
        order: 3; /* 放在最后 */
        flex: 0 0 auto;
        padding: 2px 6px;
        font-size: 10px;
        margin-right: 0;
    }

    /* 第二行：主队+客队（图标+文字）+ 观看按钮（横向排列） */
    .match-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row; /* 横向排列 */
        gap: 8px;
        width: 100%;
    }
    .match-main {
        flex: 1; /* 对阵区域占满大部分宽度 */
    }
    .match-action {
        flex: 0 0 auto; /* 观看按钮固定宽度 */
    }

    /* 球队图标和名称适配移动端 */
    .team-logo {
        width: 28px;
        height: 28px;
    }
    .team-name {
        max-width: 70px;
        font-size: 13px;
    }
    .home-team, .away-team {
        gap: 4px;
        padding: 0;
    }
    .match-vs-container {
        gap: 6px;
    }
    .vs-separator {
        font-size: 13px;
        padding: 2px 8px;
    }

    /* 热门标签适配 */
    .hot-tag {
        padding: 1px 4px;
        font-size: 9px;
        margin-left: 3px;
    }

    /* 观看按钮适配 */
    .type.recommend {
        padding: 3px 10px;
        font-size: 11px;
    }
    .type.recommend i {
        font-size: 12px;
    }

    /* 列表项内边距调整 */
    .match-item {
        padding: 12px;
    }
}

/* 小屏手机（≤576px）补充适配 */
@media (max-width: 576px) {
    .team-name {
        max-width: 60px;
        font-size: 12px;
    }
    .match-meta {
        gap: 4px;
    }
    .league-name {
        font-size: 10px;
    }
    .mobile-status {
        font-size: 9px;
        padding: 1px 5px;
    }
    .vs-separator {
        font-size: 12px;
        padding: 1px 6px;
    }
}