:root { color-scheme: light; --blue:#445cab; --blue-dark:#304989; --ink:#253452; --muted:#7a849b; --yellow:#fff16a; --line:#e8ecf3; --paper:#f6f8fc; font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; color:var(--ink); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; background:#e9edf6; font-size:14px; line-height:1.7; -webkit-text-size-adjust:100%; }
button,input,select { font:inherit; }
button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
button { border:0; }
a, button, input, select, summary { touch-action:manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #d6ad13; outline-offset:3px; }
svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
[hidden] { display:none!important; }
h1,h2,p { margin:0; }
h1:focus { outline:none; }
.app-shell { max-width:480px; margin:auto; min-height:100vh; min-height:100svh; background:var(--paper); box-shadow:0 0 80px #33477512; }
.app-header { min-height:76px; padding:calc(18px + env(safe-area-inset-top,0px)) 22px 18px; background:white; display:flex; align-items:center; gap:12px; position:sticky; top:0; z-index:5; border-bottom:1px solid #edf0f6; }
.brand { display:block; width:126px; height:auto; }
.preview-badge { margin-left:auto; border:1px solid #dfe5f1; border-radius:6px; padding:2px 8px; font-size:10px; color:var(--muted); letter-spacing:.04em; }
.header-title { font-size:16px; font-weight:700; }
.icon-button { display:grid; place-items:center; width:36px; height:36px; margin-left:-8px; background:transparent; color:var(--ink); }
main { padding:26px 22px calc(110px + env(safe-area-inset-bottom,0px)); }
.eyebrow { color:var(--blue); font-size:11px; font-weight:700; letter-spacing:.08em; }
.welcome h1 { font-size:29px; line-height:1.55; letter-spacing:.02em; margin:9px 0 12px; font-weight:750; }
.muted { font-size:12px; color:var(--muted); }
.amount-card { background:var(--yellow); padding:22px; border-radius:22px; margin:25px 0; color:var(--blue-dark); box-shadow:0 7px 22px #d5c24712; }
.card-heading { display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:700; gap:8px; }
.small-tag { border:1px solid #d9cb56; border-radius:20px; padding:2px 8px; font-size:9px; font-weight:500; }
.amount-value { display:flex; align-items:baseline; gap:8px; margin:13px 0 20px; line-height:1.3; font-variant-numeric:tabular-nums; }
.amount-value>span { font-size:25px; font-weight:650; }
.amount-value strong { font-size:45px; font-weight:750; letter-spacing:-.03em; }
.amount-value .currency { font-size:13px; font-weight:500; }
.amount-options { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; padding:0; margin:0 0 20px; border:0; }
.amount-options label { position:relative; cursor:pointer; }
.amount-options input { position:absolute; opacity:0; width:1px; height:1px; }
.amount-options span { display:block; text-align:center; border:1px solid #ded15b; border-radius:9px; padding:10px 0; font-size:12px; background:#ffffff65; }
.amount-options input:checked+span { background:white; border-color:var(--blue); box-shadow:0 0 0 1px var(--blue); font-weight:700; }
.amount-options input:focus-visible+span { outline:3px solid var(--blue); outline-offset:3px; }
.primary-button { width:100%; display:flex; justify-content:center; align-items:center; gap:16px; min-height:56px; padding:15px 16px; background:var(--blue); color:white; border-radius:12px; font-size:14px; font-weight:700; letter-spacing:.02em; transition:background .15s; }
.primary-button:hover { background:var(--blue-dark); }
.primary-button svg { width:20px; }
.card-footnote { font-size:9px; color:#797748; text-align:center; margin-top:12px; }
.flow-card { background:white; padding:20px 18px; border-radius:18px; border:1px solid var(--line); }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.section-heading h2 { font-size:14px; }
.section-heading>span { font-size:9px; letter-spacing:.12em; color:var(--muted); }
.flow-list { margin:23px 0 2px; padding:0; display:flex; list-style:none; }
.flow-list li { width:33.333%; display:flex; align-items:center; flex-direction:column; position:relative; }
.flow-list li+li:before { content:""; position:absolute; width:16px; height:1px; background:#d5ddef; left:-8px; top:24px; }
.step-icon { background:#f0f3fb; color:var(--blue); width:48px; height:48px; display:grid; place-items:center; border-radius:16px; }
.flow-number { color:var(--blue); font-size:9px; font-weight:700; margin:10px 0 3px; letter-spacing:.08em; }
.flow-list strong { font-size:11px; }
.flow-list small { font-size:9px; color:var(--muted); margin-top:4px; }
.guide-card { display:flex; align-items:center; gap:12px; width:100%; margin-top:18px; padding:18px; border-radius:16px; background:white; color:var(--ink); text-align:left; text-decoration:none; border:1px solid var(--line); }
.guide-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#fff8cd; color:var(--blue); font-size:20px; font-weight:700; }
.guide-card strong,.guide-card small { display:block; }
.guide-card strong { font-size:12px; }
.guide-card small { color:var(--muted); font-size:10px; margin-top:3px; }
.guide-card svg { margin-left:auto; width:17px; color:var(--blue); }
.preview-note { position:relative; color:var(--muted); font-size:9px; line-height:1.9; padding-left:23px; margin:20px 8px 0; }
.preview-note svg { position:absolute; left:0; top:3px; width:15px; height:15px; }
.bottom-nav { position:fixed; z-index:6; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; display:flex; background:#fffffff5; border-top:1px solid var(--line); padding:10px 12px calc(9px + env(safe-area-inset-bottom,0px)); backdrop-filter:blur(14px); }
.bottom-nav button { display:flex; flex:1; flex-direction:column; align-items:center; gap:5px; min-height:50px; background:transparent; color:#929bad; font-size:10px; }
.bottom-nav button[aria-current="page"] { color:var(--blue); font-weight:700; }
.bottom-nav button[aria-current="page"] svg { stroke-width:2.1; }
.progress-steps { display:flex; list-style:none; padding:0; margin:18px 0 28px; gap:10px; }
.progress-steps li { display:flex; flex:1; align-items:center; gap:6px; color:#929bad; font-size:11px; padding-bottom:12px; border-bottom:2px solid #e2e7f1; white-space:nowrap; }
.progress-steps li span { display:grid; place-items:center; width:23px; height:23px; font-size:11px; border-radius:50%; background:#e9edf5; }
.progress-steps li[aria-current="step"] { color:var(--blue); border-color:var(--blue); font-weight:700; }
.progress-steps li[aria-current="step"] span { background:var(--blue); color:white; }
.progress-steps li.is-complete span { background:#e8eefc; color:var(--blue); }
.registration-panel { margin:0; padding:0; border:0; min-width:0; }
.registration-steps { gap:6px; }
.registration-steps li { font-size:10px; gap:4px; }
.registration-panel .form-card { padding-bottom:16px; }
.page-heading { margin-bottom:23px; }
.page-heading h1 { font-size:22px; line-height:1.5; margin-bottom:10px; letter-spacing:.01em; }
.page-heading p:not(.eyebrow) { color:var(--muted); font-size:11px; }
.page-heading .eyebrow { margin-bottom:10px; }
.required-note { float:right; font-size:10px; color:#b64d53; }
.inline-notice { font-size:10px; padding:11px 13px; border-radius:9px; color:#6a7794; background:#eaf0fb; margin-bottom:18px; }
.form-card { background:white; border:1px solid var(--line); border-radius:18px; padding:22px 18px 4px; margin-bottom:24px; }
.field { display:block; margin:0 0 22px; }
.field>span:first-child { display:flex; align-items:center; gap:5px; font-size:12px; font-weight:700; margin-bottom:9px; }
.field b { color:#c56862; font-size:10px; }
.field em { color:var(--muted); font-size:9px; font-weight:400; font-style:normal; border-radius:4px; padding:0 5px; background:var(--paper); }
.field input,.field select { display:block; width:100%; max-width:100%; min-width:0; min-height:49px; padding:12px; border:1px solid #dce2ee; border-radius:9px; background:#fcfdff; color:var(--ink); font-size:16px; line-height:1.4; }
.field input::placeholder { color:#a7afc0; font-size:12px; }
.field select { font-size:14px; }
.field input[type="date"] { -webkit-appearance:none; appearance:none; min-height:49px; }
.input-unit { position:relative; display:block; }
.input-unit input { padding-right:58px; }
.input-unit>span { position:absolute; right:15px; top:13px; color:var(--muted); font-size:12px; }
.field-hint { display:block; margin-top:6px; font-size:10px; color:var(--muted); }
.field-error,.form-error { display:block; color:#b43e49; font-size:11px; margin-top:7px; }
.form-error { margin:0 0 14px; }
[aria-invalid="true"] { border-color:#bf4c58!important; background:#fffafa!important; }
.form-caption { text-align:center; font-size:9px; color:var(--muted); margin:13px 0 0; }
.text-button { display:block; margin:16px auto 0; padding:8px; color:var(--muted); background:transparent; font-size:12px; }
.amount-summary { display:flex; align-items:center; gap:10px; padding:0 2px; margin-bottom:24px; font-size:11px; }
.amount-summary strong { margin-left:auto; font-size:15px; color:var(--blue); }
.amount-summary button,.review-card button,.review-amount button { background:transparent; color:var(--blue); padding:8px 4px; text-decoration:underline; font-size:11px; }
.review-amount { padding:20px; border-radius:16px; background:var(--yellow); display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:20px; }
.review-amount>span { width:100%; font-size:11px; color:var(--blue-dark); }
.review-amount strong { color:var(--blue-dark); font-size:27px; }
.review-amount button { margin-left:auto; }
.review-card { padding:18px; border-radius:16px; background:white; border:1px solid var(--line); margin-bottom:16px; }
.review-card dl { margin:6px 0 0; }
.review-card dt { font-size:10px; color:var(--muted); margin-top:15px; }
.review-card dd { margin:3px 0 0; font-size:13px; overflow-wrap:anywhere; padding-bottom:11px; border-bottom:1px solid #f0f2f7; }
.review-card dd:last-child { border-bottom:0; padding-bottom:0; }
.confirm-check { display:flex; align-items:center; gap:10px; padding:16px 0; font-size:12px; margin:8px 0; }
.confirm-check input { width:20px; height:20px; accent-color:var(--blue); }
.completion { text-align:center; padding:32px 0; }
.completion-icon { margin:0 auto 24px; display:grid; place-items:center; width:90px; height:90px; border-radius:50%; background:var(--yellow); color:var(--blue); box-shadow:0 0 0 12px #fffbee; }
.completion-icon svg { width:42px; height:42px; stroke-width:2; }
.completion h1 { font-size:27px; line-height:1.6; margin:12px 0; }
.completion-notice { border:1px solid var(--line); background:white; border-radius:16px; padding:22px 15px; margin:28px 0; }
.completion-notice strong { font-size:12px; }
.completion-notice p { font-size:11px; line-height:2; margin-top:12px; color:var(--muted); }
.guide-steps { margin:0 0 32px; padding:20px; list-style:none; background:white; border-radius:18px; border:1px solid var(--line); }
.guide-steps li { display:flex; gap:15px; padding:17px 0; }
.guide-steps li+li { border-top:1px solid var(--line); }
.guide-steps li>span { color:var(--blue); font-size:18px; font-weight:750; }
.guide-steps h2 { font-size:13px; margin:0 0 6px; }
.guide-steps p { font-size:11px; color:var(--muted); }
.faq-heading { font-size:16px; margin-bottom:15px; }
details { background:white; border-radius:12px; border:1px solid var(--line); margin-bottom:10px; padding:17px; }
summary { cursor:pointer; font-size:12px; font-weight:650; }
details p { margin-top:12px; font-size:11px; color:var(--muted); }
.guide-start { margin-top:26px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(min-width:600px) { .app-shell { border-left:1px solid #e1e6ef; border-right:1px solid #e1e6ef; } }
@media(max-width:359px) { main { padding-left:16px; padding-right:16px; } .amount-card { padding:18px; } .amount-value strong { font-size:39px; } .progress-steps { gap:6px; } .progress-steps li { font-size:10px; gap:4px; } .welcome h1 { font-size:27px; } .amount-options { gap:5px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; scroll-behavior:auto!important; } }
/* 账号与正式申请进度 */
.brand { width:auto; font-size:17px; font-weight:750; letter-spacing:.02em; color:var(--blue); }
.account-button { margin-left:auto; border-radius:20px; padding:7px 11px; background:#f0f3fb; color:var(--blue); font-size:10px; max-width:125px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
button:disabled { opacity:.55; cursor:wait; }
.privacy-note { color:var(--muted); font-size:10px; line-height:1.9; margin:20px 8px 0; }
.auth-tabs { display:flex; background:#e9edf6; padding:4px; border-radius:12px; gap:5px; margin-bottom:22px; }
.auth-tabs button { flex:1; padding:11px 8px; border-radius:9px; background:transparent; color:var(--muted); font-size:13px; }
.auth-tabs button[aria-pressed="true"] { background:white; color:var(--blue); font-weight:700; box-shadow:0 2px 8px #25345209; }
#register-hint { margin:0 0 20px; }
.list-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; font-size:10px; color:var(--muted); }
.list-toolbar button { background:transparent; color:var(--blue); padding:9px; font-size:12px; }
.application-item { display:block; width:100%; text-align:left; border:1px solid var(--line); border-radius:17px; background:white; padding:19px; margin-bottom:14px; color:var(--ink); }
.application-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; font-size:10px; color:var(--muted); }
.application-item>strong { display:block; margin:16px 0 9px; font-size:25px; color:var(--blue); }
.application-item>small { display:block; font-size:10px; color:var(--muted); }
.status-badge { display:inline-block; padding:3px 9px; background:#edf1fb; color:var(--blue); border-radius:6px; font-size:10px; font-weight:700; }
.status-badge[data-status="needs_info"] { background:#fff4cc; color:#8c6600; }
.status-badge[data-status="approved"] { background:#e5f5ed; color:#236846; }
.status-badge[data-status="rejected"],.status-badge[data-status="withdrawn"] { background:#eeeef2; color:#6e7482; }
.status-card { background:white; border:1px solid var(--line); border-radius:18px; padding:22px; margin-bottom:18px; }
.status-card>strong { display:block; font-size:32px; color:var(--blue); margin:12px 0; }
.status-card>p { color:var(--muted); font-size:12px; line-height:1.9; }
.timeline { list-style:none; padding:0; margin:20px 0 0; }
.timeline li { position:relative; border-left:2px solid #dfe6f7; margin-left:5px; padding:0 0 24px 20px; }
.timeline li:last-child { border-color:transparent; padding-bottom:0; }
.timeline li:before { content:""; position:absolute; left:-5px; top:7px; width:8px; height:8px; background:var(--blue); border-radius:50%; }
.timeline strong { display:block; font-size:12px; }.timeline time { display:block; font-size:10px; color:var(--muted); margin-top:4px; }
.timeline p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; background:#f4f6fb; border-radius:8px; padding:12px; margin-top:10px; }
.application-data { margin-top:18px; }.application-data dl { margin:20px 0 0; }.application-data dt { font-size:10px; color:var(--muted); margin-top:15px; }.application-data dd { margin:4px 0 0; font-size:12px; overflow-wrap:anywhere; }
.empty-card { text-align:center; background:white; border:1px solid var(--line); border-radius:18px; padding:30px 20px; }
.empty-mark { display:inline-grid; place-items:center; background:#fff7cb; color:var(--blue); font-size:26px; width:64px; height:64px; border-radius:50%; margin:10px 0 22px; }
.empty-card h2 { font-size:15px; }.empty-card p { font-size:11px; color:var(--muted); margin:10px 0 25px; }
.danger-text { color:#a65058; }.withdraw-confirm { border:1px solid #ead6d9; background:#fffafa; padding:18px; margin:15px 0; border-radius:12px; }.withdraw-confirm p { font-size:12px; margin-bottom:14px; }
#global-error { background:#fff0f0; padding:13px; border-radius:10px; overflow-wrap:anywhere; }
#detail-reference { overflow-wrap:anywhere; }
/* 申请后的本人确认、收款账户、合同与放款步骤 */
.flow-after { border-top:1px solid var(--line); padding-top:15px; margin-top:20px; color:var(--muted); font-size:10px; line-height:1.9; }
.application-next { color:var(--muted); font-size:11px; line-height:1.8; margin:0 0 15px; }
.workflow-section { margin:28px 0; }
.next-action { color:var(--blue-dark); font-size:12px; line-height:1.9; margin:12px 0 16px; }
.workflow-card { display:flex; align-items:center; gap:14px; width:100%; text-align:left; background:white; color:var(--ink); border:1px solid var(--line); border-radius:14px; padding:17px 15px; margin-bottom:10px; }
.workflow-number { display:grid; place-items:center; flex:0 0 36px; height:36px; background:#fff5bd; color:var(--blue); border-radius:11px; font-size:12px; font-weight:700; }
.workflow-card strong { display:block; font-size:13px; margin-bottom:6px; }
.workflow-card .status-badge { font-size:9px; }
.workflow-arrow { margin-left:auto; font-size:25px; color:var(--blue); }
.status-badge[data-status="verified"],.status-badge[data-status="signed"],.status-badge[data-status="succeeded"] { background:#e5f5ed; color:#236846; }
.status-badge[data-status="failed"],.status-badge[data-status="unknown"] { background:#fff1d0; color:#825e00; }
.service-notice { border:1px solid var(--line); border-radius:17px; padding:22px 18px; background:white; margin-bottom:20px; }
.service-notice h2 { font-size:15px; margin-top:15px; }
.service-notice p { color:var(--muted); font-size:12px; line-height:1.9; margin-top:12px; white-space:pre-wrap; }
.secondary-button { display:block; width:100%; min-height:52px; margin-top:16px; padding:14px; border:1px solid #b7c6e4; background:white; color:var(--blue); border-radius:12px; font-size:13px; font-weight:700; }
button:disabled:not([aria-busy="true"]) { cursor:not-allowed; }
.prerequisite-list { list-style:none; padding:0; margin:14px 0 0; }
.prerequisite-list li { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:12px 0; font-size:12px; border-top:1px solid var(--line); }
.prerequisite-list strong { font-size:11px; color:var(--muted); }
.prerequisite-list li[data-complete="true"] strong { color:#236846; }
.preserve-lines, #offer-data dd { white-space:pre-wrap; overflow-wrap:anywhere; }
.confirm-check input { flex-shrink:0; }
/* 客服只在首次进入时加载，切换页面保留 iframe 中的会话。 */
.app-shell.is-support { height:100vh; height:100dvh; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.is-support .app-header { flex-shrink:0; }
.is-support main { flex:1; min-height:0; padding:12px 14px 0; display:flex; flex-direction:column; }
.is-support .bottom-nav { position:static; transform:none; flex-shrink:0; }
.support-screen { display:flex; flex:1; flex-direction:column; min-height:0; }
.support-caption { color:var(--muted); font-size:11px; margin-bottom:10px; }
.support-chat { position:relative; flex:1; min-height:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:white; }
#support-frame { display:block; width:100%; height:100%; border:0; }
.support-loading { position:absolute; top:18px; left:14px; right:14px; color:var(--muted); text-align:center; font-size:12px; pointer-events:none; }
.support-unavailable { padding:35px 18px; color:var(--muted); text-align:center; font-size:12px; }
.support-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:46px; }
.support-actions button,.support-actions a { background:transparent; color:var(--blue); font-size:11px; padding:10px 4px; }
