/* 机构自助申请页 · 移动优先 */
:root {
  --bg: #f4f6fb; --bg2: #fff; --ink: #0f1a3a; --ink2: #4a5878; --line: #e3e8f3;
  --p: #3461b8; --p-soft: #e8eef9; --p-deep: #0f1a3a;
  --ok: #047857; --ok-soft: #d1fae5;
  --danger: #b91c1c; --danger-soft: #fee2e2;
  --warn: #d97706;
  --r: 12px; --r-sm: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent; }

.topbar { position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0));
  background: var(--p-deep); color: #fff; }
.topbar .bk { color: #fff; opacity: .85; padding: 6px 10px; min-height: 36px; }
.topbar .t1 { font-size: 15px; font-weight: 600; }
.topbar .t2 { font-size: 12px; opacity: .75; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 14px 60px; }
.intro { padding: 8px 4px 16px; }
.intro h1 { font-size: 20px; margin: 0 0 6px; color: var(--p-deep); }
.intro p { margin: 0; color: var(--ink2); font-size: 13px; }

.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(15,26,58,.06); }
.card .hd { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--p-deep); }
.auth-gate p { color: var(--ink2); margin: 0 0 14px; }
.row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: 12px; color: var(--ink2); margin-bottom: 12px; }
label .req { color: var(--danger); margin-left: 2px; }
input, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; color: var(--ink); background: #fff;
  min-height: 44px;
}
input:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px var(--p-soft); }
textarea { resize: vertical; min-height: 80px; }

.tip { font-size: 12px; color: var(--ink2); padding: 8px 10px; background: var(--p-soft); border-radius: var(--r-sm); margin-bottom: 12px; }
.err { font-size: 13px; color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 10px; }
.ok { font-size: 13px; color: var(--ok); background: var(--ok-soft); padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 18px; font-size: 14px; font-weight: 500;
  border: 0; border-radius: var(--r-sm); cursor: pointer; width: 100%; }
