* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #f0f2f5;
}

.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  min-height: 100vh;
}

/* ========== 标签导航 ========== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 16px;
}

.tab {
  padding: 10px 16px;
  color: #666;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
  border-radius: 4px 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab:hover {
  color: #1890ff;
}

.tab-active {
  color: #1890ff;
  background: #fff;
  border-color: #e8e8e8;
  font-weight: 500;
}

.tab-close {
  font-size: 12px;
  opacity: 0.6;
  cursor: pointer;
}

.tab-close:hover {
  opacity: 1;
}

/* ========== 筛选区 ========== */
.filter-section {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 12px;
}

.filter-row:last-of-type {
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  min-width: 90px;
  color: #666;
  white-space: nowrap;
}

.filter-group-wide {
  flex: 1;
  min-width: 280px;
}

.filter-group-wide .filter-input {
  flex: 1;
  min-width: 260px;
}

.filter-input,
.filter-select,
.date-input {
  padding: 6px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  width: 160px;
}

.filter-input:focus,
.filter-select:focus,
.date-input:focus {
  border-color: #1890ff;
  outline: none;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 4px;
}

.date-sep {
  color: #999;
}

.filter-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
}

/* ========== 按钮 ========== */
.btn {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}

.btn-default {
  background: #fff;
  color: #666;
  border-color: #d9d9d9;
}

.btn-default:hover {
  color: #1890ff;
  border-color: #1890ff;
}

.btn-danger {
  background: #fff;
  color: #ff4d4f;
  border-color: #ff4d4f;
}

.btn-danger:hover {
  background: #ff4d4f;
  color: #fff;
}

.icon-search {
  font-size: 14px;
}

/* ========== 批量操作区 ========== */
.bulk-section {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  row-gap: 14px;
}

.bulk-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bulk-group.bulk-filters {
  gap: 16px 24px;
}

.bulk-group.bulk-actions {
  padding-left: 8px;
  border-left: 1px solid #e8e8e8;
}

.bulk-group.bulk-operator {
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid #e8e8e8;
}

.bulk-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-item label {
  color: #666;
  white-space: nowrap;
  font-size: 14px;
}

.bulk-select {
  padding: 6px 28px 6px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  min-width: 120px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
}

.bulk-select:focus {
  border-color: #1890ff;
  outline: none;
}

.bulk-section .btn {
  min-height: 32px;
}

/* ========== 表格 ========== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #fafafa;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

.data-table th.th-multi {
  white-space: normal;
  line-height: 1.2;
}

.data-table th.th-multi > div {
  white-space: nowrap;
  line-height: 1.25;
}

.data-table th.th-multi > div + div {
  margin-top: 4px;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.data-table td > div {
  line-height: 1.6;
}

.data-table td.order-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.data-table td.order-status .tag {
  margin: 0;
}

.data-table td.op-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 6px;
  white-space: normal;
  max-width: 260px;
}

.data-table td.op-actions .btn-link {
  margin-right: 0;
}

.text-muted {
  color: #999;
  font-size: 12px;
}

/* 状态标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  margin: 1px 2px 1px 0;
}

.tag-success {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.tag-created {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.tag-pending {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
}

.tag-default {
  background: #fafafa;
  color: #666;
  border: 1px solid #e8e8e8;
}

/* 操作链接按钮 */
.btn-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  font-size: 13px;
  margin-right: 8px;
}

