/* ============================================================
   支付·客商端 设计令牌 & 基础组件  V2.0（山东高速 SDHS 配色）
   主色：高速绿 #16A34A / 高速橙 #F26A21
   风格：现代清爽 · 大圆角 · 轻盈金融科技感 · 全站响应式
   ============================================================ */

:root {
  /* ---- 品牌色（山东高速 SDHS）---- */
  --blue-700: #0C7C3C;
  --blue-600: #16A34A;          /* 主色 Primary · 高速绿 */
  --blue-500: #2BB85D;
  --blue-100: #D4EFDD;
  --blue-50:  #EBF8F0;
  --orange-600: #DD5E1A;
  --orange-500: #F26A21;        /* 辅色 Accent · 高速橙 */
  --orange-100: #FBDDCB;
  --orange-50:  #FDEFE5;

  /* ---- 功能色 ---- */
  --green-600: #0E8A66;
  --green-50:  #E3F5EF;
  --yellow-700: #B97D1E;
  --yellow-600: #DC9A2E;
  --yellow-50:  #FCF4E4;
  --red-600: #DE4545;
  --red-50:  #FCEBEB;

  /* ---- 中性色（冷调） ---- */
  --ink-900: #18213A;
  --ink-700: #3D4760;
  --ink-500: #6A7490;
  --ink-400: #99A1B8;
  --line-200: #E3E8F2;
  --line-100: #EEF1F7;
  --bg-page: #F5F7FB;
  --bg-card: #FFFFFF;

  /* ---- 字体 ---- */
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "Manrope", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* ---- 圆角 ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* ---- 阴影 ---- */
  --shadow-card: 0 1px 2px rgba(24, 33, 58, 0.04), 0 4px 16px rgba(24, 33, 58, 0.05);
  --shadow-pop: 0 8px 32px rgba(24, 33, 58, 0.14);
  --shadow-modal: 0 24px 64px rgba(24, 33, 58, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink-900); margin: 0; font-weight: 600; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
p { margin: 0; }
img { max-width: 100%; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ============ 顶部导航 ============ */
.up-header {
  position: sticky; top: 0; z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line-200);
  height: 60px;
  display: flex; align-items: center; gap: 22px;
  padding: 0 24px;
}
.nav-toggle {
  display: none; flex: none;
  width: 38px; height: 38px; border-radius: var(--r-md);
  border: 1px solid var(--line-200); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink-700);
}
.nav-toggle:hover { border-color: var(--blue-500); color: var(--blue-600); }
.nav-toggle .bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle .bars i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.up-header .logo { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.up-header .logo img { height: 32px; width: 83px; flex: none; display: block; }
.up-header .logo .product {
  font-size: 15px; font-weight: 600; color: var(--ink-900);
  padding-left: 12px; border-left: 1px solid var(--line-200); line-height: 1.3; white-space: nowrap;
}
.up-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.up-nav a {
  position: relative;
  padding: 6px 13px; border-radius: 999px;
  color: var(--ink-700); font-size: 14px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.up-nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.up-nav a.active { background: var(--blue-600); color: #fff; font-weight: 500; }
.up-nav a .nav-badge {
  position: absolute; top: -2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--orange-500); color: #fff;
  border-radius: 999px; font-size: 10px; line-height: 16px; text-align: center;
  font-family: var(--font-num);
}
.up-header-right { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }

/* ---- 当前企业切换器 ---- */
.msw { position: relative; }
.msw-btn {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-200); background: #fff; cursor: pointer;
  font-family: var(--font-ui); max-width: 280px; transition: border-color .15s;
}
.msw-btn:hover { border-color: var(--blue-500); }
.msw-btn .m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); flex: none; }
.msw-btn .m-name {
  font-size: 13px; font-weight: 500; color: var(--ink-900);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.caret { flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ink-400); }

