/* 公告弹窗样式 */
.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notice-modal.show {
    display: block;
    opacity: 1;
}

.notice-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    min-width: 420px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: noticeModalIn 0.3s ease-out;
}

@keyframes noticeModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.notice-modal-header {
    background: linear-gradient(135deg, var(--p1), var(--p2));
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-modal-title::before {
    content: "📢";
    font-size: 20px;
}

.notice-modal-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 2px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.notice-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notice-modal-body {
    padding: 25px;
    color: #333;
    line-height: 1.8;
    font-size: 14px;
}

.notice-item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e6eb;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}

.notice-content {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.notice-content strong {
    color: var(--p1);
    font-weight: 600;
}

.notice-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    margin-right: 8px;
    vertical-align: middle;
}

.notice-tag.api-fix {
    background-color: #e7f2fd;
    color: var(--p1);
}

.notice-tag.site-notice {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.notice-tag.update {
    background-color: #f6ffed;
    color: #52c41a;
}

.notice-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.notice-modal-btn {
    padding: 0 20px;
    height: 32px;
    line-height: 30px;
    border-radius: 2px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.notice-modal-btn-primary {
    background-color: var(--p1);
    color: #fff;
}

.notice-modal-btn-primary:hover {
    background-color: var(--p2);
}

.notice-modal-btn-default {
    background-color: #f7f7f8;
    color: #333;
}

.notice-modal-btn-default:hover {
    background-color: #f2f3f5;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .notice-modal-content {
        min-width: 90%;
        max-width: 90%;
    }
    
    .notice-modal-header {
        padding: 15px 20px;
    }
    
    .notice-modal-title {
        font-size: 16px;
    }
    
    .notice-modal-body {
        padding: 20px;
    }
}
