/* 响应式直播列表样式 - 分离自页面内嵌CSS */
:root {
    --primary-color: #165DFF; /* 主色保留，提升识别度 */
    --status-live: #FF3D00;   /* 直播中红色（突出） */
    --status-not-start: #2196F3; /* 未开始蓝色 */
    --status-ended: #9E9E9E;  /* 已结束灰色 */
    --hot-tag-color: #FFC107; /* 热门标签黄色（适度保留） */
    --bg-main: #f8f9fa;       /* 页面背景色 */
    --bg-card: #fff;          /* 卡片背景 */
    --text-primary: #333;     /* 主要文字 */
    --text-secondary: #666;   /* 次要文字 */
    --border-color: #eee;     /* 边框色（浅化） */
    --border-radius: 6px;     /* 圆角减小，更简约 */
    --transition-base: all 0.2s ease; /* 过渡简化 */
    --gap-base: 10px;         /* 间距统一简化 */
    --container-padding: 16px; /* 容器内边距统一 */
}

/* 全局样式重置（增强简约感） */
body {
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 主容器布局优化 - 适配不同屏幕宽度 */
article {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 var(--container-padding); */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 左侧直播列表区域 - 响应式宽度控制 */
.blogs.left-box {
    flex: 1;
    min-width: 320px; /* 最小宽度，确保移动端不挤压 */
    width: 100%;
}

/* 侧边栏区域 - 响应式适配 */
[!--temp.sylan--] {
    flex: 0 0 300px; /* PC端固定宽度 */
    width: 100%;
    min-width: 300px;
}

/* 面板整体样式（优化响应式适配） */
.panel.liveview {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color); /* 替换阴影为细边框 */
    margin-bottom: 20px; /* 合理间距 */
    overflow: hidden;
    transition: var(--transition-base);
    width: 100%;
}

/* 面板标题样式（增强响应式适配） */
.panel.liveview .panel-title {
    background: var(--primary-color); /* 纯色替代渐变，更简约 */
    padding: 6px var(--container-padding); /* 统一内边距 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel.liveview .panel-title h2 {
    color: #fff;
    font-size: 16px; /* 字体减小 */
    font-weight: 500; /* 字重降低 */
    margin: 0;
    display: flex;
    align-items: center;
}

/* 移除标题前的彩色竖线（简约化） */
.panel.liveview .panel-title h2::before {
    display: none;
}

/* 节目列表样式（网格布局优化，适配不同屏幕） */
.panel.liveview .panel-body {
    padding: 12px 0; /* 上下内边距 */
    margin: 0;
    list-style: none;
}

/* 赛事项布局 - 采用弹性布局，优化响应式适配 */
.panel.liveview .panel-body li {
    padding: 12px var(--container-padding); /* 左右内边距与容器统一 */
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 调整对齐方式，避免挤压 */
    flex-wrap: wrap;
    gap: 12px; /* 间距优化 */
    width: 100%;
    box-sizing: border-box;
}

/* 最后一项移除边框 */
.panel.liveview .panel-body li:last-child {
    border-bottom: none;
}

/* hover效果简化（淡色背景） */
.panel.liveview .panel-body li:hover {
    background-color: #fafafa;
}

/* 时间样式（固定宽度，响应式调整） */
.panel.liveview time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px; /* 优化宽度，确保时间不换行 */
    text-align: center;
    background: transparent; /* 去背景色 */
    color: var(--text-secondary);
    padding: 4px 0; /* 优化内边距 */
    border-radius: 0; /* 去圆角 */
    font-size: 13px; /* 字体减小 */
    font-weight: 400; /* 字重降低 */
    flex-shrink: 0; /* 不压缩 */
}