/* ---- 下拉面板 ---- */
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 130;
  width: 312px; max-width: calc(100vw - 28px);
  background: #fff; border: 1px solid var(--line-100); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop); padding: 8px;
}
.dropdown.open { display: block; animation: ddIn .15s ease-out; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-head { font-size: 12px; color: var(--ink-400); padding: 6px 12px 4px; }
.dd-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--r-md); cursor: pointer;
  border: none; background: none; font-family: var(--font-ui); color: var(--ink-700);
  transition: background .12s;
}
.dd-item:hover { background: var(--bg-page); }
.dd-item.cur { background: var(--blue-50); }
.dd-item .di-main { flex: 1; min-width: 0; }
.dd-item .di-name { font-size: 13.5px; font-weight: 500; color: var(--ink-900); display: flex; align-items: center; gap: 8px; }
.dd-item .di-sub { font-size: 11.5px; color: var(--ink-400); font-family: var(--font-num); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-sep { height: 1px; background: var(--line-100); margin: 6px 4px; }
.dd-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-md); font-size: 13.5px; color: var(--blue-600); }
.dd-link:hover { background: var(--blue-50); }

.up-user { position: relative; }
.up-user .avatar-btn { border: none; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 9px; font-family: var(--font-ui); }
.up-user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex: none; font-family: var(--font-num);
}
.up-user .uinfo { line-height: 1.3; text-align: left; }
.up-user .uname { font-size: 13px; font-weight: 600; color: var(--ink-900); font-family: var(--font-num); }
.up-user .umeta { font-size: 11px; color: var(--ink-500); }

/* ---- 移动端抽屉 ---- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 180; background: rgba(24, 33, 58, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.up-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 190;
  width: 296px; max-width: 86vw; background: #fff;
  transform: translateX(-104%); transition: transform .22s ease;
  display: flex; flex-direction: column; overflow-y: auto; padding: 18px 14px 24px;
}
.up-drawer.open { transform: none; box-shadow: var(--shadow-modal); }
.up-drawer .dw-logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; }
.up-drawer .dw-logo img { height: 28px; }
.up-drawer .dw-logo span { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.up-drawer .dw-sec { font-size: 11.5px; color: var(--ink-400); padding: 14px 10px 6px; letter-spacing: .05em; }
.up-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.up-drawer nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 12px; border-radius: var(--r-md); color: var(--ink-700); font-size: 14.5px;
}
.up-drawer nav a.active { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }
.up-drawer nav a .side-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--orange-500); color: #fff; border-radius: 999px;
  font-size: 11px; line-height: 18px; text-align: center; font-family: var(--font-num);
}

/* ============ 布局 ============ */
.up-body { width: 100%; }
.up-main { max-width: 1240px; margin: 0 auto; padding: 24px 28px 56px; }
.up-main.narrow { max-width: 980px; }

.crumb { font-size: 12px; color: var(--ink-400); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--ink-400); }
.crumb a:hover { color: var(--blue-600); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; line-height: 1.45; }
.page-head h1 .num { white-space: nowrap; }
.crumb .num { white-space: nowrap; }
.page-head .sub { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.page-head .actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }

