/* 实名认证附加 UI —— 不覆盖现有后台样式 */
.ct-rn-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  color: #262626;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ct-rn-card.ct-rn-inline {
  border: 0;
  border-top: 1px solid #f0f0f0;
  border-radius: 0;
  padding: 14px 0 0;
  margin: 14px 0 0;
  box-shadow: none;
  background: transparent;
}
.ant-card.ct-rn-basic .ant-card-body {
  padding-top: 14px;
  padding-bottom: 16px;
}
.ant-card.ct-rn-basic .ant-form-item {
  margin-bottom: 14px;
}
.ct-rn-account {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #8c8c8c;
  font-size: 13px;
  line-height: 1.6;
}
.ct-rn-account b {
  color: #262626;
  font-weight: 500;
}
.ct-rn-user-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 5px;
  border-radius: 4px;
  background: #fff2f0;
  color: #ff4d4f;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}
.ct-rn-user-tag.ok {
  background: #f6ffed;
  color: #389e0d;
}

/* 顶部个人资料弹窗 */
.ct-pm-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .46);
  box-sizing: border-box;
}
.ct-pm-box {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  box-sizing: border-box;
}
.ct-pm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
}
.ct-pm-head h2 {
  margin: 0;
  font-size: 20px;
  color: #262626;
}
.ct-pm-close {
  border: 0;
  background: transparent;
  color: #8c8c8c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.ct-pm-tabs {
  display: flex;
  gap: 6px;
  padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
}
.ct-pm-tabs button {
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #8c8c8c;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ct-pm-tabs button.on {
  color: #1677ff;
  border-bottom-color: #1677ff;
  font-weight: 500;
}
.ct-pm-body {
  padding: 20px 24px 24px;
}
.ct-pm-pane[hidden] { display: none; }
.ct-pm-account {
  padding: 0 0 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #8c8c8c;
  font-size: 13px;
}
.ct-pm-account b { color: #262626; font-weight: 500; }
.ct-pm-note {
  margin: 4px 0 12px;
  color: #bfbfbf;
  font-size: 12px;
}
.ct-pm-pane .ct-rn-inline {
  margin-top: 16px;
  padding-top: 16px;
}
.ct-pm-divider {
  height: 1px;
  margin: 18px 0;
  background: #f0f0f0;
}
.ct-pm-pane .ct-rn-form { max-width: 100%; }
.ct-pm-pane .ct-rn-field { margin-bottom: 12px; }
.ct-pm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .ct-pm-mask { padding: 0; align-items: flex-end; }
  .ct-pm-box {
    max-width: none;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .ct-pm-head { padding: 16px 18px 12px; }
  .ct-pm-tabs { padding: 0 18px; }
  .ct-pm-body { padding: 16px 18px 22px; }
}
.ct-rn-inline .ct-rn-head {
  margin-bottom: 2px;
}
.ct-rn-inline .ct-rn-desc {
  margin-bottom: 8px;
}
.ct-rn-inline .ct-rn-info {
  padding: 10px 12px;
  line-height: 1.9;
}
.ct-rn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.ct-rn-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.ct-rn-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f5f5f5;
  color: #8c8c8c;
}
.ct-rn-badge.ok {
  background: #f6ffed;
  color: #389e0d;
}
.ct-rn-desc {
  margin: 0 0 14px;
  color: #8c8c8c;
  font-size: 13px;
  line-height: 1.7;
}
.ct-rn-info {
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 8px;
  color: #595959;
  font-size: 13px;
  line-height: 2;
}
.ct-rn-info b {
  color: #262626;
  font-weight: 600;
}
.ct-rn-form {
  max-width: 420px;
}
.ct-rn-field {
  margin-bottom: 14px;
}
.ct-rn-field label {
  display: block;
  margin-bottom: 6px;
  color: #595959;
  font-size: 13px;
}
.ct-rn-input {
  width: 100%;
  height: 34px;
  padding: 4px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: #262626;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.ct-rn-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, .1);
}
.ct-rn-hint {
  margin: 4px 0 0;
  color: #bfbfbf;
  font-size: 12px;
  line-height: 1.6;
}
.ct-rn-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ct-rn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.ct-rn-btn:hover { background: #4096ff; }
.ct-rn-btn:disabled { opacity: .55; cursor: not-allowed; }
.ct-rn-btn.ghost {
  background: #fff;
  border-color: #d9d9d9;
  color: #595959;
}
.ct-rn-msg {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.ct-rn-msg.error { color: #ff4d4f; }
.ct-rn-msg.ok { color: #389e0d; }
.ct-rn-gate-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.ct-rn-gate-switch input {
  width: 18px;
  height: 18px;
  accent-color: #1677ff;
  cursor: pointer;
}

/* 未实名强制弹窗 */
.ct-rn-gate-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .48);
  box-sizing: border-box;
}
.ct-rn-gate-box {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px 28px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  box-sizing: border-box;
}
.ct-rn-gate-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
  color: #262626;
}
.ct-rn-gate-box .ct-rn-desc {
  margin-bottom: 18px;
}
.ct-rn-gate-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  color: #bfbfbf;
  font-size: 12px;
  line-height: 1.7;
}

/* 固定提示 */
.ct-rn-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 100001;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.ct-rn-toast.show { opacity: 1; }

@media (max-width: 640px) {
  .ct-rn-card { padding: 16px; }
  .ct-rn-gate-box { padding: 22px 18px 18px; }
}
