:root {
    --primary: #1677ff;
    --primary-hover: #4096ff;
    --success: #52c41a;
    --danger: #ff4d4f;
    --warning: #fa8c16;
    --text: #262626;
    --text-2: #595959;
    --text-3: #8c8c8c;
    --border: #d9d9d9;
    --border-soft: #f0f0f0;
    --bg-soft: #f5f7fa;
    --radius: 6px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ---------- 落地页 ---------- */
.page {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(22, 119, 255, .14), transparent 65%),
        radial-gradient(760px 380px at 92% 8%, rgba(82, 196, 26, .10), transparent 62%),
        var(--bg-soft);
}

.site-header {
    height: 64px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #1677ff, #4096ff);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    font-size: 15px;
    font-weight: 600;
}

.brand-text em {
    font-style: normal;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-3);
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
}

.header-nav a:hover { color: var(--primary); }

.landing {
    padding: 88px 24px 64px;
}

.landing-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.landing-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(22, 119, 255, .10);
    color: var(--primary);
    font-size: 12px;
    letter-spacing: .3px;
}

.landing h1 {
    margin: 20px 0 16px;
    font-size: 38px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: .5px;
}

.landing-desc {
    margin: 0 auto;
    max-width: 520px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.75;
}

.feature-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 34px 0 36px;
    flex-wrap: wrap;
}

.feature {
    min-width: 130px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature strong {
    font-size: 18px;
    color: var(--primary);
}

.feature span {
    font-size: 12px;
    color: var(--text-3);
}

/* ---------- 按钮 ---------- */
.btn {
    height: 38px;
    padding: 0 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-primary:active { background: #0958d9; border-color: #0958d9; }

.btn-ghost {
    background: #fff;
    border-color: var(--border);
    color: var(--text-2);
}

.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }

.btn-lg {
    height: 46px;
    padding: 0 38px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(22, 119, 255, .24);
}

/* ---------- 弹窗 ---------- */
.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .45);
    overflow-y: auto;
}

.modal {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.modal-head {
    position: relative;
    padding: 20px 24px 2px;
}

.modal-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .2px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-3);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s, color .18s;
}

.modal-close:hover { background: #f5f5f5; color: var(--text); }

/* ---------- 步骤条 ---------- */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex: none;
    transition: background-color .2s, border-color .2s, color .2s;
}

.step-dot i {
    font-style: normal;
    line-height: 1;
}

.dot-check { display: none; font-size: 12px; }

.step.is-active { color: var(--text); }

.step.is-active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step.is-done .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step.is-done .dot-num { display: none; }
.step.is-done .dot-check { display: block; }

.step-label { font-size: 13px; white-space: nowrap; }

.step-line {
    width: 72px;
    height: 2px;
    margin: 0 12px;
    background: #e8e8e8;
    transition: background-color .2s;
}

.step-line.is-done { background: var(--primary); }

/* ---------- 表单 ---------- */
.modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 8px;
}

.step-panel {
    padding-top: 4px;
}

.form-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.form-label {
    flex: none;
    width: 84px;
    padding-top: 10px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 18px;
}

.form-label::before {
    content: "*";
    margin-right: 4px;
    visibility: hidden;
    font-family: SimSun, sans-serif;
}

.form-label.req::before {
    visibility: visible;
    color: var(--danger);
}

.form-control {
    flex: 1;
    min-width: 0;
}

.form-control-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 7px;
}

.input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.input::placeholder { color: #bfbfbf; }

.input:hover { border-color: #4096ff; }

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}

.textarea {
    height: 76px;
    padding: 9px 12px;
    resize: vertical;
    line-height: 1.5;
    min-height: 76px;
}

.form-row.is-error .input {
    border-color: var(--danger);
}

.form-row.is-error .input:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 79, .12);
}

.error-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--danger);
    line-height: 1.4;
}

/* ---------- 单选 ---------- */
.radio-group {
    display: flex;
    gap: 28px;
    padding-top: 9px;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    user-select: none;
}

.radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    position: relative;
    flex: none;
    transition: border-color .18s;
}

.radio-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform .16s ease;
}

.radio:hover .radio-dot { border-color: var(--primary); }

.radio.is-checked .radio-dot { border-color: var(--primary); }
.radio.is-checked .radio-dot::after { transform: scale(1); }

/* ---------- 自定义下拉 ---------- */
.select {
    position: relative;
}

