/* ===========================================================
   框架跳转提示页（成功 / 提示 / 出错）
   独立文件：避免 @keyframes 的嵌套大括号被 ThinkPHP 模板引擎误解析
   =========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: #f6f4f2;
    color: #2f3237;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
a { text-decoration: none; color: inherit; }

/* 顶部校红色带 */
body::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #a12038;
}

.sheet {
    width: 100%;
    max-width: 460px;
    animation: jd-rise .45s cubic-bezier(.16, 1, .3, 1) both;
}

.brand { margin-bottom: 14px; }
.brand-logo { display: block; height: 46px; width: auto; max-width: 100%; }

.card {
    background: #fff;
    border: 1px solid #e6e3df;
    border-radius: 4px;
    padding: 30px 28px 26px;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #6f6a63;
    color: #fff;
    animation: jd-pop .5s cubic-bezier(.16, 1, .3, 1) .06s both;
}
.icon svg { display: block; width: 26px; height: 26px; }

.card h1 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
    color: #23262b;
}

.hint { font-size: 13.5px; line-height: 1.7; color: #7b7f86; }
.hint b { font-variant-numeric: tabular-nums; color: #3c4046; font-weight: 500; }

.bar { margin-top: 14px; height: 2px; background: #efedea; overflow: hidden; }
.bar i {
    display: block;
    height: 100%;
    background: #6f6a63;
    transform-origin: left center;
    animation-name: jd-shrink;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.ops { display: flex; gap: 10px; margin-top: 22px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1;
    border: 1px solid transparent;
    transition: background-color .18s, border-color .18s, color .18s, transform .12s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: #a12038; border-color: #a12038; color: #fff; }
.btn-primary:hover { background: #8a1a2f; border-color: #8a1a2f; }
.btn-ghost { background: #fff; border-color: #dcd8d3; color: #55585e; }
.btn-ghost:hover { border-color: #c3bdb6; color: #2f3237; }

.cr { margin-top: 16px; font-size: 11.5px; color: #a8a49e; text-align: center; }

/* 成功：墨绿 / 提示：黛蓝 / 失败：校红 */
.success .icon { background: #4d6852; }
.success .bar i { background: #4d6852; }
.info .icon { background: #43596f; }
.info .bar i { background: #43596f; }
.error .icon { background: #a12038; }
.error .bar i { background: #a12038; }

@keyframes jd-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes jd-pop {
    from { opacity: 0; transform: scale(.86); }
    to { opacity: 1; transform: none; }
}
@keyframes jd-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 480px) {
    .card { padding: 24px 20px 22px; }
    .ops { flex-direction: column; }
    .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .sheet, .icon { animation: none; }
    .bar i { animation: none; transform: scaleX(1); }
}
