/* 合作伙伴中心 */
.agent-partner-page {
  --agent-navy: #0d1b2a;
  --agent-blue: #1e56d6;
  --agent-blue-dark: #163f9e;
  --agent-blue-soft: #eef3ff;
  --agent-gold: #d8b36a;
  --agent-line: #dfe5ec;
  --agent-muted: #667085;
}

body.agent-page-open .u-contact-float {
  display: none;
}

.agent-partner-page .agent-center-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
  align-items: stretch;
  gap: 30px;
  min-height: 224px;
  padding: 30px 32px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #2a4059;
  border-radius: 10px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 26%, rgba(30, 86, 214, 0.08) 26% 40%, transparent 40%),
    linear-gradient(135deg, #081421 0%, #102d4d 64%, #0b1b2d 100%);
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.16);
}

.agent-partner-page .agent-center-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.2px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 42%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0 42%, #000 76%, transparent 100%);
}

.agent-partner-page .agent-center-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  height: 3px;
  background: linear-gradient(90deg, #c99b47, #f0d99e 42%, rgba(240, 217, 158, 0.08));
}

.agent-poster-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.agent-poster-word {
  position: absolute;
  right: 42px;
  bottom: -20px;
  color: transparent;
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  opacity: 0.95;
}

.agent-poster-band {
  position: absolute;
  display: block;
  transform: rotate(-12deg);
}

.agent-poster-band.band-blue {
  right: -68px;
  top: 25px;
  width: 445px;
  height: 82px;
  border-top: 1px solid rgba(93, 154, 255, 0.22);
  border-bottom: 1px solid rgba(93, 154, 255, 0.22);
  background: rgba(30, 86, 214, 0.18);
}

.agent-poster-band.band-gold {
  right: -46px;
  bottom: 36px;
  width: 286px;
  height: 17px;
  background: rgba(216, 179, 106, 0.42);
  box-shadow: 0 0 0 1px rgba(240, 217, 158, 0.12);
}

.agent-poster-frame {
  position: absolute;
  right: 42px;
  bottom: 22px;
  width: 178px;
  height: 88px;
  border: 1px solid rgba(240, 217, 158, 0.25);
  transform: rotate(-7deg);
}

.agent-poster-frame::before,
.agent-poster-frame::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(240, 217, 158, 0.55);
}

.agent-poster-frame::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid;
  border-top: 2px solid;
}

.agent-poster-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.agent-poster-issue {
  position: absolute;
  left: 32px;
  bottom: 15px;
  color: rgba(240, 217, 158, 0.48);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.agent-partner-page .agent-cover-copy {
  position: relative;
  z-index: 2;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.agent-partner-page .agent-cover-eyebrow {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid rgba(240, 217, 158, 0.28);
  border-radius: 999px;
  color: #f0d99e;
  background: rgba(240, 217, 158, 0.08);
  font-size: 10.5px;
}

.agent-partner-page .agent-cover-copy h2 {
  margin-top: 11px;
  color: #fff;
  font-size: 29px;
  line-height: 1.18;
}

.agent-partner-page .agent-cover-copy p {
  max-width: 620px;
  margin-top: 10px;
  color: rgba(235, 242, 250, 0.72);
  font-size: 13px;
  line-height: 1.75;
}

.agent-partner-page .agent-cover-tags {
  gap: 8px;
  margin-top: 20px;
}

.agent-partner-page .agent-cover-tags span {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(238, 244, 251, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10.5px;
}

.agent-cover-side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.agent-cover-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(89, 226, 170, 0.28);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(47, 209, 145, 0.1);
  font-size: 10.5px;
  font-weight: 800;
}

.agent-cover-metrics {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.agent-cover-metrics > span {
  padding: 11px 13px;
  background: rgba(8, 21, 35, 0.78);
}

.agent-cover-metrics small,
.agent-cover-metrics b {
  display: block;
}

.agent-cover-metrics small {
  color: rgba(224, 234, 246, 0.56);
  font-size: 9.5px;
}

.agent-cover-metrics b {
  margin-top: 3px;
  color: #f7f9fc;
  font-size: 11.5px;
}

#agent-box {
  color: #101828;
}

#agent-box .card {
  border-color: var(--agent-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.agent-overview-head,
.agent-module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--agent-line);
}

.agent-overview-head:first-child {
  margin-top: 0;
}

.agent-overview-head span,
.agent-module-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--agent-blue);
  font-size: 10px;
  font-weight: 900;
}

