/* ============================================================
   gg.css — 公告跑马灯（旧版式）
   来源：109014 旧站 z-gg.php 的内联样式
   ============================================================ */

.marquee-ad {
    background: #fff9e6;
    border-radius: 40px;
    padding: 2px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e0b0;
    box-sizing: border-box;
    width: 100%;
}

.marquee-icon {
    font-size: 16px;
    background: #2ecc71;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.marquee-text {
    flex: 1;
    min-width: 0;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.marquee-inner {
    position: absolute;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
    animation: marquee-scroll 18s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        left: 100%;
        transform: translateY(-50%);
    }
    100% {
        left: 0%;
        transform: translate(-100%, -50%);
    }
}

.marquee-text:hover .marquee-inner {
    animation-play-state: paused;
}