/* ============ 卡片 ============ */
.card {
  background: var(--bg-card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 22px 24px;
}
.card + .card { margin-top: 16px; }
.card .card-title { font-size: 15px; font-weight: 600; color: var(--ink-900); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card .card-title .more { font-size: 13px; font-weight: 400; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-family: var(--font-ui); font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s; white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-500); color: #fff; }
.btn-secondary { background: var(--blue-50); color: var(--blue-600); }
.btn-secondary:hover { background: var(--blue-100); color: var(--blue-700); }
.btn-outline { background: #fff; border-color: var(--line-200); color: var(--ink-700); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-danger { background: var(--red-50); color: var(--red-600); }
.btn-danger:hover { background: #F9DCDC; }
.btn-accent { background: var(--orange-500); color: #fff; }
.btn-accent:hover { background: var(--orange-600); color: #fff; }
.btn-lg { height: 44px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--blue-600); padding: 0 6px; height: auto; }
.btn-link:hover { color: var(--blue-500); }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }

/* ============ 表单 ============ */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-900); margin-bottom: 7px; }
.field > label .req { color: var(--red-600); margin-right: 2px; }
.field .hint { font-size: 12px; color: var(--ink-400); margin-top: 6px; }
.field .error-msg { display: none; font-size: 12px; color: var(--red-600); margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.field.has-error .input, .field.has-error .select { border-color: var(--red-600); background: var(--red-50); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-200); border-radius: var(--r-md);
  font-size: 14px; font-family: var(--font-ui); color: var(--ink-900);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 10px 14px; resize: vertical; min-height: 80px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input[readonly] { background: var(--bg-page); color: var(--ink-500); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236A7490' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; min-width: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-700); }
.checkbox-row input { margin-top: 3px; accent-color: var(--blue-600); }
.btn-sms { flex: none; min-width: 112px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* ============ 状态标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-blue   { background: var(--blue-50);   color: var(--blue-600); }
.tag-green  { background: var(--green-50);  color: var(--green-600); }
.tag-yellow { background: var(--yellow-50); color: var(--yellow-700); }
.tag-red    { background: var(--red-50);    color: var(--red-600); }
.tag-gray   { background: var(--line-100);  color: var(--ink-500); }
.tag-orange { background: var(--orange-50); color: var(--orange-600); }
.tag.no-dot::before { display: none; }

/* 来源平台小标 */
.src {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.src-lease { background: var(--blue-50); color: var(--blue-600); }     /* 招标租赁平台 */
.src-waste { background: var(--green-50); color: var(--green-600); }   /* 物资处置平台 */
.src-chain { background: var(--orange-50); color: var(--orange-600); } /* 供应链协同平台 */

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table.up-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.up-table th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-500);
  padding: 10px 12px; border-bottom: 1px solid var(--line-200);
  white-space: nowrap; background: #fff;
}
.up-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-100); color: var(--ink-700); vertical-align: middle; }
.up-table tr:last-child td { border-bottom: none; }
.up-table tbody tr { transition: background .12s; }
.up-table tbody tr:hover { background: var(--blue-50); }
.up-table .amt { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-900); }
.up-table .mono { font-family: var(--font-num); font-size: 12.5px; color: var(--ink-500); }
.up-table td .cell-main { color: var(--ink-900); font-weight: 500; }
.up-table td .cell-sub { font-size: 12px; color: var(--ink-400); margin-top: 1px; }

/* 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { width: auto; height: 34px; font-size: 13px; }
.filter-bar .spacer { flex: 1; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--ink-500); flex-wrap: wrap; }
.pager .pg {
  min-width: 30px; height: 30px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-200); background: #fff; color: var(--ink-700); cursor: pointer;
  font-family: var(--font-num);
}
.pager .pg.cur { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pager .pg:hover:not(.cur) { border-color: var(--blue-500); color: var(--blue-600); }

/* ============ 步骤条 ============ */
.steps { display: flex; align-items: flex-start; }
.steps .step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.steps .step::before {
  content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 2px; background: var(--line-200); border-radius: 2px;
}
.steps .step:last-child::before { display: none; }
.steps .step.done::before { background: var(--blue-600); }
.steps .dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; font-family: var(--font-num);
  background: #fff; border: 2px solid var(--line-200); color: var(--ink-400); z-index: 1;
}
.steps .step.done .dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.steps .step.cur .dot { border-color: var(--blue-600); color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }
.steps .s-label { margin-top: 8px; font-size: 13px; color: var(--ink-500); text-align: center; }
.steps .step.cur .s-label { color: var(--blue-600); font-weight: 600; }
.steps .step.done .s-label { color: var(--ink-900); }