.btn-link.btn-blue { color: #1890ff; }
.btn-link.btn-blue:hover { text-decoration: underline; }
.btn-link.btn-orange { color: #fa8c16; }
.btn-link.btn-orange:hover { text-decoration: underline; }
.btn-link.btn-gray { color: #666; }
.btn-link.btn-gray:hover { text-decoration: underline; }
.btn-link.btn-green { color: #52c41a; }
.btn-link.btn-green:hover { text-decoration: underline; }
.btn-link.btn-red { color: #ff4d4f; }
.btn-link.btn-red:hover { text-decoration: underline; }

.btn-inline {
  margin-left: 4px;
}

.btn-bill {
  padding: 1px 8px;
  border: 1px solid #91caff;
  border-radius: 4px;
  background: #e6f4ff;
}

.btn-bill:hover {
  background: #bae0ff;
  text-decoration: none;
}

/* 复选框 */
.check-all {
  cursor: pointer;
}

.data-table td input[type="checkbox"] {
  cursor: pointer;
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination-total {
  color: #666;
}

.page-size {
  padding: 4px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.page-btn:hover:not(:disabled) {
  color: #1890ff;
  border-color: #1890ff;
}

.page-btn:disabled {
  cursor: not-allowed;
  color: #bbb;
}

.page-active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.page-ellipsis {
  padding: 0 4px;
  color: #999;
}

.page-goto {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-input {
  width: 48px;
  padding: 4px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

/* ========== 业务颜色扩展 ========== */
.btn-link.btn-purple {
  color: #722ed1;
}

.btn-link.btn-purple:hover {
  text-decoration: underline;
}

/* ========== 通用确认弹框 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-mask.show {
  display: flex;
}

.modal {
  width: 420px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08),
              0 3px 6px -4px rgba(0, 0, 0, 0.12),
              0 9px 28px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.modal.modal-lg {
  width: 760px;
  max-width: calc(100vw - 32px);
}

.modal-header {
  padding: 12px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
}

.modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #999;
}

.modal-close:hover {
  color: #555;
}

.modal-body {
  padding: 20px 24px;
  font-size: 14px;
  color: #333;
}

.modal-footer {
  padding: 10px 24px 16px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
}

.modal-footer .btn {
  min-width: 72px;
  justify-content: center;
}

#channelModal .modal,
#sponsorPushModal .modal,
#batchPushSponsorModal .modal {
  width: 640px;
  max-width: calc(100vw - 32px);
}

#channelModal .modal-body,
#sponsorPushModal .modal-body,
#batchPushSponsorModal .modal-body {
  padding-top: 18px;
  padding-bottom: 14px;
}

#channelModal .form-row,
#sponsorPushModal .form-row,
#batchPushSponsorModal .form-row {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

#channelModal .form-label,
#sponsorPushModal .form-label,
#batchPushSponsorModal .form-label {
  text-align: right;
  color: #666;
}

#channelModal .form-input,
#sponsorPushModal .form-input,
#batchPushSponsorModal .form-input {
  height: 34px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
  color: #333;
  background: #fff;
}

#channelModal .form-input[readonly],
#sponsorPushModal .form-input[readonly],
#batchPushSponsorModal .form-input[readonly] {
  color: #bfbfbf;
  background: #fafafa;
}

/* ========== 表单（用于修改登录密码弹窗） ========== */
.form-grid {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.form-row:last-of-type {
  margin-bottom: 0;
}

.form-label {
  color: #666;
  text-align: right;
  white-space: nowrap;
}

.form-label.req::before {
  content: "*";
  color: #ff4d4f;
  margin-right: 6px;
}

.form-field {
  min-width: 0;
}

.form-input {
  width: 100%;
  max-width: 100%;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix .form-input {
  padding-right: 40px;
}

.input-suffix-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input-suffix-btn:hover {
  background: #f5f5f5;
  color: #666;
}

.form-actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.form-actions .btn {
  min-width: 120px;
  height: 36px;
}

.form-hint {
  margin-top: 10px;
  text-align: center;
  color: #ff4d4f;
  min-height: 18px;
  font-size: 12px;
}

.form-page {
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-label {
    text-align: left;
  }
}

/* ========== 收银 H5 页 ========== */
.cashier-page {
  min-height: 100vh;
  margin: 0;
  background: #f5f7fb;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.cashier-card {
  width: 360px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.cashier-header {
  background: #2f54eb;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
}

.cashier-header span {
  font-weight: 500;
}

.cashier-body {
  padding: 16px 20px 20px;
}

.cashier-tip {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cashier-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.cashier-qr {
  width: 180px;
  height: 180px;
  border-radius: 4px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cashier-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cashier-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cashier-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cashier-field-label {
  min-width: 70px;
  font-size: 13px;
  color: #666;
}

.cashier-field-value {
  flex: 1;
  font-size: 13px;
  color: #111;
  word-break: break-all;
}

.cashier-copy-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #1890ff;
  background: #e6f4ff;
  color: #1890ff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.cashier-copy-btn:hover {
  background: #bae0ff;
}

.cashier-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cashier-btn-cancel,
.cashier-btn-pay {
  flex: 1;
  height: 40px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}

.cashier-btn-cancel {
  background: #fff;
  border-color: #d9d9d9;
  color: #666;
}

.cashier-btn-cancel:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.cashier-btn-pay {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.cashier-btn-pay:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}

.cashier-timer {
  color: #ff4d4f;
  font-weight: 500;
}

/* ========== 代理后台（静态原型） ========== */
.admin-shell {
  min-height: 100vh;
  display: flex;
  background: #f0f2f5;
}

.admin-sidebar {
  width: 224px;
  background: #001529;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1677ff, #2f54eb);
  box-shadow: 0 4px 10px rgba(22, 119, 255, 0.25);
}

.admin-brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.admin-nav {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}

.admin-nav a {
  text-decoration: none;
}

.admin-nav-item {
  height: 40px;
  border-radius: 6px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.admin-nav-item.active {
  background: rgba(22, 119, 255, 0.18);
  color: #fff;
}

.admin-nav-icon {
  width: 18px;
  text-align: center;
  opacity: 0.95;
  font-size: 14px;
}

.admin-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.admin-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-breadcrumb {
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user {
  color: #333;
  font-weight: 500;
}

.admin-main {
  padding: 16px;
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
}

.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.card-subtitle {
  color: #999;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-item {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 14px 14px 12px;
}

.stat-label {
  color: #666;
  font-size: 12px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.3px;
}

.stat-value.muted {
  color: #999;
  font-weight: 600;
}

.table-compact .data-table th,
.table-compact .data-table td {
  padding: 10px 12px;
}

.right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-topbar .btn {
  height: 32px;
}

@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    width: 200px;
  }
}

/* ========== 金元宝 · 金主报表 H5 原型 ========== */
.h5-jyb-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #222;
  padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}

.h5-jyb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: #fff;
  border-bottom: 1px solid #eee;
}

.h5-jyb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-jyb-ingot {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(145deg, #e8c547, #b8860b);
  box-shadow: 0 1px 3px rgba(184, 134, 11, 0.35);
  flex-shrink: 0;
}

.h5-jyb-brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.h5-jyb-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h5-jyb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e8e8e8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.h5-jyb-username {
  font-size: 14px;
  color: #333;
}

.h5-jyb-main {
  padding: 12px 12px 20px;
}

.h5-jyb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.h5-jyb-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.h5-jyb-order-card {
  cursor: pointer;
}

.h5-jyb-order-card:active {
  opacity: 0.92;
}

.h5-jyb-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.h5-jyb-order-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.h5-jyb-order-status {
  font-size: 14px;
  color: #c9a227;
  font-weight: 600;
}

.h5-jyb-order-phase {
  font-size: 13px;
  color: #bbb;
}

.h5-jyb-order-time-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #999;
}

.h5-jyb-order-chevron {
  color: #d0d0d0;
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
}

.h5-jyb-order-main {
  display: flex;
  align-items: baseline;
}

.h5-jyb-order-amount {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.h5-jyb-order-bank {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.h5-jyb-order-bank-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.h5-jyb-order-bank-row + .h5-jyb-order-bank-row {
  margin-top: 6px;
}

.h5-jyb-order-bank-k {
  flex-shrink: 0;
  color: #999;
  min-width: 4.5em;
}

.h5-jyb-order-bank-v {
  color: #333;
  word-break: break-all;
}

.h5-jyb-list-foot {
  margin: 14px 4px 0;
  font-size: 12px;
  color: #999;
  text-align: center;
}

.h5-jyb-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}

.h5-jyb-tab {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-size: 12px;
  color: #bbb;
  text-decoration: none;
}

.h5-jyb-tab-active {
  color: #c9a227;
  font-weight: 600;
}

/* 订单类型：代付 / 代收 */
.h5-jyb-order-kind {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.35;
  flex-shrink: 0;
}

.h5-jyb-order-kind-df {
  color: #2d6a9f;
  background: rgba(45, 106, 159, 0.1);
}

.h5-jyb-order-kind-ds {
  color: #5c7a2e;
  background: rgba(107, 142, 35, 0.14);
}

/* 领单 · 抢单列表 */
.h5-jyb-grab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h5-jyb-grab-card {
  position: relative;
  padding: 16px;
}

.h5-jyb-grab-kind {
  margin-bottom: 8px;
}

.h5-jyb-grab-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.h5-jyb-grab-left {
  flex: 1;
  min-width: 0;
}

.h5-jyb-grab-amount {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.h5-jyb-grab-source {
  margin-top: 8px;
  font-size: 13px;
  color: #999;
}

.h5-jyb-grab-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #e8c547, #c9a227);
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.35);
  cursor: pointer;
}

.h5-jyb-grab-btn:active {
  opacity: 0.9;
}

.h5-jyb-grab-time {
  margin-top: 14px;
  text-align: right;
  font-size: 12px;
  color: #bbb;
}

/* 我的 · 数据看板 + 单号搜索 + 列表 */
.h5-jyb-dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.h5-jyb-dash-cell {
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}

.h5-jyb-dash-label {
  color: #666;
}

.h5-jyb-dash-num {
  color: #c9a227;
  font-weight: 600;
}

.h5-jyb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 12px;
  height: 40px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.h5-jyb-search-lead {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.8'%3E%3Crect x='4' y='4' width='16' height='18' rx='2'/%3E%3Cpath d='M8 2v4M16 2v4M4 10h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.h5-jyb-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}

.h5-jyb-search-input::placeholder {
  color: #bbb;
}

.h5-jyb-search-submit {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  cursor: pointer;
  opacity: 0.75;
}

.h5-jyb-tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h5-jyb-tx-card {
  cursor: pointer;
}

.h5-jyb-tx-card:active {
  opacity: 0.94;
}

.h5-jyb-tx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.h5-jyb-tx-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.h5-jyb-tx-type {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.h5-jyb-tx-status {
  font-size: 13px;
  font-weight: 600;
}

.h5-jyb-tx-status-fail {
  color: #e85d7a;
}

.h5-jyb-tx-status:not(.h5-jyb-tx-status-fail) {
  color: #52a068;
  font-weight: 600;
}

.h5-jyb-tx-time-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #999;
}

.h5-jyb-tx-chevron {
  color: #d0d0d0;
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
}

.h5-jyb-tx-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.h5-jyb-tx-amount {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.h5-jyb-tx-id {
  flex-shrink: 0;
  max-width: 58%;
  font-size: 12px;
  color: #999;
  text-align: right;
  word-break: break-all;
}

.h5-jyb-dash-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 4px;
  font-size: 13px;
  color: #666;
}

.h5-jyb-dash-sum-item {
  white-space: nowrap;
}

.h5-jyb-dash-num-inline {
  color: #c9a227;
  font-weight: 600;
}

/* 订单详情（子页，无底栏 Tab） */
.h5-jyb-page-detail {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

.h5-jyb-detail-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 10px 8px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}

.h5-jyb-detail-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: #333;
  text-decoration: none;
  font-weight: 300;
}

.h5-jyb-detail-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.h5-jyb-detail-header-spacer {
  width: 44px;
  height: 44px;
}

.h5-jyb-detail-main {
  padding-bottom: 8px;
}

.h5-jyb-detail-status-card {
  padding: 16px;
}

.h5-jyb-detail-status-line {
  margin: 0;
  font-size: 15px;
  color: #333;
}

.h5-jyb-detail-status-val {
  font-weight: 600;
}

.h5-jyb-detail-info-card {
  padding: 4px 0;
}

.h5-jyb-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  min-height: 48px;
  box-sizing: border-box;
}

.h5-jyb-detail-row + .h5-jyb-detail-row {
  border-top: 1px solid #f0f0f0;
}

.h5-jyb-detail-k {
  flex-shrink: 0;
  width: 4.5em;
  font-size: 14px;
  color: #555;
}

.h5-jyb-detail-v {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #222;
  text-align: right;
  word-break: break-all;
}

.h5-jyb-detail-copy {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #c9a227;
  background: #fff;
  border: 1px solid #e8c547;
  border-radius: 4px;
  cursor: pointer;
}

.h5-jyb-detail-copy:active {
  opacity: 0.85;
}

.h5-jyb-detail-qr-card {
  padding: 14px 16px 16px;
}

.h5-jyb-qr-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.h5-jyb-qr-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #999;
  line-height: 1.45;
}

.h5-jyb-qr-frame {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.h5-jyb-qr-img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
}

.h5-jyb-qr-foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: #bbb;
  text-align: center;
  line-height: 1.4;
}

.h5-jyb-detail-upload-card {
  padding: 14px 16px 16px;
}

.h5-jyb-upload-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #999;
  line-height: 1.45;
}

.h5-jyb-upload-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
}

.h5-jyb-upload-add:active {
  background: #f3f3f3;
}

.h5-jyb-upload-plus {
  font-size: 40px;
  font-weight: 300;
  color: #ccc;
  line-height: 1;
}

.h5-jyb-detail-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #f0f0f0;
  border-top: 1px solid #e5e5e5;
  z-index: 100;
}

.h5-jyb-detail-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.h5-jyb-detail-btn-outline {
  color: #c9a227;
  background: #fff;
  border: 1px solid #e8c547;
}

.h5-jyb-detail-btn-outline:active {
  opacity: 0.9;
}

.h5-jyb-detail-btn-solid {
  color: #fff;
  background: linear-gradient(180deg, #e8c547, #c9a227);
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.35);
}

.h5-jyb-detail-btn-solid:active {
  opacity: 0.94;
}

.h5-jyb-order-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.h5-jyb-order-card-link:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
  border-radius: 10px;
}

/* ========== 上游支付渠道商（静态原型） ========== */
.upc-page {
  margin: 0;
  background: #f5f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
}

.upc-shell {
  display: flex;
  min-height: 100vh;
}

.upc-sidebar {
  width: 220px;
  background: #1e3856;
  color: #c8d4e3;
}

.upc-logo {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 600;
  color: #e8f1ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.upc-menu {
  padding: 10px 0;
}

.upc-menu-group {
  padding: 10px 18px;
  font-size: 13px;
  color: #d5e0ee;
  border-left: 3px solid transparent;
}

.upc-menu-group-active {
  background: rgba(24, 144, 255, 0.12);
  border-left-color: #40a9ff;
}

.upc-menu-item {
  display: block;
  padding: 9px 28px;
  color: #aebfd4;
  text-decoration: none;
  font-size: 13px;
}

.upc-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.upc-menu-item-active {
  background: rgba(24, 144, 255, 0.22);
  color: #fff;
}

.upc-main {
  flex: 1;
  min-width: 0;
}

.upc-topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e9edf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 13px;
}

.upc-breadcrumb {
  color: #667a93;
}

.upc-top-actions {
  color: #8da0b8;
  letter-spacing: 6px;
}

.upc-tabs {
  padding: 12px 16px 8px;
}

.upc-tab {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid #d9e1ea;
  border-radius: 3px;
  margin-right: 6px;
  background: #fff;
  color: #6a7f98;
}

.upc-tab-active {
  background: #1890ff;
  border-color: #1890ff;
  color: #fff;
}

.upc-filter {
  margin: 0 16px 10px;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 4px;
  padding: 12px;
}

.upc-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.upc-filter-row label {
  color: #6c819b;
  font-size: 13px;
}

.upc-filter-row input,
.upc-filter-row select {
  height: 30px;
  border: 1px solid #d6dee8;
  border-radius: 3px;
  padding: 0 10px;
  min-width: 120px;
  color: #44586f;
  background: #fff;
}

.upc-filter-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upc-btn {
  height: 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
}

.upc-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
  color: #fff;
}

.upc-btn-default {
  background: #fff;
  border-color: #d6dee8;
  color: #5a6f87;
}

.upc-btn-success {
  background: #52c41a;
  border-color: #52c41a;
  color: #fff;
}

.upc-btn-danger {
  background: #ff4d4f;
  border-color: #ff4d4f;
  color: #fff;
}

.upc-table-wrap {
  margin: 0 16px 16px;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 4px;
  overflow: auto;
}

.upc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 1200px;
}

