/* ==========================================================================
   report.css — /report/ 与 /en/report/ M0 两步上报表单专用样式
   --------------------------------------------------------------------------
   局部作用域：全部 .rp- 前缀，不影响全站。沿用 style.css 的藏青/白/少金变量，
   不引入框架、动效库或大图。"科技感"来自步骤指示 + 点选卡片 + 即时选中态。
   表单最大宽 640px；触控目标 ≥44px；输入字号 ≥16px；200% 缩放不溢出。
   ========================================================================== */

.rp-wrap { max-width: 640px; }

/* 全站 .notice 是 flex（图标+文本），本页 notice 没有图标子节点，
   裸文本会被 flex 拆成多个竖排碎片。局部改回块级，不影响其它页面。 */
.rp-wrap > .notice {
  display: block; background: #F4F7FB; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; line-height: 1.75;
  padding: 14px 16px; margin-bottom: 18px;
}
.rp-wrap > .notice b { color: var(--ink); }
.rp-wrap > .notice a { color: #0B2545; text-decoration: underline; }

/* 步骤指示：1 → 2，当前步藏青实心、金色小刻度，纯静态无动画 */
.rp-steps { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.rp-step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.rp-step i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; font-style: normal;
  font-size: 13px; font-weight: 800; border: 1.5px solid var(--line);
  background: #fff; color: var(--muted); flex: 0 0 auto;
}
.rp-step.is-on { color: var(--navy-800); }
.rp-step.is-on i { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.rp-step.is-done i { background: var(--gold-soft); border-color: var(--gold); color: #2A1F05; }
.rp-step-line { flex: 1 1 auto; height: 2px; background: var(--line); min-width: 12px; }
.rp-step-line.is-on { background: var(--gold); }
.rp-step-count { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }

/* 作者样式会覆盖 UA 的 [hidden]，必须显式兜底，否则隐藏步骤/成功态仍占位 */
.rp-wrap [hidden] { display: none !important; }
.rp-title { font-size: 20px; line-height: 1.35; margin: 0 0 6px; color: var(--ink); font-weight: 800; }
.rp-lead { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 20px; }
.rp-hint { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 9px 0 0; }

.rp-fs { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.rp-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0; margin: 0 0 10px; }

/* 银行：预填显示 + 更换；未预填才出快捷项与搜索框 */
.rp-bank { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-bank input[type="text"] {
  flex: 1 1 260px; min-width: 0; padding: 12px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 16px;
  font-weight: 500; color: var(--ink); font-family: inherit;
}
.rp-bank input[type="text"]:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-050); }
.rp-bank input[type="text"][readonly] { background: #F4F7FB; border-color: var(--navy-800); font-weight: 700; }
.rp-link {
  border: 0; background: none; padding: 8px 4px; min-height: 44px;
  color: var(--blue-500); font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-family: inherit;
}
.rp-link:hover { color: var(--navy-800); }
.rp-link:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.rp-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.rp-quick-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.rp-quick button {
  min-height: 44px; padding: 9px 13px; border-radius: 9px; font-size: 14px;
  font-weight: 600; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.rp-quick button:hover { border-color: var(--navy-800); background: #F3F7FE; }
.rp-quick button:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* 结果点选：两张等权重大卡片，成功/被拒视觉完全一致 */
.rp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-opt { position: relative; display: block; cursor: pointer; }
.rp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-opt span {
  display: flex; align-items: center; justify-content: center; min-height: 60px;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-size: 16px; font-weight: 700; color: var(--ink-2);
  transition: border-color .12s, background .12s;
}
.rp-opt:hover span { border-color: var(--navy-800); background: #FBFDFF; }
.rp-opt input:checked + span { border-color: var(--navy-800); background: #F3F7FE; color: var(--navy-800); box-shadow: 0 0 0 3px rgba(11,37,69,.07); }
.rp-opt input:checked + span::before { content: '✓'; margin-right: 9px; font-weight: 800; color: var(--navy-800); }
.rp-opt input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* 方向 chips：默认「其他／不确定」 */
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { position: relative; display: inline-block; cursor: pointer; }
.rp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.rp-chip:hover span { border-color: var(--navy-800); }
.rp-chip input:checked + span { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.rp-chip input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* 确认条 */
.rp-recap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 10px; background: #F4F7FB;
  border: 1px solid var(--line); margin-bottom: 22px;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.rp-recap .rp-link { margin-left: auto; }

/* 补充细节：默认收起，展开不改值 */
.rp-more { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 20px; overflow: hidden; }
.rp-more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 12px 16px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.rp-more > summary::-webkit-details-marker { display: none; }
.rp-more > summary::after { content: '+'; font-size: 18px; font-weight: 700; color: var(--muted); }
.rp-more[open] > summary::after { content: '−'; }
.rp-more > summary:focus-visible { outline: 3px solid var(--blue-500); outline-offset: -3px; }
.rp-more-body { padding: 4px 16px 18px; border-top: 1px solid var(--line-2); }
.rp-sub { margin: 18px 0 0; }
.rp-sub:first-child { margin-top: 14px; }
.rp-sub > .rp-label { font-size: 13.5px; margin-bottom: 8px; }
.rp-sub .rp-hint { margin-top: 7px; }
.rp-text {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 16px;
  color: var(--ink); font-family: inherit; min-height: 44px;
}
.rp-text:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-050); }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-check {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 7px 12px; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.rp-check input { width: 17px; height: 17px; accent-color: var(--navy-800); flex: 0 0 auto; }
.rp-check:has(input:checked) { border-color: var(--navy-800); background: #F3F7FE; }
.rp-check input:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.rp-cond[hidden] { display: none !important; }

/* 公开授权：默认不勾，文字说明优先 */
.rp-consent {
  display: flex; align-items: flex-start; gap: 11px; margin: 0 0 20px;
  padding: 14px 15px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
}
.rp-consent input { width: 19px; height: 19px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy-800); }
.rp-consent span { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.rp-consent b { color: var(--ink); }
.rp-consent input:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* 主操作：每步只有一个藏青实心按钮 */
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; width: 100%; padding: 13px 22px; border-radius: 11px;
  border: 1.5px solid var(--navy-800); background: var(--navy-800); color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit;
  letter-spacing: .01em;
}
.rp-btn:hover:not([disabled]) { background: var(--navy-700); }
.rp-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rp-btn[disabled] { opacity: .5; cursor: not-allowed; }
.rp-err { margin-top: 10px; font-size: 13.5px; line-height: 1.6; }
.rp-err[hidden] { display: none !important; }
.rp-safety { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* 成功态：沿用 .sub-done，只做轻量排版 */
.rp-done[hidden] { display: none !important; }
.rp-done .rp-done-cta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.rp-done .rp-done-cta a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.rp-done .rp-done-cta a.rp-cta-main { background: var(--navy-800); color: #fff; }
.rp-done .rp-done-cta a.rp-cta-sub { background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); }

/* 脚本不可用：明确的不可提交提示 */
.rp-nojs { padding: 12px 14px; border-radius: 10px; background: var(--gold-soft); color: #2A1F05; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* 窄屏：360/390 单列，16px 边距，不出现逐字竖排 */
@media (max-width: 560px) {
  .rp-wrap { padding-left: 16px; padding-right: 16px; }
  .rp-choice { grid-template-columns: 1fr; }
  .rp-grid { grid-template-columns: 1fr; }
  .rp-step-label { display: none; }
  .rp-bank input[type="text"] { flex-basis: 100%; }
}