.btn.primary { background: var(--p); color: #fff; }
.btn.ghost { background: var(--p-soft); color: var(--p); margin: 8px 0 12px; text-decoration: none; }
.btn.primary { text-decoration: none; }
.btn.primary:active { background: #2a4f9b; }
.btn:disabled { opacity: .6; pointer-events: none; }

.steps { margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink2); }
.steps li { padding: 4px 0; }
.steps li::marker { color: var(--p); font-weight: 600; }

/* ==================================================================
   Phase-4 视觉升级（.wst2 命名空间）
   · 不改动上方 :root 的任何既有变量值（那是本页原有配色体系）；
   · 新增变量一律走 .wst2 作用域类，与 /portal.css 的同名 token 同源；
   · 只叠加视觉层，不改字段、校验、提交逻辑。
   ================================================================== */
.wst2 .topbar {
  background: linear-gradient(120deg, #0f1a3a, #16264d);
  border-bottom: 1px solid rgba(150,190,228,.18);
  box-shadow: 0 8px 24px -18px rgba(15,26,58,.9);
}
.wst2 .topbar .bk { color: #dceaf4; opacity: .9; border-radius: 8px; transition: background .16s ease, opacity .16s ease; }
.wst2 .topbar .bk:hover { background: rgba(255,255,255,.1); opacity: 1; }
.wst2 .topbar .t1 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.wst2 .topbar .t2 { font-size: 11.5px; opacity: .68; }

.wst2 .wrap { max-width: 600px; padding: 18px 14px 64px; }

/* 类型切换：分段控件 */
.wst2 .tabs {
  display: inline-flex; gap: 3px; padding: 4px; margin-bottom: 16px;
  background: var(--wst2-surface); border: 1px solid var(--wst2-line);
  border-radius: 13px; box-shadow: var(--wst2-shadow-sm);
}
.wst2 .tabs a {
  padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--wst2-text-2); text-decoration: none; white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.wst2 .tabs a:hover { background: var(--wst2-primary-soft); color: var(--wst2-primary-d); }
.wst2 .tabs a.active {
  background: linear-gradient(135deg, var(--wst2-primary), var(--wst2-primary-d));
  color: #fff; box-shadow: 0 8px 18px -10px rgba(23,100,220,.7);
}

/* 卡片：19px 大圆角 + 柔和阴影 */
.wst2 .card {
  background: var(--wst2-surface); border: 1px solid var(--wst2-line);
  border-radius: var(--wst2-radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--wst2-shadow-sm);
}
.wst2 .intro { padding: 4px 4px 18px; background: transparent; border: 0; box-shadow: none; }
.wst2 .intro h1 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--wst2-text); }
.wst2 .intro p { color: var(--wst2-text-2); font-size: 13px; line-height: 1.65; }
.wst2 .card .hd { font-size: 15px; font-weight: 700; color: var(--wst2-text); }

/* 表单标签与输入态 */
.wst2 label { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--wst2-text-2); margin-bottom: 12px; }
.wst2 label .req { color: var(--wst2-danger); margin-left: 3px; font-weight: 700; }
.wst2 input, .wst2 textarea {
  margin-top: 6px; padding: 12px 13px; min-height: 46px;
  border: 1px solid var(--wst2-line-strong); border-radius: var(--wst2-radius-sm);
  background: var(--wst2-surface); color: var(--wst2-text);
  font: inherit; font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.wst2 input::placeholder, .wst2 textarea::placeholder { color: var(--wst2-text-3); }
.wst2 input:hover, .wst2 textarea:hover { border-color: #a9c9e8; }
.wst2 input:focus, .wst2 textarea:focus {
  outline: none; border-color: var(--wst2-primary); box-shadow: 0 0 0 3px rgba(23,100,220,.14);
}
.wst2 input[type="file"] { padding: 10px 12px; }

/* 提示 / 错误 / 成功态 */
.wst2 .tip {
  font-size: 12.5px; line-height: 1.65; color: var(--wst2-text-2);
  background: var(--wst2-primary-soft); border: 1px solid #cfe1f8;
  border-radius: var(--wst2-radius-sm); padding: 11px 13px; margin-bottom: 14px;
}
.wst2 .err {
  font-size: 13px; line-height: 1.6; color: var(--wst2-danger);
  background: var(--wst2-danger-soft); border: 1px solid #f3d3cc;
  border-left: 3px solid var(--wst2-danger);
  border-radius: var(--wst2-radius-sm); padding: 11px 13px; margin-bottom: 12px;
}
.wst2 .ok {
  font-size: 13px; line-height: 1.6; color: var(--wst2-ok);
  background: var(--wst2-ok-soft); border: 1px solid #c8e8de;
  border-left: 3px solid var(--wst2-ok);
  border-radius: var(--wst2-radius-sm); padding: 11px 13px; margin-bottom: 12px;
}

/* 按钮 */
.wst2 .btn {
  min-height: 46px; border-radius: var(--wst2-radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wst2 .btn.primary {
  background: linear-gradient(135deg, var(--wst2-primary), var(--wst2-primary-d));
  color: #fff; box-shadow: 0 12px 26px -14px rgba(23,100,220,.7);
}
.wst2 .btn.primary:hover { filter: brightness(1.05); box-shadow: 0 16px 30px -14px rgba(23,100,220,.75); }
.wst2 .btn.primary:active { transform: translateY(1px); }
.wst2 .btn.ghost {
  background: var(--wst2-surface); color: var(--wst2-primary-d);
  border: 1px solid var(--wst2-line-strong); margin: 10px 0 14px;
}
.wst2 .btn.ghost:hover { border-color: var(--wst2-primary); background: var(--wst2-primary-soft); }
.wst2 .auth-gate p { color: var(--wst2-text-2); line-height: 1.65; }
.wst2 .steps li::marker { color: var(--wst2-primary); }
@media (max-width:420px){
  .wst2 .tabs { display: flex; width: 100%; }
  .wst2 .tabs a { flex: 1; text-align: center; padding: 8px 6px; }
}

/* ============================================================
 * [2026-11-09] 飞手认证分区表单（一次填齐 = 飞手名片）
 * 纯追加，不改既有规则；命名空间 .pf-，回滚 = 删除本块。
 * ============================================================ */
/* [2026-11-09 刘总 13:47] 机构 / 企业页也用飞手页的两栏形式，宽度同步放开。 */
.wst2.apply-page .wrap.wrap-pilot, .wst2.apply-page .wrap.wrap-pf { max-width: 1080px; }
.pf { --pf-blue:#1f6feb; --pf-deep:#173b5e; --pf-line:#dce8f3; --pf-soft:#f5f9fd; --pf-muted:#61758a; }
.pf-steps { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:2px 0 18px; }
.pf-step { font-size:12px; font-weight:700; color:var(--pf-muted); background:#fff; border:1px solid var(--pf-line); border-radius:999px; padding:6px 13px; }
.pf-step.on { color:#fff; background:var(--pf-blue); border-color:var(--pf-blue); }
.pf-arrow { color:#9db3c7; font-size:13px; }
.pf-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,.72fr); gap:16px; align-items:start; }
.pf-main { display:grid; gap:14px; min-width:0; }
.pf-side { min-width:0; }
.pf-section { background:#fff; border:1px solid var(--pf-line); border-radius:16px; padding:16px 18px 18px; box-shadow:0 2px 10px rgba(24,71,117,.045); }
.pf-sec-h { display:flex; align-items:flex-start; gap:11px; margin-bottom:13px; }
.pf-num { flex:none; display:inline-grid; place-items:center; width:28px; height:28px; border-radius:9px; background:#e8f1fc; color:var(--pf-blue); font-size:12px; font-weight:800; }
.pf-sec-h h3 { margin:1px 0 2px; font-size:15px; color:var(--pf-deep); line-height:1.35; }
.pf-sec-h p { margin:0; font-size:12.5px; color:var(--pf-muted); line-height:1.55; }
.pf-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 13px; }
.pf-wide { display:grid; gap:11px; }
.pf label, .pf .pf-label { display:flex; flex-direction:column; gap:6px; font-size:12.5px; font-weight:700; color:#31597c; }
.pf label b, .pf .pf-label b { color:#d4380d; font-weight:800; }
.pf .pf-label small { font-weight:500; color:var(--pf-muted); font-size:11.5px; }
.pf input[type=text], .pf input[type=tel], .pf input[type=number], .pf input[type=file],
.pf select, .pf textarea, .pf-add {
  width:100%; border:1px solid #c9dced; border-radius:10px; background:#fff; color:#22323f;
  padding:10px 11px; min-height:44px; font-size:14px; font-weight:400; line-height:1.5;
}
.pf textarea { min-height:74px; resize:vertical; }
.pf input:focus, .pf select:focus, .pf textarea:focus, .pf-add:focus { outline:3px solid #a9d6f5; outline-offset:1px; border-color:var(--pf-blue); }
.pf-block { margin-bottom:14px; }
.pf-block:last-child { margin-bottom:0; }
.pf-chips { display:flex; flex-wrap:wrap; gap:7px; min-height:34px; align-items:center; margin:2px 0 9px; }
.pf-chip { border:1px solid #bcd8ef; background:#eaf3fc; color:#1c5f9c; border-radius:999px; padding:5px 11px; font-size:12.5px; font-weight:700; cursor:pointer; line-height:1.4; }
.pf-chip:hover { background:#dcebf9; }
.pf-chip span { color:#7b98b3; margin-left:2px; }
.pf-chip-empty { color:#8ba0b3; font-size:12px; font-weight:400; }
.pf-add { max-width:280px; min-height:40px; font-size:13px; color:#3b668c; background:#f8fbfe; }
.pf-modes { display:grid; gap:9px; }
.pf-mode { display:flex; flex-direction:row; align-items:flex-start; gap:10px; border:1px solid var(--pf-line); border-radius:12px; padding:12px 13px; cursor:pointer; background:#fbfdff; }
.pf-mode:hover { border-color:#a9cfea; background:#f6fbff; }
.pf-mode:has(input:checked) { border-color:var(--pf-blue); background:#f0f7ff; box-shadow:0 0 0 2px #dcebfb inset; }
.pf-mode input[type=radio] { width:17px; height:17px; min-height:0; flex:none; margin:3px 0 0; accent-color:var(--pf-blue); }
.pf-mode-body { display:flex; flex-direction:column; gap:3px; }
.pf-mode-t { font-size:13.5px; font-weight:800; color:var(--pf-deep); }
.pf-mode-t em { font-style:normal; font-size:11px; font-weight:700; color:#0a7f74; background:#dff3ef; border-radius:999px; padding:2px 8px; margin-left:7px; }
.pf-mode-d { font-size:12.5px; font-weight:400; color:var(--pf-muted); line-height:1.55; }
.pf-preview { position:sticky; top:16px; background:linear-gradient(160deg,#fff,#f1f7fd); border:1px solid #cbdff0; border-radius:16px; padding:17px 16px 15px; box-shadow:0 8px 24px rgba(24,71,117,.07); }
.pf-pv-kicker { display:block; font-size:11px; font-weight:800; letter-spacing:.07em; color:#0a7f74; margin-bottom:7px; }
.pf-preview h3 { margin:0 0 3px; font-size:18px; color:var(--pf-deep); }
.pf-pv-meta { margin:0 0 12px; font-size:12.5px; color:var(--pf-muted); }
.pf-pv-dl { margin:0; display:grid; gap:8px; }
.pf-pv-dl > div { display:grid; grid-template-columns:64px 1fr; gap:8px; font-size:12.5px; }
.pf-pv-dl dt { color:#7d94a8; }
.pf-pv-dl dd { margin:0; color:#274a68; font-weight:600; word-break:break-word; }
.pf-pv-exp { margin-top:13px; border-top:1px dashed #cbdff0; padding-top:11px; }
.pf-pv-exp h4 { margin:0 0 4px; font-size:12px; color:#7d94a8; }
.pf-pv-exp p { margin:0; font-size:12.5px; line-height:1.6; color:#31597c; white-space:pre-wrap; word-break:break-word; }
.pf-pv-mode { margin-top:13px; border-radius:9px; background:#e8f1fc; color:#1c5f9c; font-size:12.5px; font-weight:700; padding:8px 10px; text-align:center; }
.pf-pv-foot { margin:10px 0 0; font-size:11.5px; color:#8ba0b3; text-align:center; line-height:1.5; }
.pf-note { margin-top:12px; border-left:4px solid #0a7f74; background:#f1faf8; border-radius:0 10px 10px 0; padding:11px 13px; font-size:12.5px; line-height:1.65; color:#315e58; }
.pf-note b { color:#0a6259; }
@media (max-width:860px){
  .pf-grid { grid-template-columns:1fr; }
  .pf-preview { position:static; }
  .pf-side { order:-1; }
}
@media (max-width:520px){
  .pf-section { padding:14px 13px 15px; border-radius:14px; }
  .pf-fields { grid-template-columns:1fr; }
  .pf-steps { gap:5px; margin-bottom:13px; }
  .pf-step { font-size:11px; padding:5px 9px; }
  .pf-arrow { font-size:11px; }
  .pf-mode { padding:11px 10px; }
  .pf-add { max-width:100%; }
}

/* ============================================================
   [2026-11-09 刘总] 飞手认证页按 11 张截图逐条精简
   ============================================================ */
/* [2026-11-09 刘总 13:43 图1 / 13:47] 三类页面统一隐藏顶部说明块：
   标题改由右侧 pf-note 承担，机构页那段「（含学员进度跟踪与理论题库）」随之不再出现。 */
.wrap-pilot #intro, .wrap-pf #intro { display:none !important; }
/* 必填红星跟在类目名称后面，不再单独占一行。 */
.pf .pf-lb { display:inline-flex; align-items:baseline; gap:2px; white-space:nowrap; }
.pf .pf-lb b { line-height:1; }
/* [2026-11-09 刘总 13:34] 预览卡片右侧的「演示图」占位已删除，
   内容恢复占满整张卡片，不再留右侧空列。 */

/* [2026-11-09 刘总 13:36] 没选服务地区 / 擅长方向时不再留一大块空白，
   下面的添加框直接跟上来，整段更紧凑。 */
.pf-chips:empty { display:none; }
.pf-chips:empty + .pf-add { margin-top:7px; }
/* A/B/暂停三档：圆圈在左，选项标题紧跟着圆圈放在同一行。
   .pf label 的竖排规则优先级更高，这里用更高的选择器明确改回横排。 */
.pf label.pf-mode { flex-direction:row; align-items:flex-start; gap:10px; }
.pf label.pf-mode > .pf-mode-body { min-width:0; }

/* ============================================================
   [2026-11-09 刘总 14:17] 三页按 7 张截图再收一轮
   ============================================================ */
/* 图1 / 图3 / 图6：右侧「实时预览」卡片隐藏。
   只藏不删：预览 DOM 仍在页面里，将来想恢复去掉这一条即可。 */
.pf-side { display:none !important; }
.pf-grid { grid-template-columns:minmax(0,1fr) !important; }
.wst2.apply-page .wrap.wrap-pf, .wst2.apply-page .wrap.wrap-pilot { max-width:820px; }
/* 说明条从右侧栏挪到步骤条下方占满一行，不再有右边空列。 */
.pf-note { margin:0 0 14px; }
/* 图2 / 图4 / 图7：四个椭圆不换行，缩小字号与留白，窄屏也排成一行。 */
.pf-steps { flex-wrap:nowrap; gap:5px; margin-bottom:14px; }
.pf-step { font-size:12px; padding:6px 10px; white-space:nowrap; flex:0 0 auto; }
.pf-arrow { font-size:11px; flex:0 0 auto; }
@media (max-width:520px){
  .pf-steps { gap:3px; margin-bottom:12px; }
  .pf-step { font-size:11px; padding:5px 7px; }
  .pf-arrow { font-size:10px; }
}
@media (max-width:360px){
  .pf-steps { gap:2px; }
  .pf-step { font-size:10px; padding:4px 5px; }
  .pf-arrow { font-size:9px; }
}
