/* pearl 弹窗 — 与 nq-auth / uc-dash 同一套视觉 */
:root {
  --uc-dialog-accent: var(--uc-nav-active-bg, #165DFF);
  --uc-dialog-accent-hover: var(--uc-nav-active-hover-bg, #0e52e6);
}

.el-dialog {
  border-radius: 0 !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14) !important;
  overflow: hidden;
}

.el-dialog__header {
  display: none;
  padding: 0;
}

.el-dialog__body {
  padding: 0 !important;
  color: #262626;
}

.el-dialog__footer {
  padding: 0 !important;
}

/* 统一标题栏 */
.uc-dialog__head,
.dialog-title,
.del-dialog-title,
.dia-title,
.recharge-dialog .recharge-title,
.pay-dialog .dia-title,
.withdraw-dialog > .dialog-title:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  line-height: 1.35;
  border-bottom: 1px solid #eef0f4;
  background: #fff;
  box-sizing: border-box;
}

.uc-dialog__head-title,
.dialog-title:not(:has(.close-btn)),
.del-dialog-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.uc-dialog__bar {
  width: 4px;
  height: 18px;
  flex-shrink: 0;
  background: var(--uc-dialog-accent);
}

.dialog-title:not(.uc-dialog__head)::before,
.del-dialog-title::before,
.dia-title:not(:has(.title-text))::before {
  content: "";
  width: 4px;
  height: 18px;
  flex-shrink: 0;
  background: var(--uc-dialog-accent);
}

.recharge-dialog .recharge-title .title-text {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.uc-dialog__close,
.recharge-dialog .close-btn,
.pay-dialog .close,
.el-icon-circle-close.close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #f5f7fa;
  color: #8c8c8c;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  border-radius: 0;
}

.uc-dialog__close:hover,
.recharge-dialog .close-btn:hover {
  background: #eef0f4;
  color: #262626;
}

/* 内容区 */
.uc-dialog__body,
.dialog-main,
.dialog-box,
.recharge-dialog .recharge-box,
.withdraw-dialog .dialog-main,
.pay-dialog .dia-content,
.kd-dialog .dialog-box,
.mail-dialog .dialog-box {
  padding: 20px;
  background: #fff;
  box-sizing: border-box;
}

/* 底部按钮 */
.uc-dialog__foot,
.dialog-footer,
.dialog-fotter,
.del-dialog-footer,
.withdraw-dialog .dialog-footer,
.pay-dialog .dia-fotter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eef0f4;
  background: #fafafa;
  box-sizing: border-box;
}

.dialog-footer .btn-ok,
.dialog-footer .save-btn,
.dialog-fotter .save-btn,
.del-dialog-footer .btn-ok,
.uc-dialog__btn--primary,
.el-dialog__footer .el-button--primary,
.recharge-dialog .recharge-input .el-button--primary {
  min-width: 88px;
  height: 36px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
  font-weight: 500;
  border-radius: 0 !important;
  background: var(--uc-dialog-accent) !important;
  border-color: var(--uc-dialog-accent) !important;
  color: #fff !important;
}

.dialog-footer .btn-ok:hover,
.dialog-footer .save-btn:hover,
.uc-dialog__btn--primary:hover {
  background: var(--uc-dialog-accent-hover) !important;
  border-color: var(--uc-dialog-accent-hover) !important;
}

.dialog-footer .btn-no,
.dialog-fotter .cancel-btn,
.del-dialog-footer .btn-no,
.uc-dialog__btn--ghost,
.el-dialog__footer .el-button:not(.el-button--primary) {
  min-width: 88px;
  height: 36px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
  border-radius: 0 !important;
  background: #fff !important;
  border: 1px solid #dcdfe6 !important;
  color: #606266 !important;
}

.dialog-footer .btn-no:hover,
.uc-dialog__btn--ghost:hover {
  border-color: var(--uc-dialog-accent) !important;
  color: var(--uc-dialog-accent) !important;
}

/* 表单 */
.uc-dialog__body .el-form-item__label,
.dialog-main .el-form-item__label,
.withdraw-dialog .dialog-main .el-form-item__label {
  padding: 0 0 6px;
  line-height: 1.4;
  font-size: 13px;
  color: #262626;
  font-weight: 400;
}

.uc-dialog__body .el-input__inner,
.dialog-main .el-input__inner,
.recharge-dialog .el-input__inner {
  border-radius: 0;
  background: #f2f3f5;
  border-color: transparent;
  height: 40px;
  line-height: 40px;
}

.uc-dialog__body .el-input__inner:focus,
.dialog-main .el-input__inner:focus {
  border-color: var(--uc-dialog-accent);
  background: #fff;
}

.uc-dialog__body .el-textarea__inner {
  border-radius: 0;
  background: #f2f3f5;
  border-color: transparent;
}

/* 充值弹窗 */
.recharge-dialog .recharge-content {
  border-radius: 0;
}

.recharge-dialog .recharge-input {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.recharge-dialog .recharge-input .el-input-number {
  flex: 1;
}

.recharge-dialog .recharge-input .el-button {
  flex-shrink: 0;
  height: 40px !important;
}

.recharge-dialog .gradient-item {
  border-radius: 0;
  border: 1px solid #eef0f4;
}

.recharge-dialog .gradient-item.active {
  border-color: var(--uc-dialog-accent);
  background: rgba(22, 93, 255, 0.04);
}

/* 提现弹窗 */
.withdraw-dialog .withdraw-rule {
  padding: 0 20px 16px;
  background: #fff;
}

.withdraw-dialog .withdraw-rule .label {
  font-size: 13px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}

.withdraw-dialog .withdraw-rule .rules-item {
  font-size: 12px;
  color: #909399;
  line-height: 1.6;
}

/* 支付弹窗 */
.pay-dialog .pay-money,
.pay-dialog .font-26 {
  color: var(--uc-dialog-accent);
  font-weight: 700;
}

.pay-dialog .type-item.active {
  border-color: var(--uc-dialog-accent);
}

/* 删除确认 */
.delete-order-dialog .delete-box,
.del-dialog-main {
  padding: 24px 20px;
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
  text-align: center;
}

.del-dialog-title .del-icon {
  color: #faad14;
  margin-right: 6px;
}

/* 表格弹窗内 */
.mail-dialog .el-table th.el-table__cell,
.kd-dialog .el-table th.el-table__cell {
  background: #f5f7fa !important;
}
