/* ============================================================
   首页播报条（卡片式跑马灯 + 滚动吸顶）
   默认：美观圆角卡片置于搜索框下方（正常文档流）
   吸顶：向下滚动到导航底部时切换 fixed，宽度由 JS 对齐主内容区
   ============================================================ */
.sp-broadcast {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 12px auto 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: #4338ca;
    background-image: linear-gradient(135deg, #4338ca 0%, #6366f1 55%, #818cf8 100%);
    color: #fff;
    font-size: 13.5px;
    line-height: 1;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: box-shadow .25s ease, border-radius .25s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* 吸顶态：固定在导航栏下方，宽度/位置由 JS 动态计算对齐主内容区 */
.sp-broadcast.is-sticky {
    position: fixed;
    top: 72px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(67, 56, 202, 0.4);
}
.sp-broadcast-inner {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    gap: 12px;
}
.sp-broadcast-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.sp-broadcast-label .sp-b-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
    animation: sp-b-pulse 1.4s ease-in-out infinite;
}
@keyframes sp-b-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.4); }
}
.sp-broadcast-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    height: 36px;
}
.sp-broadcast-items {
    display: inline-flex;
    align-items: center;
    height: 36px;
    white-space: nowrap;
    will-change: transform;
    animation: sp-b-scroll 50s linear infinite;
}
.sp-broadcast:hover .sp-broadcast-items {
    animation-play-state: paused;
}
@keyframes sp-b-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.sp-broadcast-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 0 0.1px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity .2s ease;
}
.sp-broadcast-item:hover { opacity: .85; }
.sp-broadcast-item .sp-b-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #38bdf8; /* 清晰高对比天蓝 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.sp-broadcast-item .sp-b-time {
    color: #e2e8f0; /* 高对比浅白灰 */
    font-size: 12.5px;
    font-weight: 500;
}
.sp-broadcast-item .sp-b-action {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
}
.sp-broadcast-item .sp-b-amount {
    font-weight: 800;
    font-size: 13.5px;
    color: #fde047; /* 纯正亮金黄 */
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.sp-b-sep {
    display: inline-block;
    vertical-align: middle;
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.7;
    margin: 0 12px;
}
/* 无数据时的兜底文案 */
.sp-broadcast-empty {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
}
/* 深色模式适配 */
.io-black-mode .sp-broadcast,
.io-grey-mode .sp-broadcast,
.dark-theme .sp-broadcast,
body.dark .sp-broadcast,
.dark .sp-broadcast,
.night .sp-broadcast,
[data-theme="dark"] .sp-broadcast {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
/* 移动端微调 */
@media (max-width: 600px) {
    .sp-broadcast-label { font-size: 11px; padding: 3px 8px; }
    .sp-broadcast-item { font-size: 12px; }
}