.agent-overview-head h3,
.agent-module-head h3 {
  color: #101828;
  font-size: 17px;
  font-weight: 900;
}

.agent-overview-head p,
.agent-module-head p {
  margin-top: 3px;
  color: var(--agent-muted);
  font-size: 10.5px;
}

.agent-overview-head > .badge {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.agent-partner-page .agent-stat-grid {
  gap: 10px;
  margin-bottom: 0;
}

.agent-partner-page .agent-stat-grid .stat-card {
  position: relative;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--agent-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.035);
}

.agent-partner-page .agent-stat-grid .stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: #98a2b3;
}

.agent-partner-page .agent-stat-grid .stat-card:nth-child(1)::before {
  background: #1e56d6;
}

.agent-partner-page .agent-stat-grid .stat-card:nth-child(2)::before {
  background: #0f766e;
}

.agent-partner-page .agent-stat-grid .stat-card:nth-child(3)::before {
  background: #d97706;
}

.agent-partner-page .agent-stat-grid .stat-card:nth-child(4)::before {
  background: #7c3aed;
}

.agent-partner-page .agent-stat-grid .stat-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  color: var(--agent-blue);
  background: #f2f6ff;
  box-shadow: none;
}

.agent-partner-page .agent-stat-grid .stat-icon::after {
  content: none;
}

.agent-partner-page .agent-stat-grid b {
  color: #101828;
  font-size: 16px;
  line-height: 1.3;
}

.agent-partner-page .agent-stat-grid span {
  color: var(--agent-muted);
  font-size: 10.5px;
}

.agent-partner-page .agent-level-rule-card {
  margin-top: 12px;
  border-color: var(--agent-line);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.035);
}

.agent-partner-page .agent-level-rule-head {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  padding: 15px 17px;
  border-bottom-color: #e7ebf0;
  background: #f8fafc;
}

.agent-partner-page .agent-level-rule-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--agent-blue);
  background: var(--agent-blue-soft);
  box-shadow: none;
}

.agent-partner-page .agent-level-rule-head small {
  color: var(--agent-blue);
}

.agent-partner-page .agent-level-rule-head b {
  color: #101828;
  font-size: 14px;
}

.agent-partner-page .agent-level-rule-rate {
  min-width: 64px;
  height: 40px;
  border-color: #d6e0f1;
  border-radius: 7px;
  color: var(--agent-blue);
  background: #fff;
}

.agent-partner-page .agent-level-rule-steps {
  gap: 8px;
  padding: 15px 17px 9px;
}

.agent-partner-page .agent-level-rule-steps > span {
  padding: 10px;
  border-color: #e1e6ed;
  border-radius: 7px;
  background: #fafbfc;
}

.agent-partner-page .agent-level-rule-status {
  margin: 6px 17px 0;
  border-color: #e1e6ed;
  border-radius: 7px;
  background: #e1e6ed;
}

.agent-partner-page .agent-level-rule-card > p {
  margin: 10px 17px 15px;
}

.agent-partner-page .agent-card-claim {
  border-color: var(--agent-line);
}

.agent-partner-page .agent-card-claim > .flex-between h3 {
  font-size: 16px !important;
}

.agent-partner-page .agent-card-claim > .flex-between p {
  margin-top: 4px;
  line-height: 1.55;
}

.agent-partner-page .agent-claim-review {
  gap: 8px;
}

.agent-partner-page .agent-review-item {
  border-color: #e1e7ee;
  border-radius: 7px;
  background: #fafbfc;
}

.agent-partner-page .agent-card-option {
  border-color: #e1e7ee;
  border-radius: 7px;
}

.agent-partner-page .agent-card-option:hover {
  border-color: #b9c8e4;
  background: #fafcff;
}

.agent-partner-page .agent-claim-total {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #e1e7ee;
  border-radius: 7px;
  background: #f8fafc;
}

.agent-commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.agent-commerce-grid > .card {
  margin-bottom: 0 !important;
}

.agent-partner-page .agent-settlement-card {
  border-color: var(--agent-line);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.035);
}