.select-trigger {
    width: 100%;
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    text-align: left;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.select-trigger:hover { border-color: #4096ff; }

.select.is-open .select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}

.select-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 1.5px solid #8c8c8c;
    border-bottom: 1.5px solid #8c8c8c;
    transform: rotate(45deg);
    transition: transform .2s, margin-top .2s;
}

.select.is-open .select-arrow {
    transform: rotate(-135deg);
    margin-top: -1px;
}

.select-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 0;
    padding: 4px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.select.is-open .select-panel { display: block; }

.combo { position: relative; }

.combo-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 0;
    padding: 4px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    max-height: 232px;
    overflow-y: auto;
    display: none;
}

.combo-panel.is-open { display: block; }

.combo-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.combo-option:hover,
.combo-option.is-active { background: #f5f5f5; }

.combo-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.combo-name mark {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
}

.combo-tag {
    flex: none;
    font-size: 12px;
    color: var(--text-3);
}

.combo-empty {
    padding: 10px;
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
}

.select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0 10px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: var(--text);
}

.select-option em {
    font-style: normal;
    font-size: 13px;
    color: var(--text-3);
}

.select-option:hover { background: #f5f5f5; }

.select-option.is-selected {
    background: var(--primary);
    color: #fff;
}

.select-option.is-selected em { color: rgba(255, 255, 255, .88); }

/* ---------- 开关 ---------- */
.switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.switch-track {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #bfbfbf;
    position: relative;
    transition: background-color .2s;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s;
}

.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }

.switch-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 8px;
}

.switch-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.switch-text {
    font-size: 14px;
    color: var(--text-2);
}

.switch-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--warning);
    line-height: 1.4;
}

/* ---------- 提示条 ---------- */
.hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 4px 96px;
    padding: 9px 12px;
    border: 1px solid #91caff;
    border-radius: var(--radius);
    background: #e6f4ff;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
}

