/* 公告组件样式 */
.announcement-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.marquee {
    width: 100%;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.marquee-content {
    position: absolute;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    padding-right: 50px;
}

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

/* 弹窗公告样式 */
.popup-announcement {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.popup-header {
    width: 100%;
    padding: 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 16px;
    color: #333;
}

.popup-content {
    width: 100%;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.popup-footer {
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #eee;
}

.popup-btn {
    min-width: 100px;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-btn.close {
    background: #f5f5f5;
    color: #666;
}

.popup-btn:not(.close) {
    background: #1aad19;
    color: #666;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .marquee {
        width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    .marquee-content {
        width: auto;
        padding-right: 100%; /* 确保文字不会在边缘消失 */
    }
    
    .popup-announcement {
        width: 100vw;
        margin: 0;
        border-radius: 0;
    }
    
    .popup-content {
        max-height: 50vh;
    }
    
    /* 修复白边问题 */
    .layui-layer-page .layui-layer-content {
        overflow: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 弹窗遮罩层 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
} 