/* ==========================================================
   年报一站式服务系统（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(58px + 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：企业一站式服务 Logo + 绿叶）
   未配置图片时用渐变占位，配置 home_banner_image 后换为原图 */
.nui-banner {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 15px; padding: 18px 16px;
  border-radius: 10px; color: #fff;
  background: linear-gradient(120deg, #18bc9c 0%, #0f9d84 55%, #0b8a75 100%);
  background-size: cover; background-position: center;
  min-height: 84px;
}
.nui-banner-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.nui-banner-text { min-width: 0; }
.nui-banner-title { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.nui-banner-sub { font-size: 12px; opacity: .9; margin-top: 3px; }

/* 企业申报 + 搜索 */
.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 {
  width: 44%; 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; border-radius: 3px;
}
.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: #999; font-size: 12px; padding: 10px 0 6px; }
.nui-nodata { margin-top: 50px; text-align: center; color: #888; font-size: 14px; }

/* 订单查询列表（对齐既有系统 /pages/order/index：nui-listbox / nui-top / nui-main / nui-bottom）
   注意：既有系统的 .nui-list / .nui-top / .nui-main / .nui-company 与企业搜索结果页同名但结构不同，
   本页统一使用 oq- 前缀，避免与搜索结果样式互相覆盖。 */
.nui-listbox { background-color: #fff; border-radius: 10px; overflow: hidden; }
.oq-list {
  padding: 12px 14px; border-bottom: 1px solid #f0f0f0; cursor: pointer; background-color: #fff;
}
.oq-list:last-child { border-bottom: 0; }
.oq-list:active { background-color: #f7fafc; }
.oq-top { display: flex; justify-content: space-between; align-items: center; }
.oq-ordersn { font-size: 13px; color: #666; font-family: ui-monospace, Menlo, Consolas, monospace; }
.oq-status { flex-shrink: 0; margin-left: 10px; }
.oq-main { margin-top: 8px; }
.oq-company { font-size: 15px; font-weight: 700; color: var(--t1); }
.oq-biz { font-size: 13px; color: #666; margin-top: 4px; }
.oq-bottom {
  display: flex; justify-content: space-between; align-items: center; margin-top: 10px;
  padding-top: 8px; border-top: 1px dashed #eee;
}
.oq-time { font-size: 12px; color: #999; }
.oq-payfee { font-size: 15px; font-weight: 700; color: #f60; }

/* 订单查询二次验证面板 */
.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; }

/* 搜索结果（既有系统为独立列表页，此处内联，样式一致） */
.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; }

/* 底部导航（图标与既有系统一致：未选中灰、选中绿） */
.h5-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 58px; background: #fff;
  border-top: 1px solid #ededed; display: flex; z-index: 30;
  /* 安全区独立叠加，避免 border-box 下把图标行压扁 */
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}
.h5-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: #999; text-decoration: none;
}
.h5-tabbar a img { width: 22px; height: 22px; display: block; }
.h5-tabbar a img.on { display: none; }
.h5-tabbar a.active { color: var(--primary); }
.h5-tabbar a.active img { display: none; }
.h5-tabbar a.active img.on { display: block; }

/* 下单页 */
.form-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 14px 12px; margin: 10px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-item {
  display: flex; align-items: center; gap: 8px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: #fff;
}
.opt-item.on { border-color: var(--primary); background: var(--primary-l); }
.opt-item .oi-radio {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--t4); flex: none; position: relative;
}
.opt-item.on .oi-radio { border-color: var(--primary); }
.opt-item.on .oi-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary);
}
.opt-item .oi-name { font-size: 14px; }
.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); }

/* 订单条目 */
.order-item { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 12px; margin: 10px; }
.order-item .oi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-item .oi-biz { font-size: 15px; font-weight: 600; }
.order-item .oi-sn { font-size: 11px; color: var(--t4); margin-top: 2px; }
.order-item .oi-body { margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.order-item .oi-row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.order-item .oi-row .l { color: var(--t3); }
.order-item .oi-foot { display: flex; align-items: center; justify-content: space-between; }
.order-item .oi-time { font-size: 11px; color: var(--t4); }

/* 筛选条 */
.filter-chips { display: flex; overflow-x: auto; gap: 8px; padding: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.filter-chips .chip {
  flex: none; height: 28px; line-height: 26px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 14px; font-size: 13px; color: var(--t2); background: #fff; cursor: pointer;
}
.filter-chips .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-chips::-webkit-scrollbar { height: 0; }

/* ==========================================================
   后台管理
   ========================================================== */
.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,
.order-item .oi-sn {
  word-break: break-all;
}
/* 订单卡片头部：企业名过长时压缩而不是撑破 */
.order-item .oi-head { min-width: 0; }
.order-item .oi-biz {
  word-break: break-word; overflow-wrap: anywhere; min-width: 0;
}
/* 键值对：值列允许收缩换行 */
.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; }
/* 主按钮与筛选 chip：移动端提升到 44px 触控高度
   （.btn-sm 小按钮与 .btn-link 文字链保持原尺寸） */
@media (max-width: 900px) {
  .btn:not(.btn-sm):not(.btn-link) { height: 44px; }
  .filter-chips .chip { height: 44px; line-height: 42px; border-radius: 22px; }
}

/* ---------- 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; }
  .order-item { margin: 8px; }
  .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) {
  .nui-page { margin: 16px; }
  .h5-section { margin: 12px; }
}

/* 矮屏 / 横屏：压缩纵向占用，避免一屏放不下关键操作 */
@media (max-height: 500px) {
  .h5-topbar { height: calc(40px + env(safe-area-inset-top)); }
  .h5-tabbar { height: calc(46px + env(safe-area-inset-bottom)); }
  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） */
.filter-chips,
.agree-body,
.nui-listbox {
  -webkit-overflow-scrolling: touch;
}

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

/* ---------- 1. 搜索结果页 ---------- */
.sr-list { display: flex; flex-direction: column; gap: 10px; }
.sr-item {
  background: #fff; border-radius: 10px; padding: 12px 14px;
}
.sr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sr-name {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--t1);
  word-break: break-word; overflow-wrap: anywhere;
}
.sr-choose {
  flex: none; height: 30px; padding: 0 14px; border: 1px solid var(--primary);
  border-radius: 15px; background: var(--primary); color: #fff; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}
.sr-choose:active { opacity: .85; }
.sr-status { margin-top: 6px; font-size: 12px; color: var(--ok); }
.sr-credit { margin-top: 4px; font-size: 12px; color: var(--t2); word-break: break-all; }
.sr-main {
  display: flex; align-items: center; gap: 22px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2);
}
.sr-main-item { min-width: 0; }
.sr-item-top { font-size: 12px; color: var(--t3); }
.sr-main-item .nui-item-bottom { margin-top: 4px; font-size: 13px; color: var(--t1); word-break: break-all; }

/* ---------- 2. 选择业务弹层（图3） ---------- */
.biz-mask {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.biz-sheet {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  animation: bizSheetUp .2s ease;
  max-height: 86vh; overflow: auto;
}
@keyframes bizSheetUp { from { transform: translateY(24px); opacity: .6; } 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(--primary); }
.biz-pick.on .bp-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: 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 .opt-item.on { border-color: var(--flow); background: var(--flow-l); }
.flow-page .opt-item.on .oi-radio { border-color: var(--flow); }
.flow-page .opt-item.on .oi-radio::after { background: var(--flow); }
.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; }
  .sr-main { gap: 14px; }
}
