/* ============================================================
   gonggao.css - 公告轮播样式
   ============================================================ */

.gg-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: #fcfcfc;
    border-radius: 6px;
    border: 0px solid #c1ffc1;
    margin: 4px 0;
    overflow: hidden;
}

.gg-label {
    font-size: 13px;
    font-weight: bold;
    color: #4d4d4d;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 8px;
    background: #f8f8f8;
    border-radius: 4px;
}

.gg-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 28px;
}

.gg-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 15s linear infinite;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.gg-text {
    font-size: 14px;
    color: #4d4d4d;
    font-weight: 500;
    padding-left: 50px;
}

@keyframes scrollLeft {
    0% { left: 100%; transform: translateY(-50%) translateX(0); }
    100% { left: -100%; transform: translateY(-50%) translateX(0); }
}

.gg-container:hover .gg-scroll {
    animation-play-state: paused;
}

@media (max-width: 380px) {
    .gg-container {
        padding: 4px 8px;
        gap: 8px;
    }
    .gg-label {
        font-size: 11px;
        padding: 1px 6px;
    }
    .gg-scroll-wrapper {
        height: 24px;
    }
    .gg-text {
        font-size: 12px;
        padding-left: 30px;
    }
    @keyframes scrollLeft {
        0% { left: 100%; }
        100% { left: -150%; }
    }
}