:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1a1d21;
    --muted: #5c6470;
    --border: #e2e6ec;
    --primary: #1e6b9e;
    --primary-hover: #185882;
    --danger: #c0392b;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(22, 34, 54, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.banner-wrap {
    margin: 0 -16px 12px;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #2c5364, #203a43);
}

/* 步骤条：无底色，仅文案 + 进度线 */
.step-bar-wrap {
    padding: 8px 0 16px;
    background: transparent;
    box-sizing: border-box;
}

.step-bar-host {
    margin-bottom: 0;
}

.banner-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.banner-img--hidden {
    display: none;
}

.banner-placeholder {
    display: none;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 24px 16px;
    font-size: 13px;
}

.banner-placeholder--show {
    display: block;
}

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 29, 33, 0.45);
}

.modal-overlay--hidden {
    display: none;
}

.modal-dialog {
    width: 100%;
    max-width: 340px;
    padding: 24px 22px 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(22, 34, 54, 0.2);
    border: 1px solid var(--border);
    text-align: center;
}

.modal-dialog__message {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.55;
}

.modal-dialog--success {
    background: linear-gradient(180deg, #edf8f1 0%, #e3f5ea 100%);
    border: 1px solid #7cc89a;
    box-shadow: 0 16px 48px rgba(30, 107, 70, 0.18);
}

.modal-dialog--success .modal-dialog__message {
    color: #0d5c2f;
    margin-bottom: 0;
}

.internal-tag {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.toast {
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.toast--ok {
    background: #e8f6ee;
    color: #1e6b46;
    border: 1px solid #b8dfc8;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 20px 28px;
    box-shadow: 0 8px 24px rgba(22, 34, 54, 0.08);
    border: 1px solid var(--border);
}

.step-bar {
    max-width: 100%;
}

.step-bar__labels {
    display: flex;
}

.step-bar__text {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* 第一步：仅左侧标题高亮 */
.step-bar:not(.step-bar--step2) .step-bar__text:first-child {
    color: #1e88e5;
    font-weight: 600;
}

/* 第二步：仅右侧标题高亮 */
.step-bar--step2 .step-bar__text:last-child {
    color: #1e88e5;
    font-weight: 600;
}

.step-bar__track {
    display: flex;
    margin-top: 10px;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
}

.step-bar__seg {
    flex: 1;
    height: 100%;
    background: #d5dee8;
    transition: background 0.2s ease;
}

.step-bar__seg--left {
    background: #1e88e5;
}

.step-bar__seg--right {
    background: #d5dee8;
}

/* 第二步：仅右侧进度条为高亮，左侧与未激活一致 */
.step-bar--step2 .step-bar__seg--left {
    background: #d5dee8;
}

.step-bar--step2 .step-bar__seg--right {
    background: #1e88e5;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.section + .section {
    margin-top: 24px;
}

.section--collapsed {
    display: none;
}

.field {
    display: block;
    margin-bottom: 14px;
}

.label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.15s;
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 107, 158, 0.15);
}

.error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--danger);
}

.btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #eef2f7;
    color: var(--text);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn--ghost {
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: #f8fafc;
}