/* 联赛名称样式（响应式宽度控制） */
.panel.liveview .panel-body li a:first-of-type {
    color: var(--text-primary);
    font-size: 14px; /* 字体减小 */
    text-decoration: none;
    flex-shrink: 0;
    max-width: 110px; /* 响应式宽度调整 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 移除hover下划线（简约化） */
.panel.liveview .panel-body li a:first-of-type:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 热门标签样式（简化） */
.hot-tag {
    display: inline-block;
    background: var(--hot-tag-color);
    color: #fff;
    font-size: 10px; /* 字体减小 */
    padding: 1px 4px; /* 减小内边距 */
    border-radius: 3px; /* 简化圆角 */
    margin-left: 4px;
    font-weight: normal;
}

/* 球队容器样式（核心响应式优化） */
.team-container {
    display: flex;
    align-items: center;
    gap: 10px; /* 优化间距 */
    flex: 1; /* 占满剩余空间 */
    min-width: 160px; /* 最小宽度，避免过度压缩 */
    justify-content: center;
    padding: 0 8px;
}

.team {
    display: flex;
    align-items: center;
    gap: 6px; /* 减小间距 */
    flex: 1;
    justify-content: flex-end; /* 主队靠右 */
}

.team:nth-child(3) { /* 客队容器 */
    justify-content: flex-start; /* 客队靠左 */
}

/* 球队Logo简化（响应式尺寸调整） */
.team-logo {
    width: 32px; /* 基础尺寸 */
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: none; /* 去边框 */
    transition: var(--transition-base);
    flex-shrink: 0;
}

/* 移除Logo hover效果（简约化） */
.panel-body li:hover .team-logo {
    border-color: transparent;
    transform: none;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

/* 球队名称样式（响应式适配） */
.team-name {
    color: var(--text-primary);
    font-size: 14px; /* 基础字体 */
    white-space: nowrap;
    max-width: 70px; /* 响应式宽度调整 */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VS样式（突出显示，响应式调整） */
.vs {
    color: var(--text-secondary);
    font-size: 14px; /* 基础字体 */
    font-weight: 500;
    padding: 0 4px;
    flex-shrink: 0;
}

/* 状态标签+直播按钮容器（响应式布局） */
.status-button-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 状态标签样式（简化） */
.live-status {
    font-size: 13px; /* 字体减小 */
    font-weight: 500;
    text-decoration: none;
    padding: 3px 8px; /* 优化内边距 */
    border-radius: 4px; /* 简化圆角 */
    transition: var(--transition-base);
    flex-shrink: 0;
}

/* 保留直播中动画（突出重点） */
.live-status[style*="var(--status-live)"] {
    background: rgba(255,61,0,0.1);
    animation: pulse 1.5s infinite;
}

.live-status[style*="var(--status-not-start)"] {
    background: rgba(33,150,243,0.1);
}

.live-status[style*="var(--status-ended)"] {
    background: rgba(158,158,158,0.1);
}

/* 直播按钮样式（响应式优化） */
.type.recommend {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px; /* 优化内边距 */
    border-radius: 4px; /* 简化圆角 */
    text-decoration: none;
    font-size: 13px; /* 字体减小 */
    font-weight: 500;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 简化按钮hover效果 */
.type.recommend:hover {
    background: #0E4CD1;
    transform: none; /* 去上浮效果 */
    box-shadow: none; /* 去阴影 */
}

/* 无赛事提示样式优化 */
.no-match {
    text-align: center;
    padding: 20px var(--container-padding);
    color: var(--text-secondary);
    border-bottom: none;
    font-size: 14px;
}

/* 直播中动画保留（突出重点） */
@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* 响应式适配 - 平板设备（768px-1024px） */
@media (max-width: 1024px) {
    [!--temp.sylan--] {
        flex: 0 0 280px; /* 平板端缩小侧边栏宽度 */
    }

    .team-container {
        gap: 8px;
        min-width: 140px;
    }

    .team-name {
        max-width: 60px;
        font-size: 13px;
    }

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

/* 响应式适配 - 手机设备（768px以下） */
@media (max-width: 768px) {
    :root {
        --container-padding: 12px; /* 移动端减小内边距 */
        --gap-base: 8px;
    }

    /* 移动端单列布局 */
    article {
        flex-direction: column;
        gap: 16px;
        padding: 0 var(--container-padding);
    }

    [!--temp.sylan--] {
        flex: none;
        width: 100%;
        min-width: auto;
    }

    /* 面板标题优化 */
    .panel.liveview .panel-title {
        padding: 1px var(--container-padding);
    }

    .panel.liveview .panel-title h2 {
        font-size: 15px;
    }

    /* 赛事项移动端布局重构 */
    .panel.liveview .panel-body li {
        padding: 10px var(--container-padding);
        gap: 8px;
        flex-direction: column; /* 垂直排列 */
        align-items: flex-start;
    }

    /* 时间+联赛名称 行 */
    .match-header {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 4px;
    }

    /* 时间样式调整 */
    .panel.liveview time {
        width: auto;
        padding: 2px 6px;
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
    }

    /* 联赛名称占满剩余空间 */
    .panel.liveview .panel-body li a:first-of-type {
        max-width: calc(100% - 70px);
        font-size: 13px;
    }

    /* 球队容器移动端优化 */
    .team-container {
        width: 100%;
        min-width: auto;
        gap: 15px;
        margin: 8px 0;
    }

    .team {
        gap: 8px;
    }

    .team-logo {
        width: 36px; /* 移动端增大Logo，提升辨识度 */
        height: 36px;
    }

    .team-name {
        font-size: 15px;
        max-width: 80px;
    }

    .vs {
        font-size: 16px;
        font-weight: 600;
    }

    /* 状态+按钮 移动端占满宽度 */
    .status-button-group {
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 4px;
    }

    .live-status {
        font-size: 14px;
        padding: 4px 10px;
    }

    .type.recommend {
        padding: 5px 20px;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }

    /* 无赛事提示移动端调整 */
    .no-match {
        padding: 16px var(--container-padding);
        font-size: 13px;
    }
}

/* 小屏手机适配（480px以下） */
@media (max-width: 480px) {
    .team-container {
        gap: 10px;
    }

    .team-name {
        max-width: 65px;
        font-size: 14px;
    }

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

    .status-button-group {
        flex-direction: column;
        gap: 6px;
    }

    .live-status {
        width: 100%;
        text-align: center;
    }
}
@charset "UTF-8";

/* 面板基础样式（收缩展开依赖） */
.panel {
    margin-bottom: 1rem;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .15);
    border: 1px solid #adcbeb;
}

/* 面板标题样式（收缩展开触发区） */
.panel>.panel-title {
    background: linear-gradient(to bottom, #fff, #e4f0fd 100%);
    border-bottom: 1px solid #adcbed;
    cursor: pointer; /* 提示可点击 */
    position: relative;
    padding-right: 4rem; /* 给折叠图标预留空间 */
}

/* 面板标题内文字样式 */
.panel>.panel-title>h1,
.panel>.panel-title>h2,
.panel>.panel-title>h3,
.panel>.panel-title>h4,
.panel>.panel-title>h5,
.panel>.panel-title>h6,
.panel>.panel-title>strong {
    float: left;
    font-size: 1rem;
    line-height: 2.25;
    padding-left: 1rem;
    margin: 0;
}

/* 折叠/展开图标（原有GIF图标，保持兼容） */
.panel.panel-open>.panel-title>a.flod {
    float: right;
    background: url(data:image/gif;base64,R0lGODlhDAARAIABADyh1gAAACH5BAEAAAEALAAAAAAMABEAAAIcjI+pywkdgGRzumdsxkcjvkjg93hbB5omxLZtAQA7) no-repeat center center;
    width: 2rem;
    height: 2rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.panel.panel-open>.panel-title>a.flod:hover {
    opacity: .68;
}

/* 收缩状态样式 */
.panel.panel-close>.panel-title {
    border-bottom: none; /* 收缩时隐藏底部边框 */
}

.panel.panel-close>.panel-title>a.flod {
    background-image: url(data:image/gif;base64,R0lGODlhCwARAIABADyh1gAAACH5BAEAAAEALAAAAAALABEAAAIbjI+pyw2Q3pGGTmjRg4xrX3lWFkhkCEbNyjIFADs=);
}

/* 面板内容显示/隐藏控制 */
.panel.panel-open>.panel-body {
    display: block;
}

.panel.panel-close>.panel-body {
    display: none;
}

/* 更多链接样式（标题右侧） */
.panel-title>a.more {
    float: right;
    line-height: 3;
    margin-right: 1rem;
    font-size: .75rem;
    color: #333;
    text-decoration: none;
}

.panel-title>a.more:hover {
    color: #db2c30;
}

/* 直播列表面板特殊适配（保持原有布局） */
.panel.liveview>.panel-body {
    padding: 0;
}

.panel.liveview>.panel-body>li {
    padding: .5rem 1rem;
    border-bottom: 1px dotted #adcbeb;
}

.panel.liveview>.panel-body>li:hover {
    background-color: rgba(219, 44, 48, .03);
}

/* 响应式适配（确保移动端正常显示） */
@media (max-width: 768px) {
    .panel>.panel-title {
        padding-right: 3rem;
    }
    
    .panel>.panel-title>h1,
    .panel>.panel-title>h2,
    .panel>.panel-title>h3 {
        font-size: .9rem;
        line-height: 2.5;
    }
    
    .panel-title>a.more {
        line-height: 2.8;
        font-size: .7rem;
        margin-right: .5rem;
    }
}