.xgt-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 12950;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.xgt-notice-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.xgt-notice-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    transform: scale(.96) translateY(8px);
    transition: transform .25s ease;
    overflow: hidden;
}

.xgt-notice-overlay.is-open .xgt-notice-modal {
    transform: scale(1) translateY(0);
}

.xgt-notice-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #909399;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.xgt-notice-close:hover {
    background: #f5f5f5;
    color: #606266;
}

.xgt-notice-body {
    padding: 28px 28px 20px;
}

.xgt-notice-title {
    margin: 0 0 16px;
    padding-right: 36px;
    font-size: 20px;
    font-weight: 600;
    color: #303133;
    line-height: 1.4;
}

.xgt-notice-content {
    font-size: 14px;
    color: #606266;
    line-height: 1.75;
}

.xgt-notice-content p {
    margin: 0 0 10px;
}

.xgt-notice-content p:last-child {
    margin-bottom: 0;
}

.xgt-notice-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 28px 24px;
}

.xgt-notice-btn-ghost,
.xgt-notice-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}

.xgt-notice-btn-ghost {
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
}

.xgt-notice-btn-ghost:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background: #ecf5ff;
}

.xgt-notice-btn-primary {
    border: 1px solid #409eff;
    background: #409eff;
    color: #fff;
}

.xgt-notice-btn-primary:hover {
    background: #66b1ff;
    border-color: #66b1ff;
    color: #fff;
}

body.xgt-notice-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .xgt-notice-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .xgt-notice-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .xgt-notice-body {
        padding: 24px 20px 16px;
    }

    .xgt-notice-footer {
        padding: 0 20px calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .xgt-notice-footer {
        flex-direction: row-reverse;
    }

    .xgt-notice-btn-ghost,
    .xgt-notice-btn-primary {
        flex: 1;
    }
}
