/* ==================== 信号源样式优化 ==================== */

/* 外层卡片容器 */
.live-signal-card {
    overflow: hidden;
    background-color: #fafbfb; 
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb; /* 改成了中性浅灰边框，比蓝色更百搭 */
}

/* 卡片标题 */
.live-signal-header {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* 关键：让四个按钮强制横向排列 */
/* 关键：让四个按钮强制横向排列，并增加上边距 */
.live-signal-wrap {
    display: flex !important;
    flex-direction: row !important; /* 强制横向 */
    flex-wrap: nowrap !important;  /* 强制不换行 */
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 30px 0 0 0 !important; /* 👈 把这里改成 30px 0 0 0，拉开和上面的距离 */
    padding: 0 !important;
    width: 100% !important;
}

/* 单个按钮容器 */
.signal-item {
    position: relative !important;
    flex: 1 1 0 !important; /* 让四个按钮平分宽度 */
    width: auto !important;
    min-width: 0 !important;
}

/* 右上角的悬浮标签 */
.signal-tag {
    position: absolute !important;
    top: -10px !important;
    right: 10px !important;
    background: #ed2633 !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    z-index: 2 !important;
    white-space: nowrap !important;
    border: 2px solid #fff !important;
    letter-spacing: 1px !important;
}

/* 按钮链接本身 */
.signal-item a {
    display: block !important;
    text-align: center !important;
    padding: 12px 10px !important;
    border: 2px solid #ed2633 !important;
    border-radius: 12px !important;
    color: #ed2633 !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    background: #ffffff !important;
    letter-spacing: 1px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important; /* 文字不换行 */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: all 0.3s !important;
}

.signal-item a:hover {
    background: #ed2633 !important;
    color: #fff !important;
}

/* 第一个高亮按钮（红底白字） */
.signal-item-red a {
    background: #ed2633 !important;
    color: #ffffff !important;
}

/* 手机端适配：变成两列，一行两个 */
@media screen and (max-width: 768px) {
    .live-signal-wrap {
        flex-wrap: wrap !important; /* 手机端允许换行 */
    }
    .signal-item {
        flex: 0 0 calc(50% - 8px) !important; /* 每个占一半宽度 */
    }
    .signal-item a {
        font-size: 14px !important;
        padding: 10px 5px !important;
    }
}