/* ===== 极简版（方案 B）· 独立样式 ===== */
body.mode-simple .app { display: none !important; }
#simpleRoot { display: none; }
body.mode-simple #simpleRoot { display: block; }

#simpleRoot { max-width: 760px; margin: 0 auto; padding: 20px 20px 48px; }
.smp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.smp-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.smp-brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 14px; }
.smp-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 20px; }
.smp-tab { min-height: 48px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text-2); border-radius: 10px; font: inherit; font-size: 16px; cursor: pointer; }
.smp-tab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.smp-h1 { font-size: 24px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.smp-sub { font-size: 13px; color: var(--text-2); margin: 0 0 18px; line-height: 1.7; }
.smp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.smp-field { margin-bottom: 12px; }
.smp-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.smp-input, .smp-select { width: 100%; height: 48px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-control); border-radius: 10px; padding: 0 12px; }
.smp-out { list-style: none; margin: 0; padding: 0; }
.smp-out li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.smp-out li:last-child { border-bottom: 0; }
.smp-k { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: var(--accent-2); min-width: 74px; }
.smp-v { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.smp-v b { color: var(--text); font-weight: 600; }
.smp-v a { color: var(--accent); }
.smp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 16px; text-decoration: none; cursor: pointer; }
.smp-btn.ghost { background: transparent; color: var(--accent); }
.smp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.smp-types { display: grid; gap: 10px; }
.smp-type { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px; border: 1px solid var(--border-control); border-radius: 12px; background: var(--surface); font: inherit; font-size: 16px; color: var(--text); cursor: pointer; text-align: left; }
.smp-type em { font-style: normal; font-size: 13px; color: var(--text-2); }
.smp-type.is-on { border-color: var(--accent); background: var(--accent-weak); }
.smp-mats { margin: 8px 0 0; padding: 0; list-style: none; }
.smp-mats li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; line-height: 1.7; }
.smp-mats li b { display: block; font-size: 15px; margin-bottom: 2px; }
.smp-mats li:last-child { border-bottom: 0; }
.smp-who { display: grid; gap: 10px; }
.smp-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.smp-person i { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-weak); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 600; }
.smp-person div { flex: 1 1 auto; min-width: 0; }
.smp-person-tx { flex: 1 1 auto; min-width: 0; }
.smp-person b { display: block; font-size: 16px; color: var(--text); }
.smp-person em { font-style: normal; font-size: 13px; color: var(--text-2); line-height: 1.45; display: block; }
.smp-tel { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.smp-tel-full { padding: 0 10px; font-size: 12px; white-space: nowrap; letter-spacing: -.02em; }
.smp-sys { display: grid; gap: 10px; }
.smp-sys a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); }
.smp-sys a:hover { border-color: var(--accent); }
.smp-sys svg, .smp-sys i { flex: 0 0 28px; width: 24px; height: 24px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smp-sys-ico { flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; }
.smp-sys-tx { flex: 1 1 auto; min-width: 0; }
.smp-sys b { display: block; font-size: 16px; }
.smp-sys em { font-style: normal; font-size: 13px; color: var(--text-2); }
.smp-foot { margin-top: 28px; font-size: 13px; color: var(--text-3); line-height: 1.8; }
.smp-foot a { color: var(--accent); }
@media (min-width: 640px) {
  .smp-types { grid-template-columns: repeat(2, 1fr); }
}


/* 极简版：要找的搜索条（更轻） */
.smp-search { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 20px; height: 48px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.smp-search-ico { color: var(--text-3); font-size: 16px; line-height: 1; }
.smp-search-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.smp-search-input::placeholder { color: var(--text-3); }
.smp-search-clear { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; }
.smp-search-clear:hover { color: var(--text); }


/* 极简版：智能搜索条 */
.smp-ai { margin-top: 18px; }
.smp-ai-row { display:flex; align-items:center; gap:8px; height:52px; padding:0 8px 0 12px; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.smp-ai-ico { color: var(--accent); font-size: 15px; }
.smp-ai-input { flex:1; min-width:0; height:100%; border:0; background:transparent; font:inherit; font-size:16px; color:var(--text); outline:none; }
.smp-ai-go { height:44px; min-width:44px; padding:0 16px; border:0; border-radius:999px; background:var(--accent); color:var(--accent-ink,#fff); font:inherit; font-size:14px; cursor:pointer; }
.smp-ai-card { margin-top:10px; padding:14px 16px; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.smp-ai-card b { font-size:15px; }
.smp-ai-pts { margin:8px 0 0; padding-left:18px; font-size:14px; line-height:1.65; color:var(--text-2); }
.smp-ai-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.smp-ai-links a { font-size:13px; color:var(--accent); text-decoration:none; border:1px solid var(--accent-line,#B9C9FB); border-radius:999px; padding:4px 10px; }

.smp-lead { margin: 0 0 14px; font-size: 15px; color: var(--text-2); }


/* ===== 极简版·排版收敛（按提示词规格：正文 16/1.7、间距 8 的倍数、48px 触控） ===== */
#simpleRoot { padding: 20px 20px 40px; }
.smp-tabs { margin: 16px 0 16px; }
.smp-card { padding: 16px; margin-bottom: 20px; box-shadow: none; }
.smp-v { font-size: 15px; line-height: 1.75; }
.smp-mats li { font-size: 15px; line-height: 1.75; }
.smp-k { font-size: 15px; min-width: 72px; }
.smp-field + .smp-field { margin-top: 12px; }
.smp-input:focus, .smp-select:focus, .smp-btn:focus-visible, .smp-tab:focus-visible, .smp-tel:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.smp-search:focus-within { border-color: var(--accent); background: var(--surface); }
.smp-ai-row:focus-within { border-color: var(--accent); }
.smp-out li:last-child { border-bottom: 0; padding-bottom: 4px; }
.smp-foot { margin-top: 24px; }

@media (max-width: 560px) {
  .smp-tabs { grid-template-columns: 1fr 1fr; }
  #simpleRoot { padding: 16px 14px 32px; }
  .smp-out li { flex-direction: column; gap: 4px; }
  .smp-k { min-width: 0; }
  .smp-actions .smp-btn { flex: 1 1 100%; }
}


/* 要买：左表单 / 右结论（仿金额判断器） */
.smp-buy { display: grid; gap: 20px; align-items: start; }
@media (min-width: 700px) {
  .smp-buy { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .smp-card-form { margin-bottom: 0; }
}
.smp-tools { display: flex; align-items: center; gap: 8px; }
.smp-tel.smp-tel-sm { min-height: 44px; font-size: 13px; }


/* 简洁版主题图标（放最右） */
.smp-icon { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text-2); font-size: 15px; line-height: 1; cursor: pointer; }
.smp-icon:hover { border-color: var(--accent); color: var(--accent); }
#themeBtn { position: relative; }

/* ===== v29 · 极简版办事进度条 ===== */
.smp-stage {
  margin: 14px 0 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.smp-stage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.smp-stage-top b { font-size: 15px; color: var(--text); }
.smp-stage-top span { font-size: 12px; color: var(--text-3); }
.smp-stage-bar { display: flex; gap: 6px; }
.smp-stage-dot {
  flex: 1; height: 34px; border-radius: 8px;
  border: 1px solid var(--border-control); background: var(--surface);
  color: var(--text-3); font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.smp-stage-dot.is-done { background: var(--ok-weak); border-color: var(--ok); color: var(--ok); }
.smp-stage-dot.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.smp-stage-next {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; font-size: 13px; color: var(--text-2);
}
.smp-stage-next button {
  min-height: 40px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--accent); background: var(--accent-weak); color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.smp-stage-tip { margin: 8px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ============================================================
   v31 · 极简版移动端修复：头部不溢出 / 阶段卡折叠 / 我的 / 官方表单
   ============================================================ */

/* 底部给浮钮和手势留白 */
#simpleRoot { padding-bottom: 96px; }
body.mode-simple .fang-fab { display: none !important; }

/* ---------- 头部：品牌可省略、工具不缩、不溢出 ---------- */
.smp-top { gap: 8px; flex-wrap: nowrap; }
.smp-brand { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smp-tools { flex: 0 0 auto; gap: 6px; }
.smp-tel { flex: 0 0 auto; padding: 0 10px; font-size: 13px; }
.smp-icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--border-control);
  background: var(--surface); color: var(--text-2);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.smp-icon:hover { border-color: var(--accent); color: var(--accent); }
.smp-icon .smp-auto { font-size: 10px; font-weight: 800; letter-spacing: .02em; color: inherit; }
.smp-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border-control); background: var(--accent-weak); color: var(--accent);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1;
}
.smp-avatar:hover { border-color: var(--accent); }

/* ---------- 阶段卡：默认一行，展开看详情 ---------- */
.smp-stage {
  margin: 14px 0 0; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.smp-stage-summary {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 54px; padding: 10px 14px;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer;
}
.smp-stage-now { display: flex; flex-direction: column; min-width: 0; }
.smp-stage-now i { font-style: normal; font-size: 11px; color: var(--text-3); line-height: 1.4; }
.smp-stage-now b { font-size: 15px; color: var(--text); line-height: 1.3; }
.smp-stage-nx {
  margin-left: auto; min-width: 0; max-width: 46%;
  font-size: 12px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.smp-caret { flex: 0 0 auto; color: var(--text-3); transition: transform .18s var(--ease, ease); }
.smp-stage.is-open .smp-caret { transform: rotate(180deg); }
.smp-stage-body { padding: 0 14px 14px; border-top: 1px dashed var(--border); }
.smp-stage-bar { display: flex; gap: 5px; padding: 12px 0 4px; }
.smp-stage-dot {
  flex: 1; min-width: 0; height: 44px; border-radius: 9px;
  border: 1px solid var(--border-control); background: var(--surface);
  color: var(--text-3); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.smp-stage-dot.is-done { background: var(--ok-weak); border-color: var(--ok); color: var(--ok); }
.smp-stage-dot.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.smp-stage-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.smp-stage-next button {
  min-height: 44px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--accent); background: var(--accent-weak); color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.smp-stage-tip { margin: 10px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.smp-stage-sub { margin: 12px 0 6px; font-size: 11.5px; color: var(--text-3); }
.smp-stage-forms { display: flex; flex-direction: column; gap: 6px; }
.smp-form-link {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-2); text-decoration: none;
}
.smp-form-link b { font-size: 13px; color: var(--text); font-weight: 600; }
.smp-form-link em { font-style: normal; font-size: 11.5px; color: var(--accent); }
.smp-form-all {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; font-size: 13px; color: var(--accent);
  border: 1px dashed var(--accent-line); border-radius: 9px; text-decoration: none;
}
.smp-stage-contact {
  width: 100%; min-height: 44px; margin-top: 10px;
  border: 1px solid var(--border-control); border-radius: 9px;
  background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 13px; cursor: pointer;
}

/* ---------- 入口屏：官方表单卡片 ---------- */
.smp-form-entry {
  display: flex; align-items: center; gap: 12px; min-height: 64px;
  margin-top: 10px; padding: 0 16px;
  border: 1px solid var(--accent-line); border-radius: 12px;
  background: var(--accent-weak); color: var(--text); text-decoration: none;
}
.smp-form-ico { flex: 0 0 28px; width: 28px; height: 28px; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.smp-form-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smp-form-tx { flex: 1; min-width: 0; }
.smp-form-tx b { display: block; font-size: 16px; }
.smp-form-tx em { font-style: normal; font-size: 13px; color: var(--text-2); }
.smp-form-go { color: var(--accent); font-size: 18px; }

/* ---------- 我的（底部抽屉） ---------- */
.smp-sheet { position: fixed; inset: 0; z-index: 200; }
.smp-sheet[hidden] { display: none; }
.smp-sheet-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); }
.smp-sheet-card {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, .18);
  display: flex; flex-direction: column; gap: 8px;
}
.smp-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.smp-sheet-head b { font-size: 17px; }
.smp-sheet-head button {
  width: 44px; height: 44px; border: 0; background: none;
  color: var(--text-3); font-size: 24px; cursor: pointer; border-radius: 50%;
}
.smp-sheet-user { display: flex; align-items: center; gap: 10px; padding: 10px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.smp-sheet-user i { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.smp-sheet-user b { display: block; font-size: 15px; }
.smp-sheet-user em { font-style: normal; font-size: 12px; color: var(--text-3); }
.smp-sheet-item {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 4px; border: 0; background: none;
  font: inherit; font-size: 15px; color: var(--text); text-decoration: none; cursor: pointer;
}
.smp-sheet-item.danger { color: var(--danger); }
.smp-sheet-item span { color: var(--text-3); }
.smp-sheet-meta { margin: 10px 0 2px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.smp-stage-next { justify-content: flex-end; }
.smp-stage-next button { width: 100%; }

/* ===== v31 P2：要买结论置顶 + 看依据按钮 44px ===== */
.smp-verdict { display: none; }
@media (max-width: 699px) {
  .smp-verdict {
    display: flex; flex-direction: column; gap: 10px;
    margin: 0 0 14px; padding: 14px;
    background: var(--surface); border: 1px solid var(--accent-line); border-radius: 12px;
  }
  .smp-verdict.is-empty { border-style: dashed; border-color: var(--border-control); }
  .smp-verdict.is-empty b { font-size: 14px; color: var(--text); }
  .smp-verdict.is-empty span { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
  .smp-verdict-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .smp-verdict-tag {
    font-size: 11px; font-weight: 700; color: var(--ok);
    background: var(--ok-weak); padding: 3px 8px; border-radius: 99px;
  }
  .smp-verdict-tag.is-gov { color: var(--accent); background: var(--accent-weak); }
  .smp-verdict-head b { font-size: 15px; color: var(--text); }
  .smp-verdict-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .smp-verdict-chip { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 9px; background: var(--surface-2); border-radius: 8px; }
  .smp-verdict-chip i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
  .smp-verdict-chip b { font-size: 12.5px; color: var(--text); line-height: 1.35; }
  .smp-verdict-more {
    min-height: 44px; border: 1px solid var(--border-control); border-radius: 9px;
    background: var(--surface); color: var(--accent);
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .smp-v a {
    display: inline-flex; align-items: center; min-height: 44px;
    margin-top: 4px; padding: 0 12px;
    border: 1px solid var(--border-control); border-radius: 9px;
    background: var(--surface); font-size: 13px; text-decoration: none;
  }
}
/* 结论卡预留固定高度：输入金额时表单不被推来推去 */
@media (max-width: 699px) {
  .smp-verdict { min-height: 190px; justify-content: center; }
}
@media (max-width: 699px) {
  .smp-verdict-tag.is-wait { color: var(--text-3); background: var(--surface-2); }
  .smp-verdict.is-empty .smp-verdict-chip b { color: var(--text-3); }
  .smp-verdict-hint { font-size: 12px; color: var(--text-3); line-height: 1.6; text-align: center; }
}

/* 头像图片 */
.smp-avatar { overflow: hidden; padding: 0; }
.smp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.smp-sheet-user i { overflow: hidden; }
.smp-sheet-user i img { width: 100%; height: 100%; object-fit: cover; display: block; }

html[data-ava-shape="square"] .smp-avatar,
html[data-ava-shape="square"] .smp-sheet-user i { border-radius: 12px; }
