/* 弹窗公告样式 */

/* 遮罩层 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.active {
    display: block;
}

/* 弹窗容器 */
.modal-notice {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.4s ease-out;
}

.modal-notice.active {
    display: block;
}

/* 弹窗头部 */
.modal-header {
    background: linear-gradient(135deg, rgba(123, 165, 102, 1), rgba(98, 140, 80, 1));
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.modal-header h2::before {
    content: "📢";
    margin-right: 10px;
    font-size: 24px;
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 弹窗内容 */
.modal-body {
    padding: 30px 25px;
    line-height: 1.8;
    color: #333;
}

.modal-body p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: rgba(123, 165, 102, 1);
    font-weight: bold;
}

.modal-body .highlight {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    color: #856404;
}

/* 新网址展示 */
.new-url {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid rgba(123, 165, 102, 1);
}

.new-url a {
    color: rgba(123, 165, 102, 1);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    word-break: break-all;
}

.new-url a:hover {
    text-decoration: underline;
}

/* 弹窗底部 */
.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.modal-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.modal-button {
    background: rgba(123, 165, 102, 1);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background: rgba(98, 140, 80, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 165, 102, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-notice {
        max-width: 95%;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .modal-body p {
        font-size: 14px;
    }

    .new-url a {
        font-size: 16px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
    }

    .modal-button {
        width: 100%;
    }
}