.upc-table th,
.upc-table td {
  border-bottom: 1px solid #eef2f7;
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}

.upc-table th {
  background: #f7f9fc;
  color: #6f839c;
  font-weight: 600;
}

.upc-table tbody tr:hover {
  background: #fafcff;
}

.upc-switch {
  display: inline-block;
  width: 28px;
  height: 16px;
  border-radius: 10px;
  background: #d9e1ea;
  position: relative;
  vertical-align: middle;
}

.upc-switch::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
}

.upc-switch-on {
  background: #40a9ff;
}

.upc-switch-on::after {
  left: 14px;
}

.upc-op {
  display: flex;
  gap: 6px;
}

.upc-mini {
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  height: 24px;
  padding: 0 9px;
  cursor: pointer;
}

.upc-mini-blue {
  background: #1890ff;
}

.upc-mini-gray {
  background: #8c8c8c;
}

.upc-mini-red {
  background: #ff4d4f;
}

.upc-edit-modal {
  width: 980px;
  max-width: calc(100vw - 40px);
}

.upc-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.upc-edit-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.upc-edit-item label {
  color: #666;
  font-size: 13px;
  line-height: 32px;
  text-align: right;
  white-space: nowrap;
}

.upc-edit-item input,
.upc-edit-item select,
.upc-edit-item textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: #333;
  font-family: inherit;
}

.upc-edit-item textarea {
  resize: vertical;
  line-height: 1.4;
}

.upc-edit-item input:focus,
.upc-edit-item select:focus,
.upc-edit-item textarea:focus {
  border-color: #1890ff;
  outline: none;
}

.upc-edit-item-full {
  grid-column: 1 / -1;
}
