.referral-earnings{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px;margin:18px 0}.referral-earnings>div{padding:14px;border:1px solid #ebe6e5;border-radius:8px;background:#fff}.referral-earnings b,.referral-earnings span{display:block}.referral-earnings b{font-size:20px;color:#b62036}.referral-earnings span,.referral-earnings small{font-size:12px;color:#747783}.referral-earnings small{grid-column:1/-1}.referral-withdrawal{display:flex;align-items:end;gap:10px;margin:14px 0;flex-wrap:wrap}.referral-withdrawal label{flex:1;min-width:220px;font-size:13px}.referral-withdrawal input{display:block;width:100%;min-height:44px;margin-top:6px;padding:10px;border:1px solid #dedbdd;border-radius:6px;font-size:16px}.referral-withdrawal button{min-height:44px}.referral-withdrawal span{font-size:13px;color:#8a383e}@media(max-width:600px){.referral-earnings{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-withdrawal button{width:100%}}

/* 邀请记录：卡片列表，避免窄屏挤成丑表 */
.ref-record-list{display:grid;gap:12px}
.ref-record{
  background:#fff;
  border:1px solid #efe6e7;
  border-radius:14px;
  padding:14px 16px;
  box-shadow:0 1px 0 rgba(42,34,36,.03);
}
.ref-record.is-pending{background:linear-gradient(180deg,#fffaf9 0%,#fff 70%)}
.ref-record-top{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  margin-bottom:12px;
}
.ref-record-title{
  margin:0;font-size:15px;font-weight:700;color:#2a2224;line-height:1.4;
  flex:1;min-width:0;
}
.ref-status{
  flex-shrink:0;font-size:12px;font-weight:600;line-height:1;
  padding:6px 10px;border-radius:999px;white-space:nowrap;
}
.ref-status.tone-warm{color:#9a4a12;background:#fff1e4}
.ref-status.tone-ok{color:#1f6b45;background:#e8f6ee}
.ref-status.tone-muted{color:#6f6769;background:#f3f0f1}
.ref-status.tone-bad{color:#a8253b;background:#fdecee}
.ref-record-note{margin:8px 0 0;font-size:13px;color:#a8253b;line-height:1.5}
.ref-record-note.is-ok{color:#1f6b45}
.ref-record-note.is-muted{color:#8a8183}
.ref-record-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  padding-top:12px;border-top:1px solid #f3eaeb;
}
.ref-record-grid > div{
  display:flex;flex-direction:column;gap:4px;
  min-width:0;
}
.ref-k{font-size:12px;color:#8a8183}
.ref-v{font-size:18px;font-weight:700;color:#2a2224;letter-spacing:.01em}
.ref-v.is-earn{color:#a8253b}
.ref-record-hint{margin:0;font-size:13px;color:#8a8183;line-height:1.5}
.ref-record-deadline{
  margin:12px 0 0;padding-top:10px;border-top:1px dashed #f0e6e7;
  font-size:12px;color:#8a8183;line-height:1.5;
}
.ref-record-empty{
  margin:0;padding:22px 16px;text-align:center;
  font-size:13px;color:#8a8183;line-height:1.6;
  background:#fff;border:1px dashed #e8dddf;border-radius:14px;
}
@media(max-width:520px){
  .ref-record{padding:13px 14px;border-radius:12px}
  .ref-v{font-size:16px}
}