/* ============ 时间轴 ============ */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-200); border-radius: 2px; }
.timeline .t-item { position: relative; padding-bottom: 22px; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-dot {
  position: absolute; left: -24px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-200);
}
.timeline .t-item.ok .t-dot { border-color: var(--green-600); background: var(--green-600); box-shadow: inset 0 0 0 3px #fff; }
.timeline .t-item.cur .t-dot { border-color: var(--blue-600); background: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }
.timeline .t-item.fail .t-dot { border-color: var(--red-600); background: var(--red-600); box-shadow: inset 0 0 0 3px #fff; }
.timeline .t-title { font-size: 14px; font-weight: 600; color: var(--ink-900); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline .t-item.fail .t-title { color: var(--red-600); }
.timeline .t-meta { font-size: 12px; color: var(--ink-400); margin-top: 2px; font-family: var(--font-num); }
.timeline .t-desc { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.timeline .t-desc .quote { background: var(--bg-page); border-radius: var(--r-sm); padding: 8px 12px; margin-top: 6px; color: var(--ink-700); }

/* ============ 描述列表 ============ */
.desc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.desc.cols-3 { grid-template-columns: repeat(3, 1fr); }
.desc .d-item { padding: 9px 0; border-bottom: 1px dashed var(--line-100); display: flex; gap: 12px; font-size: 13.5px; }
.desc .d-item dt { color: var(--ink-400); flex: none; width: 96px; }
.desc .d-item dd { margin: 0; color: var(--ink-900); overflow-wrap: anywhere; min-width: 0; }
.desc .d-item dd.num { word-break: keep-all; overflow-wrap: normal; }

/* ============ 提示条 ============ */
.alert { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); font-size: 13px; align-items: flex-start; }
.alert .a-icon { flex: none; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.alert-info { background: var(--blue-50); color: var(--blue-700); }
.alert-info .a-icon { background: var(--blue-500); }
.alert-warn { background: var(--yellow-50); color: var(--yellow-700); }
.alert-warn .a-icon { background: var(--yellow-600); }
.alert-danger { background: var(--red-50); color: var(--red-600); }
.alert-danger .a-icon { background: var(--red-600); }
.alert-success { background: var(--green-50); color: var(--green-600); }
.alert-success .a-icon { background: var(--green-600); }

/* ============ 弹窗 ============ */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(24, 33, 58, 0.45);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-modal);
  width: 520px; max-width: 100%; max-height: 86vh; overflow: auto;
  padding: 26px 28px;
  animation: modalIn .18s ease-out;
}
.modal.wide { width: 680px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal .m-head h3 { font-size: 16px; }
.modal .m-close {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--line-100); color: var(--ink-500); font-size: 14px; line-height: 1;
}
.modal .m-close:hover { background: var(--line-200); }
.modal .m-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ============ 协议弹窗正文 ============ */
.agreement { font-size: 13.5px; line-height: 1.75; color: var(--ink-700); max-height: 56vh; overflow-y: auto; padding-right: 6px; }
.agreement .ag-meta { font-size: 12px; color: var(--ink-400); font-family: var(--font-num); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-100); }
.agreement h4 { font-size: 14px; font-weight: 700; color: var(--ink-900); margin: 18px 0 6px; }
.agreement p { margin: 0 0 10px; }
.agreement .ag-tip { margin-top: 16px; padding: 10px 14px; background: var(--bg-page); border-radius: var(--r-md); font-size: 12.5px; color: var(--ink-500); }

.confirm-amt { text-align: center; padding: 12px 0 16px; }
.confirm-amt .ca-num { font-family: var(--font-num); font-size: 32px; font-weight: 700; color: var(--ink-900); }
.confirm-amt .ca-cap { font-size: 12px; color: var(--ink-400); margin-top: 4px; }

/* ============ Toast ============ */
.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  background: var(--ink-900); color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow-pop);
  animation: toastIn .2s ease-out; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 48px 0; color: var(--ink-400); font-size: 13px; }
.empty .e-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--bg-page); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-400); }