.hint-icon {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-style: italic;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

/* ---------- 快递单号 / 上传文件 ---------- */
.field-tip {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.file-summary {
    font-size: 13px;
    color: var(--text-3);
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-primary {
    background: #fff;
    border-color: #91caff;
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: #e6f4ff;
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-danger:hover { background: #ff7875; border-color: #ff7875; }

.btn-danger-ghost {
    background: #fff;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger-ghost:hover { background: var(--danger); color: #fff; }

.form-row.is-error .file-picker .btn-outline-primary {
    border-color: var(--danger);
    color: var(--danger);
}

/* ---------- 文件列表管理 ---------- */
.file-layer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .45);
    overflow-y: auto;
}

.file-modal {
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.file-head {
    position: relative;
    padding: 18px 24px 12px;
    border-bottom: 1px solid var(--border-soft);
}

.file-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.file-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 24px 18px;
}

.file-warn {
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 4px;
    background: #fff1f0;
    color: var(--danger);
    font-size: 13px;
    line-height: 1.5;
}

.file-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

.file-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.file-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-3);
}

.file-table-wrap {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: auto;
}

.file-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 13px;
}

.file-table th {
    padding: 9px 10px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-2);
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.file-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.file-table tr:last-child td { border-bottom: 0; }

.file-table .col-op { width: 64px; }

.file-name {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-copies,
.file-pages {
    width: 58px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
}

.file-table select {
    height: 30px;
    padding: 0 4px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    outline: none;
}

.file-copies:focus,
.file-pages:focus,
.file-table select:focus {
    border-color: var(--primary);
}

.file-del {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    font-size: 13px;
    cursor: pointer;
}

.file-del:hover { text-decoration: underline; }

.file-empty td {
    padding: 24px 0;
    text-align: center;
    color: var(--text-3);
}

.file-foot {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 16px;
}

.file-foot .btn { min-width: 96px; }

/* ---------- 价格 ---------- */
.price-line {
    margin: 10px 0 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    text-align: right;
    font-size: 14px;
    color: var(--text-2);
}

.price-line strong {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.price-detail {
    margin-left: 6px;
    color: var(--text-3);
    font-size: 12px;
}

/* ---------- 底部 ---------- */
.modal-foot {
    flex: none;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--border-soft);
    background: #fff;
}

.modal-foot .btn { min-width: 84px; }

/* ---------- 成功页 ---------- */
.success-panel {
    padding: 40px 28px 32px;
    text-align: center;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f6ffed;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-panel h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.success-panel > p {
    margin: 0 0 24px;
    color: var(--text-3);
    font-size: 13px;
}

.success-pay {
    max-width: 380px;
    margin: 0 auto 22px;
    padding: 12px 16px;
    border: 1px solid #ffe0a3;
    border-radius: 8px;
    background: #fff7e6;
    text-align: left;
}

.success-pay strong {
    display: block;
    margin-bottom: 4px;
    color: var(--warning);
    font-size: 14px;
    font-weight: 600;
}

.success-pay span {
    color: #8c5a00;
    font-size: 12px;
    line-height: 1.6;
}

.success-rows {
    margin: 0 auto 26px;
    max-width: 380px;
    padding: 6px 16px;
    border-radius: 8px;
    background: #fafafa;
}

.success-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed #ededed;
    font-size: 13px;
    color: var(--text-2);
    text-align: left;
}

.success-row:last-child { border-bottom: 0; }

.success-row strong { color: var(--text); font-weight: 600; }

.btn-done {
    min-width: 160px;
    height: 40px;
}

/* ---------- 订单查询 ---------- */
.modal-sm { max-width: 480px; }

.query-tip {
    margin: 0 0 14px;
    padding-left: 96px;
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
}

.query-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 4px;
}

.order-card {
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: #fafcff;
}

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.order-company {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.order-status {
    flex: none;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(22, 119, 255, .1);
    color: var(--primary);
    font-size: 12px;
}

.order-status.is-done {
    background: rgba(82, 196, 26, .14);
    color: #389e0d;
}

.order-meta { margin: 0; }

.order-meta-row {
    display: flex;
    gap: 12px;
    font-size: 13px;
    line-height: 22px;
}

.order-meta-row + .order-meta-row { margin-top: 2px; }

.order-meta-row dt {
    flex: none;
    width: 60px;
    color: var(--text-3);
}

.order-meta-row dd {
    flex: 1;
    margin: 0;
    color: var(--text);
    word-break: break-all;
}

.order-meta-row dd.is-muted { color: var(--text-3); }

.tracking-no {
    letter-spacing: .3px;
    font-variant-numeric: tabular-nums;
}

.copy-btn {
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
}

.copy-btn:hover { color: var(--primary-hover); }

.query-empty {
    margin: 0 0 14px;
    padding: 22px 16px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .site-header {
        height: 58px;
        padding: 0 16px;
    }

    .header-nav { gap: 16px; }

    .header-nav a { font-size: 13px; }

    .brand-text em { display: none; }

    .landing { padding: 56px 20px 48px; }

    .landing h1 { font-size: 28px; }

    .landing-desc { font-size: 14px; }

    .feature-row { gap: 10px; margin: 28px 0 30px; }

    .feature { min-width: 0; flex: 1; padding: 12px 10px; }

    .feature strong { font-size: 16px; }

    .modal-layer {
        padding: 0;
        align-items: stretch;
    }

    .modal {
        max-width: none;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    .modal-head {
        padding: calc(14px + env(safe-area-inset-top)) 16px 2px;
    }

    .steps { padding: 12px 16px 18px; }

    .step-line { width: 48px; margin: 0 8px; }

    .modal-body { padding: 0 16px 8px; }

    .form-row {
        flex-direction: column;
        gap: 6px;
        padding: 7px 0;
    }

    .form-label {
        width: auto;
        padding-top: 0;
    }

    .form-control { width: 100%; }

    .form-control-inline { padding-top: 2px; }

    .hint { margin: 6px 0 4px; }

    .query-tip { padding-left: 0; }

    .modal-foot {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .modal-foot .btn { flex: 1; min-width: 0; }

    .success-panel { padding: 40px 20px 28px; }

    .success-row { font-size: 13px; }

    .file-layer { padding: 0; align-items: stretch; }

    .file-modal {
        max-width: none;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    .file-head { padding: calc(14px + env(safe-area-inset-top)) 16px 12px; }

    .file-body { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }

    .file-table { min-width: 560px; }

    .file-toolbar { flex-wrap: wrap; }

    .file-count { margin-left: 0; width: 100%; }

    .file-foot .btn { flex: 1; min-width: 0; }
}

@media (max-width: 360px) {
    .step-label { font-size: 12px; }
    .step-line { width: 32px; }
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.toast {
    position: fixed;
    left: 50%;
    top: 24px;
    z-index: 3000;
    max-width: min(90vw, 420px);
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