.agent-partner-page .agent-settlement-summary {
  min-height: 100%;
  padding: 16px;
  color: #101828;
  background: #f8fafc;
}

.agent-partner-page .agent-settlement-summary::after {
  background: var(--agent-blue);
  height: 2px;
}

.agent-partner-page .agent-settlement-summary-icon {
  color: var(--agent-blue);
  background: var(--agent-blue-soft);
  border-color: #d6e0f1;
  box-shadow: none;
}

.agent-partner-page .agent-settlement-summary-title b {
  color: #101828;
}

.agent-partner-page .agent-settlement-summary-title em {
  border-color: #d6e0f1;
  color: var(--agent-blue);
  background: #eef3ff;
}

.agent-partner-page .agent-settlement-summary-copy > small,
.agent-partner-page .agent-settlement-toggle {
  color: var(--agent-muted);
}

.agent-partner-page .agent-settlement-status.ready {
  color: #15803d;
  background: #e8f7ee;
}

.agent-partner-page .agent-settlement-status.pending {
  color: #9a6700;
  background: #fff7e8;
}

.agent-partner-page .agent-settlement-body {
  background: #fff;
}

.agent-partner-page .codebox {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  overflow: auto;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  color: #344054;
  background: #f8fafc;
  font-size: 11.5px;
  white-space: nowrap;
}

.agent-partner-page .section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px 0 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--agent-line);
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}

.agent-partner-page .table th {
  background: #f8fafc;
}

.agent-partner-page .agent-apply-card {
  border-color: var(--agent-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
}

.agent-partner-page .agent-apply-head {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 17px 18px;
  border-bottom-color: #e7ebf0;
  background: #f8fafc;
}

.agent-partner-page .agent-apply-head-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--agent-blue);
  background: var(--agent-blue-soft);
  box-shadow: none;
}

.agent-partner-page .agent-apply-head-copy small {
  color: var(--agent-blue);
}

.agent-partner-page .agent-apply-head-copy h3 {
  font-size: 17px;
}

.agent-apply-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 14px 18px;
  background: #edf1f5;
}

.agent-apply-steps > span {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 10px 11px;
  background: #fff;
}

.agent-apply-steps > span:first-child {
  border-radius: 7px 0 0 7px;
}

.agent-apply-steps > span:last-child {
  border-radius: 0 7px 7px 0;
}

.agent-apply-steps i {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #667085;
  background: #f2f4f7;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 900;
}

.agent-apply-steps b,
.agent-apply-steps small {
  display: block;
  min-width: 0;
}

.agent-apply-steps b {
  color: #344054;
  font-size: 11.5px;
}

.agent-apply-steps small {
  margin-top: 1px;
  color: #98a2b3;
  font-size: 9.5px;
}

.agent-apply-steps .is-active i {
  color: #fff;
  background: var(--agent-blue);
}

.agent-apply-steps .is-active b {
  color: #123d9c;
}

.agent-partner-page .agent-apply-body {
  padding: 20px;
}

.agent-apply-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7ebf0;
}

.agent-apply-section-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--agent-blue);
  font-size: 9.5px;
  font-weight: 900;
}

.agent-apply-section-head h4 {
  color: #101828;
  font-size: 14px;
}

.agent-apply-section-head small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #98a2b3;
  font-size: 9.5px;
  white-space: nowrap;
}

.agent-partner-page .agent-apply-card .input,
.agent-partner-page .agent-apply-card .textarea {
  border-color: #d7dee8;
  border-radius: 7px;
  background: #fff;
}

.agent-partner-page .agent-upload-box {
  border-radius: 7px;
  background: #fafbfc;
}

.agent-partner-page .agent-qr-preview {
  border-radius: 7px;
}

.agent-partner-page .agent-commission-panel {
  margin-top: 18px;
  padding: 16px;
  border-color: #dfe5ec;
  border-radius: 8px;
  background: #f8fafc;
}

.agent-partner-page .agent-commission-head > span {
  border-radius: 7px;
  color: var(--agent-blue);
  background: var(--agent-blue-soft);
}

.agent-partner-page .agent-commission-levels > span {
  border-color: #e1e7ee;
  border-radius: 7px;
  background: #fff;
}

.agent-partner-page .agent-commission-levels b {
  color: var(--agent-blue);
}

.agent-partner-page .agent-apply-footer {
  margin-top: 18px;
  padding-top: 16px;
}

