/* BOTAI 推广代理中心 · 20261102a */
.store-history-ratings {
  min-width: 230px;
  white-space: nowrap;
}
.store-history-ratings span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  margin-right: 4px;
  padding: 0 6px;
  border: 1px solid #e8ebf1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.referral-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.referral-page-head h2 {
  margin: 4px 0 6px;
  color: #0f172a;
  font-size: 26px;
  letter-spacing: -.03em;
}
.referral-page-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.referral-eyebrow {
  color: #d97757;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.referral-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid #e8ebf1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(15, 23, 42, .035);
}
.referral-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.referral-tab:hover { background: #f8fafc; color: #0f172a; }
.referral-tab.active {
  background: #fbf0ea;
  color: #c15f3c;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 87, .13);
}
.referral-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.referral-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.referral-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.referral-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.referral-align-start { align-items: start; }
.referral-card,
.referral-metric,
.referral-hero,
.referral-rule-banner {
  border: 1px solid #e8ebf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .035);
}
.referral-card {
  margin-bottom: 16px;
  padding: 20px;
}
.referral-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.referral-card-head h3,
.referral-card > h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 16px;
}
.referral-card-head p,
.referral-card > p {
  margin: 0;
  color: #7b8494;
  font-size: 12px;
  line-height: 1.6;
}
.referral-metric {
  position: relative;
  min-height: 112px;
  padding: 18px;
  overflow: hidden;
}
.referral-metric::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 87, .12), transparent 67%);
}
.referral-metric > span {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.referral-metric > b {
  display: block;
  color: #0f172a;
  font-size: 23px;
  letter-spacing: -.025em;
}
.referral-metric > small {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
}
.referral-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 28px;
  margin-bottom: 16px;
  padding: 34px 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 119, 87, .16), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fffaf7 100%);
}
.referral-hero h2 {
  max-width: 720px;
  margin: 8px 0 12px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.referral-hero p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}
.referral-hero-mark {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: #0f172a;
  color: #fff;
  font-size: 44px;
  font-weight: 850;
  letter-spacing: -.06em;
  box-shadow: 14px 14px 0 #fbf0ea;
}
.referral-hero-mark small {
  margin-top: 4px;
  color: #f4bcab;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}
.referral-apply-card { max-width: 820px; }
.referral-form {
  display: grid;
  gap: 14px;
}
.referral-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.referral-form label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.referral-form-wide { grid-column: 1 / -1; }
.referral-form input,
.referral-form select,
.referral-form textarea,
.referral-invite-link input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  outline: none;
}
.referral-form textarea { resize: vertical; }
.referral-form input:focus,
.referral-form select:focus,
.referral-form textarea:focus,
.referral-invite-link input:focus {
  border-color: #d97757;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, .12);
}
.referral-rules-strip,
.referral-inline-note {
  padding: 12px 14px;
  border: 1px solid #f0dfd6;
  border-radius: 11px;
  background: #fffaf7;
  color: #7c5344;
  font-size: 12px;
  line-height: 1.65;
}
.referral-rules-strip {
  display: grid;
  gap: 4px;
}
.referral-inline-note.is-ok {
  border-color: #cde9dc;
  background: #f1fbf6;
  color: #166044;
}
.referral-invite-card {
  background:
    radial-gradient(circle at 80% 10%, rgba(217, 119, 87, .13), transparent 38%),
    #fff;
}
.referral-invite-code {
  display: inline-flex;
  margin: 15px 0 12px;
  padding: 13px 18px;
  border: 1px dashed #d97757;
  border-radius: 12px;
  background: #fff;
  color: #c15f3c;
  font: 800 24px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .06em;
  cursor: pointer;
}
.referral-invite-card p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.referral-invite-link {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.referral-invite-link input {
  min-width: 0;
  color: #64748b;
  font-size: 11px;
}
.referral-checklist {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.referral-checklist li {
  position: relative;
  padding-left: 24px;
  color: #536072;
  font-size: 12px;
  line-height: 1.65;
}
.referral-checklist li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #047857;
  font-weight: 900;
}
.referral-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #edf0f4;
  border-radius: 12px;
}
.referral-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #334155;
  font-size: 12px;
}
.referral-table th {
  padding: 11px 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}
