/* 弹窗公告 — 与商城前台风格一致的轻量弹层 */
.em-popup-notice-layer.layui-layer {
    max-width: 400px !important;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 24px 60px -16px rgba(15, 23, 42, 0.3) !important;
}

.em-popup-notice-layer .layui-layer-title {
    display: none !important;
}

/* 关闭按钮：layui 默认是压在右上角外的深灰实心圆，收进卡片内改成一个轻量的圆形 X */
.em-popup-notice-layer .layui-layer-setwin {
    right: 12px !important;
    top: 12px !important;
    z-index: 2;
}

.em-popup-notice-layer .layui-layer-setwin .layui-layer-close {
    position: absolute;
    right: 0;
    top: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: normal;
    line-height: 28px;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.em-popup-notice-layer .layui-layer-setwin .layui-layer-close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    opacity: 1;
}

.em-popup-notice-layer .layui-layer-content {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px;
    line-height: normal;
    box-shadow: none !important;
}

.em-popup-notice-layer .layui-layer-btn {
    display: none !important;
}

.em-popup-notice {
    overflow: hidden;
    border-radius: 16px;
}

/* 头部：图标徽章 + 标题 */
.em-popup-notice__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 46px 0 20px;
}

.em-popup-notice__badge {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4e6ef2;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    box-shadow: inset 0 0 0 1px rgba(78, 110, 242, 0.12);
}

.em-popup-notice__badge svg {
    width: 20px;
    height: 20px;
    display: block;
}

.em-popup-notice__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2937;
    word-break: break-word;
}

/* 正文 */
.em-popup-notice__scroll {
    max-height: min(50vh, 360px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.em-popup-notice__scroll::-webkit-scrollbar {
    width: 5px;
}

.em-popup-notice__scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.14);
    border-radius: 5px;
}

.em-popup-notice__body {
    padding: 14px 20px 4px;
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    word-break: break-word;
}

.em-popup-notice__body > *:first-child {
    margin-top: 0;
}

.em-popup-notice__body > *:last-child {
    margin-bottom: 0;
}

.em-popup-notice__body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 6px 0;
}

.em-popup-notice__body a {
    color: #4e6ef2;
    text-decoration: none;
}

.em-popup-notice__body a:hover {
    text-decoration: underline;
}

.em-popup-notice__body--empty {
    padding: 18px 20px 6px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

/* 底部：两个「不再提示」文字按钮 + 主按钮 */
.em-popup-notice__foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 20px 10px;
    margin-top: 8px;
    border-top: 1px solid #f1f3f7;
}

.em-popup-notice__mute {
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.em-popup-notice__mute:hover {
    color: #4e6ef2;
    background: #f2f5ff;
}

.em-popup-notice__ok {
    margin-left: auto;
    flex-shrink: 0;
    height: 36px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #5b7cfa, #4e6ef2);
    box-shadow: 0 4px 12px rgba(78, 110, 242, 0.28);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.em-popup-notice__ok:hover {
    background: linear-gradient(135deg, #4e6ef2, #3d5ce0);
    box-shadow: 0 6px 16px rgba(78, 110, 242, 0.36);
}

@media (max-width: 480px) {
    .em-popup-notice__head {
        padding: 18px 44px 0 16px;
        gap: 10px;
    }

    .em-popup-notice__badge {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .em-popup-notice__badge svg {
        width: 18px;
        height: 18px;
    }

    .em-popup-notice__title {
        font-size: 15px;
    }

    .em-popup-notice__body {
        padding: 12px 16px 4px;
    }

    .em-popup-notice__body--empty {
        padding: 16px 16px 6px;
    }

    .em-popup-notice__foot {
        padding: 12px 16px 16px;
        gap: 2px;
    }

    .em-popup-notice__mute {
        padding: 7px 8px;
    }
}
