:root {
  --ddb-blue: #303754;
  --ddb-blue-2: #3b4263;
  --ddb-text: #25283a;
  --ddb-muted: #8c8f9b;
  --ddb-line: #ececf1;
  --ddb-bg: #f4f3f7;
}
body.ddb-mode { background: var(--ddb-bg); color: var(--ddb-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
html.ddb-boot #app,
html:not(.ddb-uni) #app { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
body.ddb-mode #app { opacity: 0; pointer-events: none; visibility: hidden; }
html.ddb-uni #app { visibility: visible; opacity: 1; pointer-events: auto; }
html.ddb-uni.ddb-navigating #app { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
html.ddb-logout #app,
html.ddb-logout uni-page,
html.ddb-logout uni-tabbar {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html.ddb-logout::before {
  content: "正在退出...";
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #f4f3f7;
  color: #8c8f9b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
html.ddb-uni #ddb-app { display: none !important; pointer-events: none !important; }
html.ddb-uni #ddb-chrome { display: block !important; pointer-events: none; }
html.ddb-uni #ddb-chrome .ddb-uni-backbar,
html.ddb-uni #ddb-chrome .ddb-toast,
html.ddb-uni #ddb-chrome .ddb-order-notify { pointer-events: auto; }
body.ddb-mode uni-toast,
body.ddb-mode uni-modal,
body.ddb-mode uni-actionsheet {
  display: none !important;
}
#ddb-app { position: fixed; inset: 0; z-index: 9999; background: var(--ddb-bg); overflow: hidden; font-size: 14px; }
.ddb-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ddb-topbar { height: 44px; background: var(--ddb-blue); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; box-sizing: border-box; font-size: 14px; flex-shrink: 0; }
.ddb-brand { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.ddb-logo { width: 22px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #48d0df, #2552d9); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.ddb-bank { opacity: 1; font-size: 13px; border: 0; background: rgba(255,255,255,.14); color: inherit; padding: 5px 10px 5px 8px; cursor: pointer; border-radius: 16px; display: inline-flex; align-items: center; gap: 6px; }
.ddb-bank-caret { font-size: 10px; opacity: .85; transform: translateY(-1px); }
.ddb-pay-menu { position: fixed; top: 48px; right: 10px; z-index: 10005; background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(33,39,63,.18); overflow: hidden; min-width: 148px; padding: 6px; }
.ddb-pay-item { display: flex; width: 100%; border: 0; background: #fff; text-align: left; padding: 10px 12px; color: #454756; font-size: 14px; align-items: center; gap: 10px; border-radius: 8px; }
.ddb-pay-item.active, .ddb-pay-item:hover { background: #f3f5ff; color: #3d55b6; }
.ddb-pay-check { margin-left: auto; color: #3d55b6; font-style: normal; font-weight: 700; }
.ddb-pay-ico { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.ddb-pay-ico.bank { background: linear-gradient(135deg, #3a5bdc, #254fae); }
.ddb-pay-ico.bank:after { content: ""; width: 12px; height: 9px; border-radius: 1px; background: linear-gradient(90deg, #fff 0 34%, #ff6b6b 34% 55%, #7dffa3 55%); }
.ddb-pay-ico.ali { background: linear-gradient(135deg, #2ea7ff, #1677ff); }
.ddb-pay-ico.ali:after { content: "支"; color: #fff; font-size: 11px; font-weight: 800; }
.ddb-pay-ico.wx { background: linear-gradient(135deg, #2ac864, #09b96a); }
.ddb-pay-ico.wx:after { content: "微"; color: #fff; font-size: 11px; font-weight: 800; }
.ddb-pay-ico.all { background: linear-gradient(135deg, #6b7280, #4b5563); }
.ddb-pay-ico.all:after { content: "全"; color: #fff; font-size: 11px; font-weight: 800; }
.ddb-bank .ddb-pay-ico { width: 18px; height: 18px; border-radius: 5px; }
.ddb-bank .ddb-pay-ico.bank:after { width: 10px; height: 7px; }
.ddb-bank .ddb-pay-ico.ali:after,
.ddb-bank .ddb-pay-ico.wx:after { font-size: 9px; }
#ddb-chrome { position: fixed; inset: 0; z-index: 10002; pointer-events: none; }
/* Uni 子页（发布委托等）：chrome 只保留顶栏区域，避免全屏层挡住底部弹窗/支付方式选择 */
html.ddb-uni #ddb-chrome {
  inset: auto !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  height: 44px !important;
  overflow: visible;
  pointer-events: none !important;
}
html.ddb-uni #ddb-chrome .ddb-uni-backbar,
html.ddb-uni #ddb-chrome .ddb-toast,
html.ddb-uni #ddb-chrome .ddb-order-notify,
html.ddb-uni #ddb-chrome .ddb-qr-preview-mask { pointer-events: auto !important; }
/* 二维码预览时 chrome 需全屏可点 */
html.ddb-uni #ddb-chrome:has(.ddb-qr-preview-mask) {
  inset: 0 !important;
  height: auto !important;
  bottom: 0 !important;
}
/* 支付方式等 uView 弹层必须高于 DDB 返回条 */
html.ddb-uni .u-mask,
html.ddb-uni .u-drawer,
html.ddb-uni .u-popup,
html.ddb-uni .u-mode-center-box,
html.ddb-uni uni-mask,
html.ddb-uni [class*="u-drawer"],
html.ddb-uni [class*="u-popup"] {
  z-index: 10080 !important;
}
/* 委托单：仅禁用态输入框穿透点击，文字和三角都能打开选择（不影响可编辑输入框） */
html.ddb-uni .u-field uni-input[disabled],
html.ddb-uni .u-field uni-input[disabled] *,
html.ddb-uni .u-field input:disabled,
html.ddb-uni .u-field .uni-input-input:disabled {
  pointer-events: none !important;
}
html.ddb-uni .u-field .u-arror-right {
  pointer-events: auto !important;
  cursor: pointer;
  padding: 8px;
  margin: -8px -8px -8px 0;
}
#ddb-chrome .ddb-pay-menu,
#ddb-chrome .ddb-modal-mask,
#ddb-chrome .ddb-qr-preview-mask,
#ddb-chrome .ddb-toast,
#ddb-chrome .ddb-order-notify,
#ddb-chrome .ddb-uni-backbar { pointer-events: auto; }
.ddb-input { border: 0; outline: none; width: 140px; text-align: right; color: #333747; font-size: 14px; background: transparent; }
.ddb-qr { display: flex; justify-content: center; margin: 12px 0; }
.ddb-qr img { width: 180px; height: 180px; background: #fff; border: 1px solid #e8e9ef; border-radius: 4px; padding: 8px; box-sizing: border-box; }
.ddb-action.ghost { background: #fff; color: #303754; border: 1px solid #d8dae6; }
.ddb-address {
  text-align: center;
  margin: 8px 0 16px;
  padding: 14px 12px;
  background: #f7f8fc;
  border-radius: 8px;
  box-sizing: border-box;
}
.ddb-address small {
  display: block;
  color: #777b8d;
  margin-bottom: 4px;
}
.ddb-address-text {
  margin: 8px 0;
  word-break: break-all;
  font-size: 13px;
  color: #333747;
  line-height: 1.5;
  text-align: center;
}
.ddb-address-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.ddb-copy-btn { border: 0; background: #303a73; color: #fff; border-radius: 4px; height: 34px; padding: 0 16px; font-size: 13px; }
.ddb-exchange .ddb-field[data-hash-field],
.ddb-exchange .ddb-from-addr {
  height: auto !important;
  min-height: 0;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 12px !important;
  margin: 4px 0 14px;
  box-sizing: border-box;
}
.ddb-exchange .ddb-field[data-hash-field] strong,
.ddb-exchange .ddb-from-addr strong {
  width: 100%;
  justify-content: flex-start;
  font-size: 13px;
}
.ddb-exchange .ddb-field[data-hash-field] .ddb-input,
.ddb-exchange .ddb-from-addr .ddb-input {
  flex: none !important;
  width: 100% !important;
  max-width: 100%;
  text-align: left !important;
  height: 42px;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
  padding: 0 12px;
  box-sizing: border-box;
  background: #fff;
  font-size: 14px;
}
.ddb-modal-mask { position: fixed; inset: 0; z-index: 10001; background: rgba(20,22,35,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ddb-modal { width: 100%; max-width: 320px; background: #fff; border-radius: 6px; padding: 18px; }
.ddb-modal-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: #333747; }
.ddb-modal-row { color: #777b8d; font-size: 13px; margin-bottom: 8px; }
.ddb-modal-input { width: 100%; height: 44px; border: 1px solid #e1e1e8; border-radius: 4px; padding: 0 12px; box-sizing: border-box; margin: 10px 0 14px; font-size: 15px; }
.ddb-modal-textarea { width: 100%; min-height: 96px; border: 1px solid #e1e1e8; border-radius: 4px; padding: 10px 12px; box-sizing: border-box; margin: 10px 0 14px; font-size: 15px; resize: vertical; font-family: inherit; }
.ddb-reject-notice { border-left: 3px solid #e74c3c; }
.ddb-reject-notice .ddb-panel-title { color: #e74c3c; }
.ddb-modal-tip { color: #9a9db0; font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.ddb-order-detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 0 12px;
}
.ddb-order-detail .ddb-panel { margin: 12px; background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ddb-gather-item { background: #f7f8fc; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.6; color: #555; }
.ddb-gather-type { font-weight: 700; color: #333; margin-bottom: 4px; }
.ddb-gather-qr { margin-top: 10px; text-align: center; }
.ddb-gather-qr img { width: min(78vw, 300px); max-width: 300px; height: auto; border-radius: 8px; background: #fff; padding: 10px; box-sizing: border-box; border: 1px solid #e8e9ef; -webkit-touch-callout: default; cursor: zoom-in; }
.ddb-gather-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; line-height: 1.5; flex-wrap: wrap; }
.ddb-gather-label { color: #888; flex: 0 0 auto; min-width: 2.5em; }
.ddb-gather-val { color: #333; font-weight: 600; word-break: break-all; flex: 1 1 auto; }
.ddb-gather-copy {
  flex: 0 0 auto;
  border: 0;
  background: #303a73;
  color: #fff;
  border-radius: 4px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 28px;
}
.ddb-gather-qr-actions { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ddb-gather-qr-actions .ddb-gather-copy { height: 36px; padding: 0 16px; font-size: 13px; }
.ddb-gather-qr-hint { font-size: 12px; color: #9a9db0; }
.ddb-order-footer {
  flex-shrink: 0;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eceef5;
  box-shadow: 0 -4px 14px rgba(33,39,63,.06);
}
.ddb-order-footer .ddb-action,
.ddb-order-footer .ddb-trade-actions { margin: 0; width: 100%; }
.ddb-order-footer .ddb-trade-actions { display: flex; gap: 10px; }
.ddb-order-footer .ddb-trade-btn { flex: 1; }
.text-red { color: #e74c3c; }
.ddb-action.ghost { background: #fff; color: #666; border: 1px solid #ddd; margin: 12px 0 0; box-sizing: border-box; }
.ddb-action { height: 48px; width: 100%; border: 0; border-radius: 4px; background: #303a73; color: #fff; font-weight: 700; font-size: 15px; margin-top: 12px; box-sizing: border-box; display: block; }
.ddb-exchange .ddb-action,
.ddb-exchange .ddb-action.ghost {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.ddb-toast { position: fixed; left: 50%; top: 18%; z-index: 10002; transform: translateX(-50%); background: rgba(33,39,63,.92); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; max-width: 80vw; text-align: center; }
.ddb-order-notify {
  position: fixed;
  left: 10px;
  right: 10px;
  top: 50px;
  z-index: 10040;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e4e7f2;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(33,39,63,.12);
  color: #333747;
  font-size: 13px;
  cursor: pointer;
}
html.ddb-uni .ddb-order-notify { top: 50px; }
.ddb-order-notify-tag {
  flex-shrink: 0;
  background: #e74c3c;
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 700;
}
.ddb-order-notify-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ddb-order-notify-go { flex-shrink: 0; color: #3d55b6; font-weight: 600; }
.ddb-tab-icon { position: relative; }
.ddb-tab-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}
.ddb-auth { background: #f4f3f7; }
.ddb-auth-body { flex: 1; overflow-y: auto; padding: 24px 18px 40px; }
.ddb-auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: #303754; margin-bottom: 20px; }
.ddb-auth-title { font-size: 22px; font-weight: 700; color: #303754; margin-bottom: 8px; }
.ddb-auth-tip { color: #777b8d; font-size: 13px; line-height: 1.5; margin-bottom: 22px; }
.ddb-auth .ddb-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  padding: 10px 12px 8px;
  gap: 4px;
  margin-bottom: 12px;
  background: #fff;
}
.ddb-auth .ddb-field > span { color: #9b9da8; font-size: 12px; }
.ddb-auth .ddb-input {
  width: 100%;
  text-align: left;
  height: 32px;
  font-size: 15px;
  color: #333747;
}
.ddb-auth .ddb-action { margin-top: 8px; }
.ddb-auth-link {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: #3d55b6;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
}
.ddb-auth .ddb-back {
  border: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  left: 12px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 0;
}

/* —— 登录页 —— */
.ddb-login {
  background:
    radial-gradient(120% 80% at 12% -10%, #3a6ef0 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 8%, #29c4d4 0%, transparent 48%),
    linear-gradient(165deg, #1e2748 0%, #2a3358 42%, #f0f2f8 42.05%, #f4f3f7 100%);
  overflow: hidden;
}
.ddb-login-plane {
  position: absolute;
  inset: 0 0 52% 0;
  pointer-events: none;
  overflow: hidden;
}
.ddb-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .35;
  animation: ddb-login-float 9s ease-in-out infinite;
}
.ddb-login-orb-a {
  width: 180px; height: 180px;
  top: -40px; right: -30px;
  background: radial-gradient(circle at 30% 30%, #7ae8f2, #3b6dff 70%);
}
.ddb-login-orb-b {
  width: 120px; height: 120px;
  bottom: 18%; left: -28px;
  background: radial-gradient(circle at 40% 40%, #a8b7ff, #2552d9 75%);
  animation-delay: -3s;
  opacity: .28;
}
.ddb-login-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
  opacity: .55;
}
@keyframes ddb-login-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8px, 12px, 0) scale(1.04); }
}
.ddb-login-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 22px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ddb-login-head {
  padding: 56px 4px 18px;
  color: #fff;
}
.ddb-login-enter .ddb-login-head {
  animation: ddb-login-rise .55s ease both;
}
.ddb-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ddb-login-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #5be0ec 0%, #3a6cf5 55%, #2552d9 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.28),
    0 10px 24px rgba(20, 40, 120, .28);
  flex-shrink: 0;
}
.ddb-login-name {
  margin: 0;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: "DIN Alternate", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  text-shadow: 0 2px 18px rgba(10, 20, 60, .25);
}
.ddb-login-sub {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.72);
  letter-spacing: 0.02em;
}
.ddb-login-form {
  /* 贴在蓝白分界附近，不要用 auto 顶到底部 */
  margin-top: 12px;
  padding-top: 4px;
  flex: 0 0 auto;
}
.ddb-login-enter .ddb-login-form {
  animation: ddb-login-rise .6s .12s ease both;
}
@keyframes ddb-login-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ddb-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px 14px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(48,55,84,.06);
  transition: border-color .2s, box-shadow .2s;
}
.ddb-login-field:focus-within {
  border-color: rgba(61, 85, 182, .45);
  box-shadow: 0 0 0 3px rgba(61, 85, 182, .12);
}
.ddb-login-field > span {
  font-size: 12px;
  color: #8c8f9b;
  letter-spacing: 0.04em;
}
.ddb-login-field .ddb-input {
  width: 100%;
  height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  text-align: left;
  font-size: 16px;
  color: #25283a;
  font-family: inherit;
}
.ddb-login-submit {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d55b6 0%, #2a3a7a 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(42, 58, 122, .28);
  transition: transform .15s ease, opacity .15s;
}
.ddb-login-submit:active { transform: scale(.985); }
.ddb-login-submit:disabled { opacity: .65; cursor: default; transform: none; }
.ddb-login-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 0 2px;
}
.ddb-login-link {
  border: 0;
  background: transparent;
  color: #3d55b6;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
}
.ddb-login-link.muted { color: #8c8f9b; }

@media (min-height: 720px) {
  .ddb-login-head { padding-top: 72px; padding-bottom: 28px; }
  .ddb-login-form { margin-top: 20px; }
}

.ddb-kyc-uploads { display: grid; gap: 12px; margin: 8px 0 16px; }
.ddb-kyc-upload {
  display: block;
  position: relative;
  background: #fff;
  border: 1px dashed #c5cad8;
  border-radius: 8px;
  overflow: hidden;
  min-height: 140px;
  cursor: pointer;
}
.ddb-kyc-label {
  display: block;
  padding: 8px 12px 0;
  color: #777b8d;
  font-size: 12px;
}
.ddb-kyc-ph {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0b5;
  font-size: 14px;
}
.ddb-kyc-preview {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f3f4f8;
}
.ddb-kyc-upload input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.ddb-rate { height: 38px; background: #fff; border-bottom: 1px solid var(--ddb-line); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; flex-shrink: 0; }
.ddb-rate-left { color: #2d55bf; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.ddb-usdt { width: 20px; height: 20px; border-radius: 50%; background: #25a96b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.ddb-rate-value { color: #1d2030; font-weight: 600; }
.ddb-publish-bar { height: 42px; background: #fff; border-bottom: 1px solid var(--ddb-line); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; flex-shrink: 0; gap: 10px; }
.ddb-publish-tip { color: #777b8d; font-size: 13px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddb-publish-btn { border: 0; border-radius: 4px; background: var(--ddb-blue-2); color: #fff; font-weight: 700; font-size: 13px; height: 30px; padding: 0 14px; flex-shrink: 0; cursor: pointer; }
.ddb-list { flex: 1; overflow-y: auto; padding-bottom: 66px; background: #f8f7fa; }
.ddb-order { min-height: 104px; background: #fff; border-bottom: 1px solid var(--ddb-line); padding: 12px 12px 10px; box-sizing: border-box; display: grid; grid-template-columns: 1fr 118px; column-gap: 10px; }
.ddb-merchant { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.ddb-avatar { width: 28px; height: 28px; border-radius: 50%; background: #3a3c4e; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.ddb-meta { margin-top: 8px; line-height: 1.8; color: #4b4e5c; font-size: 13px; }
.ddb-pay { color: #22283a; display: flex; align-items: center; gap: 6px; }
.ddb-card-icon { display: none; }
.ddb-pay-brand { width: 19px; height: 19px; margin-right: 5px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 19px; vertical-align: -4px; box-sizing: border-box; overflow: hidden; position: relative; }
.ddb-pay-brand.ali { background: #1677ff; color: #fff; font-family: "Microsoft YaHei", sans-serif; font-size: 13px; font-weight: 800; line-height: 19px; }
.ddb-pay-brand.bank { background: #2452a4; border: 1px solid #183f87; }
.ddb-pay-brand.bank:before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 3px; background: #fff; opacity: .92; }
.ddb-pay-brand.bank:after { content: ""; position: absolute; left: 3px; bottom: 3px; width: 8px; height: 2px; background: #fff; opacity: .82; }
.ddb-pay-brand.bank i { position: absolute; right: 2px; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: #e54147; box-shadow: -3px 0 0 #34a86b; }
.ddb-pay-brand.wx { background: #09b83e; }
.ddb-pay-brand.wx svg { width: 18px; height: 18px; display: block; }
.ddb-pay-value { display: inline-flex; align-items: center; justify-content: flex-end; }
.ddb-right { text-align: right; }
.ddb-deal { color: #989aa5; font-size: 12px; white-space: nowrap; }
.ddb-amount { color: #4d57b7; font-size: 20px; font-weight: 700; margin-top: 12px; }
.ddb-coin { font-size: 12px; margin-left: 3px; color: #777b8b; font-weight: 500; }
.ddb-buy { margin-top: 8px; width: 66px; height: 34px; border: 0; border-radius: 4px; background: var(--ddb-blue-2); color: #fff; font-weight: 700; font-size: 14px; }
.ddb-service { display: none !important; }
.ddb-tabbar { height: 56px; background: var(--ddb-blue); color: rgba(255,255,255,.7); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; }
.ddb-tab { height: 56px; border: 0; background: transparent; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; }
.ddb-tab.active { color: #fff; font-weight: 700; }
.ddb-tab-icon { font-size: 20px; line-height: 20px; }
.ddb-mode-pick { display: flex; gap: 16px; margin: 0 0 14px; }
.ddb-mode-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  font-size: 13px;
  color: #0b6e4f;
  background: rgba(11, 110, 79, 0.1);
  border-radius: 4px;
}
.ddb-radio { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ddb-text); }
.ddb-radio input { margin: 0; }
.ddb-pay-amount { color: #c0392b; font-size: 18px; font-weight: 700; margin-right: 8px; }
.ddb-countdown { font-size: 18px; font-weight: 700; color: var(--ddb-blue); }
.ddb-notice-bar { margin: 10px 12px 0; padding: 10px 12px; background: #fff7e8; border: 1px solid #ffe2b0; border-radius: 4px; display: flex; align-items: center; gap: 8px; color: #8a5a00; font-size: 13px; }
.ddb-notice-tag { flex-shrink: 0; background: #f0a020; color: #fff; border-radius: 3px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.ddb-notice-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ddb-notice-more { flex-shrink: 0; color: #b07820; }
.ddb-help-list { flex: 1; overflow-y: auto; padding: 12px; padding-bottom: 80px; }
.ddb-help-item { background: #fff; border-radius: 4px; padding: 14px; margin-bottom: 10px; }
.ddb-help-title { color: #303754; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.ddb-help-meta { margin-top: 6px; color: var(--ddb-muted); font-size: 12px; }
.ddb-help-content { margin-top: 10px; color: #454756; font-size: 14px; line-height: 1.7; word-break: break-word; }
.ddb-help-content img { max-width: 100%; height: auto; }
.ddb-help-arrow { color: #9aa0b5; font-weight: 400; }
.ddb-textarea { height: auto !important; min-height: 120px; width: 100%; border: 0; resize: vertical; outline: none; color: #333; font-size: 14px; padding: 10px 0; font-family: inherit; }
.ddb-field:has(.ddb-textarea) { height: auto; align-items: flex-start; flex-direction: column; padding-top: 10px; padding-bottom: 6px; }
.ddb-back-title { justify-content: center; position: relative; font-weight: 700; }
.ddb-back { position: absolute; left: 12px; color: #fff; font-size: 30px; line-height: 1; }
.ddb-panel { background: #fff; border-radius: 4px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.ddb-panel-title { text-align: center; color: #3953b6; font-weight: 700; margin-bottom: 18px; }
.ddb-exchange {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 140px;
  box-sizing: border-box;
}
.ddb-exchange .ddb-field[data-hash-field] {
  height: auto;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  position: relative;
  z-index: 40;
}
.ddb-exchange .ddb-field[data-hash-field] .ddb-input {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}
/* 充值页客服按钮上移，避免挡住哈希输入与提交按钮 */
.ddb-page-exchange .ddb-service-btn {
  bottom: auto;
  top: 58px;
  right: max(12px, calc((100vw - 520px) / 2 + 12px));
  width: 48px;
  height: 48px;
  font-size: 11px;
  z-index: 20;
}
.ddb-field { height: 46px; border: 1px solid #e1e1e8; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; margin-bottom: 12px; color: #9b9da8; }
.ddb-field strong { color: #333747; display: flex; align-items: center; gap: 8px; }
.ddb-action { height: 48px; width: 100%; border: 0; border-radius: 4px; background: #303a73; color: #fff; font-weight: 700; font-size: 15px; margin-top: 12px; box-sizing: border-box; display: block; }
.ddb-info-title { color: #3d55b6; font-weight: 700; margin-bottom: 12px; }
.ddb-profile { flex: 1; overflow-y: auto; padding-bottom: 70px; }
.ddb-profile-head { background: linear-gradient(180deg, #eef0ff, #f7f2f3); padding: 36px 18px 18px; }
.ddb-user { display: flex; align-items: center; justify-content: space-between; }
.ddb-name { display: flex; align-items: center; gap: 10px; }
.ddb-name .ddb-avatar { width: 40px; height: 40px; font-size: 17px; }
.ddb-user-title { font-size: 20px; font-weight: 700; }
.ddb-user-id { margin-top: 4px; color: #777b8d; font-size: 13px; }
.ddb-badge { background: #fff; border: 0; border-radius: 18px; padding: 8px 14px; color: #777081; font-size: 13px; }
.ddb-balance-card { background: var(--ddb-blue); color: #fff; border-radius: 5px; margin-top: 18px; padding: 14px 18px; }
.ddb-balance-card small { opacity: .72; }
.ddb-balance-num { margin-top: 10px; font-size: 30px; font-weight: 800; }
.ddb-balance-quota { margin-top: 8px; font-size: 13px; opacity: .88; }
.ddb-balance-quota b { font-weight: 700; }
.ddb-menu { margin: 10px 12px 0; background: #fff; border-radius: 4px; overflow: hidden; }
.ddb-menu-row { min-height: 50px; padding: 0 14px; border-bottom: 1px solid var(--ddb-line); display: flex; align-items: center; justify-content: space-between; color: #454756; }
.ddb-invite-code { color: #4c59b9; font-weight: 700; }
.ddb-copy { display: inline-block; width: 13px; height: 13px; border: 1px solid #7881b9; border-radius: 2px; margin-left: 6px; position: relative; }
.ddb-copy:after { content: ""; position: absolute; left: 3px; top: -4px; width: 13px; height: 13px; border: 1px solid #7881b9; border-radius: 2px; background: #fff; }
.ddb-avatar-person { background: #c8cad4; color: transparent; position: relative; }
.ddb-avatar-person:before { content: ""; position: absolute; left: 50%; top: 7px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; }
.ddb-avatar-person:after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 8px; margin-left: -8px; border-radius: 8px 8px 0 0; background: #fff; }
.ddb-order-title { justify-content: center; font-weight: 700; font-size: 16px; }
.ddb-order-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--ddb-line); flex-shrink: 0; }
.ddb-order-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 70px;
  background: #f8f7fa;
}
.ddb-three-day-tip { flex-shrink: 0; }
.ddb-order-tab { flex: 1; height: 42px; border: 0; background: transparent; color: #777b8d; font-size: 14px; position: relative; }
.ddb-order-tab.active { color: #3d55b6; font-weight: 700; }
.ddb-order-tab.active:after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 2px; margin-left: -14px; background: #3d55b6; border-radius: 2px; }
.ddb-order-cd-banner {
  margin: 12px;
  background: linear-gradient(135deg, #303754, #3d55b6);
  color: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.ddb-order-cd-label { font-size: 13px; opacity: .85; }
.ddb-order-cd-num { margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.ddb-order-cd-tip { margin-top: 6px; font-size: 12px; opacity: .8; line-height: 1.4; }
.ddb-order-cd-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #eef2ff;
  border-radius: 6px;
  color: #3d55b6;
  font-size: 13px;
}
.ddb-order-cd-inline strong { font-variant-numeric: tabular-nums; font-size: 15px; }
.ddb-trade-item { background: #fff; border-radius: 4px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.ddb-trade-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ddb-trade-type { font-size: 15px; font-weight: 700; color: #333747; }
.ddb-trade-type.buy { color: #3d55b6; }
.ddb-trade-type.sell { color: #25a96b; }
.ddb-status { font-size: 12px; padding: 3px 8px; border-radius: 3px; font-weight: 600; }
.ddb-status-pending { background: #fff3e8; color: #e07a2f; }
.ddb-status-confirm { background: #eef2ff; color: #3d55b6; }
.ddb-status-done { background: #eaf7ef; color: #25a96b; }
.ddb-status-rejected { background: #fdeeee; color: #d64545; }
.ddb-status-cancel { background: #f2f2f5; color: #8c8f9b; }
.ddb-trade-reason { margin-top: 8px; padding: 8px 10px; background: #fdeeee; color: #d64545; border-radius: 4px; font-size: 12px; line-height: 1.4; }
.ddb-trade-body { border-top: 1px solid var(--ddb-line); border-bottom: 1px solid var(--ddb-line); padding: 10px 0; }
.ddb-trade-row { display: flex; align-items: center; justify-content: space-between; min-height: 28px; color: #777b8d; font-size: 13px; }
.ddb-trade-row strong { color: #333747; font-size: 14px; font-weight: 600; }
.ddb-trade-total { color: #3d55b6 !important; }
.ddb-trade-foot { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; color: #989aa5; font-size: 12px; }
.ddb-trade-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.ddb-trade-btn { min-width: 88px; height: 34px; border: 0; border-radius: 4px; background: var(--ddb-blue-2); color: #fff; font-size: 13px; font-weight: 700; }
.ddb-trade-btn:disabled { opacity: .55; }
.ddb-trade-btn.ghost { background: #fff; color: #666a7a; border: 1px solid #dddfe8; }
.ddb-empty { text-align: center; color: #989aa5; padding: 60px 0; font-size: 14px; }
.ddb-logout { color: #e04a4a !important; }
.ddb-logout span:last-child { color: #e04a4a !important; }
.ddb-balance-top { display: flex; align-items: center; justify-content: space-between; }
.ddb-eye { border: 0; background: transparent; color: rgba(255,255,255,.75); font-size: 16px; padding: 0; }
.ddb-logo-inline { width: 18px; height: 18px; font-size: 11px; vertical-align: middle; }
.ddb-rate-inline { float: right; color: #333; font-weight: 600; }
.ddb-dash { border: 0; border-top: 1px dashed #ddd; margin: 18px 0; }

/* 我的收益 */
.ddb-top-link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: rgba(255,255,255,.9); font-size: 13px; padding: 0; }
.ddb-hash-mini { font-size: 12px; word-break: break-all; font-weight: 500; }
.ddb-earn-head { margin: 12px; background: var(--ddb-blue); color: #fff; border-radius: 8px; padding: 16px; }
.ddb-earn-total small { opacity: .72; font-size: 12px; }
.ddb-earn-total-num { margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: .5px; }
.ddb-earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 16px; }
.ddb-earn-grid small { display: block; opacity: .7; font-size: 11px; margin-bottom: 4px; }
.ddb-earn-grid strong { font-size: 15px; font-weight: 700; }
.ddb-earn-section-title { padding: 4px 16px 8px; color: #777b8d; font-size: 13px; }
.ddb-stake-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.ddb-page-stake .ddb-stake-history {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ddb-earn-list { flex: 1; overflow: auto; padding: 0 12px 80px; -webkit-overflow-scrolling: touch; }
.ddb-earn-row, .ddb-earn-detail-card, .ddb-earn-rule-card { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ddb-earn-row { cursor: pointer; }
.ddb-earn-row-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ddb-earn-row-meta { color: #989aa5; font-size: 12px; margin-bottom: 8px; }
.ddb-earn-row-money { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #666a7a; font-size: 12px; }
.ddb-earn-row-money strong { color: #25a96b; font-size: 14px; }
.ddb-earn-date-tip { padding: 12px 16px 4px; color: #454756; font-weight: 700; }
.ddb-earn-amt { color: #25a96b !important; }
.ddb-earn-rule-title { font-weight: 700; color: #333747; margin-bottom: 10px; }
.ddb-earn-rule-desc { margin: 10px 0 0; color: #777b8d; font-size: 12px; line-height: 1.6; }
.ddb-earn-rule-note p { margin: 0 0 8px; color: #55586a; font-size: 13px; line-height: 1.55; }
.ddb-link-btn { margin-top: 10px; border: 0; background: #eef2ff; color: #3d55b6; height: 34px; border-radius: 4px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.ddb-stake-card { margin: 12px; background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ddb-stake-title { font-weight: 700; color: #333747; margin-bottom: 10px; font-size: 15px; }
.ddb-stake-tip { margin: 8px 0 12px; color: #777b8d; font-size: 12px; line-height: 1.5; }
.ddb-stake-form { display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px; }
.ddb-stake-input-box { flex: 1; min-width: 0; display: block; padding: 8px 11px; border: 2px solid #c8cee8; border-radius: 8px; background: #f6f7ff; box-sizing: border-box; transition: border-color .18s, box-shadow .18s, background .18s; }
.ddb-stake-input-box:focus-within { border-color: #303a73; background: #fff; box-shadow: 0 0 0 3px rgba(48,58,115,.12); }
.ddb-stake-input-label { display: block; margin-bottom: 3px; color: #626985; font-size: 11px; font-weight: 600; }
.ddb-stake-input-control { display: flex; align-items: center; gap: 7px; }
.ddb-stake-input-control .ddb-input { flex: 1; min-width: 0; width: 100%; margin: 0; text-align: left; color: #252a42; font-size: 17px; font-weight: 750; }
.ddb-stake-input-control .ddb-input::placeholder { color: #afb3c3; font-size: 14px; font-weight: 400; }
.ddb-stake-input-control em { color: #303a73; font-size: 12px; font-style: normal; font-weight: 700; }
.ddb-stake-form .ddb-action { width: auto; min-width: 94px; padding: 0 14px; min-height: 60px; height: auto; line-height: 1.25; margin: 0; border-radius: 8px; }
.ddb-stake-section { margin: 8px 0 6px; color: #777b8d; font-size: 13px; }
.ddb-stake-unlock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f2f2f5; font-size: 13px; }
.ddb-stake-unlock-row small { display: block; color: #989aa5; margin-top: 2px; }
.ddb-stake-unlock-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ddb-stake-entry { cursor: pointer; }
.ddb-stake-entry .ddb-stake-title { display: flex; justify-content: space-between; align-items: center; }
.ddb-stake-entry-go { color: #3d55b6; font-weight: 600; font-size: 13px; }
.ddb-muted { color: #989aa5; font-size: 12px; }
.ddb-earn-detail-card .ddb-trade-row, .ddb-earn-rule-card .ddb-trade-row, .ddb-stake-card .ddb-trade-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f2f2f5; font-size: 13px; color: #777b8d; }
.ddb-earn-detail-card .ddb-trade-row:last-of-type, .ddb-earn-rule-card .ddb-trade-row:last-of-type { border-bottom: 0; }
.ddb-earn-detail-card .ddb-trade-row strong, .ddb-earn-rule-card .ddb-trade-row strong, .ddb-stake-card .ddb-trade-row strong { color: #333747; text-align: right; word-break: break-all; }

.ddb-uni-backbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10050;
  height: 44px; background: #303754; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.ddb-uni-back-btn {
  position: absolute; left: 8px; top: 0; bottom: 0;
  border: 0; background: transparent; color: #fff;
  font-size: 15px; padding: 0 10px; font-weight: 600;
}
html.ddb-uni #app,
html.ddb-uni uni-page-body,
html.ddb-uni .uni-page-head { padding-top: 44px !important; }
html.ddb-uni .uni-page-head { top: 44px !important; }

.ddb-trust-card { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ddb-muted { color: #989aa5; font-size: 12px; }
.ddb-google-qr { text-align: center; margin: 12px 0; }
.ddb-google-qr img { width: 180px; height: 180px; background: #fff; border-radius: 8px; border: 1px solid #ececf1; }
.ddb-google-secret { letter-spacing: 1px; }

/* 参考版订单中心与出售管理 */
.ddb-business-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #303754; padding: 0 8px; }
.ddb-business-tabs.ddb-sell-tabs { grid-template-columns: repeat(3, 1fr); }
.ddb-business-tab { min-width: 0; height: 42px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: rgba(255,255,255,.68); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ddb-business-tab.active { color: #fff; border-bottom-color: #f2cf8b; }
.ddb-three-day-tip { margin: 10px 10px 8px; padding: 9px 12px; border-radius: 5px; background: #fffaf0; color: #b38544; font-size: 12px; }
.ddb-day-group { margin-bottom: 12px; }
.ddb-day-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #eef2f8; color: #526487; font-size: 13px; }
.ddb-day-head span { color: #777b8d; font-size: 11px; line-height: 1.55; text-align: right; }
.ddb-day-head b { color: #3d55b6; font-weight: 700; }
.ddb-reference-order { border-radius: 0; margin-bottom: 1px; box-shadow: none; border-bottom: 1px solid #ececf1; }
.ddb-reference-head { display: flex; align-items: center; justify-content: space-between; color: #777b8d; font-size: 12px; margin-bottom: 10px; }
.ddb-reference-head .ddb-merchant { color: #3c4050; margin: 0; }
.ddb-reference-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ddb-reference-meta { flex: 1; min-width: 0; }
.ddb-reference-meta > div { display: flex; align-items: center; gap: 8px; min-height: 27px; color: #777b8d; font-size: 13px; }
.ddb-reference-meta > div > span:first-child { min-width: 58px; }
.ddb-reference-meta strong { color: #343849; font-weight: 600; }
.ddb-reference-amount { color: #3653ad; font-size: 20px; font-weight: 800; white-space: nowrap; }
.ddb-sell-trust-card { border-radius: 4px; margin: 0 10px 8px; }
.ddb-sell-trust-card .ddb-trade-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: #777b8d; font-size: 13px; }
.ddb-sell-trust-card .ddb-trade-row strong { color: #343849; text-align: right; }
.ddb-sell-fab { position: fixed; right: max(18px, calc((100vw - 520px) / 2 + 18px)); bottom: 82px; z-index: 30; width: 62px; height: 62px; border: 0; border-radius: 50%; background: #3156c7; color: #fff; box-shadow: 0 4px 14px rgba(49,86,199,.32); font-size: 14px; font-weight: 700; line-height: 1.2; }
.ddb-order-tools { padding: 8px 12px 0; text-align: right; }
.ddb-order-tools button { border: 0; border-radius: 4px; background: #3156c7; color: #fff; padding: 8px 14px; font-size: 13px; }
.ddb-fund-tip { margin: 10px 12px; padding: 10px 12px; border-radius: 6px; background: #fffaf0; color: #9a713b; font-size: 12px; line-height: 1.5; }
.ddb-service-btn { position: fixed; right: max(18px, calc((100vw - 520px) / 2 + 18px)); bottom: 154px; z-index: 32; width: 58px; height: 58px; padding: 5px 0 3px; border: 1px solid #dce2f2; border-radius: 50%; background: rgba(255,255,255,.96); color: #3156c7; box-shadow: 0 4px 15px rgba(42,54,91,.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12px; font-weight: 700; }
.ddb-service-btn svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ddb-service-btn svg circle { fill: currentColor; stroke: none; }

/* 发布委托只保留出售模式。 */
html.ddb-sell-publish-only .u-tabs .u-tab-item:first-child { display: none !important; }
html.ddb-sell-publish-only .u-tabs .u-tab-item:nth-child(2) {
  flex: 1 1 100% !important;
  width: 100% !important;
  position: relative;
  font-weight: 700 !important;
}
html.ddb-sell-publish-only .u-tabs .u-tab-item:nth-child(2)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: #333;
  transform: translateX(-50%);
}
html.ddb-sell-publish-only .u-tabs .u-tab-bar { display: none !important; }


.ddb-pay-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.ddb-pay-switch-btn {
  border: 1px solid #d8dae6; background: #fff; color: #333747; border-radius: 20px;
  height: 34px; padding: 0 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.ddb-pay-switch-btn.active { border-color: #303a73; background: #303a73; color: #fff; }
.ddb-pay-switch-tip { width: 100%; font-size: 12px; color: #9a9db0; margin-top: 2px; }
.ddb-qr-preview-mask {
  position: fixed; inset: 0; z-index: 10050; background: rgba(10,12,20,.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
  pointer-events: auto;
  box-sizing: border-box;
}
.ddb-qr-preview-panel {
  width: min(92vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}
.ddb-qr-preview-mask img {
  width: min(88vw, 360px); max-height: 70vh; object-fit: contain; background: #fff;
  border-radius: 10px; padding: 14px; box-sizing: border-box;
  -webkit-touch-callout: default;
  pointer-events: auto;
}
.ddb-qr-preview-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; pointer-events: auto; }
.ddb-qr-preview-actions .ddb-gather-copy, .ddb-qr-preview-actions .ddb-trade-btn {
  height: 40px; padding: 0 18px; border-radius: 6px; font-size: 14px; pointer-events: auto; position: relative; z-index: 2;
}
.ddb-qr-preview-hint { margin-top: 10px; color: #c8cad6; font-size: 13px; text-align: center; line-height: 1.5; }

html.ddb-uni.ddb-qr-open #ddb-chrome {
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  z-index: 10090 !important;
  pointer-events: none !important;
}
html.ddb-uni.ddb-qr-open #ddb-chrome .ddb-qr-preview-mask {
  pointer-events: auto !important;
}


/* 扫一扫 */
.ddb-scan { background: #0b0d14; color: #fff; }
.ddb-scan .ddb-topbar { background: rgba(12,14,22,.88); color: #fff; }
.ddb-scan .ddb-back { color: #fff; }
.ddb-scan-stage {
  position: relative;
  margin: 12px 16px 0;
  height: min(68vh, 520px);
  border-radius: 16px;
  overflow: hidden;
  background: #151821;
}
.ddb-scan-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.ddb-scan-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45));
  pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 59%);
  mask: radial-gradient(closest-side, transparent 58%, #000 59%);
}
.ddb-scan-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(68vw, 260px);
  height: min(68vw, 260px);
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.42);
  pointer-events: none;
  overflow: hidden;
}
.ddb-scan-frame i {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5be0ec, transparent);
  animation: ddb-scan-line 2.2s ease-in-out infinite;
}
@keyframes ddb-scan-line {
  0%, 100% { top: 12%; opacity: .35; }
  50% { top: 86%; opacity: 1; }
}
.ddb-scan-status {
  margin: 16px 20px 8px;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.5;
  min-height: 42px;
}
.ddb-scan-retry {
  margin: 0 20px 24px;
  background: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
}


/* 我的伙伴 */
.ddb-invite-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 40px;
}
.ddb-team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.ddb-team-stats-one { grid-template-columns: 1fr; }
.ddb-team-stat {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(48,55,84,.04);
}
.ddb-team-stat small { display: block; color: #8c8f9b; font-size: 12px; margin-bottom: 6px; }
.ddb-team-stat strong { font-size: 22px; color: #303754; font-weight: 700; }
.ddb-team-stat-tip {
  margin: -4px 2px 12px;
  font-size: 12px;
  color: #8c8f9b;
  line-height: 1.4;
}
.ddb-earn-how { margin-bottom: 12px; }
.ddb-earn-how-text {
  margin: 0;
  color: #555a6d;
  font-size: 13px;
  line-height: 1.65;
}
.ddb-invite-link-block {
  margin: 10px 0 8px;
}
.ddb-invite-link-block small {
  display: block;
  color: #8c8f9b;
  font-size: 12px;
  margin-bottom: 6px;
}
.ddb-invite-link-full {
  word-break: break-all;
  font-size: 12px;
  line-height: 1.45;
  color: #3d55b6;
  background: #f5f7ff;
  border-radius: 8px;
  padding: 10px 12px;
}
.ddb-invite-copy-btn {
  margin-bottom: 8px !important;
}
.ddb-invite-card .ddb-action.ghost {
  background: #eef1fb !important;
  color: #3d55b6 !important;
  box-shadow: none !important;
}
.ddb-team-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #303754;
  margin: 4px 2px 10px;
}
.ddb-team-list { display: grid; gap: 8px; }
.ddb-team-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
.ddb-team-name { font-size: 15px; font-weight: 600; color: #303754; }
.ddb-team-meta { margin-top: 4px; font-size: 12px; color: #8c8f9b; }
.ddb-team-level-head {
  margin: 10px 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #3d55b6;
  letter-spacing: 0.04em;
}
.ddb-team-gen {
  display: inline-block;
  min-width: 28px;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(61, 85, 182, .1);
  color: #3d55b6;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}
.ddb-team-more-tip {
  text-align: center;
  color: #9b9da8;
  font-size: 12px;
  padding: 12px 8px 4px;
}
