/* ==========================================================================
   预审系统 · 客户 H5
   设计基调：深蓝（信任）+ 金色（额度），大字号数字、宽松留白、底部操作
   ========================================================================== */

:root {
    --brand: #1652d8;
    --brand-deep: #0b2f7a;
    --brand-light: #2f7cf6;
    --gold: #c79a4b;
    --ink: #0e1a2f;
    --text: #26344c;
    --muted: #6b7a90;
    --line: #e5eaf3;
    --bg: #f3f6fb;
    --card: #ffffff;
    --success: #0f9d6e;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(16, 45, 100, .08);
    --shadow-sm: 0 4px 14px rgba(16, 45, 100, .06);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #e8edf6;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px 300px at 10% -5%, rgba(22, 82, 216, .10), transparent 70%),
        radial-gradient(500px 260px at 100% 100%, rgba(199, 154, 75, .08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.h5-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.h5-app {
    position: relative;
    z-index: 1;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    box-shadow: 0 0 60px rgba(14, 30, 60, .12);
    overflow: hidden;
}

@media (max-width: 480px) {
    .h5-app { box-shadow: none; }
}

a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ---------------- 导航 ---------------- */
.h5-nav {
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(229, 234, 243, .7);
}
.h5-nav--over { background: transparent; border-bottom: 0; color: #fff; }
.h5-nav__back {
    width: 38px; height: 38px; margin-left: -6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: inherit; font-size: 22px; border-radius: 50%;
}
.h5-nav__back:active { background: rgba(0, 0, 0, .06); }
.h5-nav__title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; letter-spacing: .2px; }
.h5-nav__right { min-width: 38px; text-align: right; font-size: 13px; color: var(--muted); }
.h5-nav--over .h5-nav__right { color: rgba(255, 255, 255, .85); }

/* ---------------- 品牌 ---------------- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #2f7cf6, #0b2f7a);
    color: #fff; font-size: 17px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(11, 47, 122, .35);
    letter-spacing: 0;
}
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: .5px; }

/* ---------------- 首页 ---------------- */
.hero {
    position: relative;
    padding: 18px 22px 72px;
    background: linear-gradient(155deg, #0a2a6d 0%, #124bb8 55%, #2f7cf6 100%);
    color: #fff;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    width: 260px; height: 260px; right: -90px; top: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
}
.hero::after {
    content: "";
    position: absolute;
    width: 200px; height: 200px; left: -80px; bottom: -100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
}
.hero .brand { position: relative; z-index: 2; }
.hero .brand__mark { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.hero__query {
    position: absolute; right: 18px; top: 22px; z-index: 2;
    font-size: 13px; color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 5px 12px; border-radius: 999px;
}
.hero__title {
    position: relative; z-index: 2;
    margin: 34px 0 6px;
    font-size: 29px; line-height: 1.32; font-weight: 700; letter-spacing: .5px;
}
.hero__title em { font-style: normal; color: #f3d49b; }
.hero__sub { position: relative; z-index: 2; font-size: 14px; color: rgba(255, 255, 255, .76); }
.hero__amount {
    position: relative; z-index: 2;
    margin-top: 26px;
    display: inline-flex; align-items: baseline; gap: 8px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}
.hero__amount small { font-size: 12px; color: rgba(255, 255, 255, .68); }
.hero__amount b {
    font-size: 26px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: "DIN Alternate", "Bahnschrift", "SF Pro Display", sans-serif;
    letter-spacing: .5px;
}
.hero__amount i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .6); }

.land-card {
    position: relative;
    margin: -46px 16px 0;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px 18px 18px;
    z-index: 3;
}
.land-card__title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.steps { display: flex; gap: 0; }
.step { flex: 1; text-align: center; position: relative; }
.step:not(:last-child)::after {
    content: "";
    position: absolute; top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px);
    height: 1px; background: linear-gradient(90deg, #d7e2f5, #eef3fb);
}
.step__dot {
    width: 34px; height: 34px; margin: 0 auto 8px;
    border-radius: 50%;
    background: #eef4ff; color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    position: relative; z-index: 1;
}
.step__label { font-size: 12px; color: var(--muted); }
.step__label b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 1px; }

.land-note {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 18px 0 4px;
    font-size: 12px; color: var(--muted); line-height: 1.6;
}
.land-note .ico { color: var(--brand); flex: 0 0 auto; margin-top: 1px; font-size: 15px; }

.trust {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 16px 0;
}
.trust__item {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 8px; text-align: center;
}
.trust__item .ico { font-size: 20px; color: var(--brand); }
.trust__item b { display: block; font-size: 12px; color: var(--ink); margin-top: 5px; font-weight: 600; }
.trust__item span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.advisor {
    margin: 14px 16px 0;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #fffdf7, #fff);
    border: 1px solid #f0e2c6;
    border-radius: 16px;
    padding: 12px 14px;
}
.advisor__avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(145deg, #d9b472, #b6893f);
    color: #fff; font-size: 17px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.advisor__body { flex: 1; min-width: 0; }
.advisor__body b { font-size: 14px; color: var(--ink); display: block; }
.advisor__body span { font-size: 12px; color: var(--muted); }
.advisor__call {
    width: 38px; height: 38px; border-radius: 50%;
    background: #fbf3e3; color: #a9772c;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex: 0 0 auto;
}

.land-foot {
    text-align: center; font-size: 11px; color: #9aa7ba;
    padding: 22px 24px calc(24px + var(--safe-bottom));
    line-height: 1.7;
}

/* ---------------- 通用卡片 / 按钮 ---------------- */
.stack { padding: 14px 16px calc(20px + var(--safe-bottom)); display: grid; gap: 12px; }
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 16px;
}
.card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card__head .ico { color: var(--brand); font-size: 18px; }
.card__title { font-size: 15px; font-weight: 700; color: var(--ink); }
.card__hint { font-size: 12px; color: var(--muted); margin-left: auto; }

.btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 50px;
    border: 0; border-radius: 14px;
    font-size: 16px; font-weight: 600; letter-spacing: .5px;
    background: linear-gradient(135deg, #1c5ce0, #0f3fa9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(22, 82, 216, .28);
    transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px) scale(.995); box-shadow: 0 4px 12px rgba(22, 82, 216, .24); }
.btn:disabled { opacity: .55; box-shadow: none; }
.btn--ghost {
    background: #fff; color: var(--brand);
    box-shadow: inset 0 0 0 1px #cfdcf5;
}
.btn--gold {
    background: linear-gradient(135deg, #d8ab5f, #b08234);
    box-shadow: 0 8px 20px rgba(176, 130, 52, .26);
}
.btn--sm { height: 42px; font-size: 14px; border-radius: 12px; }
.btn .ico { font-size: 18px; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------------- 表单 ---------------- */
.form-intro {
    margin: 14px 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef4ff;
    color: #31527f;
    font-size: 12px;
    line-height: 1.6;
    display: flex; gap: 8px; align-items: flex-start;
}
.form-intro .ico { color: var(--brand); font-size: 15px; flex: 0 0 auto; margin-top: 2px; }

.progress {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 16px 0;
}
.progress__item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #93a1b5; }
.progress__item i {
    width: 18px; height: 18px; border-radius: 50%;
    background: #e3e9f3; color: #8b99ad;
    display: inline-flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 10px; font-weight: 700;
}
.progress__item.is-on { color: var(--brand); }
.progress__item.is-on i { background: var(--brand); color: #fff; }
.progress__line { width: 18px; height: 1px; background: #dfe6f1; }

.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.label { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #44536b; margin-bottom: 7px; font-weight: 500; }
.label .req { color: var(--danger); font-size: 12px; }
.label .opt { color: #9aa7ba; font-size: 11px; font-weight: 400; }

.input, .textarea, .select {
    width: 100%;
    border: 1px solid #dfe5ef;
    background: #fbfcfe;
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #a8b3c4; }
.input:focus, .textarea:focus, .select:focus {
    border-color: #8fb2f2; background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 82, 216, .09);
}
.input.is-error { border-color: #f3a3a3; background: #fff8f8; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' fill='none' stroke='%238b99ad' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; min-width: 0; }

.amount-field { position: relative; }
.amount-field .input {
    padding-left: 34px;
    font-size: 22px; font-weight: 700; color: var(--brand);
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
    height: 56px;
}
.amount-field__unit {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 18px; color: var(--brand); font-weight: 600;
}
.amount-field__tail {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: #9aa7ba;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
    border: 1px solid #dfe5ef;
    background: #fff;
    color: #4c5c74;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 12.5px;
    line-height: 1;
    transition: all .15s ease;
}
.chip.is-on { border-color: var(--brand); background: #eef4ff; color: var(--brand); font-weight: 600; }
.chip:active { transform: scale(.97); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__item {
    border: 1px solid #dfe5ef; background: #fff; color: #5a6981;
    height: 42px; border-radius: 11px; font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.seg__item.is-on { border-color: var(--brand); background: #eef4ff; color: var(--brand); font-weight: 600; }
.seg__item.is-on::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; min-width: 0; letter-spacing: 4px; font-weight: 600; }
.code-btn {
    flex: 0 0 118px;
    border: 1px solid #cfdcf5; background: #eef4ff; color: var(--brand);
    border-radius: 12px; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 0 8px;
}
.code-btn:disabled { color: #a3afc1; background: #f4f6fa; border-color: #e5eaf3; }
.code-btn:active:not(:disabled) { background: #e2ecff; }

.agree { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0 2px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.agree input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.agree a { color: var(--brand); }

.submit-bar {
    position: sticky; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + var(--safe-bottom));
    background: linear-gradient(180deg, rgba(243, 246, 251, 0), rgba(243, 246, 251, .92) 26%);
}
.submit-bar .btn { box-shadow: 0 10px 24px rgba(22, 82, 216, .3); }
.submit-tip { text-align: center; font-size: 11px; color: #96a3b6; margin-top: 8px; }

/* ---------------- 结果页 ---------------- */
.result-hero {
    position: relative;
    padding: 22px 22px 68px;
    background: linear-gradient(160deg, #0a2a6d, #124bb8 62%, #2f7cf6);
    color: #fff;
    border-radius: 0 0 30px 30px;
    text-align: center;
    overflow: hidden;
}
.result-hero::before {
    content: "";
    position: absolute; width: 300px; height: 300px; right: -120px; top: -150px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}
.result-hero .brand { justify-content: center; position: relative; z-index: 2; }
.result-hero .brand__mark { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.result-hero__icon {
    width: 64px; height: 64px; margin: 22px auto 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    position: relative; z-index: 2;
}
.result-hero__icon.is-ok { background: rgba(255, 255, 255, .96); color: var(--success); border-color: #fff; }
.result-hero__icon.is-wait { background: rgba(255, 255, 255, .14); }
.result-hero__icon.is-wait .ico { animation: spin 4.5s linear infinite; }
.result-hero__icon.is-no { background: rgba(255, 255, 255, .12); color: #ffd8d8; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-hero__title { position: relative; z-index: 2; font-size: 20px; font-weight: 700; margin: 0; }
.result-hero__sub { position: relative; z-index: 2; font-size: 13px; color: rgba(255, 255, 255, .72); margin-top: 6px; }
.result-hero__money {
    position: relative; z-index: 2;
    margin: 22px auto 0;
    font-family: "DIN Alternate", "Bahnschrift", "SF Pro Display", sans-serif;
    font-size: 46px; font-weight: 700; letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.result-hero__money small { font-size: 18px; font-weight: 600; margin-right: 4px; }
.result-hero__money-note { position: relative; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 8px; }

.result-body { margin-top: -42px; padding: 0 16px calc(24px + var(--safe-bottom)); position: relative; z-index: 3; display: grid; gap: 12px; }
.result-main {
    background: #fff; border-radius: 20px; box-shadow: var(--shadow);
    padding: 18px 16px;
}
.result-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-status__label { font-size: 12px; color: var(--muted); }
.result-status__value { font-size: 14px; font-weight: 600; color: var(--ink); }
.pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.pill--wait { background: #fff7e8; color: #b7791f; }
.pill--ok { background: #e9f8f1; color: #0f8a61; }
.pill--no { background: #fdecec; color: #c53030; }
.pill--info { background: #eef4ff; color: var(--brand); }

.result-amount-line {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 14px 0 12px; border-bottom: 1px dashed var(--line);
}
.result-amount-line:last-child { border-bottom: 0; padding-bottom: 0; }
.result-amount-line span { font-size: 13px; color: var(--muted); }
.result-amount-line b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-amount-line b.is-brand { color: var(--brand); }

.info-list { display: grid; gap: 11px; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 13px; }
.info-row span { color: var(--muted); flex: 0 0 auto; }
.info-row b { color: var(--ink); font-weight: 500; text-align: right; word-break: break-all; }

.actions { display: grid; gap: 10px; }
.actions .btn { height: 52px; }
.actions__hint { text-align: center; font-size: 11px; color: #98a5b8; }

.banner {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: 14px;
    font-size: 13px; line-height: 1.6;
}
.banner--ok { background: #e9f8f1; color: #0c6f4e; border: 1px solid #c8ecdc; }
.banner--warn { background: #fff8e9; color: #8a5a12; border: 1px solid #f3e0b8; }
.banner--no { background: #fdf0f0; color: #a12626; border: 1px solid #f5d3d3; }
.banner .ico { font-size: 17px; flex: 0 0 auto; margin-top: 1px; }
.banner b { font-weight: 700; }

.section-line { display: flex; align-items: center; gap: 8px; margin: 2px 2px 0; }
.section-line b { font-size: 13px; color: var(--ink); font-weight: 600; }
.section-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.timeline { display: grid; gap: 0; }
.timeline__item { display: flex; gap: 10px; position: relative; padding-bottom: 16px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
    width: 9px; height: 9px; border-radius: 50%; background: #cfdcf5;
    margin-top: 5px; flex: 0 0 auto; position: relative; z-index: 1;
}
.timeline__item:not(:last-child)::before {
    content: ""; position: absolute; left: 4px; top: 14px; bottom: 0;
    width: 1px; background: #e3eaf5;
}
.timeline__item.is-on .timeline__dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(22, 82, 216, .1); }
.timeline__body { flex: 1; min-width: 0; }
.timeline__body b { font-size: 13px; color: var(--ink); font-weight: 600; display: block; }
.timeline__body span { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.55; }

/* ---------------- 弹层 ---------------- */
.h5-mask {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(10, 22, 45, .48);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
    display: flex; align-items: flex-end; justify-content: center;
}
.h5-mask.is-open { opacity: 1; pointer-events: auto; }
.h5-sheet {
    width: 100%; max-width: 480px;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 8px 18px calc(18px + var(--safe-bottom));
    transform: translateY(24px);
    transition: transform .24s cubic-bezier(.2, .8, .3, 1);
    max-height: 86vh;
    overflow-y: auto;
}
.h5-mask.is-open .h5-sheet { transform: translateY(0); }
.sheet__grab { width: 38px; height: 4px; border-radius: 2px; background: #e2e8f2; margin: 4px auto 12px; }
.sheet__title { font-size: 18px; font-weight: 700; color: var(--ink); text-align: center; margin: 2px 0 4px; }
.sheet__sub { text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.sheet__close {
    position: absolute; right: 14px; top: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: #f2f5fa; color: #76859b; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

.issue-list { display: grid; gap: 8px; margin: 4px 0 16px; }
.issue {
    display: flex; align-items: center; gap: 9px;
    background: #fff8f6; border: 1px solid #f6dfd9;
    color: #8c3a24; border-radius: 12px;
    padding: 11px 12px; font-size: 13.5px;
}
.issue .ico { color: #d26a4a; font-size: 17px; flex: 0 0 auto; }
.issue b { font-weight: 600; }

.contact-box {
    background: #f7f9fd; border-radius: 14px; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
}
.contact-box__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(145deg, #d9b472, #b6893f);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex: 0 0 auto;
}
.contact-box__body { flex: 1; min-width: 0; }
.contact-box__body b { display: block; font-size: 14px; color: var(--ink); }
.contact-box__body span { font-size: 12px; color: var(--muted); }
.contact-box__phone {
    height: 36px; padding: 0 14px; border-radius: 999px;
    background: var(--brand); color: #fff; border: 0; font-size: 13px;
    display: inline-flex; align-items: center; gap: 5px;
}

/* ---------------- 提额页 ---------------- */
.amount-banner {
    margin: 14px 16px 0;
    background: linear-gradient(150deg, #0b2f7a, #1652d8 70%, #2f7cf6);
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    box-shadow: 0 12px 26px rgba(11, 47, 122, .22);
}
.amount-banner small { font-size: 12px; color: rgba(255, 255, 255, .68); display: block; }
.amount-banner b {
    font-family: "DIN Alternate", "Bahnschrift", "SF Pro Display", sans-serif;
    font-size: 36px; font-weight: 700; letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
}
.amount-banner b i { font-style: normal; font-size: 16px; font-weight: 600; margin-right: 3px; }
.amount-banner .pill { background: rgba(255, 255, 255, .16); color: #fff; }

.upload-block { border: 1px dashed #d6deeb; border-radius: 14px; padding: 12px; background: #fbfcfe; }
.upload-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.upload-block__head b { font-size: 13px; color: var(--ink); font-weight: 600; }
.upload-block__head span { font-size: 11px; color: #93a1b5; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.upload-add {
    aspect-ratio: 1 / 1;
    border: 1px dashed #cbd6e6; border-radius: 11px;
    background: #fff; color: #8b99ad;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 11px;
}
.upload-add .ico { font-size: 20px; color: var(--brand); }
.upload-add:active { background: #f5f9ff; }
.upload-item {
    position: relative; aspect-ratio: 1 / 1; border-radius: 11px; overflow: hidden;
    background: #eef2f8; border: 1px solid #e2e8f2;
}
.upload-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-item__file {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; font-size: 10px; color: #6b7a90; padding: 6px; text-align: center; word-break: break-all;
}
.upload-item__file .ico { font-size: 22px; color: #b45309; }
.upload-item__del {
    position: absolute; right: 3px; top: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    border: 0; background: rgba(14, 26, 47, .6); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.upload-item__loading {
    position: absolute; inset: 0; background: rgba(255, 255, 255, .82);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand); font-size: 11px;
}

/* ---------------- 提交成功 / 查询 ---------------- */
.query-hero { padding: 24px 22px 56px; background: linear-gradient(160deg, #0b2f7a, #1652d8); color: #fff; border-radius: 0 0 28px 28px; }
.query-hero h1 { font-size: 22px; margin: 14px 0 4px; }
.query-hero p { font-size: 13px; color: rgba(255, 255, 255, .72); margin: 0; }
.query-card { margin: -34px 16px 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px 16px; }

.empty-state { padding: 70px 30px; text-align: center; }
.empty-state__icon {
    width: 74px; height: 74px; margin: 0 auto 18px;
    border-radius: 50%; background: #eef4ff; color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.empty-state h1 { font-size: 18px; color: var(--ink); margin: 0 0 6px; }
.empty-state p { font-size: 13px; color: var(--muted); margin: 0 0 20px; line-height: 1.7; }

/* ---------------- 协议 ---------------- */
.doc { padding: 18px 18px calc(28px + var(--safe-bottom)); }
.doc h1 { font-size: 18px; margin: 4px 0 14px; color: var(--ink); }
.doc h2 { font-size: 14px; margin: 18px 0 6px; color: var(--ink); }
.doc p { font-size: 13px; color: #4d5c73; line-height: 1.85; margin: 0 0 8px; }

/* ---------------- Toast ---------------- */
.h5-toast {
    position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%);
    max-width: 78%; padding: 11px 16px;
    background: rgba(14, 26, 47, .88); color: #fff;
    border-radius: 10px; font-size: 13.5px; line-height: 1.5;
    z-index: 200; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity .18s ease;
    backdrop-filter: blur(6px);
}
.h5-toast.is-show { opacity: 1; }
.h5-toast.is-error { background: rgba(164, 38, 38, .94); }
.h5-toast.is-success { background: rgba(11, 110, 79, .94); }

.loading-inline { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }

/* ---------------- 微交互 ---------------- */
.fade-up { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.money-flash { animation: moneyFlash .9s ease; }
@keyframes moneyFlash { 0% { transform: scale(.97); opacity: .6; } 60% { transform: scale(1.02); } 100% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
