/* ===== 我的佣金 · 独立页（/promotion.html）===== */

.promo-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 9px;
  font-size: 12.5px;
  color: var(--profile-muted);
}

.promo-crumb a {
  color: #0d7f6e;
  font-weight: 700;
  text-decoration: none;
}

.promo-crumb .sep { color: #c5d2da; }

.promo-crumb .cur {
  color: var(--profile-ink);
  font-weight: 700;
}

.promo-title { margin: 0 0 12px; }

.promo-title h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--profile-ink);
}

.promo-title p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--profile-muted);
}

/* ---------- 佣金主卡 ---------- */
.promo-hero {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #08745f, #0b9b7d);
  box-shadow: 0 14px 30px rgba(8, 116, 95, 0.22);
}

.promo-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.promo-hero-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-hero-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.promo-hero-head .rate {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
}

.promo-hero-main {
  position: relative;
  margin-top: 12px;
}

.promo-hero-main .lab {
  font-size: 11.5px;
  opacity: 0.85;
}

.promo-hero-main .big {
  margin-top: 3px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.promo-hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.promo-hero-stats .it {
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.promo-hero-stats .k { font-size: 10.5px; opacity: 0.85; }

.promo-hero-stats .v {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- 面板 ---------- */
.promo-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--profile-card);
  border: 1px solid var(--profile-border);
  box-shadow: var(--profile-shadow);
}

.promo-panel-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.promo-panel-head h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--profile-ink);
}

.promo-panel-head p {
  margin: 0;
  font-size: 11.5px;
  color: var(--profile-muted);
}

.promo-note {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--profile-muted);
}

.promo-note b { color: #0d7f6e; }

/* ---------- 收益对照表 ---------- */
.promo-earn-head { display: none; }

.promo-earn-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(225, 232, 237, 0.95);
  background: #fbfdfe;
}

.promo-earn-item:last-child { margin-bottom: 0; }

.promo-earn-item.is-hot {
  border-color: rgba(11, 155, 125, 0.35);
  background: linear-gradient(90deg, #eefaf6 0%, #ffffff 100%);
}

.promo-earn-item .en {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--profile-ink);
}

.promo-earn-item .ep {
  grid-column: 1;
  grid-row: 2;
  font-size: 11px;
  color: var(--profile-muted);
}

.promo-earn-item .ep b {
  color: #203747;
  font-size: 12.5px;
  font-weight: 700;
}

.promo-earn-item .ea { display: none; }

.promo-earn-item .eg {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  font-size: 11px;
  color: var(--profile-muted);
}

.promo-earn-item .eg b {
  display: block;
  margin-top: 1px;
  font-size: 17px;
  font-weight: 800;
  color: #08745f;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.promo-tag {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ff8c1a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}

/* ---------- 推广工具 ---------- */
.promo-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-link-row input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(214, 224, 230, 0.95);
  background: #fbfdfe;
  color: #203747;
  font-size: 12.5px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.promo-link-row .profile-btn { width: 100%; }

/* ---------- 战绩 ---------- */
.promo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.promo-stats .stat {
  padding: 11px 9px;
  border-radius: 12px;
  border: 1px solid rgba(225, 232, 237, 0.95);
  background: #fbfdfe;
  text-align: center;
}

.promo-stats .v {
  font-size: 17px;
  font-weight: 800;
  color: var(--profile-ink);
  font-variant-numeric: tabular-nums;
}

.promo-stats .v.is-green { color: #08745f; }

.promo-stats .k {
  margin-top: 3px;
  font-size: 11px;
  color: var(--profile-muted);
}

/* ---------- 底部两栏 ---------- */
.promo-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.promo-bottom .promo-panel { margin-top: 14px; }

/* ---------- 未登录 ---------- */
.promo-gate {
  text-align: center;
  padding: 24px 18px;
}

.promo-gate h3 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 800;
  color: var(--profile-ink);
}

.promo-gate p {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--profile-muted);
}

.promo-gate .profile-btn { min-width: 160px; }

@media (min-width: 980px) {
  .promo-title h1 { font-size: 20px; }

  .promo-title p { font-size: 13px; }

  .promo-hero { padding: 20px 22px; border-radius: 20px; }

  .promo-hero-head h2 { font-size: 15px; }

  .promo-hero-main { margin-top: 12px; }

  .promo-hero-main .big { font-size: 33px; }

  .promo-hero-stats { gap: 10px; margin-top: 12px; max-width: 520px; }

  .promo-hero-stats .it { padding: 9px 12px; }

  .promo-hero-stats .k { font-size: 11.5px; }

  .promo-hero-stats .v { font-size: 16px; }

  .promo-panel { padding: 16px 18px; border-radius: 18px; }

  .promo-panel-head h3 { font-size: 14.5px; }

  .promo-panel-head p { font-size: 12px; }

  .promo-earn-head {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 40px minmax(0, 1.05fr);
    gap: 12px;
    padding: 0 15px 8px;
    font-size: 11.5px;
    color: var(--profile-muted);
  }

  .promo-earn-head span:last-child { text-align: right; }

  .promo-earn-item {
    grid-template-columns: 168px minmax(0, 1fr) 40px minmax(0, 1.05fr);
    gap: 12px;
    margin-bottom: 8px;
    padding: 11px 15px;
  }

  .promo-earn-item .en { grid-column: 1; grid-row: 1; font-size: 13.5px; }

  .promo-earn-item .ep { grid-column: 2; grid-row: 1; font-size: 12.5px; }

  .promo-earn-item .ep b { font-size: 14px; }

  .promo-earn-item .ea {
    display: block;
    grid-column: 3;
    grid-row: 1;
    text-align: center;
    color: #c5d2da;
    font-size: 15px;
  }

  .promo-earn-item .eg {
    grid-column: 4;
    grid-row: 1;
    font-size: 12.5px;
  }

  .promo-earn-item .eg b {
    display: inline;
    margin: 0 0 0 6px;
    font-size: 19px;
  }

  .promo-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .promo-bottom .promo-panel { margin-top: 14px; }

  .promo-link-row { flex-wrap: nowrap; }

  .promo-link-row input { flex: 1 1 auto; }

  .promo-link-row .profile-btn { width: auto; }

  .promo-stats { gap: 10px; }

  .promo-stats .v { font-size: 17px; }

  .promo-stats .k { font-size: 11.5px; }
}

/* 明细行 / 提现记录：这组类仅在本页使用，跟随本页尺度再收一档 */
.promo-panel .commission-record-list { gap: 7px; margin-top: 10px; }

.promo-panel .commission-item {
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
}

.promo-panel .commission-name { font-size: 13px; }

.promo-panel .commission-sub { font-size: 11px; }

.promo-panel .commission-amount { font-size: 13.5px; }

.promo-panel .commission-status { font-size: 11px; }

.promo-panel .commission-empty { padding: 12px; border-radius: 12px; font-size: 12.5px; }

/* 退款撤销的佣金：记录保留可查，但金额划掉、状态置灰，避免误以为还能提现 */
.commission-item.is-revoked .commission-name,
.commission-item.is-revoked .commission-sub {
  color: #94a3b8;
}

.commission-item.is-revoked .commission-amount {
  color: #94a3b8;
  text-decoration: line-through;
}
