/* ============================================================
    拍拍贷 · 导流平台样式
    泰文默认语言，行高与字距按泰文排版惯例放宽
   ============================================================ */

:root {
  --brand: #1668e3;
  --brand-dark: #0e4fb0;
  --brand-soft: #e8f0fe;
  --navy: #0b2545;
  --navy-2: #123f7a;
  --gold: #f0b429;
  --bg: #f4f6fa;
  --text: #10203a;
  --text-2: #3d4f66;
  --muted: #5f7089;   /* 真机审计：原 #6b7c93 正文对比度仅 4.26:1，未达 WCAG AA 4.5 */
  --line: #e3e9f2;
  --line-2: #eef2f8;
  --ok: #0f9d58;
  --ok-soft: #e6f4ea;
  --warn: #b26a00;
  --warn-soft: #fff4e0;
  --danger: #d93025;
  --danger-soft: #fdeceb;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(16, 38, 73, .07);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .14);
  --font-sans: "Inter", "Noto Sans Thai", "Leelawadee UI", "Tahoma", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Inter", "DIN Alternate", "Helvetica Neue", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="th"] body { line-height: 1.8; letter-spacing: .002em; }
html[lang="vi"] body { line-height: 1.72; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 演示提示条 ---------- */
.demo-strip {
  background: linear-gradient(90deg, #fff4e0, #fffaef 55%, #fff4e0);
  border-bottom: 1px solid #f4e0b8;
  color: #7a4d00;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.6;
}
.demo-strip b { color: #5c3900; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; white-space: nowrap;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand), #0b3f9e);
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(22, 104, 227, .3);
}
.logo-tag {
  font-size: 10px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px;
  padding: 2px 6px; letter-spacing: .06em;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 13.5px; color: var(--text-2); padding: 8px 11px;
  border-radius: 8px; transition: .18s; white-space: nowrap;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-admin { color: var(--muted) !important; font-size: 12.5px !important; }
.nav-admin::after { content: " ↗"; font-size: 10px; }

.lang-switch {
  display: flex; gap: 2px; background: #f2f5fa;
  border: 1px solid var(--line); border-radius: 9px; padding: 3px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .18s ease; white-space: nowrap;
  background: #fff; color: var(--text); font-family: inherit;
}
.btn-primary {
  background: linear-gradient(180deg, #2a7bf0, var(--brand)); color: #fff;
  box-shadow: 0 6px 16px rgba(22, 104, 227, .26);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(22, 104, 227, .32); }
.btn-ghost { border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: #c9d6ea; background: #fbfcfe; }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-link { background: none; border: none; color: var(--brand); font-weight: 600; cursor: pointer; padding: 0; font-size: 13.5px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(56, 138, 255, .45), transparent 62%),
    radial-gradient(700px 400px at 6% 110%, rgba(240, 180, 41, .16), transparent 60%),
    linear-gradient(158deg, #0a1f3a 0%, var(--navy) 38%, var(--navy-2) 100%);
  color: #fff; padding: 62px 0 70px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 40% 40%, #000, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: #cfe0ff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  line-height: 1.5;
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #6ee7a8; box-shadow: 0 0 0 3px rgba(110,231,168,.22);
  flex: none;
}
.hero h1 { font-size: 44px; line-height: 1.2; margin-bottom: 16px; letter-spacing: -.02em; }
.hero h1 em {
  font-style: normal; font-family: var(--font-num);
  color: #ffd26b; letter-spacing: -.02em;
}
.hero-sub { font-size: 15px; color: #c3d3e8; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts {
  display: flex; gap: 40px; margin-top: 38px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b {
  font-size: 21px; font-weight: 700; font-family: var(--font-num);
  color: #fff; letter-spacing: -.01em;
}
.hero-facts span { font-size: 12px; color: #93a9c6; }

.hero-card {
  background: rgba(255,255,255,.97); border-radius: 20px;
  padding: 24px 24px 22px; color: var(--text); box-shadow: var(--shadow-lg);
}
.hero-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-card-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hero-card-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: #8a6a00; background: #fff6dd; border: 1px solid #f3e0a8;
  border-radius: 6px; padding: 3px 7px;
}
.hero-card-amount {
  font-size: 32px; font-weight: 700; letter-spacing: -.02em;
  font-family: var(--font-num); margin: 4px 0 2px;
}
.hero-card-amount small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.hero-card-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.hero-card-rows { border-top: 1px solid var(--line-2); }
.hero-card-rows div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.hero-card-rows span { color: var(--muted); }
.hero-card-rows b { font-weight: 600; text-align: right; }
.hero-card .btn { margin-top: 16px; }

/* ---------- 信任条 ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  padding-top: 13px; padding-bottom: 13px;
}
.trust-bar span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-2);
}
.trust-bar svg { flex: none; color: var(--ok); }

/* ---------- 区块 ---------- */
.section { padding: 68px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 34px; }
.section-head h2 { font-size: 28px; margin-bottom: 10px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 14px; }
.eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 9px;
}

/* ---------- 产品参数 ---------- */
.spec-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.spec-row {
  display: grid; grid-template-columns: 172px 1fr; gap: 16px;
  padding: 15px 24px; border-bottom: 1px solid var(--line-2); font-size: 13.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { color: var(--muted); }
.spec-row dd { color: var(--text); font-weight: 500; }
.spec-row.hl { background: #fbfcff; }
.spec-row.hl dd b { color: var(--brand-dark); }

/* ---------- 试算器 ---------- */
.calc-wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 24px; align-items: start; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card-title { font-size: 16px; margin-bottom: 4px; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; gap: 10px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field-value { font-size: 15px; font-weight: 700; color: var(--brand-dark); font-family: var(--font-num); white-space: nowrap; }
.field-value small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 3px; font-family: var(--font-sans); }

input[type="range"] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 2px 8px rgba(22, 104, 227, .35); cursor: pointer; transition: .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; }

.segmented {
  display: flex; gap: 5px; background: #f2f5fa;
  border-radius: 11px; padding: 4px; border: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.segmented button {
  flex: 1; min-width: 62px; border: none; background: transparent;
  border-radius: 8px; padding: 8px 6px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: .16s; font-family: inherit;
  line-height: 1.4;
}
.segmented button:hover { color: var(--text); }
.segmented button.active {
  background: #fff; color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(16, 38, 73, .1);
}
.method-hint {
  font-size: 12px; color: var(--muted); margin-top: 8px;
  line-height: 1.65; min-height: 40px;
}

/* 结果面板 */
.result-card {
  background: linear-gradient(160deg, #0c2646, #143f77 62%, #17549c);
  color: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.result-card::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 160, 255, .38), transparent);
}
.result-head { font-size: 12.5px; color: #a9c3e0; margin-bottom: 4px; }
.result-main {
  font-size: 36px; font-weight: 700; letter-spacing: -.02em;
  font-family: var(--font-num); line-height: 1.2;
}
.result-main small { font-size: 14px; font-weight: 500; color: #b9cde6; margin-left: 5px; letter-spacing: 0; font-family: var(--font-sans); }
.result-sub { font-size: 12px; color: #93aecb; margin-top: 5px; min-height: 34px; }
.result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.12); border-radius: 12px;
  overflow: hidden; margin-top: 18px; position: relative;
}
.result-grid div { background: rgba(255,255,255,.055); padding: 12px 15px; }
.result-grid span { display: block; font-size: 11px; color: #93aecb; margin-bottom: 2px; }
.result-grid b { font-size: 16px; font-weight: 700; font-family: var(--font-num); }
.result-foot {
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11px; color: #8ea9c6; line-height: 1.75; position: relative;
}
.schedule-toggle {
  margin-top: 12px; font-size: 12px; color: #a9c3e0;
  background: none; border: none; cursor: pointer; padding: 0;
  border-bottom: 1px dashed rgba(255,255,255,.3); font-family: inherit;
}
.schedule-wrap { margin-top: 12px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.schedule-wrap.open { max-height: 320px; overflow-y: auto; overflow-x: auto; }
table.schedule {
  width: 100%; border-collapse: collapse; font-size: 11.5px; font-family: var(--font-num);
}
table.schedule th, table.schedule td {
  padding: 6px 7px; text-align: right;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #d3e2f2; white-space: nowrap;
}
table.schedule th {
  position: sticky; top: 0; background: #17457e; color: #9fbcd9;
  font-weight: 600; font-size: 10.5px;
}
table.schedule td:first-child, table.schedule th:first-child { text-align: left; }

/* 对比表 */
.compare { margin-top: 26px; }
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.compare-head h3 { font-size: 16px; }
.compare-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.table-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.table-x > .compare-table { min-width: 520px; }
.table-x > table.schedule { min-width: 440px; }
.compare-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font-size: 13px;
}
.compare-table th {
  text-align: right; padding: 11px 16px; font-size: 11.5px;
  color: var(--muted); font-weight: 700; background: #fafbfe;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table td {
  padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line-2);
  font-family: var(--font-num); color: var(--text-2); white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-family: var(--font-sans); font-weight: 600; color: var(--text); }
.compare-table tr.cur { background: #f6faff; }
.compare-table tr.cur td:first-child::after {
  content: " ●"; color: var(--brand); font-size: 9px; vertical-align: middle;
}
.compare-note {
  margin-top: 12px; font-size: 12px; color: var(--muted);
  background: #f7faff; border: 1px solid #e2ebf9; border-radius: 10px;
  padding: 12px 16px; line-height: 1.75;
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.step-no {
  width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand-dark); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; font-family: var(--font-num); margin-bottom: 13px;
}
.step h3 { font-size: 15px; margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--muted); }
.step-time {
  display: inline-block; margin-top: 11px; font-size: 11px; font-weight: 600;
  color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 2px 8px;
}

/* ---------- 合规 ---------- */
.compliance {
  background: linear-gradient(158deg, #0d2340, #12365f);
  color: #fff; border-radius: 20px; padding: 36px 40px; box-shadow: var(--shadow-lg);
}
.compliance h2 { font-size: 23px; margin-bottom: 9px; }
.compliance > p { color: #a8c0da; font-size: 13.5px; max-width: 660px; margin-bottom: 22px; }
.compliance-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.compliance-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px;
  color: #d6e4f2; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1);
  line-height: 1.7;
}
.compliance-list svg { flex: none; margin-top: 4px; color: #6ee7a8; }
.compliance-list b { color: #fff; font-weight: 600; display: block; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
details.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; transition: .18s;
}
details.faq-item[open] { border-color: #c9dcf7; box-shadow: var(--shadow); }
details.faq-item summary {
  cursor: pointer; padding: 15px 20px; font-size: 14px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between;
  gap: 14px; align-items: center; line-height: 1.6;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; font-size: 18px; font-weight: 400; color: var(--muted);
  transition: .2s; line-height: 1; flex: none;
}
details.faq-item[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq-body { padding: 0 20px 16px; font-size: 13px; color: var(--muted); line-height: 1.85; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #fff; border-top: 1px solid var(--line);
  padding: 40px 0 28px; font-size: 12.5px; color: var(--muted);
}
.footer-top {
  display: flex; justify-content: space-between; gap: 36px;
  flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line-2);
}
.footer-brand { max-width: 360px; }
.footer-brand .logo { margin-bottom: 11px; }
.footer-brand p { line-height: 1.85; }
.footer-links { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; color: var(--text); margin-bottom: 9px; font-weight: 700; }
.footer-col a { display: block; padding: 3px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { padding-top: 18px; line-height: 2; }
.footer-bottom strong { color: var(--text-2); font-weight: 600; }

/* ============================================================
   申请页
   ============================================================ */
.page-narrow { max-width: 740px; margin: 0 auto; padding: 44px 24px 72px; }
.apply-head { text-align: center; margin-bottom: 28px; }
.apply-head h1 { font-size: 26px; margin-bottom: 8px; }
.apply-head p { color: var(--muted); font-size: 13.5px; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 26px; }
.stepper-item { display: flex; align-items: center; gap: 8px; }
.stepper-dot {
  width: 25px; height: 25px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--line); color: var(--muted);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  transition: .2s; flex: none;
}
.stepper-item span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stepper-item.active .stepper-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(22,104,227,.14); }
.stepper-item.active span { color: var(--text); }
.stepper-item.done .stepper-dot { background: var(--ok-soft); border-color: #b7e0c5; color: var(--ok); }
.stepper-line { width: 38px; height: 1.5px; background: var(--line); flex: none; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.input-group label .req { color: var(--danger); margin-left: 2px; }
.control {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
  font-size: 14px; color: var(--text); font-family: inherit;
  transition: .16s; outline: none;
}
.control::placeholder { color: #a8b4c4; }
.control:hover { border-color: #cfdbec; }
.control:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(22,104,227,.12); }
/* 禁用的下拉（未选省份时的市/区县）也要能看清提示文字 */
.control:disabled { color: #93a1b5; background: #f7f9fc; cursor: not-allowed; opacity: 1; }
select.control {
  appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c93' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.control-wrap { position: relative; }
.control-prefix {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--muted); pointer-events: none;
}
.control-wrap.has-prefix .control { padding-left: 27px; }
.code-row { display: flex; gap: 9px; }
.code-row .control { flex: 1; }
.code-row .btn { height: 44px; flex: none; }

.hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.err-msg { font-size: 11.5px; color: var(--danger); margin-top: 5px; display: none; }
.input-group.has-error .control { border-color: var(--danger); background: #fffafa; }
.input-group.has-error .err-msg { display: block; }

.checkbox-line {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.8; margin: 20px 0 18px;
}
.checkbox-line input { margin-top: 4px; flex: none; width: 15px; height: 15px; accent-color: var(--brand); }

.form-actions { display: flex; gap: 11px; justify-content: flex-end; flex-wrap: wrap; }

.notice-box {
  display: flex; gap: 10px; background: #f7faff; border: 1px solid #dbe8fa;
  border-radius: 12px; padding: 13px 15px; font-size: 12px;
  color: #3b5373; line-height: 1.8; margin-top: 18px;
}
.notice-box svg { flex: none; margin-top: 3px; color: var(--brand); }

.result-page { text-align: center; }
.result-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--ok-soft);
  color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px;
}
.result-page h2 { font-size: 22px; margin-bottom: 8px; }
.result-page > p { color: var(--muted); font-size: 13.5px; max-width: 460px; margin: 0 auto 24px; }
.approved-box {
  background: linear-gradient(160deg, #0c2646, #143f77);
  border-radius: var(--radius); padding: 28px 24px; color: #fff; margin-bottom: 20px;
}
.approved-box .label { font-size: 12px; color: #a9c3e0; }
.approved-amount {
  font-size: 42px; font-weight: 700; font-family: var(--font-num);
  letter-spacing: -.02em; margin: 4px 0;
}
.approved-amount small { font-size: 17px; font-weight: 500; color: #b9cde6; }
.approved-meta { font-size: 12.5px; color: #a9c3e0; line-height: 1.8; }
.approved-meta b { color: #ffd26b; font-weight: 600; }
.result-tips {
  text-align: left; background: #fbfcfe; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; font-size: 12.5px;
  color: var(--text-2); margin-bottom: 20px;
}
.result-tips li { padding: 5px 0 5px 16px; position: relative; line-height: 1.8; }
.result-tips li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .55;
}

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px);
  background: #0f2744; color: #fff; font-size: 12.5px;
  padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: .24s; z-index: 120;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   后台（中文）
   ============================================================ */
.admin-body { background: #f2f5fa; }

.login-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 30px;
  background:
    radial-gradient(800px 500px at 78% 8%, rgba(56,138,255,.3), transparent 62%),
    linear-gradient(158deg, #0a1f3a, var(--navy) 55%, #123f7a);
}
.login-card {
  width: 100%; max-width: 390px; background: #fff; border-radius: 20px;
  padding: 32px 30px 26px; box-shadow: var(--shadow-lg);
}
.login-card .logo { justify-content: center; margin-bottom: 5px; font-size: 17px; }
.login-sub { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.login-error {
  display: none; background: var(--danger-soft); color: var(--danger);
  font-size: 12px; border-radius: 8px; padding: 8px 11px; margin-bottom: 12px;
}
.login-error.show { display: block; }
.login-hint {
  margin-top: 16px; background: #f7faff; border: 1px dashed #cddff7;
  border-radius: 10px; padding: 10px 13px; font-size: 11.5px;
  color: #4a6180; line-height: 1.8;
}
.login-hint b { color: var(--brand-dark); font-family: var(--font-num); }

.admin-shell { display: none; min-height: 100vh; }
.admin-shell.show { display: block; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-top .container { display: flex; align-items: center; gap: 16px; height: 58px; max-width: 1320px; }
.admin-top .logo { font-size: 15px; }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-2); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(140deg, #2a7bf0, #0e4fb0); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.admin-main { max-width: 1320px; margin: 0 auto; padding: 22px 24px 56px; }
.admin-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-title-row h1 { font-size: 19px; }
.admin-title-row p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 10px 16px; border-bottom: 2px solid transparent; transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-dark); border-bottom-color: var(--brand); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat-label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.stat-num {
  font-size: 26px; font-weight: 700; font-family: var(--font-num);
  letter-spacing: -.02em; margin-top: 5px; line-height: 1.2;
}
.stat-num small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; font-family: var(--font-sans); }
.stat-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.tag-blue { background: var(--brand-soft); color: var(--brand-dark); }
.tag-green { background: var(--ok-soft); color: var(--ok); }
.tag-amber { background: var(--warn-soft); color: var(--warn); }
.tag-grey { background: #eef1f6; color: var(--muted); }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.table-toolbar {
  display: flex; gap: 9px; align-items: center; padding: 13px 16px;
  border-bottom: 1px solid var(--line-2); flex-wrap: wrap;
}
.table-toolbar .control { height: 36px; font-size: 12.5px; }
.toolbar-search { max-width: 230px; }
.filter-chips { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: 12px; color: var(--text-2);
  cursor: pointer; transition: .15s; font-weight: 600; font-family: inherit;
}
.chip:hover { border-color: #c9d6ea; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .count { opacity: .65; font-weight: 500; margin-left: 3px; }

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
table.data th {
  text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted);
  padding: 11px 14px; background: #fafbfe; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #fbfcff; }
table.data .name { font-weight: 600; color: var(--text); }
table.data .money { font-family: var(--font-num); font-weight: 700; color: var(--text); }
.mono { font-family: "SF Mono", Consolas, monospace; font-size: 12px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.contacted { background: var(--brand-soft); color: var(--brand-dark); }
.badge.approved { background: var(--ok-soft); color: var(--ok); }
.badge.rejected { background: #eef1f6; color: var(--muted); }

.empty-state { padding: 54px 20px; text-align: center; color: var(--muted); font-size: 13px; }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.partner-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.partner-card h3 { font-size: 14px; margin-bottom: 2px; }
.partner-type { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.partner-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; padding: 6px 0; border-top: 1px dashed var(--line-2);
}
.partner-row span { color: var(--muted); }
.partner-row b { font-weight: 600; font-family: var(--font-num); }

.modal-mask {
  display: none; position: fixed; inset: 0; background: rgba(9,24,43,.45);
  backdrop-filter: blur(3px); z-index: 90; padding: 36px 20px; overflow-y: auto;
}
.modal-mask.show { display: block; }
.modal { max-width: 540px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 15px; }
.modal-close { border: none; background: none; font-size: 21px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 6px 20px 20px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px;
}
.detail-row span { color: var(--muted); }
.detail-row b { font-weight: 600; text-align: right; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .calc-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compliance-list { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .compliance { padding: 28px 24px; }
  .spec-row { grid-template-columns: 120px 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .header-inner { height: 60px; gap: 10px; }
  .lang-switch { margin-left: auto; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 13.5px; }
  .hero-facts { gap: 22px; margin-top: 26px; padding-top: 18px; flex-wrap: wrap; }
  .hero-facts b { font-size: 17px; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .page-narrow { padding: 28px 16px 56px; }
  .footer-links { gap: 30px; }
  .stat-grid { gap: 9px; }
  .stat { padding: 13px 14px; }
  .stat-num { font-size: 21px; }
  .admin-main { padding: 16px 13px 46px; }
  .filter-chips { margin-left: 0; width: 100%; }
  .toolbar-search { max-width: 100%; width: 100%; }
  .stepper-line { width: 18px; }
  .stepper-item > span:not(.stepper-dot) { display: none; }
  .stepper { gap: 4px; }
  .stepper-dot { width: 24px; height: 24px; font-size: 11px; }
  .result-main { font-size: 30px; }
  .header-inner > .btn { display: none; }
  .logo-tag { display: none; }
  .hero-card { padding: 20px 18px; }
  .hero-card-amount { font-size: 26px; }
  .spec-row { grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 16px; font-size: 13px; }
  .hero h1 em { font-size: 34px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 9px 10px; }
}

/* ============================================================
   多页结构 · 2026-11-17
   页面已从单页滚动拆分为：首页 / 产品 / 试算 / 流程 / 问答
   ============================================================ */

/* ---------- 导航状态与移动端菜单 ---------- */
.nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-cta { display: none; }
.header-inner { position: relative; }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.6px; background: var(--text-2);
  border-radius: 2px; transition: .22s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- 内页标题区 ---------- */
.page-head {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 40px 0 34px;
}
.page-head .eyebrow { margin-bottom: 6px; }
.page-head h1 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 14.5px; max-width: 660px; }

.section-tight { padding-top: 46px; }
.section-more { margin-top: 30px; }
.section-more .btn { padding: 11px 22px; font-size: 14px; }

/* ---------- 首页：四宫格速览 ---------- */
.spec-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 18px; box-shadow: var(--shadow);
}
.spec-tile b {
  display: block; font-family: var(--font-num); font-size: 21px;
  color: var(--navy); letter-spacing: -.02em; margin-bottom: 4px;
}
.spec-tile span { font-size: 12.5px; color: var(--muted); }

/* ---------- 试算引导条 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; padding: 46px 0;
}
.cta-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-copy { flex: 1 1 300px; }
.cta-copy h2 { font-size: 23px; margin-bottom: 8px; }
.cta-copy p { color: #a8c0da; font-size: 13.5px; }
.cta-ex { display: flex; gap: 28px; flex-wrap: wrap; }
.cta-ex > div { display: flex; flex-direction: column; gap: 2px; }
.cta-ex span { font-size: 11.5px; color: #8fa9c6; }
.cta-ex b { font-family: var(--font-num); font-size: 17px; font-weight: 600; color: #fff; }

/* ---------- 产品页 ---------- */
.method-table td { vertical-align: top; }
.method-table .cell-note {
  display: block; font-size: 11.5px; color: var(--muted);
  font-weight: 400; line-height: 1.6; margin-top: 4px;
}

.ex-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.ex-head h2 { font-size: 20px; margin-bottom: 6px; }
.ex-head p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.ex-list { border-top: 1px solid var(--line-2); }
.ex-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.ex-row span { color: var(--muted); }
.ex-row b { font-family: var(--font-num); font-weight: 600; white-space: nowrap; }
.ex-row.hl b { color: var(--brand-dark); }

/* ---------- 流程页 ---------- */
.steps-lg { gap: 18px; }
.step-lg { padding: 26px 24px; }
.step-lg h3 { font-size: 16px; }
.step-lg p { font-size: 13px; }

.material-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; }
.material-list li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.material-list li svg { flex: none; margin-top: 5px; color: var(--ok); }
.material-list b { display: block; color: var(--text); font-weight: 600; }

/* ---------- 问答页 ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 20px; margin-bottom: 6px; }
.contact-card > p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.contact-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.contact-row:last-child { border-bottom: none; }
.contact-row span { color: var(--muted); }
.contact-row b { font-weight: 600; text-align: right; }

/* ---------- 移动端 ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .header-inner { gap: 10px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(16, 38, 73, .14);
    padding: 8px 10px 12px; z-index: 60;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; border-radius: 9px; font-size: 14px; }
  .nav-cta {
    display: block; text-align: center; margin-top: 6px;
    background: var(--brand); color: #fff !important; font-weight: 600;
  }

  .page-head { padding: 26px 0 22px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 13.5px; }
  .spec-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .spec-tile { padding: 16px 14px; }
  .spec-tile b { font-size: 18px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-ex { gap: 20px; }
  .material-list { grid-template-columns: 1fr; }
  .steps-lg { gap: 12px; }
  .step-lg { padding: 20px 18px; }
}

@media (max-width: 480px) {
  .spec-tiles { grid-template-columns: 1fr 1fr; }
  .spec-tile b { font-size: 16px; }
}

/* ---------- 小屏：数据表改为卡片堆叠 ---------- */
@media (max-width: 640px) {
  .table-x.cards { overflow: visible; }
  .table-x.cards > .compare-table { min-width: 0; }

  .cards .compare-table,
  .cards .compare-table tbody,
  .cards .compare-table tr,
  .cards .compare-table td { display: block; width: 100%; }

  .cards .compare-table thead { display: none; }

  .cards .compare-table tr {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 13px 15px; margin-bottom: 10px;
  }
  .cards .compare-table tr.cur { border-color: #bcd4f7; background: #f7faff; }

  .cards .compare-table td {
    border: none; padding: 4px 0; text-align: left;
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    font-size: 13.5px;
  }
  .cards .compare-table td::before {
    content: attr(data-label);
    color: var(--muted); font-size: 12.5px; flex: none;
  }
  .cards .compare-table td:first-child {
    display: block; padding: 0 0 9px; margin-bottom: 7px;
    border-bottom: 1px dashed var(--line); font-size: 14.5px;
  }
  .cards .compare-table td:first-child::before { display: none; }
  .cards .compare-table td:last-child { padding-bottom: 0; }
}

/* ---------- 顶部提示条：小屏用短文案 ---------- */
.strip-short { display: none; }
@media (max-width: 560px) {
  .strip-full { display: none; }
  .strip-short { display: inline; }
  .demo-strip { font-size: 12px; padding: 6px 14px; }
}

/* ============================================================
   移动 App 版式 · 2026-11-17
   参考形态：窄屏单列 + 底部 tab 导航
   以下规则用 .app 前缀声明，不依赖视口宽度，
   因此在桌面宽屏下预览也保持手机版式。
   ============================================================ */

html { background: #e4e9f1; }

body.app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 0 1px rgba(11, 37, 69, .07), 0 26px 64px rgba(11, 37, 69, .13);
}

/* 宽屏两侧留出呼吸，滚动条不抖动 */
@media (min-width: 520px) {
  body.app { margin: 0 auto; }
}

.app .container { max-width: 100%; padding: 0 16px; }

/* ---------- 顶部演示提示条：压成一行 ---------- */
.app .demo-strip {
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1.5;
  gap: 0;
  justify-content: center;
  text-align: center;
}
/* App 版只留一句短提示，避免长句在窄屏被截断 */
.app .demo-strip > b,
.app .demo-strip .strip-sep,
.app .demo-strip .strip-full { display: none; }
.app .strip-short { display: inline; }

/* ---------- 顶栏 ---------- */
.app .site-header { border-bottom: 1px solid var(--line); }
.app .app-header-inner {
  height: 54px;
  gap: 10px;
  padding: 0 16px;
  max-width: 100%;
}
.app .logo { font-size: 16px; gap: 22px; }
.app .logo-mark { width: 26px; height: 26px; font-size: 15px; border-radius: 8px; }
.app .logo-tag { display: none; }
.app .lang-switch { margin-left: auto; }
.app .lang-btn { padding: 4px 8px; font-size: 11px; }

/* ---------- 主内容：底部给 tab 留位 ---------- */
.app main { padding-bottom: 14px; }
.app .section { padding: 30px 0; }
.app .section-head { margin-bottom: 18px; }
.app .section-head h2 { font-size: 20px; margin-bottom: 6px; }
.app .section-head p { font-size: 13px; }
.app .page-head { padding: 22px 0 20px; }
.app .page-head h1 { font-size: 23px; }

/* ---------- 首屏：单列 ---------- */
.app .hero { padding: 26px 0 34px; }
.app .hero-grid {
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
.app .hero h1 { font-size: 30px; line-height: 1.35; }
.app .hero h1 em { font-size: 40px; }
.app .hero-sub { font-size: 14px; margin-bottom: 20px; }
.app .hero-actions { flex-direction: column; gap: 10px; }
.app .hero-actions .btn { width: 100%; justify-content: center; }
.app .hero-facts {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.app .hero-facts b { font-size: 16px; }
.app .hero-facts span { font-size: 11.5px; }
.app .pill { font-size: 11.5px; padding: 4px 10px; }

.app .hero-card { padding: 20px 18px; border-radius: 16px; }
.app .hero-card-amount { font-size: 27px; }
.app .hero-card-rows div { font-size: 13px; padding: 9px 0; }
.app .hero-card .btn { margin-top: 14px; }

/* ---------- 信任条：横向滚动 ---------- */
.app .trust-bar .container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 11px 16px;
  scrollbar-width: none;
}
.app .trust-bar .container::-webkit-scrollbar { display: none; }
.app .trust-bar span { font-size: 12px; white-space: nowrap; flex: none; }
.app .trust-bar svg { width: 14px; height: 14px; }

/* ---------- 卡片与栅格 ---------- */
.app .spec-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
.app .spec-tile { padding: 15px 14px; }
.app .spec-tile b { font-size: 17px; }
.app .spec-tile span { font-size: 11.5px; }

.app .steps { grid-template-columns: 1fr; gap: 10px; }
.app .step, .app .step-lg { padding: 16px 16px; }
.app .step h3, .app .step-lg h3 { font-size: 14.5px; }
.app .step p, .app .step-lg p { font-size: 12.5px; }

.app .cta-band { padding: 30px 0; }
.app .cta-inner { flex-direction: column; align-items: stretch; gap: 18px; }
.app .cta-copy { flex: none; }
.app .cta-ex { flex: none; }
.app .cta-copy h2 { font-size: 19px; }
.app .cta-copy p { font-size: 13px; }
.app .cta-ex { gap: 16px; justify-content: space-between; }
.app .cta-ex b { font-size: 15px; }
.app .cta-band .btn { width: 100%; justify-content: center; }

/* ---------- 试算器：上下堆叠 ---------- */
.app .calc-wrap {
  grid-template-columns: 1fr;
  gap: 16px;
}
.app .result-main { font-size: 30px; }

/* ---------- 数据表：无条件卡片化（不靠视口断点） ---------- */
.app .table-x.cards { overflow: visible; }
.app .table-x.cards > .compare-table { min-width: 0; }

.app .cards .compare-table,
.app .cards .compare-table tbody,
.app .cards .compare-table tr,
.app .cards .compare-table td { display: block; width: 100%; }

.app .cards .compare-table thead { display: none; }

.app .cards .compare-table tr {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 10px;
}
.app .cards .compare-table tr.cur { border-color: #bcd4f7; background: #f7faff; }

.app .cards .compare-table td {
  border: none; padding: 4px 0; text-align: left;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-size: 13.5px;
}
.app .cards .compare-table td::before {
  content: attr(data-label);
  color: var(--muted); font-size: 12.5px; flex: none;
}
.app .cards .compare-table td:first-child {
  display: block; padding: 0 0 9px; margin-bottom: 7px;
  border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.app .cards .compare-table td:first-child::before { display: none; }
.app .cards .compare-table td:last-child { padding-bottom: 0; }

/* 其余表格（参数表等）允许横滑，容器内不撑破 */
.app .table-x { overflow-x: auto; }
.app .table-x > .spec-table,
.app .table-x > table { min-width: 420px; }

/* ---------- 页脚：三行收尾 ---------- */
.app .app-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 22px 16px calc(76px + env(safe-area-inset-bottom));
  text-align: center;
}
.app .app-foot-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 14px; margin-bottom: 14px;
  /* 右侧留出客服悬浮标的位置，避免最后两个链接被圆钮盖住 */
  padding: 0 62px;
}
.app .app-foot-links a { font-size: 12px; color: var(--text-2); }
.app .app-foot-note {
  font-size: 11px; color: var(--muted); line-height: 1.7;
  max-width: 380px; margin: 0 auto 10px;
}
.app .app-foot-brand { font-size: 11px; color: #9aa9bd; line-height: 1.7; }
.app .app-foot-brand b { color: var(--text-2); font-weight: 600; }

/* ---------- 底部 tab 导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 90;
}
.tab-item {
  flex: 1 1 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  padding: 8px 2px 7px;
  color: #8b9bb0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .16s;
}
.tab-item svg { width: 21px; height: 21px; }
.tab-item span {
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab-item.is-active { color: var(--brand); }
.tab-item.is-active svg { stroke-width: 2; }

/* 第 5 项：申请，做成实心强调，压过其它 tab */
.tab-item-cta { color: var(--brand); }
.tab-item-cta svg {
  fill: var(--brand-soft);
  stroke-width: 1.9;
}
.tab-item-cta.is-active svg { fill: var(--brand); stroke: #fff; }

/* 泰文 tab 文案更长，稍微缩一点避免挤压 */
html[lang="th"] .tab-item span { font-size: 10px; }
html[lang="vi"] .tab-item span { font-size: 10px; }

/* 表单在 App 宽度内统一单列 */
.app .form-row { grid-template-columns: 1fr; gap: 0; }
.app .form-card { padding: 18px 16px; border-radius: 14px; }
.app .apply-head h1 { font-size: 21px; }
.app .apply-head { margin-bottom: 20px; }
.app .stepper { padding: 0 2px; }

/* 分段按钮：App 宽度下改 3 列网格，避免 flex 换行出现「5+1」 */
.app .segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.app .segmented button { min-width: 0; padding: 9px 4px; font-size: 12px; }
.app #seg-method button { font-size: 11.5px; line-height: 1.45; }

/* ============================================================
   结构对齐参考站 · 2026-11-17
   顶栏居中标题 / 公告条 / 额度区 / 底部五项 tab
   ============================================================ */

/* ---------- 顶栏：左标记 + 居中标题 + 语言 ---------- */
.app .app-header-inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 6px;
  height: 50px;
  padding: 0 12px;
  max-width: 100%;
}
.head-right { display: flex; justify-content: flex-end; }
.head-logout {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); background: #f2f5fa;
  border: 0; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.head-logout svg { width: 17px; height: 17px; }
.head-logout:active { background: #e7edf6; color: var(--brand); }
.head-logout[hidden] { display: none; }
.head-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.head-back {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); background: #f2f5fa;
}
.head-back svg { width: 17px; height: 17px; }
.head-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  margin: 0;
  color: var(--text);
}
.app .lang-switch { margin-left: 0; }

/* ---------- 新注册欢迎条 ---------- */
.welcome-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid #b7e0c5;
  background: var(--ok-soft);
  border-radius: 12px;
  position: relative;
}
.welcome-tip[hidden] { display: none; }
.welcome-tip .welcome-icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--ok);
  display: grid; place-items: center;
  margin-top: 1px;
}
.welcome-tip b { display: block; font-size: 14px; color: #17452a; margin-bottom: 2px; }
.welcome-tip span { font-size: 12.5px; line-height: 1.55; color: #2c5c40; }
.welcome-tip .welcome-x {
  position: absolute; top: 6px; right: 8px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: #4a7a5e; padding: 4px;
}

/* ---------- 公告条（跑马灯） ---------- */
.announce {
  overflow: hidden;
  background: #fff8e8;
  border-bottom: 1px solid #f4e7c6;
}
.announce-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  padding: 7px 0;
  font-size: 12px;
  color: #8a6000;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.announce-track span { flex: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation: none; }
}

/* ---------- 额度区 ---------- */
.quick {
  background: #fff;
  padding: 26px 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.quick-label { font-size: 13px; font-weight: 400; color: var(--muted); margin: 0 0 6px; }
.quick-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: var(--navy);
  margin-bottom: 7px;
}
.quick-amount .cur { font-size: 22px; font-weight: 600; color: var(--brand); }
.quick-amount b {
  font-family: var(--font-num);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.quick-amount .unit { font-size: 13px; color: var(--muted); font-weight: 600; }
.quick-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

.btn-xl {
  height: 50px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
}
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.btn-soft {
  background: #eef3fb;
  color: var(--brand-dark);
  border: 1px solid #dfe8f7;
  font-weight: 600;
  font-size: 13px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}
.btn-soft:active { background: #e2ebf9; }
.quick-note {
  font-size: 11px;
  color: #97a6ba;
  line-height: 1.65;
  margin-top: 14px;
}

/* ---------- 内容区块 ---------- */
.block {
  background: #fff;
  margin-top: 9px;
  padding: 20px 16px;
}
.block-alt { background: #fff; }
.block-first { margin-top: 0; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.block-head h2 { font-size: 16px; letter-spacing: -.01em; }
.block-more { font-size: 12.5px; color: var(--brand); flex: none; }

/* 三步：紧凑列表式 */
.steps-compact { gap: 8px; }
.steps-compact .step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "no title"
    "no desc"
    "no time";
  column-gap: 12px;
  row-gap: 3px;
  align-items: start;
  padding: 13px 14px;
  box-shadow: none;
  border: 1px solid var(--line);
}
.steps-compact .step-no { grid-area: no; align-self: start; margin-top: 1px; }
.steps-compact .step h3 { grid-area: title; font-size: 13.5px; margin: 0; }
.steps-compact .step p { grid-area: desc; font-size: 11.5px; margin: 0; line-height: 1.6; }
.steps-compact .step-time {
  grid-area: time;
  justify-self: start;
  font-size: 10.5px;
  padding: 2px 8px;
  margin-top: 2px;
}

/* ---------- 我的借款 ---------- */
.loan-list { display: flex; flex-direction: column; gap: 10px; }
.loan-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  background: #fff;
}
.loan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.loan-top > b {
  font-family: var(--font-num);
  font-size: 21px;
  color: var(--navy);
  letter-spacing: -.01em;
}
.status-pill {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
  flex: none;
}
.s-pending { background: var(--warn-soft); color: var(--warn); }
.s-approved { background: var(--ok-soft); color: var(--ok); }
.s-rejected { background: var(--danger-soft); color: var(--danger); }
.s-placeholder { background: var(--brand-soft); color: var(--brand-dark); }

.loan-rows { padding: 4px 0; }
.loan-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  font-size: 13px;
}
.loan-rows span { color: var(--muted); }
.loan-rows b { font-family: var(--font-num); font-weight: 600; }
.loan-foot {
  font-size: 11px;
  color: #a6b3c5;
  font-family: var(--font-num);
  padding-top: 6px;
}

.empty { text-align: center; padding: 26px 10px 8px; }
.empty-ico {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #f2f6fc;
  color: #b3c4da;
  display: flex; align-items: center; justify-content: center;
}
.empty-ico svg { width: 26px; height: 26px; }
.empty b { display: block; font-size: 15px; margin-bottom: 6px; }
.empty p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.mt-18 { margin-top: 18px; }
.tiny-note {
  font-size: 11px;
  color: #9aa9bd;
  line-height: 1.7;
  margin-top: 12px;
}
.tiny-note.center { text-align: center; margin: 16px 0 4px; }

/* ---------- 钱包 ---------- */
.wallet-hero {
  background: linear-gradient(140deg, #0e2c55, #14498c);
  color: #fff;
  padding: 28px 16px 30px;
  text-align: center;
}
.wallet-hero .quick-label { color: #9db6d6; }
.wallet-limit {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -.01em;
}
.wallet-limit.has-value { color: var(--gold); }
.wallet-hero .quick-note { color: #91aacb; margin-top: 0; }

.card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
}
.card-line-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-line-text b { font-size: 13.5px; }
.card-line-text span { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* 申请页里的收款账户提示行 */
.bank-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin: 14px 0;
  background: #fbfcfe;
}
.bank-inline-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bank-inline-text b { font-size: 12.5px; }
.bank-inline-text span { font-size: 11px; color: var(--muted); line-height: 1.55; }
.bank-inline-link { flex: none; font-size: 12px; font-weight: 600; color: var(--brand); }

/* ---------- 钱包 · 收款账户 ---------- */
.bank-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
}
.bank-panel-icon {
  flex: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.bank-panel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bank-panel-text b {
  font-size: 13.5px;
  font-family: var(--font-num);
  letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bank-panel-text span { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.bank-panel .btn { flex: none; }

.bank-pill {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--line-2);
}
.bank-pill.is-pending { color: var(--warn); background: var(--warn-soft); }
.bank-pill.is-ok { color: var(--ok); background: var(--ok-soft); }
.bank-pill.is-bad { color: var(--danger); background: var(--danger-soft); }

.bank-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  padding: 9px 11px;
  border-radius: 9px;
}
.bank-note.is-wait { color: var(--warn); background: var(--warn-soft); }
.bank-note.is-ok { color: var(--ok); background: var(--ok-soft); }
.bank-note.is-bad { color: var(--danger); background: var(--danger-soft); }

.bank-hint { margin-top: 10px; font-size: 11px; color: #93a2b6; line-height: 1.65; }

/* 弹层里的辅助文案与错误行 */
.bk-hint { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.sheet-error {
  font-size: 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.bk-unbind {
  display: block;
  margin: 12px auto 0;
  border: none;
  background: none;
  color: var(--danger);
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
}
/* display:block 会盖掉 hidden 属性，未绑卡时会冒出一个「解绑当前账户」 */
.bk-unbind[hidden] { display: none; }

.empty-line {
  font-size: 12.5px;
  color: var(--muted);
  padding: 16px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}

.notice {
  font-size: 11px;
  color: #93a2b6;
  line-height: 1.7;
  padding: 14px 16px 6px;
  text-align: center;
}

/* ---------- 我的 ---------- */
.mine-head {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  flex: none;
}
.mine-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mine-id b { font-size: 15px; font-family: var(--font-num); }
.mine-id span { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.cell-group {
  background: #fff;
  margin-top: 9px;
  border-top: 1px solid var(--line);
}
.cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--text);
}
.cell:last-child { border-bottom: none; }
.cell-static { cursor: default; }
/* button 版的 cell（如退出登录）：去掉原生按钮的底色与边框，保留整行可点 */
.cell-btn {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--danger, #d64545);
  -webkit-tap-highlight-color: transparent;
}
.cell-btn:active { background: #f7f9fc; }
#mine-logout-group[hidden] { display: none; }

/* 登录页「确认密码」：不一致时当场标红，不用等点提交 */
.pw2-hint.is-bad { color: var(--danger); }
#pw2-field.is-bad .pw-wrap input { border-color: var(--danger); }

/* 申请页身份证号提示：校验通过是绿色，与证件不一致是红色 */
#idcard-hint.is-ok { color: var(--ok); }
#idcard-hint.is-bad { color: var(--danger); }
.hint.is-bad { color: var(--danger); }
/* 登录页「忘记密码」入口 */
.auth-forgot { text-align: right; margin: -6px 0 12px; }
.auth-forgot a { color: var(--brand); text-decoration: none; font-weight: 600; }
/* 忘记密码页的「身份证 / 邮箱」通道切换 */
#channel-tabs { margin: 0 0 14px; }
#channel-tabs[hidden] { display: none; }
/* 登录页的「登录 / 注册」切换 */
.auth-seg { margin: 0 0 12px; }
.auth-card .code-row .btn { min-width: 100px; font-size: 13px; }
.chev {
  width: 8px; height: 8px;
  border-right: 1.6px solid #b8c5d6;
  border-bottom: 1.6px solid #b8c5d6;
  transform: rotate(-45deg);
  flex: none;
}
/* 「我的」页的普通可点行（不是危险操作，所以不上红字） */
.cell-btn-neutral {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.cell-btn-neutral:active { background: #f7f9fc; }
.cell-value {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#mine-email-text.is-ok { color: var(--ok, #1a7f4b); }
#mine-email-btn .chev { margin-left: 8px; }
#em-unbind[hidden] { display: none; }
/* 邮箱验证码提示：绿=已发出，红=错误 */
#em-hint.is-ok { color: var(--ok, #1a7f4b); }
#em-hint.is-bad { color: var(--danger); }
.lang-switch-inline { margin: 0; }

/* ---------- 底部弹层（登录） ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet-mask { position: absolute; inset: 0; background: rgba(11, 37, 69, .46); }
.sheet-body {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up .24s ease;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes sheet-up {
  from { transform: translateY(18px); opacity: .6; }
  to   { transform: translateY(0); opacity: 1; }
}
.sheet-body h3 { font-size: 17px; margin-bottom: 6px; }
.sheet-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.sheet-body .input-group { display: block; margin-bottom: 14px; }
.sheet-body .input-group > span {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px;
}
.otp-row { display: flex; gap: 8px; }
.otp-row .control { flex: 1; }
.otp-row .btn { flex: none; white-space: nowrap; }
.sheet-demo {
  font-size: 11.5px;
  color: var(--warn);
  background: var(--warn-soft);
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.check-line {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.check-line input { margin-top: 3px; flex: none; }
.sheet-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; }
.sheet-acts .btn { justify-content: center; }

body.sheet-open { overflow: hidden; }
/* 弹层打开时收起客服悬浮标：它的 z-index 高于弹层，会盖住错误提示和提交按钮 */
body.sheet-open .sbc-fab,
body.sheet-open .sbc-panel { display: none !important; }

/* 输入错误态（弹层内复用） */
.app .control.has-error, .app input.has-error {
  border-color: var(--danger);
  background: #fff8f8;
}

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 22px 16px 90px; }
.auth-head h1 { font-size: 22px; margin: 6px 0 8px; letter-spacing: -.2px; }
.auth-head p { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0 0 18px; }
.auth-card { padding: 22px; }
.auth-captcha { margin: 2px 0 14px; min-height: 54px; }
.auth-captcha altcha-widget { --altcha-max-width: 100%; display: block; }
.auth-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.auth-row .btn { padding: 10px 16px; font-size: 13px; }
.auth-hint { font-size: 12px; color: var(--muted); }
.auth-err { color: #a32d2d; font-size: 12.5px; background: #fcebeb; border-radius: 8px; padding: 8px 11px; margin: 0 0 14px; line-height: 1.6; }
/* 成功提示：找回密码里「已核对 李* · 138****8888」这类确认信息 */
.auth-ok { color: var(--ok); font-size: 12.5px; background: var(--ok-soft); border-radius: 8px; padding: 8px 11px; margin: 0 0 14px; line-height: 1.6; }
.auth-ok[hidden] { display: none; }
.auth-submit { width: 100%; padding: 13px; font-size: 15px; }
.auth-submit:disabled { opacity: .55; transform: none; box-shadow: none; cursor: default; }
.auth-note { font-size: 11.5px; color: var(--muted); line-height: 1.75; margin: 14px 0 0; }
.auth-dev {
  margin-top: 16px; font-size: 12.5px; color: #633806;
  background: #faeeda; border: 1px solid #f3d9a6; border-radius: 10px;
  padding: 11px 13px; line-height: 1.7;
}
.auth-dev a { color: #854f0b; font-weight: 600; }
/* 客服悬浮球固定在右下角，登录页首屏的安全提示正好滑到它底下，
   留出右侧空档，别让正文被按钮压掉。 */
@media (max-width: 480px) {
  .auth-dev { padding-right: 62px; }
}

/* 登录：密码框 + 显示/隐藏
   手机键盘很容易打错一个字母，密码不可见时客户只能反复重试到放弃，
   所以给一个明确的「显示」开关，而不是靠客户自己确认。 */
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .control { flex: 1; padding-right: 62px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--primary, #185fa5);
  font-size: 12.5px; font-weight: 600; padding: 8px 10px; min-height: 36px;
  cursor: pointer; border-radius: 8px; line-height: 1;
}
.pw-toggle:hover { background: rgba(24, 95, 165, .08); }

/* ============================================================
   2026-11-30 · 图形验证码 / 身份证上传 / 人工审核
   ============================================================ */
.req { color: var(--danger); }

/* 登录：图形验证码 */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .control { flex: 1; min-width: 0; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.captcha-img {
  flex: none; width: 148px; height: 46px; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: #f7faff; cursor: pointer;
  display: grid; place-items: center; transition: .16s;
}
.captcha-img:hover { border-color: #bcd4f7; }
.captcha-img svg { width: 100%; height: 100%; display: block; }
.captcha-loading { font-size: 11.5px; color: var(--muted); }

/* 申请页：未登录门槛 */
.auth-gate { text-align: center; padding: 34px 24px; border: 1px solid var(--line); }
.auth-gate .gate-icon {
  width: 56px; height: 56px; border-radius: 16px; background: #eef4ff; color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.auth-gate h2 { font-size: 19px; margin-bottom: 8px; }
.auth-gate p { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 420px; margin: 0 auto 20px; }
.auth-gate .btn { max-width: 300px; margin: 0 auto; }

/* 身份证上传 */
.id-block {
  border: 1px dashed #cfdbec; border-radius: 14px; padding: 16px;
  background: #fbfcff; margin: 4px 0 18px; transition: .2s;
}
.id-block.is-complete { border-color: #b7e0c5; background: #f5fcf7; }
.id-block.has-error { border-color: var(--danger); background: #fffafa; }
.id-block.just-done { animation: idFlash 1.4s ease; }
@keyframes idFlash {
  0% { box-shadow: 0 0 0 0 rgba(15, 157, 88, .35); }
  40% { box-shadow: 0 0 0 10px rgba(15, 157, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 157, 88, 0); }
}
.id-block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.id-block-copy b { font-size: 13.5px; display: block; }
.id-block-copy span { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.id-block-state {
  font-size: 11px; font-weight: 700; color: var(--muted); background: #eef2f8;
  border-radius: 999px; padding: 3px 10px; flex: none;
}
.id-block-state.is-done { background: var(--ok-soft); color: var(--ok); }
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 银行流水固定 3 张，三列排一行，屏幕窄时高度略降以免太挤 */
.id-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.id-grid-3 .id-tile { height: 100px; }
.id-grid-3 .id-tile-placeholder b { font-size: 11.5px; }
.id-grid-3 .id-tile-placeholder i { font-size: 10.5px; }
/* 流水删除：只有已上传的格子才显示，避免误触空格子 */
.flow-del {
  position: absolute; top: 4px; right: 4px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(11, 37, 69, .62); color: #fff;
  font-size: 15px; line-height: 20px; text-align: center;
  display: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.id-tile.is-done .flow-del { display: block; }
.flow-del:active { background: var(--danger); }
.id-tile {
  position: relative; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 0; height: 112px; cursor: pointer; overflow: hidden; transition: .18s;
  display: grid; place-items: center; color: #8fa3bd;
}
.id-tile:hover { border-color: #bcd4f7; }
.id-tile:disabled { cursor: progress; }
.id-tile.has-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 48, 37, .1); }
.id-tile.is-done { border-color: #b7e0c5; background: #f5fcf7; }
.id-tile-placeholder { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.id-tile-placeholder b { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.id-tile-placeholder i { font-size: 11px; color: var(--muted); font-style: normal; }
.id-tile.is-done .id-tile-placeholder { display: none; }
.id-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.id-tile.has-img .id-tile-img { display: block; }
.id-tile-ok, .id-tile-retake, .id-tile-loading { position: absolute; display: none; font-size: 10.5px; font-weight: 700; }
.id-tile-ok {
  top: 7px; right: 7px; background: var(--ok); color: #fff; border-radius: 999px;
  padding: 3px 8px; align-items: center; gap: 3px; z-index: 2;
}
.id-tile.is-done .id-tile-ok { display: inline-flex; }
.id-tile-retake {
  left: 7px; bottom: 7px; background: rgba(11, 37, 69, .74); color: #fff;
  border-radius: 999px; padding: 3px 9px; z-index: 2;
}
.id-tile.is-done .id-tile-retake { display: inline-block; }
.id-tile.is-done:not(.has-img) .id-tile-placeholder { display: flex; }
.id-tile.is-done:not(.has-img) .id-tile-placeholder b { color: var(--ok); }
.id-tile-loading {
  inset: 0; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, .88); color: var(--brand-dark); z-index: 3;
}
.id-tile.is-uploading .id-tile-loading { display: flex; }
.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid #cfdcf1; border-top-color: var(--brand); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.id-done-banner {
  display: flex; gap: 10px; align-items: center; background: #f0faf3;
  border: 1px solid #c8e9d3; border-radius: 12px; padding: 10px 13px; margin-top: 12px;
}
.id-done-banner[hidden] { display: none; }
.id-done-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; flex: none;
}
.id-done-banner b { display: block; font-size: 12.5px; color: #0b6b3f; }
.id-done-banner span { font-size: 11.5px; color: #3f7a5c; }

/* 提交后：人工审核中 */
.result-review .result-icon.is-review { background: #eef4ff; color: var(--brand); }
.review-summary {
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 16px; margin: 0 0 18px; text-align: left;
}
.review-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px;
}
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); }
.review-row b { font-family: var(--font-num); font-weight: 700; }
.review-steps { text-align: left; margin: 0 0 18px; padding: 2px 0; }
.review-steps li { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.review-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1.5px; background: var(--line);
}
.review-steps .rs-dot {
  width: 25px; height: 25px; border-radius: 50%; background: #eef2f8; color: var(--muted);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; z-index: 1;
}
.review-steps li.done .rs-dot { background: var(--ok-soft); color: var(--ok); }
.review-steps li.active .rs-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(22, 104, 227, .13); }
.review-steps b { display: block; font-size: 13.5px; }
.review-steps i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.75; }

/* 借款卡片：审核状态与说明 */
.s-reviewing { background: var(--brand-soft); color: var(--brand-dark); }
.loan-review {
  display: flex; gap: 7px; align-items: center; background: #fff8ea;
  border: 1px solid #f2ddb5; color: #8a5a00; font-size: 11.5px;
  border-radius: 9px; padding: 7px 10px; margin: 8px 0 2px; line-height: 1.6;
}
.loan-review .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #e0a41a; flex: none;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.82); }
}
.loan-ok {
  background: var(--ok-soft); color: #0b6b3f; font-size: 11.5px;
  border-radius: 9px; padding: 7px 10px; margin: 8px 0 2px;
}
.loan-ok b { font-family: var(--font-num); }
.loan-reject {
  background: var(--danger-soft); color: #a32d2d; font-size: 11.5px;
  border-radius: 9px; padding: 7px 10px; margin: 8px 0 2px; line-height: 1.65;
}

/* 申请页在 App 版式下给底部 tab 留出空间，避免主按钮被压住 */
.app .page-narrow { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* App 版式下底部 tab 是 fixed 的：内容末尾要留出与 tab 等高的空白，
   否则「新增申请」这类主按钮会被压住一半（借款页/钱包页最明显） */
.app main { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.app .auth-gate { margin-bottom: 18px; }

/* App 版式下提示条上移，避开底部 tab 栏 */
.app .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }

/* 历史申请单的参数口径说明（快照隔离，不回溯覆盖） */
.loan-basis {
  margin: 8px 0 2px; padding: 6px 10px; border-radius: 8px;
  background: #f6f8fb; border: 1px solid var(--line-2);
  color: var(--muted); font-size: 11px; line-height: 1.6;
}

/* ---------- 还款进度（放款后） ---------- */
.s-funded { background: #e0f2f1; color: #00695c; }
.s-closed { background: #eceff3; color: #566172; }

.loan-repay {
  margin: 10px 0 2px; padding: 11px 12px;
  background: #f8fafd; border: 1px solid var(--line-2); border-radius: 11px;
}
.loan-repay-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; font-size: 12px; color: var(--text-2);
}
.loan-repay-head b { font-family: var(--font-num); font-size: 14px; color: var(--navy); }
.loan-repay-count { color: var(--muted); font-size: 11.5px; font-family: var(--font-num); }
.loan-bar {
  height: 6px; border-radius: 4px; background: #e6ecf5; overflow: hidden; margin: 8px 0 0;
}
.loan-bar > i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #2f8f6d, #0f9d58);
  transition: width .35s ease;
}
.loan-next {
  margin-top: 8px; font-size: 11.5px; color: var(--text-2);
  display: flex; gap: 5px; align-items: baseline;
}
.loan-next b { font-family: var(--font-num); color: var(--navy); }
.loan-overdue {
  margin-top: 8px; font-size: 11.5px; color: #a32d2d;
  background: var(--danger-soft); border-radius: 7px; padding: 5px 9px;
}
.loan-settled {
  margin-top: 8px; font-size: 11.5px; color: #0b6b3f;
}
.loan-plan { margin-top: 8px; }
.loan-plan > summary {
  cursor: pointer; font-size: 11.5px; color: var(--brand-dark);
  list-style: none; user-select: none;
}
.loan-plan > summary::-webkit-details-marker { display: none; }
.loan-plan > summary::after { content: ' ▾'; font-size: 10px; }
.loan-plan[open] > summary::after { content: ' ▴'; }
.loan-plan table {
  width: 100%; border-collapse: collapse; margin-top: 8px;
  font-size: 11.5px; font-family: var(--font-num);
}
.loan-plan th {
  text-align: left; font-weight: 500; color: var(--muted);
  padding: 4px 6px; border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
}
.loan-plan td { padding: 5px 6px; border-bottom: 1px solid var(--line-2); }
.loan-plan th.num, .loan-plan td.num { text-align: right; }
.loan-plan td.paid { color: var(--ok); }
.loan-plan td.overdue { color: var(--danger); }
.loan-plan tr:last-child td { border-bottom: 0; }

/* ============================================================
   法律文本页：隐私政策 / 用户协议
   ============================================================ */
.legal {
  max-width: 840px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 42px 32px; box-shadow: var(--shadow);
  font-size: 14.5px; line-height: 1.95; color: var(--text-2);
}
.legal h2 {
  font-size: 17px; line-height: 1.5; color: var(--text);
  margin: 34px 0 10px; padding-top: 2px;
}
.legal h2:first-of-type { margin-top: 22px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal b { color: var(--text); font-weight: 600; }
.legal a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(22, 104, 227, .28); }
.legal a:hover { border-bottom-color: var(--brand); }
.legal-note {
  background: var(--warn-soft); border: 1px solid #f3ddb9; color: #7a4b00;
  border-radius: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.8; margin: 0 0 20px;
}
.legal-callout {
  background: var(--brand-soft); border: 1px solid #cadcf8; border-radius: 12px;
  padding: 14px 18px 6px; margin: 0 0 16px;
}
.legal-callout p { margin: 0 0 8px; }
.legal-callout ul { margin: 0 0 10px; }
.legal-table { overflow-x: auto; margin: 6px 0 16px; -webkit-overflow-scrolling: touch; }
.legal-table table {
  width: 100%; border-collapse: collapse; min-width: 560px;
  font-size: 13px; line-height: 1.75;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top;
}
.legal-table th { background: #f7f9fd; color: var(--text); font-weight: 600; white-space: nowrap; }
.legal-table td:first-child { white-space: nowrap; color: var(--text); }
.legal-contact {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 18px;
}
.legal-contact > div {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.legal-contact > div:last-child { border-bottom: 0; }
.legal-contact span { color: var(--muted); }
.legal-contact b { color: var(--text); font-weight: 600; text-align: right; }
.legal-muted { color: var(--muted); font-size: 12.5px; }
.legal-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .legal { padding: 24px 18px 22px; border-radius: 14px; font-size: 14px; line-height: 1.9; }
  .legal h2 { font-size: 16px; margin-top: 28px; }
  .legal-table table { min-width: 520px; }
  .legal-contact > div { flex-direction: column; gap: 2px; }
  .legal-contact b { text-align: left; }
}

/* 登录/申请页的条款链接 */
.auth-note a, .consent-links a {
  color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(22, 104, 227, .25);
}
.auth-note a:hover, .consent-links a:hover { border-bottom-color: var(--brand); }
.consent-links {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin: -4px 0 14px; padding-left: 26px; font-size: 11.5px; color: var(--muted);
}

/* 法律表格：整站是 480px 手机壳，一律用卡片式，避免 4 列挤成豆腐块 */
.legal-table { overflow-x: visible; }
.legal-table table { min-width: 0; }
.legal-table thead { display: none; }
.legal-table tr {
  display: block; border: 1px solid var(--line); border-radius: 12px;
  margin: 0 0 10px; overflow: hidden; background: #fff;
}
.legal-table td {
  display: block; position: relative;
  border: 0; border-bottom: 1px dashed var(--line-2);
  padding: 8px 12px 8px 76px; font-size: 13px;
}
.legal-table td:last-child { border-bottom: 0; }
.legal-table td::before {
  content: attr(data-label); position: absolute; left: 12px; top: 8px;
  width: 58px; color: var(--muted); font-size: 11.5px; line-height: 1.9;
}
.legal-table td:first-child {
  background: #f7f9fd; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--text); padding: 7px 12px;
}
.legal-table td:first-child::before { display: none; }

/* ============================================================
   2026-12-02 · 真机模拟审计修正
   1) 顶栏由 layout.js 注入，注入前先占住高度，避免整页下移（CLS）
   2) iOS Safari 对字号 <16px 的输入框，聚焦时会自动放大整页且不缩回
   3) 触摸目标补到 44px（WCAG 2.5.5）
   ============================================================ */
[data-layout="header"] { min-height: 51px; }

@media (max-width: 820px) {
  /* 16px 是 iOS 不触发自动放大的硬门槛 */
  .control,
  select.control,
  .control-prefix,
  .bk-hint ~ input,
  input.control {
    font-size: 16px;
  }
  .segmented button { min-height: 44px; }
  .btn-soft { min-height: 44px; }
  .btn-sm { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .quick-row .btn { min-height: 46px; }
}