/* ============ 概览金额卡片 ============ */
.balance-strip { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 14px; }
.bal-card { border-radius: var(--r-lg); padding: 18px 20px; background: #fff; box-shadow: var(--shadow-card); min-width: 0; }
.bal-card .b-label { font-size: 12.5px; color: var(--ink-500); display: flex; align-items: center; gap: 6px; }
.bal-card .b-num { font-family: var(--font-num); font-size: 22px; font-weight: 700; color: var(--ink-900); margin-top: 6px; font-variant-numeric: tabular-nums; }
.bal-card .b-num small { font-size: 13px; font-weight: 500; color: var(--ink-400); }
.bal-card .b-foot { font-size: 12px; color: var(--ink-400); margin-top: 4px; }
.bal-card.hero { background: linear-gradient(135deg, var(--blue-600), var(--blue-500) 70%, #5A82E0); color: #fff; position: relative; overflow: hidden; }
.bal-card.hero::after { content: ""; position: absolute; right: -36px; top: -36px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.bal-card.hero .b-label { color: rgba(255,255,255,.75); }
.bal-card.hero .b-num { color: #fff; font-size: 30px; }
.bal-card.hero .b-foot { color: rgba(255,255,255,.6); }

/* ============ 流程附件（节点制） ============ */
.attach { display: flex; flex-direction: column; gap: 10px; }
.attach-slot {
  border: 1px solid var(--line-200); border-radius: var(--r-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff;
}
.attach-slot.vacant { border-style: dashed; background: var(--bg-page); }
.attach-slot .a-info { flex: 1; min-width: 180px; }
.attach-slot .a-label { font-size: 13.5px; font-weight: 500; color: var(--ink-900); }
.attach-slot .a-label .req { color: var(--red-600); margin-right: 3px; }
.attach-slot .a-label .opt { font-size: 11.5px; color: var(--ink-400); font-weight: 400; margin-left: 6px; }
.attach-slot .a-tip { font-size: 12px; color: var(--ink-400); margin-top: 2px; }
.attach-slot .a-file { display: flex; align-items: center; gap: 9px; margin-top: 7px; font-size: 13px; color: var(--ink-700); }
.attach-slot .f-icon {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; font-family: var(--font-num);
}
.attach-slot .f-meta { min-width: 0; }
.attach-slot .f-name { color: var(--ink-900); font-weight: 500; word-break: break-all; }
.attach-slot .f-size { font-size: 11.5px; color: var(--ink-400); font-family: var(--font-num); }
.attach-slot .a-actions { display: flex; gap: 8px; flex: none; margin-left: auto; }
.attach-locked-note { font-size: 12.5px; color: var(--ink-400); display: flex; align-items: center; gap: 6px; }

/* 单图上传（企业授权图片） */
.upload-tile {
  width: 220px; max-width: 100%; height: 148px;
  border: 1.5px dashed var(--line-200); border-radius: var(--r-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; color: var(--ink-400); background: var(--bg-page);
  transition: border-color .15s, color .15s; text-align: center; font-size: 12.5px;
}
.upload-tile:hover { border-color: var(--blue-500); color: var(--blue-600); }
.upload-tile .u-plus { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line-200); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.upload-tile.filled {
  border-style: solid; border-color: var(--blue-100); color: var(--ink-700);
  background: repeating-linear-gradient(45deg, var(--blue-50), var(--blue-50) 10px, #F7FAFE 10px, #F7FAFE 20px);
}

/* ============ 拆分链 ============ */
.chain-node {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid var(--line-200); border-radius: var(--r-md); background: #fff;
}
.chain-node.cur { border-color: var(--blue-500); background: var(--blue-50); }
.chain-node .cn-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--blue-50); color: var(--blue-600); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-num);
}
.chain-node.cur .cn-icon { background: var(--blue-600); color: #fff; }
.chain-node .cn-main { flex: 1; min-width: 150px; }
.chain-node .cn-id { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--ink-900); }
.chain-node .cn-sub { font-size: 12px; color: var(--ink-500); }
.chain-node .cn-amt { font-family: var(--font-num); font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.chain-children { margin: 10px 0 0 17px; padding-left: 20px; border-left: 2px dashed var(--line-200); display: flex; flex-direction: column; gap: 10px; }

/* ============ 消息列表 ============ */
.msg-item { display: flex; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--line-100); align-items: flex-start; }
.msg-item:last-child { border-bottom: none; }
.msg-item .m-ic {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.msg-item .m-body { flex: 1; min-width: 0; }
.msg-item .m-title { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.msg-item.unread .m-title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); margin-left: 8px; vertical-align: 2px; }
.msg-item .m-desc { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.msg-item .m-meta { font-size: 12px; color: var(--ink-400); margin-top: 6px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-family: var(--font-num); }

/* ============ 页签 ============ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-200); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: none; background: none; cursor: pointer; flex: none;
  font-family: var(--font-ui); font-size: 14px; color: var(--ink-500);
  padding: 9px 14px 11px; position: relative; white-space: nowrap;
}
.tabs button:hover { color: var(--blue-600); }
.tabs button.active { color: var(--blue-600); font-weight: 600; }
.tabs button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--blue-600); }
.tabs button .t-count { font-size: 11.5px; font-family: var(--font-num); color: var(--ink-400); margin-left: 4px; }
.tabs button.active .t-count { color: var(--blue-500); }

/* ============ 演示状态切换器 ============ */
.demo-switch {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-50); border: 1px dashed var(--orange-500);
  border-radius: 999px; padding: 4px 6px 4px 12px; flex-wrap: wrap;
}
.demo-switch .ds-label { font-size: 12px; color: var(--orange-600); white-space: nowrap; }
.demo-switch select {
  border: none; background: #fff; border-radius: 999px;
  font-size: 12px; padding: 3px 8px; color: var(--ink-900);
  font-family: var(--font-ui); cursor: pointer; outline: none;
}

/* ============ 工具类 ============ */
.row { display: flex; gap: 16px; }
.row > * { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.layout-main-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.muted { color: var(--ink-400); font-size: 12.5px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ============ 认证/登录独立页 ============ */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 480px at 85% -10%, var(--blue-50) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(700px 420px at -10% 100%, var(--orange-50) 0%, rgba(255,255,255,0) 55%),
    var(--bg-page);
}
.auth-top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; gap: 12px; }
.auth-top img { height: 34px; }
.auth-top .right-link { font-size: 13.5px; color: var(--ink-500); }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 40px 64px; }
.auth-card {
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  padding: 36px 40px; width: 460px; max-width: 100%;
}
.auth-card.wide { width: 760px; }
.auth-card h1 { font-size: 22px; font-weight: 700; }
.auth-card .auth-sub { font-size: 13.5px; color: var(--ink-500); margin: 6px 0 26px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1280px) {
  .up-nav a { padding: 6px 10px; font-size: 13.5px; }
}

@media (max-width: 1080px) {
  .up-header { gap: 14px; padding: 0 16px; }
  .up-header .logo .product { display: none; }
  .up-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .up-user .uinfo { display: none; }
  .msw-btn { max-width: 200px; }
  .layout-main-aside { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .up-main { padding: 16px 14px 48px; }
  .page-head h1 { font-size: 17px; }
  .desc .d-item dd.num { word-break: normal; overflow-wrap: anywhere; }
  .card { padding: 18px 16px; border-radius: var(--r-md); }
  .desc, .desc.cols-3 { grid-template-columns: 1fr; }
  .desc .d-item dt { width: 88px; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  .balance-strip { grid-template-columns: 1fr 1fr; }
  .balance-strip .bal-card.hero { grid-column: 1 / -1; }
  .filter-bar .input, .filter-bar .select { flex: 1 1 132px; min-width: 0; }
  .steps .s-label { font-size: 11.5px; }
  .steps .dot { width: 28px; height: 28px; font-size: 12px; }
  .steps .step::before { top: 13px; }
  .modal { padding: 22px 18px; border-radius: var(--r-lg); }
  .modal-mask { padding: 14px; align-items: flex-end; }
  .auth-top { padding: 0 18px; }
  .auth-center { padding: 14px 16px 44px; }
  .auth-card { padding: 28px 22px; }
  .msw-btn { padding: 0 10px; }
  .msw-btn .m-name { max-width: 96px; }

  /* 列表表格 → 卡片化（td 需带 data-th） */
  .up-table.cards { font-size: 13px; }
  .up-table.cards thead { display: none; }
  .up-table.cards tbody tr {
    display: block; border: 1px solid var(--line-100); border-radius: var(--r-md);
    padding: 6px 14px; margin-bottom: 10px; background: #fff;
  }
  .up-table.cards tbody tr:hover { background: #fff; }
  .up-table.cards td {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    border-bottom: 1px dashed var(--line-100); padding: 9px 0; text-align: right;
  }
  .up-table.cards td:last-child { border-bottom: none; }
  .up-table.cards td::before { content: attr(data-th); color: var(--ink-400); font-size: 12px; flex: none; text-align: left; }
  .up-table.cards td.no-th { justify-content: flex-end; }
  .up-table.cards td.no-th::before { display: none; }
  .up-table.cards td .cell-sub { white-space: normal; }
}

@media (max-width: 480px) {
  .balance-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bal-card { padding: 14px 16px; }
  .bal-card .b-num { font-size: 18px; }
  .bal-card.hero .b-num { font-size: 24px; }
  .msw-btn .m-name { display: none; }
  .page-head .actions .btn { flex: 1; }
}


/* ============ 打印：强制白底，去掉整屏渐变，避免打印引擎把渐变渲染成黑色 ============ */
@media print {
  html, body { background: #fff !important; }
  .auth-page, .ex-page {
    background: #fff !important;
    background-image: none !important;
  }
  .app-shell, .app-main, .content, main { background: #fff !important; }
}
