﻿/* ===== 展示板外层容器（宽度 = 视口宽度 - 100px） ===== */
.board-wrapper {
    width: calc(100vw - 100px);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    padding: 6px 0;
}

/* ===== 滚动容器 ===== */
.scroll-board {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #4470e3 100%);
}

/* ===== 滚动轨道（默认无动画，由 .animate 类启动） ===== */
.scroll-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
    gap: 0;
}

    /* ===== 启动动画的类 ===== */
    .scroll-track.animate {
        animation: scrollRightToLeft 20s linear infinite;
    }

/* ===== 悬停暂停（当轨道有 .animate 类时生效） ===== */
.scroll-board:hover .scroll-track.animate {
    animation-play-state: paused;
}

/* ===== 每个滚动条目 ===== */
.scroll-item {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 36px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
    position: relative;
}

    /* 条目间分隔竖线 */
    .scroll-item::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 2px;
        background: rgba(255, 255, 255, 0.20);
        border-radius: 2px;
    }

    .scroll-item:last-child::after {
        display: none;
    }

/* 不同条目颜色 */


/* ===== 左右渐变遮罩 ===== */
.scroll-board::before,
.scroll-board::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 2;
    border-radius: 10px;
}

.scroll-board::before {
    left: 0;
    background: linear-gradient(to right, rgba(22, 33, 62, 0.85), transparent);
}

.scroll-board::after {
    right: 0;
    background: linear-gradient(to left, rgba(22, 33, 62, 0.85), transparent);
}
/* ===== 响应式 ===== */
@media (max-width: 600px) {
    .board-wrapper {
        width: calc(100vw - 30px);
    }

    .scroll-item {
        padding: 0 20px;
        font-size: 15px;
    }

    .scroll-board::before,
    .scroll-board::after {
        width: 30px;
    }

    .board-header h3 {
        font-size: 13px;
    }

    .board-header .badge {
        font-size: 10px;
        padding: 1px 10px;
    }
}

@media (max-width: 400px) {
    .scroll-item {
        padding: 0 14px;
        font-size: 13px;
    }

    .board-wrapper {
        width: calc(100vw - 20px);
    }
}
