/**
 * 全站统一的表单提交反馈弹窗（替代原生 alert）。
 * 成功：绿色对勾圆环 + 描边动画；失败：红色警示。
 * 配色沿用既有内联提示条基线（成功 #e7f7ee/#1f7a44，失败 #fdecec/#b23b3b，主色 #17325c）。
 */
.ms-fb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}
.ms-fb.is-open {
    visibility: visible;
    opacity: 1;
}
.ms-fb__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 45, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.ms-fb__dialog {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 18px;
    padding: 38px 32px 28px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(11, 24, 42, .32);
    transform: translateY(22px) scale(.94);
    opacity: 0;
    transition: transform .34s cubic-bezier(.22, 1.15, .4, 1), opacity .28s ease;
}
.ms-fb.is-open .ms-fb__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.ms-fb__close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #9aa7b4;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: .2s;
}
.ms-fb__close:hover {
    background: #f2f4f7;
    color: #17325c;
}

/* ---------- 图标圆环 ---------- */
.ms-fb__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f7ee;
}
.ms-fb__icon svg {
    width: 42px;
    height: 42px;
    overflow: visible;
}
.ms-fb__icon circle {
    fill: none;
    stroke: #1f7a44;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: ms-fb-ring .55s ease forwards;
}
.ms-fb__icon path {
    fill: none;
    stroke: #1f7a44;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: ms-fb-mark .4s .4s ease forwards;
}
@keyframes ms-fb-ring {
    to { stroke-dashoffset: 0; }
}
@keyframes ms-fb-mark {
    to { stroke-dashoffset: 0; }
}

/* ---------- 失败态 ---------- */
.ms-fb.is-error .ms-fb__icon {
    background: #fdecec;
}
.ms-fb.is-error .ms-fb__icon circle,
.ms-fb.is-error .ms-fb__icon path {
    stroke: #b23b3b;
}
.ms-fb__ring-pulse {
    position: absolute;
    top: 38px;
    left: 50%;
    width: 76px;
    height: 76px;
    margin-left: -38px;
    border-radius: 50%;
    border: 2px solid #1f7a44;
    opacity: 0;
    animation: ms-fb-pulse 1.6s .5s ease-out infinite;
    pointer-events: none;
}
.ms-fb.is-error .ms-fb__ring-pulse {
    border-color: #b23b3b;
}
@keyframes ms-fb-pulse {
    0%   { transform: scale(1);    opacity: .45; }
    70%  { transform: scale(1.42); opacity: 0; }
    100% { transform: scale(1.42); opacity: 0; }
}

/* ---------- 文案与按钮 ---------- */
.ms-fb__title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 600;
    color: #17325c;
    letter-spacing: .2px;
}
.ms-fb.is-error .ms-fb__title {
    color: #b23b3b;
}
.ms-fb__text {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.75;
    color: #5a6b7b;
    word-break: break-word;
}
.ms-fb__btn {
    display: inline-block;
    min-width: 148px;
    padding: 12px 34px;
    border: 0;
    border-radius: 26px;
    background: #17325c;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
}
.ms-fb__btn:hover {
    background: #0f2544;
}
.ms-fb.is-error .ms-fb__btn {
    background: #b23b3b;
}
.ms-fb.is-error .ms-fb__btn:hover {
    background: #96312f;
}
@media (max-width: 480px) {
    .ms-fb__dialog { padding: 34px 22px 24px; }
    .ms-fb__title  { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-fb, .ms-fb__dialog { transition: none; }
    .ms-fb__icon circle, .ms-fb__icon path { animation: none; stroke-dashoffset: 0; }
    .ms-fb__ring-pulse { display: none; }
}