.agent-partner-page .agent-apply-submit {
  border-radius: 7px;
}

.agent-pending-card {
  padding: 0;
  overflow: hidden;
}

.agent-pending-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid #e7ebf0;
  background: #f8fafc;
}

.agent-pending-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #9a6700;
  background: #fff7e8;
}

.agent-pending-head small,
.agent-pending-head h3,
.agent-pending-head p {
  display: block;
}

.agent-pending-head small {
  color: #9a6700;
  font-size: 10px;
  font-weight: 900;
}

.agent-pending-head h3 {
  margin-top: 2px;
  color: #101828;
  font-size: 17px;
}

.agent-pending-head p {
  margin-top: 3px;
  color: var(--agent-muted);
  font-size: 11px;
}

.agent-pending-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 14px 18px;
  background: #edf1f5;
}

.agent-pending-steps > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  padding: 11px;
  background: #fff;
}

.agent-pending-steps > span:first-child {
  border-radius: 7px 0 0 7px;
}

.agent-pending-steps > span:last-child {
  border-radius: 0 7px 7px 0;
}

.agent-pending-steps i {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #667085;
  background: #f2f4f7;
}

.agent-pending-steps b,
.agent-pending-steps small {
  display: block;
}

.agent-pending-steps b {
  color: #344054;
  font-size: 11.5px;
}

.agent-pending-steps small {
  color: #98a2b3;
  font-size: 9.5px;
}

.agent-pending-steps .is-done i {
  color: #15803d;
  background: #e8f7ee;
}

.agent-pending-steps .is-active i {
  color: #9a6700;
  background: #fff7e8;
}

.agent-pending-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e7ebf0;
}

.agent-pending-detail > div {
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
}

.agent-pending-detail small,
.agent-pending-detail b {
  display: block;
}

.agent-pending-detail small {
  color: var(--agent-muted);
  font-size: 9.5px;
}

.agent-pending-detail b {
  margin-top: 4px;
  color: #344054;
  font-size: 11.5px;
  line-height: 1.55;
  word-break: break-word;
}

@media (max-width: 820px) {
  .agent-partner-page .agent-center-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 0;
  }

  .agent-cover-side {
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .agent-cover-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-poster-word {
    right: 20px;
    bottom: -12px;
    font-size: 58px;
  }

  .agent-poster-band.band-blue {
    right: -96px;
    width: 390px;
  }

  .agent-poster-band.band-gold {
    right: -76px;
    width: 240px;
  }

  .agent-poster-frame {
    right: 20px;
  }

  .agent-commerce-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .agent-partner-page .agent-center-cover {
    padding: 22px 18px;
  }

  .agent-partner-page .agent-cover-copy h2 {
    font-size: 24px;
  }

  .agent-cover-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-poster-word {
    right: 8px;
    bottom: 42px;
    font-size: 48px;
    opacity: 0.55;
  }

  .agent-poster-frame {
    display: none;
  }

  .agent-poster-issue {
    left: 18px;
    bottom: 10px;
  }

  .agent-partner-page .agent-apply-head,
  .agent-pending-head {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .agent-partner-page .agent-apply-head > .badge,
  .agent-pending-head > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .agent-partner-page .agent-apply-head-icon,
  .agent-pending-icon {
    width: 40px;
    height: 40px;
  }

  .agent-apply-steps,
  .agent-pending-steps {
    grid-template-columns: minmax(0, 1fr);
    padding: 11px;
  }

  .agent-apply-steps > span,
  .agent-apply-steps > span:first-child,
  .agent-apply-steps > span:last-child,
  .agent-pending-steps > span,
  .agent-pending-steps > span:first-child,
  .agent-pending-steps > span:last-child {
    border-radius: 7px;
  }

  .agent-apply-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-apply-section-head small {
    white-space: normal;
  }

  .agent-partner-page .agent-apply-body {
    padding: 15px;
  }

  .agent-pending-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-partner-page .agent-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-partner-page .agent-level-rule-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-partner-page .table {
    min-width: 720px;
  }
}

@media (max-width: 420px) {
  .agent-partner-page .agent-stat-grid .stat-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-partner-page .agent-level-rule-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-apply-steps small,
  .agent-pending-steps small {
    display: none;
  }
}
