/* ==========================================================
   年报一站式服务系统（NBS）· 全局样式
   移动端 H5 前台 + 桌面端后台 共用；主色 #ff6600
   纯手写 CSS，无任何外部依赖 / 外链字体
   ========================================================== */
:root {
  --primary: #ff6600;
  --primary-d: #d95400;
  --primary-l: #fff3e8;
  --primary-b: #ffd9bd;
  --t1: #1f2329;
  --t2: #5c6470;
  --t3: #9aa3af;
  --t4: #c2c8d0;
  --line: #e9edf2;
  --line2: #f3f5f8;
  --bg: #f4f6f9;
  --card: #fff;
  --ok: #12a150;
  --ok-bg: #e7f7ee;
  --warn: #e8930c;
  --warn-bg: #fff5e5;
  --danger: #e34d59;
  --danger-bg: #fdecec;
  --info: #2b6cf6;
  --info-bg: #eaf1ff;
  --r: 8px;
  --sh: 0 2px 8px rgba(31, 35, 41, 0.06);
  --sh-lg: 0 8px 30px rgba(31, 35, 41, 0.14);
  --sidebar: #1f2430;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--t1); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
input, textarea, select { outline: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.is-hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: Consolas, Menlo, "Courier New", monospace; }
.muted { color: var(--t3); }
.sub { color: var(--t2); }
.price { color: var(--primary); font-weight: 700; }
.price-old { color: var(--t4); text-decoration: line-through; font-weight: 400; margin-left: 6px; }

/* ---------------- 通用组件 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--r); cursor: pointer;
  font-size: 14px; color: var(--t1); transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--t4); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-primary:disabled,
.btn:disabled { background: #f0f1f3; border-color: #f0f1f3; color: var(--t4); cursor: not-allowed; transform: none; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); border-color: #f5c2c6; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-link { height: auto; padding: 0; border: 0; background: none; color: var(--primary); }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.card-pad { padding: 12px 14px; }
.card + .card { margin-top: 10px; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 4px; font-size: 12px; background: var(--line2); color: var(--t2);
  white-space: nowrap;
}
.tag-primary { background: var(--primary-l); color: var(--primary-d); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-info { background: var(--info-bg); color: var(--info); }
.tag-dark { background: rgba(0, 0, 0, .06); color: var(--t2); }

.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 3px; font-size: 11px; border: 1px solid; margin-right: 4px;
}
.badge-dup { color: var(--warn); border-color: #f5cf92; background: var(--warn-bg); }
.badge-batch { color: var(--info); border-color: #b6cdfb; background: var(--info-bg); }

.empty { padding: 40px 16px; text-align: center; color: var(--t3); }
.empty-ico { font-size: 34px; margin-bottom: 8px; opacity: .5; }
.loading { padding: 40px 16px; text-align: center; color: var(--t3); }
.error-box {
  margin: 12px; padding: 14px; background: #fff; border: 1px solid #f5c2c6;
  border-radius: var(--r); color: var(--danger); text-align: center;
}
.form-error {
  display: none; margin: 0 0 12px; padding: 9px 12px; border-radius: var(--r);
  background: var(--danger-bg); border: 1px solid #f7ccd0; color: var(--danger);
  font-size: 13px;
}
.form-error.show { display: block; }
.form-tip { font-size: 12px; color: var(--t3); }

.toast {
  position: fixed; left: 50%; top: 50%;
  transform: translateX(-50%) translateY(-50%) scale(.96);
  max-width: 82vw; padding: 10px 16px; border-radius: var(--r);
  background: rgba(31, 35, 41, .92); color: #fff; font-size: 14px; z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1); }
.toast.err { background: rgba(197, 48, 48, .95); }
.toast.ok { background: rgba(15, 145, 78, .95); }

.field { margin-bottom: 12px; }
.field > label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--t2); }
.field > label .req { color: var(--danger); margin-right: 2px; }
.input, .textarea, .select {
  width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: var(--r); background: #fff; transition: border-color .15s;
}
.textarea { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); }
.input::placeholder, .textarea::placeholder { color: var(--t4); }
.select { appearance: none; background-image: none; padding-right: 26px; }

.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ==========================================================
   前台 H5（1:1 对齐既有系统：主题色默认 #18bc9c、可在后台「前台内容」中调整；底色 #f5f5f5、卡片 10px 圆角）
   后台管理使用 :root 的橙色主题，不受此处影响
   ========================================================== */
body.h5-body {
  --primary: #18bc9c;
  --primary-d: #12a488;
  --primary-l: #e7f7f3;
  --primary-b: #b4e6da;
  /* 办理链路主题色（信息填写 / 企业信息确认），后台可配 flow_theme_color */
  --flow: #e54d42;
  --flow-d: #c93d33;
  --flow-l: #fdecea;
  --flow-b: #f7bdb8;
  /* 底部导航高度：只在首页显示，其余页面为 0（底部固定条随之上移） */
  --tabbar-h: 0px;
  --bg: #f5f5f5;
  --card: #fff;
  --r: 10px;
  --sh: none;
  --t1: #1f2329;
  --t2: #5c6470;
  --t3: #999;
  --t4: #c2c8d0;
  --line: #ededed;
  --line2: #f5f5f5;
  font-size: 14px;
}
body.h5-body.with-tabbar { --tabbar-h: calc(50px + env(safe-area-inset-bottom)); }
.h5-body { background: #f5f5f5; }
.h5-wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #f5f5f5; padding-bottom: calc(var(--tabbar-h) + 16px); }
.h5-topbar {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px;
  background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 20;
}
.h5-topbar .tb-title { font-size: 16px; font-weight: 600; }
.h5-topbar .tb-back {
  width: 30px; height: 30px; border: 0; background: rgba(255, 255, 255, .18);
  color: #fff; border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1;
}
.h5-section { margin: 10px; }
.h5-card { background: #fff; border-radius: var(--r); padding: 12px; }
.h5-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; margin-bottom: 10px;
}
.h5-title .more { font-size: 12px; color: var(--t3); font-weight: 400; }

/* ---------------- 首页：与既有系统同名的 nui-* 结构 ---------------- */
.nui-page { margin: 15px; }
.nui-block { margin-bottom: 15px; }

/* 首页顶部轮播横幅（1:1 对齐既有系统）
   既有系统结构：.nui-topbgbox > .nui-slider-box > .nui-slider（全宽图片轮播，高 10rem=160px，
   底部白色指示点，间隔 5s 自动播放）；图片取后台「轮播图片」中已启用的条目。 */
.nui-topbgbox { margin-bottom: 15px; }
.nui-slider-box { min-height: 160px; }
.nui-slider { height: 160px; position: relative; overflow: hidden; }
.nui-slider-track { display: flex; height: 100%; transition: transform .15s ease; }
.nui-slider-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.nui-slider-slide.clickable { cursor: pointer; }
.nui-slide-image { width: 100%; height: 160px; display: block; }
.nui-slider-dots {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  text-align: center; white-space: nowrap;
}
.nui-slider-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: rgba(255, 255, 255, .8);
  cursor: pointer; transition: background-color .2s;
}
.nui-slider-dot:last-child { margin-right: 0; }
.nui-slider-dot.active { background: #fff; }

/* 企业申报 + 搜索 */
.nui-searchbox { background-color: #fff; padding: 10px; border-radius: 10px; margin-bottom: 15px; }
.nui-search-title { display: flex; align-items: center; margin-bottom: 10px; }
.nui-search-image { width: 21px; height: auto; display: block; border-radius: 50%; margin-right: 5px; }
.nui-search-ttxt { font-size: 15px; font-weight: 700; }
.nui-searchbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 10px; border-radius: 25px;
}
.nui-search-left {
  border: 1px solid var(--primary); width: 80%; display: flex; align-items: center;
  padding-left: 10px; padding-right: 10px; height: 40px; line-height: 40px;
  border-top-left-radius: 25px; border-bottom-left-radius: 25px;
}
.nui-search-icon { width: 10%; color: var(--primary); display: flex; align-items: center; }
.nui-search-input {
  width: 85%; font-size: 14px; border: 0; background: transparent; color: var(--t1);
  min-width: 0; /* 长输入不撑破圆角边框 */
}
.nui-search-input::placeholder { color: #999; }
.nui-search-btn {
  width: 20%; height: 40px; line-height: 40px; border-top-right-radius: 25px;
  border-bottom-right-radius: 25px; font-size: 14px; text-align: center;
  color: #fff; background-color: var(--primary); border: 1px solid var(--primary); cursor: pointer;
}
.nui-search-total { margin-top: 10px; margin-bottom: 5px; text-align: center; font-size: 13px; color: #666; }
.nui-search-totaltxt { font-weight: 700; color: var(--primary); }

/* 推荐业务 */
.nui-recommendbox { display: flex; flex-direction: column; align-items: center; }
.nui-recommend-title { font-size: 16px; font-weight: 700; }
.nui-recommend-line { width: 25px; height: 5px; border-radius: 15px; background-color: var(--primary); }
.nui-business-list {
  margin-top: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.nui-business-item {
  /* 卡片外宽 48%：既有系统（老站 uni-app）是 content-box —— width 44% + padding 2%
     得到 48% 的外宽，两列之间只剩 4% 间隙；本系统全局 border-box，故直接取 48%，
     与老系统视觉一致（原来取 44%，列间空档是老系统的 3 倍）。 */
  width: 48%; background-color: #fff; padding: 10px 2%; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; margin-bottom: 15px; cursor: pointer;
}
.nui-business-item:active { opacity: .92; }
.nui-business-image { width: 90%; height: auto; display: block; border-radius: 10px; background: #f2f7fb; }
.nui-business-image-ph {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 30px; color: var(--primary);
}
.nui-business-main { display: flex; flex-direction: column; align-items: center; margin-top: 5px; }
.nui-business-title { font-size: 14px; color: #f60; }
.nui-business-subtitle { font-size: 12px; color: #666; margin-top: 5px; }
.nui-business-btnbox { margin-top: 10px; }
.nui-business-btn {
  background-color: var(--primary); border-radius: 25px; font-size: 12px; color: #fff;
  padding: 3px 10px; display: inline-block;
}

/* 最新公告 */
.nui-articlebox { padding: 10px; background-color: #fff; border-radius: 10px; margin-bottom: 15px; }
.nui-item-box { width: 100%; display: flex; align-items: center; }
.nui-list-cell_name { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
.nui-right {
  margin-left: auto; font-size: 12px; color: var(--primary); padding: 3px 7.5px;
  border-bottom: 1px solid var(--primary); border-radius: 25px; cursor: pointer;
}
.nui-article-list {
  display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-top: 5px;
}
.nui-article-list[data-notice-id] { cursor: pointer; padding: 3px 0; }
.nui-article-list[data-notice-id]:active { opacity: .7; }
.nui-article-left { width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nui-title-tab {
  border: 1px solid var(--primary); color: var(--primary); padding: 2px 4px; font-size: 12px;
  display: inline-block;
}
.nui-article-title { margin-left: 2.5px; width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nui-article-right { width: 28%; text-align: right; color: #666; }

/* 公告详情正文 */
.notice-content {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0;
  font-size: 14px; line-height: 1.9; color: var(--t1); white-space: pre-wrap; word-break: break-word;
}

/* 温馨提示 */
.nui-tishibox { padding: 10px; background-color: #fff; border-radius: 10px; margin-bottom: 15px; }
.nui-tishi-box { width: 100%; }
.nui-tishi-title { font-weight: 700; color: var(--primary); }
.nui-tishi-desc { font-size: 13px; color: var(--primary); }
.nui-copyright {
  text-align: center; color: #a7a7a7; font-size: 12px; line-height: 1;
  padding: 15px 12px; padding-bottom: calc(15px + env(safe-area-inset-bottom));
}
.nui-nodata { margin-top: 50px; text-align: center; color: #888; font-size: 14px; }

/* 空态插画（1:1 对齐既有系统 tui-no-data：书本插画 100×100 + 灰色提示文案） */
.tui-nodata-box { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.tui-tips-icon {
  display: block; flex-shrink: 0; width: 100px; height: 100px; margin-bottom: 15px;
  object-fit: contain;
}
.tui-tips-content {
  text-align: center; color: #666; font-size: 14px;
  padding: 0 25px 14px; box-sizing: border-box;
  word-break: break-all; word-wrap: break-word;
}

/* 订单查询列表（1:1 对齐既有系统 /pages/order/index 的 nui-list / nui-top / nui-main / nui-bottom）
   注意：既有系统的 .nui-list / .nui-top / .nui-main / .nui-company 与企业搜索结果页同名但结构不同，
   本页统一使用 oq- 前缀，避免与搜索结果样式互相覆盖。 */
.nui-listbox { margin: 15px; }
.oq-list {
  padding: 10px; background-color: #fff; margin-bottom: 15px;
  border-radius: 10px; cursor: pointer;
}
.oq-list:active { opacity: .92; }
.oq-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding-bottom: 10px;
}
.oq-ordersn { color: #333; }
.oq-status { flex-shrink: 0; }
.oq-main { background-color: #f5f5f5; padding: 10px; }
.oq-company { font-weight: 700; }
.oq-biz { margin-top: 10px; font-size: 14px; font-weight: 700; }
.oq-option { font-size: 14px; margin-top: 5px; }
.oq-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding-top: 10px;
}
.oq-time { color: #666; }
.oq-payfee { font-weight: 700; color: #f00; }
.oq-gray { color: #666; }
.oq-green { color: #07c160; }
.oq-blue { color: #05f; }
.oq-orange { color: #f60; }

/* 订单查询页整页版式（1:1 对齐既有系统 /pages/order/index）
   既有系统该页**没有顶部标题栏**：整块白底搜索区 + 圆角胶囊输入框，
   搜索图标 10%、输入框 75%、搜索按钮 15%（按钮为主题色胶囊）。 */
.nui-orderpage { padding-bottom: 0; }
.nui-orderpage .nui-searchbox { border-radius: 0; padding: 10px; margin-bottom: 15px; }
.nui-orderpage .nui-searchbar {
  border: 1px solid var(--primary); padding: 5px 10px; border-radius: 25px;
}
.nui-orderpage .nui-search-icon {
  width: 10%; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.nui-orderpage .nui-search-input {
  width: 75%; font-size: 14px; border: 0; background: transparent; color: var(--t1); min-width: 0;
}
.nui-orderpage .nui-search-input::placeholder { color: #999; }
.nui-orderpage .nui-search-btn {
  width: 15%; padding: 5px; border-radius: 25px; font-size: 14px; text-align: center;
  color: #fff; background-color: var(--primary); border: 0; cursor: pointer;
  height: auto; line-height: normal;
}

/* 订单查询二次验证面板 */
.oq-verify {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.oq-verify-card {
  width: 100%; max-width: 520px; background: #fff;
  border-radius: 14px 14px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.oq-verify-t { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 8px; }
.oq-verify-tip { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 14px; }
.oq-verify-in {
  display: block; width: 100%; height: 42px; margin-bottom: 10px;
  border: 1px solid #e3e6eb; border-radius: 8px; padding: 0 12px;
  font-size: 15px; box-sizing: border-box; outline: none;
}
.oq-verify-in:focus { border-color: var(--primary); }
.oq-verify-msg { min-height: 18px; font-size: 13px; color: #e54d42; margin-bottom: 6px; }
.oq-verify-btns { display: flex; gap: 10px; }
.oq-verify-btns .btn { margin: 0; }

/* 通用弹窗（对齐既有系统 uni.showModal：标题 + 正文 + 蓝色【确定】） */
.nui-modal {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.nui-modal-card {
  width: 100%; max-width: 320px; background: #fff;
  border-radius: 10px; overflow: hidden; text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.nui-modal-title {
  font-size: 17px; font-weight: 700; color: #222;
  padding: 22px 20px 0; line-height: 1.4;
}
.nui-modal-text {
  font-size: 15px; color: #888; line-height: 1.7;
  padding: 12px 24px 24px; word-break: break-all;
}
.nui-modal-foot { border-top: 1px solid #eee; }
.nui-modal-btn {
  padding: 14px 0; font-size: 16px; color: #1989fa;
  font-weight: 700; cursor: pointer; user-select: none;
}
.nui-modal-btn:active { background: #f4f8ff; }

/* 客服信息弹窗（1:1 对齐既有系统 tui-modal + nui-kefu-phone）
   遮罩 rgba(0,0,0,.6)；弹窗宽 84%、内边距 20px 32px、圆角 12px、白底；
   标题「客服信息」17px 粗体；号码为主题色（点击可拨号）。 */
.tui-modal__container {
  width: 100%; height: 100%; position: fixed; left: 0; top: 0; z-index: 9997;
  display: flex; align-items: center; justify-content: center; visibility: hidden;
}
.tui-modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9990;
  background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden;
  transition: all .3s ease-in-out;
}
.tui-modal-box {
  position: relative; z-index: 9998; opacity: 0; visibility: hidden;
  box-sizing: border-box; transition: all .3s ease-in-out;
  width: 84%; padding: 20px 32px; border-radius: 12px;
  background-color: #fff; transform: scale(0);
}
.tui-modal-show { opacity: 1; visibility: visible; }
.tui-modal-normal { transform: scale(1); }
.tui-modal-custom { display: flex; flex-direction: column; align-items: center; }
.tui-prompt-title { padding-bottom: 10px; font-size: 17px; font-weight: 700; }
.nui-kefu-phone { margin-bottom: 10px; }
.nui-kefu-phone .kefu-num { color: var(--primary); cursor: pointer; }
.nui-kefu-btnbox { width: 80%; }

/* 搜索结果（既有系统为独立列表页，此处内联，样式一致） */
.nui-list {
  padding: 10px; background-color: #fff; margin-bottom: 10px; border-radius: 5px; cursor: pointer;
}
.nui-top { display: flex; justify-content: space-between; align-items: center; }
.nui-name { font-size: 14px; font-weight: 700; }
.nui-status { color: #07c160; font-size: 12px; }
.nui-creditcode { font-size: 12px; color: #666; }
.nui-main {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; margin-bottom: 10px; font-size: 12px;
}
.nui-main-left { display: flex; justify-content: flex-start; align-items: center; width: 75%; }
.nui-main-right { width: 25%; padding: 5px 10px; box-sizing: border-box; }
.nui-main-item { text-align: center; margin-right: 10%; }
.nui-item-top { color: #888; }
.nui-item-bottom { margin-top: 5px; }
.nui-submit {
  width: 100%; display: inline-block; border: 1px solid #0777ea; color: #0777ea;
  background-color: #efeff4; padding: 5px; border-radius: 3px; font-size: 13px;
  font-weight: 700; text-align: center;
}

/* 已选企业（对齐既有系统 nui-storage / nui-company / nui-company-info） */
.nui-storage {
  background-color: #fff; padding: 10px; border-radius: 6px;
  box-shadow: 0.5px 3px 3px #ccc; margin-bottom: 15px; cursor: pointer;
}
.nui-storage-head { display: flex; justify-content: space-between; align-items: center; }
.nui-company { font-size: 20px; font-weight: 700; }
.nui-storage-clear {
  font-size: 12px; color: var(--primary); border: 1px solid var(--primary);
  border-radius: 12px; padding: 2px 10px; flex: none; white-space: nowrap;
}
.nui-company-info {
  margin-top: 10px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #efeff4; font-size: 14px; padding-bottom: 10px;
}
.nui-realname { color: #444; }
.nui-storage-tip { margin-top: 8px; font-size: 12px; color: #999; }

/* 底部导航（1:1 对齐既有系统 tui-tabbar）
   既有系统规格：整条高 3.125rem=50px；图标 1.625rem=26px；文字 .tui-text-scale
   （font-weight 700 + scale(.8)，视觉字号 12.5px）；未选中 #707070、选中主题色；
   顶部 1px #b2b2b2 的 0.5px 细线；仅首页显示（既有系统该组件挂在首页页面上）。 */
.tui-tabbar {
  width: 100%; max-width: 480px; height: 50px; display: flex;
  align-items: center; justify-content: space-between; position: relative;
  background: #fff;
}
.tui-tabbar-fixed {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box !important; z-index: 9999;
}
.tui-tabbar:before {
  content: " "; width: 100%; border-top: 1px solid #b2b2b2; position: absolute;
  top: -0.03125rem; left: 0; transform: scaleY(.5) translateZ(0);
  transform-origin: 0 0; display: block; z-index: 3;
}
.tui-tabbar-item {
  height: 100%; flex: 1; display: flex; text-align: center; align-items: center;
  flex-direction: column; justify-content: space-between; position: relative;
  padding: 0.3125rem 0; box-sizing: border-box; z-index: 5;
  color: #707070; cursor: pointer; text-decoration: none;
}
.tui-icon-box { position: relative; }
.tui-tabbar-icon { width: 26px; height: 26px; display: block; }
.tui-tabbar-icon.on { display: none; }
.tui-tabbar-item.active .tui-tabbar-icon { display: none; }
.tui-tabbar-item.active .tui-tabbar-icon.on { display: block; }
.tui-text-scale {
  font-weight: 700; transform: scale(.8); font-size: 12.5px; line-height: 14px;
  transform-origin: center 100%; color: #707070;
}
.tui-tabbar-item.active .tui-text-scale { color: var(--primary); }

/* 下单页 */
.form-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 14px 12px; margin: 10px; }
/* 【套餐已下线（v1.14）】原 .opt-list / .opt-item / .oi-radio 随「选择套餐」板块一起移除 */
.agree-box { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.agree-head { padding: 9px 10px; background: var(--line2); font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.agree-body { max-height: 160px; overflow: auto; padding: 10px; font-size: 12px; color: var(--t2); line-height: 1.7; white-space: pre-wrap; }
.agree-check { display: flex; align-items: center; gap: 7px; padding: 10px; font-size: 13px; }
.agree-check input { width: 15px; height: 15px; accent-color: var(--primary); }
/* 底部固定条（既有系统图4/图5：提交条与费用条固定在底部） */
.submit-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: var(--tabbar-h); width: 100%; max-width: 480px; z-index: 25;
  padding: 10px 12px; background: #fff; border-top: 1px solid var(--line);
}
body.h5-body:not(.with-tabbar) .submit-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.submit-bar .sum { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.submit-bar .sum .amt { font-size: 20px; color: var(--primary); font-weight: 700; }

/* 支付页 */
.pay-way { display: flex; gap: 10px; }
.pay-way .pw {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px;
  text-align: center; cursor: pointer; font-size: 13px; background: #fff;
}
.pay-way .pw.on { border-color: var(--primary); background: var(--primary-l); color: var(--primary-d); }
.pay-way .pw .pwi { font-size: 22px; }
.pay-amount { text-align: center; padding: 22px 0 16px; }
.pay-amount .pa-v { font-size: 34px; font-weight: 700; color: var(--primary); }
.pay-amount .pa-l { font-size: 12px; color: var(--t3); }
.kv { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--line2); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--t3); flex: none; width: 84px; }
.kv .v { flex: 1; word-break: break-all; text-align: right; }
.pay-result { text-align: center; padding: 26px 16px; }
.pay-result .pr-ico { font-size: 52px; color: var(--ok); }
.pay-result .pr-t { font-size: 18px; font-weight: 700; margin-top: 6px; }
.pay-result .pr-s { font-size: 13px; color: var(--t3); margin-top: 4px; }
.pay-result .pr-btn { display: flex; gap: 10px; margin-top: 20px; }

/* 进度条 */
.steps { display: flex; align-items: flex-start; padding: 6px 0; }
.step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--t4); }
.step .s-dot {
  width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 5px; background: #eef0f3;
  color: #fff; font-size: 12px; line-height: 22px; position: relative; z-index: 2;
}
.step::before {
  content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #eef0f3; z-index: 1;
}
.step:first-child::before { display: none; }
.step.done .s-dot { background: var(--ok); }
.step.done::before { background: var(--ok); }
.step.done { color: var(--t2); }
.step.cur .s-dot { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.step.cur { color: var(--primary); font-weight: 600; }
.step.fail .s-dot { background: var(--danger); }
.step.fail { color: var(--danger); }

/* ==========================================================
   后台管理
   ========================================================== */
.admin-body { background: var(--bg); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #232936, #38404f); }
.login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 12px; padding: 26px 24px; box-shadow: var(--sh-lg); }
.login-brand { text-align: center; margin-bottom: 20px; }
.login-brand .lb-t { font-size: 20px; font-weight: 700; }
.login-brand .lb-s { font-size: 12px; color: var(--t3); margin-top: 4px; }
.login-tip { margin-top: 14px; font-size: 12px; color: var(--t3); text-align: center; line-height: 1.8; }

/* 后台整体布局：固定一屏高，滚动只发生在右侧内容区，
   否则整页滚动会把左侧菜单一起带走（用户反馈的问题 1）。 */
.admin-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 200px; flex: none; background: var(--sidebar); color: #c8cfda;
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
}
.sidebar-brand { padding: 18px 16px; color: #fff; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08); flex: none; }
.sidebar-brand span { display: block; font-size: 11px; font-weight: 400; color: #7d8798; margin-top: 3px; }
.sidebar-nav { padding: 10px 0; flex: 1; overflow-y: auto; min-height: 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; cursor: pointer; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sidebar-nav a.active { background: var(--primary); color: #fff; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #7d8798; flex: none; }
.sidebar-foot .sf-user { color: #c8cfda; font-size: 13px; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.admin-topbar {
  height: 54px; background: #fff; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; padding: 0 16px; flex: none;
}
.admin-topbar h1 { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--t2); }
.admin-view { padding: 14px; flex: 1; overflow: auto; }

/* 统计聚合条 */
.agg-bar { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.agg-item { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 12px 16px; min-width: 150px; }
.agg-item .ai-l { font-size: 12px; color: var(--t3); }
.agg-item .ai-v { font-size: 22px; font-weight: 700; margin-top: 2px; }
.agg-item.c1 .ai-v { color: var(--primary); }
.agg-item.c2 .ai-v { color: var(--ok); }
.agg-item.c3 .ai-v { color: var(--danger); }

/* 页签 */
.tabs { display: flex; gap: 4px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs .tab {
  padding: 7px 14px; border-radius: 6px; font-size: 13px; color: var(--t2); cursor: pointer; border: 1px solid transparent;
}
.tabs .tab:hover { background: var(--line2); }
.tabs .tab.on { background: var(--primary); color: #fff; }

/* 筛选区 */
.filter-panel { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 12px; margin-bottom: 12px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-row .fitem { display: flex; flex-direction: column; gap: 4px; }
.filter-row .fitem label { font-size: 12px; color: var(--t3); }
.filter-row .input, .filter-row .select { height: 32px; width: 150px; }
.filter-row .input.narrow { width: 120px; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }

/* 表格 */
.table-wrap { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1180px; }
table.grid th, table.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line2); text-align: left; white-space: nowrap; }
table.grid th { background: #fafbfc; color: var(--t2); font-weight: 600; position: sticky; top: 0; }
table.grid tbody tr:hover { background: #fcfcfd; }
table.grid td.act { white-space: nowrap; }
table.grid td.act .btn { margin: 0 2px 2px 0; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 新增管理页的表格列少，取消最小宽度限制，避免无谓横向滚动 */
table.grid.grid-auto { min-width: 0; }
table.grid.grid-auto td { white-space: normal; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 13px; color: var(--t2); gap: 10px; flex-wrap: wrap; }
.pager .pg-btns { display: flex; gap: 6px; align-items: center; }

/* 看板 */
.board-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.board-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 16px; border-left: 3px solid var(--primary); }
.board-card .bc-l { font-size: 13px; color: var(--t3); }
.board-card .bc-v { font-size: 28px; font-weight: 700; margin-top: 4px; }
.board-card.c2 { border-left-color: var(--info); }
.board-card.c3 { border-left-color: var(--danger); }
.board-card.c4 { border-left-color: var(--ok); }
.board-card.c4 .bc-v { color: var(--ok); }

/* 抽屉（详情弹窗） */
.drawer-wrap { position: fixed; inset: 0; z-index: 100; }
.drawer-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 520px; max-width: 96vw;
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--sh-lg);
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 15px; }
.drawer-close { width: 28px; height: 28px; border: 0; background: var(--line2); border-radius: 6px; cursor: pointer; font-size: 14px; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 16px; }
.drawer-sec { margin-bottom: 16px; }
.drawer-sec h4 { font-size: 13px; color: var(--t2); margin-bottom: 8px; padding-left: 8px; border-left: 3px solid var(--primary); }
.dl { display: grid; grid-template-columns: 110px 1fr; font-size: 13px; }
.dl dt { color: var(--t3); padding: 5px 0; }
.dl dd { margin: 0; padding: 5px 0; word-break: break-all; }

/* 业务配置 */
.biz-editor { background: #fff; border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 14px; }
.biz-editor > header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.biz-editor > header h3 { font-size: 15px; }
.biz-editor .be-body { padding: 14px 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.form-grid .fg-item label { display: block; font-size: 12px; color: var(--t3); margin-bottom: 4px; }
.form-grid .fg-item.full { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; }
.switch input { width: 15px; height: 15px; accent-color: var(--primary); }
.opt-editor { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.opt-editor table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.opt-editor th, .opt-editor td { padding: 7px 10px; border-bottom: 1px solid var(--line2); text-align: left; }
.opt-editor th { background: #fafbfc; color: var(--t2); font-weight: 600; }
.opt-editor .input { height: 30px; }
.opt-editor td.num-cell { width: 96px; }
.opt-editor td.name-cell { width: 38%; }
.opt-editor .switch { font-size: 12px; }
.opt-row-wrap { overflow-x: auto; }
.biz-editor footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.biz-editor .err-msg { color: var(--danger); font-size: 13px; margin-right: auto; }

/* ================= 权限点勾选（用户与权限） ================= */
.perm-box {
  margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; max-height: 320px; overflow: auto; background: #fafbfc;
}
.perm-box .pg { margin-bottom: 10px; }
.perm-box .pg:last-child { margin-bottom: 0; }
.perm-box .pg-title { font-size: 12px; color: var(--t2); font-weight: 700; margin-bottom: 4px; }
.perm-box .pg-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 4px 2px; cursor: pointer;
}
.perm-box .pg-item input { width: 15px; height: 15px; accent-color: var(--primary); flex: none; }
.perm-box .pgi-name { min-width: 120px; }
.perm-box .pgi-code {
  font-family: Consolas, Menlo, "Courier New", monospace; font-size: 11px;
  color: var(--t3); background: #fff; border: 1px solid var(--line);
  border-radius: 3px; padding: 0 5px; flex: none;
}
.perm-box .pgi-desc { color: var(--t3); font-size: 12px; flex: 1; }
.perm-box .pg-item input:disabled + .pgi-name { color: var(--t3); }

@media (max-width: 768px) {
  .sidebar { width: 62px; }
  .sidebar-brand { font-size: 0; padding: 14px 8px; text-align: center; }
  .sidebar-brand span { display: none; }
  .sidebar-nav a { justify-content: center; padding: 11px 4px; font-size: 0; }
  .sidebar-nav a::first-letter { font-size: 15px; }
  .sidebar-foot { display: none; }
  .admin-view { padding: 10px; }
}

/* ==========================================================
   前台 H5 · 移动端适配层
   目标：iPhone SE(320) ~ iPhone Pro Max(430) ~ 平板(768) 全机型可用。
   1) 安全区：刘海/灵动岛顶部、底部 Home Indicator
   2) iOS 输入框聚焦自动缩放（font-size < 16px 会触发页面放大）
   3) 长文本溢出（企业名/订单号/信用代码）
   4) 小点击热区（≥44px 触控建议值）
   5) 超小屏与矮屏（横屏）微调
   ========================================================== */

/* ---------- 0. 全局移动端基线 ---------- */
/* 禁止 iOS 横屏时自动放大文字（text inflation） */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 去掉移动端 300ms 双击延迟，同时保留双指缩放 */
body { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* 任何图片不得超过容器宽度 */
img { max-width: 100%; }

/* ---------- 1. 安全区 ---------- */

/* 顶部：微信/iOS 状态栏与刘海区域 */
.h5-topbar {
  height: calc(46px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}
/* 底部：内容区需为固定导航栏（含 Home Indicator）留出空间
   —— 导航栏只在首页显示，高度统一由 --tabbar-h 给出 */
.h5-wrap {
  padding-bottom: calc(var(--tabbar-h) + 16px);
}
/* 底部固定栏的粘底定位同步安全区，避免提交条被导航栏压住 */
.submit-bar {
  bottom: var(--tabbar-h);
}
/* 顶部粘性栏在有安全区时，滚动内容的避让交给 padding 处理即可 */

/* ---------- 2. 表单控件字号（防聚焦自动缩放） ---------- */
/* iOS Safari：输入框字号 < 16px 时聚焦会自动放大整页，必须 >= 16px。
   Android Chrome 部分版本同样会放大，故移动端视口统一提到 16px。 */
@media (max-width: 900px) {
  .input,
  .textarea,
  .select,
  .nui-search-input,
  .oq-verify-in {
    font-size: 16px;
  }
}
/* iOS 专项（含 iPad 等宽度 > 768 的设备）：字号之外再把输入框提到 44px 触控友好高度 */
@supports (-webkit-touch-callout: none) {
  .input,
  .textarea,
  .select,
  .nui-search-input,
  .oq-verify-in {
    font-size: 16px !important;
  }
  /* 输入框变高后同步高度，避免圆角被压扁 */
  .input, .select { height: 44px; }
  .nui-search-left { height: 44px; line-height: 44px; }
  .nui-search-btn { height: 44px; line-height: 44px; }
  .oq-verify-in { height: 46px; }
}

/* ---------- 3. 长文本溢出 ---------- */
.nui-company,
.oq-company,
.nui-name {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.nui-storage-head > .nui-company { flex: 1; min-width: 0; }
.nui-creditcode,
.oq-ordersn {
  word-break: break-all;
}
/* 键值对：值列允许收缩换行 */
.kv .v { min-width: 0; }
/* 已选企业信息行（企业名 / 信用代码） */
.nui-company-info { min-width: 0; }
.nui-tishi-desc { word-break: break-word; overflow-wrap: anywhere; }
.nui-storage-tip { word-break: break-word; }

/* ---------- 4. 触控热区放大（视觉基本不变，热区扩到 44px） ---------- */
.h5-topbar .tb-back { position: relative; }
.h5-topbar .tb-back::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.nui-right { position: relative; padding: 6px 10px; }
.nui-right::after {
  content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px;
}
.nui-article-list[data-notice-id] { padding: 10px 0; }
.nui-storage-clear { padding: 4px 12px; }
/* 协议勾选框：整体 label 可点，这里放大勾选框本身 */
.agree-check input { width: 18px; height: 18px; }
/* 主按钮：移动端提升到 44px 触控高度
   （.btn-sm 小按钮与 .btn-link 文字链保持原尺寸） */
@media (max-width: 900px) {
  .btn:not(.btn-sm):not(.btn-link) { height: 44px; }
}

/* ---------- 5. 小屏 / 矮屏微调 ---------- */

/* 超小屏（iPhone SE 1 代 320px、安卓小屏） */
@media (max-width: 360px) {
  .nui-page { margin: 12px; }
  .nui-block { margin-bottom: 12px; }
  .h5-section { margin: 8px; }
  .form-card { margin: 8px; padding: 12px 10px; }
  .kv .k { width: 72px; }
  .nui-article-list { font-size: 13px; }
  .nui-company { font-size: 18px; }
  .oq-company { font-size: 14px; }
  .pay-amount .pa-v { font-size: 30px; }
  .submit-bar { padding: 8px; }
}

/* 大屏手机（iPhone Pro Max 等）留白更舒适 */
@media (min-width: 430px) {
  .h5-section { margin: 12px; }
}

/* 矮屏 / 横屏：压缩纵向占用，避免一屏放不下关键操作 */
@media (max-height: 500px) {
  .h5-topbar { height: calc(40px + env(safe-area-inset-top)); }
  .tui-tabbar { height: 46px; }
  body.h5-body.with-tabbar { --tabbar-h: calc(46px + env(safe-area-inset-bottom)); }
  .submit-bar { bottom: var(--tabbar-h); }
  .h5-wrap { padding-bottom: calc(var(--tabbar-h) + 16px); }
  .nui-searchbox { padding: 8px; margin-bottom: 10px; }
  .nui-search-title { margin-bottom: 6px; }
  .agree-body { max-height: 110px; }
  .nui-business-image { max-height: 120px; object-fit: cover; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 滚动容器惯性（iOS） */
.agree-body,
.nui-listbox {
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================
   前台 H5 · 下单链路（图1 搜索结果 / 图2 选择业务 / 图3 信息填写 / 图4 企业信息确认）
   1) 搜索结果页：企业名 + 右上角状态 / 信用代码 / 分隔线 / 法人代表 + 成立时间 + 右侧【选择业务】
   2) 选择业务弹层：居中弹窗 + 单选列表 + 【立即办理】（选中项单选钮用该业务自己的配色）
   3) 办理链路主题色：--flow 覆盖 --primary（按钮、标题、输入框边框），按所选业务取色
   4) 企业信息确认页：三段卡片 + 底部固定条（服务费 + 【立即支付】）
   ========================================================== */

/* ---------- 1. 搜索结果页（整页只有结果列表，无顶部标题栏）
   1:1 对齐既有系统 qy210 的 pages/index/search（样式表 search-BW398_2g.css，
   实测根字号 16px：1rem=16px，.625rem=10px、.75rem=12px、.875rem=14px、.3125rem=5px）。
   既有系统逐条实测值：
     .container      margin:10px; padding-bottom:50px
     .nui-list       padding:10px; bg:#fff; margin-bottom:10px; border-radius:5px
     .nui-top        flex; justify-content:space-between; align-items:center
     .nui-name       font-size:14px; font-weight:700; color:#000
     .nui-status     color:#07c160; font-size:12px
     .nui-creditcode font-size:12px; color:#666
     .nui-main       flex; justify-content:space-between; align-items:center; margin:10px 0; font-size:12px
     .nui-main-left  flex; align-items:center; width:75%
     .nui-main-right width:25%; padding:5px 10px; box-sizing:border-box
     .nui-main-item  text-align:center; margin-right:10%
     .nui-item-top   color:#888
     .nui-item-bottom margin-top:5px
     .nui-submit     width:100%; padding:5px; border-radius:3px; bg:#efeff4;
                     font-size:13px; font-weight:700; text-align:center
   差异点（旧实现 → 本次修正）：标题 15px→14px、卡片内边距 14→10px、圆角 10→5px、
   状态 13px→12px 且改 #07c160、信用代码去掉上间距并改 #666、**删除分隔线**（既有系统没有）、
   字段块由左对齐改**居中**、按钮由白底改 #efeff4 底 + 700 字重 + 13px 并撑满右栏。 */
.sr-page { margin: 10px; padding-bottom: 50px; }
.sr-list { display: flex; flex-direction: column; gap: 10px; }
.sr-item {
  background: #fff; border-radius: 5px; padding: 10px;
}
.sr-head { display: flex; align-items: center; justify-content: space-between; }
.sr-name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #000;
  word-break: break-word; overflow-wrap: anywhere;
}
/* 企业状态：右上角（既有系统固定微信绿 #07c160，不跟随主题色） */
.sr-status { flex: none; font-size: 12px; color: #07c160; white-space: nowrap; }
.sr-credit { font-size: 12px; color: #666; word-break: break-all; }
.sr-main {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 0; font-size: 12px;
}
.sr-main-left { display: flex; align-items: center; justify-content: flex-start; width: 75%; min-width: 0; }
.sr-main-item { min-width: 0; text-align: center; margin-right: 10%; }
.sr-item-top { font-size: 12px; color: #888; }
.sr-main-item .nui-item-bottom { margin-top: 5px; font-size: 12px; color: #000; word-break: break-all; }
.sr-main-right { width: 25%; padding: 5px 10px; box-sizing: border-box; }
/* 【选择业务】：浅灰底 + 主色描边 + 粗体，撑满右栏（既有系统 .nui-submit） */
.sr-choose {
  width: 100%; display: inline-block; padding: 5px;
  border: 1px solid var(--primary); border-radius: 3px;
  background: #efeff4; color: var(--primary); font-size: 13px; font-weight: 700;
  text-align: center; cursor: pointer; white-space: nowrap;
}
.sr-choose:active { opacity: .85; }

/* ---------- 2. 选择业务弹层（居中弹窗） ---------- */
.biz-mask {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.biz-sheet {
  width: 84%; max-width: 420px; background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  animation: bizSheetIn .2s ease;
  max-height: 80vh; overflow: auto;
}
@keyframes bizSheetIn { from { transform: scale(.94); opacity: .5; } to { transform: none; opacity: 1; } }
.biz-sheet-title {
  font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 14px; color: var(--t1);
}
.biz-sheet-list { display: flex; flex-direction: column; }
.biz-pick {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--line2); cursor: pointer;
}
.biz-pick:last-child { border-bottom: 0; }
.bp-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--t4);
  flex: none; position: relative;
}
/* 选中项的单选钮用「该业务自己的配色」（后台【业务管理 → 标题颜色】） */
.biz-pick.on .bp-radio { border-color: var(--pick-color, var(--primary)); }
.biz-pick.on .bp-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pick-color, var(--primary));
}
.bp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bp-name { font-size: 15px; color: var(--t1); }
.bp-sub { font-size: 12px; color: var(--t3); margin-top: 2px; }
.biz-sheet-foot { margin-top: 14px; }

/* ---------- 3. 办理链路主题色（信息填写 / 企业信息确认） ---------- */
.flow-page {
  /* 用 --flow 覆盖 --primary，body 上的行内主题色不影响本容器内的元素 */
  --primary: var(--flow);
  --primary-d: var(--flow-d);
  --primary-l: var(--flow-l);
  --primary-b: var(--flow-b);
  padding-bottom: 96px; /* 给底部固定条留出空间 */
}
/* 标题：红色 + 红色下划线（紧跟标题文字，避免被 flex 推到行尾） */
.flow-page .h5-title {
  color: var(--flow); position: relative; padding-bottom: 8px;
}
.flow-page .h5-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; background: var(--flow); border-radius: 2px;
}
/* 标签：红色 */
.flow-page .field > label { color: var(--flow); }
/* 输入框：红色描边 */
.flow-page .input,
.flow-page .textarea {
  border-color: var(--flow-b);
}
.flow-page .input:focus,
.flow-page .textarea:focus { border-color: var(--flow); }
.flow-page .form-error { border-color: var(--flow-b); background: var(--flow-l); color: var(--flow-d); }
.flow-page .agree-check input { accent-color: var(--flow); }

/* ---------- 4. 企业信息确认页（图5） ---------- */
.cf-card {
  background: #fff; border-radius: var(--r); padding: 14px 12px; margin: 10px;
}
.cf-card-title {
  font-size: 14px; font-weight: 700; color: var(--t1);
  padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line2);
}
.cf-company-name {
  font-size: 19px; font-weight: 700; color: var(--flow);
  word-break: break-word; overflow-wrap: anywhere; margin-bottom: 10px;
}
.cf-row {
  display: flex; gap: 10px; padding: 6px 0; font-size: 13px; line-height: 1.6;
}
.cf-row .cf-k { color: var(--t3); flex: none; width: 62px; }
.cf-row .cf-v { flex: 1; min-width: 0; color: var(--t1); word-break: break-all; text-align: right; }
.cf-payway {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px; font-size: 14px;
}
.cf-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--flow);
  flex: none; position: relative;
}
.cf-payway.on .cf-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--flow);
}
.cf-payway-name { color: var(--t1); }
/* 底部固定条：服务费 + 【立即支付】 */
.cf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-fee { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cf-fee-label { font-size: 13px; color: var(--t2); }
.cf-fee-amt { font-size: 20px; font-weight: 700; color: var(--flow); }
.cf-paybtn { flex: none; min-width: 120px; }

/* 小屏：确认页按钮与费用不换行挤压 */
@media (max-width: 360px) {
  .cf-bar { gap: 8px; }
  .cf-paybtn { min-width: 104px; padding: 0 12px; }
  .cf-fee-amt { font-size: 18px; }
}
