/* 公告弹窗样式 */
.as-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.as-popup-show {
    transform: translateX(0);
    opacity: 1;
}

/* 弹窗头部 */
.as-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.as-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.as-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.as-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 弹窗内容 */
.as-popup-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
}

.as-popup-content p {
    margin: 0 0 10px 0;
}

.as-popup-content p:last-child {
    margin-bottom: 0;
}

.as-popup-content a {
    color: #667eea;
    text-decoration: none;
}

.as-popup-content a:hover {
    text-decoration: underline;
}

/* 弹窗底部 */
.as-popup-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.as-popup-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.as-popup-actions {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e1e5e9;
}

.as-popup-dismiss-today {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.as-popup-dismiss-today:hover {
    background: #f0f0f0;
    border-color: #999;
    color: #333;
}

.as-popup-prev,
.as-popup-next {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.as-popup-prev:hover,
.as-popup-next:hover {
    background: #5a6fd8;
}

.as-popup-counter {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* 滚动条样式 */
.as-popup-content::-webkit-scrollbar {
    width: 6px;
}

.as-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.as-popup-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.as-popup-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .as-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .as-popup-header {
        padding: 12px 15px;
    }
    
    .as-popup-title {
        font-size: 14px;
    }
    
    .as-popup-content {
        padding: 15px;
        max-height: 250px;
    }
    
    .as-popup-footer {
        padding: 12px 15px;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 加载动画 */
.as-popup-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* 空状态 */
.as-popup-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* 高优先级公告样式 */
.as-popup-high-priority .as-popup-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* 中等优先级公告样式 */
.as-popup-medium-priority .as-popup-header {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

/* 低优先级公告样式 */
.as-popup-low-priority .as-popup-header {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}
