/* ============================================================
   页面关闭提示弹窗 —— notice-modal.css
   ------------------------------------------------------------
   视觉语言与「联系我们」页面（contact.css 中的 .form-container /
   .submit-btn / .back-btn）保持完全一致：
     半透明黑色玻璃底 + 2px 白色描边 + 8px 圆角 + 黑色外发光 + 模糊背景
   文案排版对齐 style.css 中的 .main-title / .description
   ============================================================ */

/* ---------- 遮罩层 ---------- */
.page-notice-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-notice-mask.is-open {
    display: flex;
}

.page-notice-mask.is-visible {
    opacity: 1;
}

/* ---------- 弹窗本体（= contact.css 的 .form-container 同款） ---------- */
.page-notice-dialog {
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
}

.page-notice-mask.is-visible .page-notice-dialog {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 标题（对齐 style.css 的 .main-title） ---------- */
.page-notice-title {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* ---------- 正文（对齐 style.css 的 .description） ---------- */
.page-notice-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ---------- 按钮区（对齐 contact.css 的 .form-actions） ---------- */
.page-notice-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ---------- 按钮（对齐 contact.css 的 .submit-btn / .back-btn） ---------- */
.page-notice-btn {
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.page-notice-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ---------- 入场动画（对齐 contact.css 的 slideInUp） ---------- */
@keyframes noticeSlideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 响应式（对齐 contact.css） ---------- */
@media (max-width: 768px) {
    .page-notice-dialog {
        margin: 0.5rem;
        padding: 1.5rem;
        max-width: 95%;
    }

    .page-notice-title {
        font-size: 1.4rem;
    }

    .page-notice-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .page-notice-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .page-notice-btn {
        width: 100%;
        max-width: 250px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* 移动端触摸优化 */
    .page-notice-btn {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }

    .page-notice-btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .page-notice-dialog {
        margin: 0.3rem;
        padding: 1.25rem;
        max-width: 98%;
    }

    .page-notice-title {
        font-size: 1.25rem;
    }

    .page-notice-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .page-notice-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}