.referral-table td {
  padding: 12px;
  border-top: 1px solid #edf0f4;
  vertical-align: middle;
}
.referral-table td.num { text-align: right; white-space: nowrap; }
.referral-table td b { color: #0f172a; }
.referral-table td small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
}
.referral-table-empty {
  padding: 30px !important;
  color: #94a3b8;
  text-align: center !important;
}
.referral-code {
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .03em;
}
.referral-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.referral-status.is-ok { background: #ecfdf5; color: #047857; }
.referral-status.is-wait { background: #fff7ed; color: #b45309; }
.referral-status.is-bad { background: #fef2f2; color: #b91c1c; }
.referral-status.is-plain { background: #f1f5f9; color: #64748b; }
.referral-rule-banner {
  margin-bottom: 16px;
  padding: 24px;
  background:
    linear-gradient(115deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.referral-rule-banner .referral-eyebrow { color: #f4bcab; }
.referral-rule-banner h3 {
  margin: 9px 0;
  font-size: 22px;
  letter-spacing: -.025em;
}
.referral-rule-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
}
.referral-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: referral-step;
  list-style: none;
}
.referral-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  color: #536072;
  font-size: 12px;
  line-height: 1.55;
}
.referral-steps li::before {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  border-radius: 9px;
  background: #fbf0ea;
  color: #c15f3c;
  content: counter(referral-step);
  counter-increment: referral-step;
  font-weight: 800;
}
.referral-steps b { display: block; color: #0f172a; }
.referral-steps span { display: block; margin-top: 2px; }
.referral-exit-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e8ebf1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}
.referral-exit-summary b { color: #0f172a; font-size: 14px; }
.referral-error {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
}
.referral-error span { flex: 1; }
.referral-empty,
.referral-loading {
  padding: 70px 24px;
  border: 1px solid #e8ebf1;
  border-radius: 16px;
  background: #fff;
  color: #64748b;
  text-align: center;
}
.referral-empty-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fbf0ea;
  color: #c15f3c;
  font-size: 23px;
  font-weight: 850;
}
.referral-empty h3 { margin: 0 0 6px; color: #0f172a; }
.referral-empty p { margin: 0; font-size: 12px; }
.referral-loading-note {
  margin-top: -6px;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 1100px) {
  .referral-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .referral-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .referral-page-head {
    align-items: stretch;
    flex-direction: column;
  }
  .referral-page-head h2 { font-size: 23px; }
  .referral-grid-2,
  .referral-grid-3,
  .referral-grid-4,
  .referral-form-grid { grid-template-columns: 1fr; }
  .referral-form-wide { grid-column: auto; }
  .referral-hero {
    grid-template-columns: 1fr;
    padding: 25px 20px;
  }
  .referral-hero h2 { font-size: 24px; }
  .referral-hero-mark {
    width: 130px;
    justify-self: end;
    border-radius: 24px;
    font-size: 32px;
  }
  .referral-card { padding: 16px; }
  .referral-tabs { border-radius: 12px; }
  .referral-tab { min-height: 42px; }
  .referral-invite-link { align-items: stretch; flex-direction: column; }
  .referral-invite-code { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* ===== 20261102 r2：审批前信息收敛与视觉升级 ===== */
.referral-page-head p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.referral-head-sep {
  color: #cbd5e1;
}
.referral-hero-v2,
.referral-review-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 42px;
  min-height: 286px;
  padding: 42px 46px;
  border-color: #eadbd3;
  background:
    radial-gradient(circle at 90% 12%, rgba(217, 119, 87, .15), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fdf7f3 60%, #fff 100%);
  box-shadow: 0 20px 50px rgba(89, 55, 43, .07);
  animation: referralRise .48s cubic-bezier(.2,.75,.25,1) both;
}
.referral-hero-v2::before,
.referral-review-hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #d97757, #e9b29e 55%, transparent);
  content: "";
}
.referral-hero-copy {
  position: relative;
  z-index: 1;
}
.referral-hero-v2 h2,
.referral-review-hero h2 {
  max-width: 650px;
  margin: 12px 0 14px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -.045em;
}
.referral-hero-v2 p,
.referral-review-hero p {
  max-width: 690px;
  color: #667085;
  font-size: 14px;
  line-height: 1.85;
}
.referral-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.referral-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(217, 119, 87, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #7a5142;
  font-size: 11px;
  font-weight: 700;
}
.referral-flow-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  padding: 22px;
  border: 1px solid rgba(217, 119, 87, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 36px rgba(82, 50, 38, .065);
  backdrop-filter: blur(12px);
}
.referral-flow-label {
  margin-bottom: 18px;
  color: #9a6b59;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.referral-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: referral-flow;
}
.referral-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 12px;
  min-height: 66px;
  opacity: 0;
  animation: referralFlowIn .42s ease forwards;
}
.referral-flow li:nth-child(2) { animation-delay: .08s; }
.referral-flow li:nth-child(3) { animation-delay: .16s; }
.referral-flow li::before {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  border: 1px solid rgba(217, 119, 87, .25);
  border-radius: 10px;
  background: #fff8f4;
  color: #c15f3c;
  content: counter(referral-flow);
  counter-increment: referral-flow;
  font-size: 11px;
  font-weight: 850;
}
.referral-flow li:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: #efd9cf;
  content: "";
}
.referral-flow b { align-self: end; color: #172033; font-size: 13px; }
.referral-flow span { align-self: start; margin-top: 2px; color: #8991a0; font-size: 11px; }
.referral-flow-card > small {
  display: block;
  padding-top: 14px;
  border-top: 1px solid #f1e6e0;
  color: #a0715f;
  font-size: 10px;
  line-height: 1.6;
}
.referral-surface {
  border-color: #e9edf2;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .045);
  animation: referralRise .52s .08s cubic-bezier(.2,.75,.25,1) both;
}
.referral-metric,
.referral-card {
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.referral-metric:hover,
.referral-card:hover {
  border-color: #e3d1c8;
  box-shadow: 0 16px 38px rgba(72, 44, 34, .065);
  transform: translateY(-1px);
}
.referral-review-hero {
  background:
    radial-gradient(circle at 88% 22%, rgba(217, 119, 87, .13), transparent 36%),
    linear-gradient(135deg, #fff 0%, #fff9f6 100%);
}
.referral-review-state {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 190px;
  border: 1px solid rgba(217, 119, 87, .18);
  border-radius: 22px;
  background: rgba(255,255,255,.8);
  color: #172033;
}
.referral-review-state b { margin-top: 13px; font-size: 24px; letter-spacing: -.03em; }
.referral-review-state small { margin-top: 5px; color: #8b93a1; font-size: 11px; }
.referral-review-pulse {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d97757;
  box-shadow: 0 0 0 8px rgba(217, 119, 87, .11);
  animation: referralPulse 2.4s ease-in-out infinite;
}
.referral-review-card {
  animation-delay: .06s;
}
.referral-stage-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
  padding: 18px 0;
  counter-reset: referral-stage;
}
.referral-stage-track span {
  position: relative;
  padding-top: 30px;
  color: #98a0ad;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.referral-stage-track span::before {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid #e4e8ee;
  border-radius: 50%;
  background: #fff;
  color: #9aa2af;
  content: counter(referral-stage);
  counter-increment: referral-stage;
  font-size: 10px;
}
.referral-stage-track span:not(:last-child)::after {
  position: absolute;
  top: 12px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 1px;
  background: #e8ecf1;
  content: "";
}
.referral-stage-track .is-done::before {
  border-color: #bbdfcf;
  background: #eaf8f2;
  color: #047857;
}
.referral-stage-track .is-current {
  color: #b35c3c;
}
.referral-stage-track .is-current::before {
  border-color: #d97757;
  background: #fbf0ea;
  color: #c15f3c;
  box-shadow: 0 0 0 4px rgba(217, 119, 87, .1);
}
@keyframes referralRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes referralFlowIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes referralPulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(217, 119, 87, .09); } 50% { box-shadow: 0 0 0 12px rgba(217, 119, 87, .035); } }
@media (max-width: 980px) {
  .referral-hero-v2, .referral-review-hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .referral-flow-card, .referral-review-state { min-height: auto; }
}
@media (max-width: 760px) {
  .referral-hero-v2, .referral-review-hero { min-height: 0; padding: 26px 20px; }
  .referral-hero-v2 h2, .referral-review-hero h2 { font-size: 25px; }
  .referral-flow-card { padding: 18px; }
  .referral-review-state { min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .referral-hero-v2, .referral-review-hero, .referral-surface, .referral-flow li, .referral-review-pulse {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .referral-metric, .referral-card { transition: none; }
}
