/* ==================================================================
   邀请冲榜活动页 · 深蓝水感 + 金色（ic- 独立命名空间）
   单位统一用 --u（= min(100vw,430px)/26.875），多机型等比
   ================================================================== */

.ic-page {
  background:
    radial-gradient(120% 70% at 50% 0%, #0d4a6e 0%, #072a42 42%, #04182a 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}
.ic-content {
  --u: calc(min(100vw, 430px) / 26.875);
  position: relative;
  min-height: 100%;
  padding: 0 calc(0.9 * var(--u)) calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
}
/* 背景水光层 */
.ic-content::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 30% at 18% 22%, rgba(64, 200, 235, .18), transparent 70%),
    radial-gradient(50% 26% at 84% 34%, rgba(90, 160, 240, .16), transparent 70%),
    radial-gradient(70% 30% at 50% 68%, rgba(40, 150, 200, .12), transparent 72%);
}

/* ---------- 顶部 ---------- */
.ic-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: calc(.5 * var(--u));
  padding: calc(max(env(safe-area-inset-top, 0px), 20px) + .5 * var(--u)) 0 calc(.7 * var(--u));
}
.ic-back {
  width: calc(1.9 * var(--u)); height: calc(1.9 * var(--u));
  border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(160, 230, 255, .28);
  color: #d9f4ff;
}
.ic-back svg { width: calc(1.1 * var(--u)); height: calc(1.1 * var(--u)); }
.ic-brand { display: flex; align-items: center; gap: calc(.35 * var(--u)); flex: none; }
.ic-brand-dot {
  width: calc(1.5 * var(--u)); height: calc(1.9 * var(--u));
  border-radius: calc(.75 * var(--u));
  background: linear-gradient(180deg, #7fe3ff, #2a9fd6);
  box-shadow: 0 0 calc(.6 * var(--u)) rgba(90, 210, 255, .6);
}
.ic-brand-name { font-size: calc(.95 * var(--u)); font-weight: 800; color: #eaf8ff; letter-spacing: .5px; }
.ic-topdiv { width: 1px; height: calc(1.5 * var(--u)); background: rgba(160, 220, 245, .35); }
.ic-title { display: flex; flex-direction: column; line-height: 1.1; flex: 1; min-width: 0; }
.ic-title b {
  font-size: calc(1.15 * var(--u)); font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff, #b9e6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-title span { font-size: calc(.52 * var(--u)); color: rgba(180, 225, 245, .75); letter-spacing: .5px; }

/* 总奖金池 */
.ic-pool {
  flex: none; display: flex; align-items: center; gap: calc(.28 * var(--u));
  padding: calc(.26 * var(--u)) calc(.65 * var(--u));
  border-radius: calc(.9 * var(--u));
  background: linear-gradient(180deg, rgba(255, 220, 130, .22), rgba(230, 160, 30, .12));
  border: 1px solid rgba(255, 210, 110, .55);
  box-shadow: 0 0 calc(.7 * var(--u)) rgba(255, 190, 60, .25), inset 0 0 calc(.4 * var(--u)) rgba(255, 230, 160, .3);
}
.ic-pool-ico { font-size: calc(.85 * var(--u)); line-height: 1; }
.ic-pool-body { display: flex; flex-direction: column; line-height: 1.1; }
.ic-pool-label { font-size: calc(.48 * var(--u)); color: #ffe6a8; }
.ic-pool-val {
  font-size: calc(.82 * var(--u)); font-weight: 900;
  background: linear-gradient(180deg, #fff3c4, #f0b03a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Top3 领奖台 ---------- */
.ic-podium {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  gap: calc(.35 * var(--u));
  margin: calc(.2 * var(--u)) 0 calc(.9 * var(--u));
}
.ic-pod {
  position: relative;
  flex: 0 0 auto; width: 30%; max-width: calc(8.6 * var(--u));
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(1.05 * var(--u));
}
.ic-pod-1 { width: 34%; max-width: calc(9.6 * var(--u)); padding-top: calc(1.35 * var(--u)); }
.ic-pod-orb {
  position: relative;
  width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u));
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 34% 28%, #dff3ff, #7fb9d8 55%, #2a6a92);
  border: calc(.16 * var(--u)) solid rgba(255, 226, 150, .85);
  box-shadow: 0 0 calc(.9 * var(--u)) rgba(255, 200, 90, .45), inset 0 -2px 6px rgba(0,60,90,.45);
}
.ic-pod-1 .ic-pod-orb { width: calc(4.3 * var(--u)); height: calc(4.3 * var(--u)); }
.ic-pod-orb img { width: 100%; height: 100%; object-fit: cover; }
.ic-pod-orb .ic-avatar-ico { width: 46%; height: 46%; color: rgba(255,255,255,.9); }
/* 皇冠 */
.ic-pod-crown {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-size: calc(1.1 * var(--u)); line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(140, 90, 0, .6));
  z-index: 4; pointer-events: none;
}
.ic-pod-1 .ic-pod-crown { font-size: calc(1.45 * var(--u)); }
.ic-pod-name {
  margin-top: calc(.22 * var(--u));
  font-size: calc(.6 * var(--u)); font-weight: 700; color: #d7f0ff;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,20,35,.7);
}
.ic-pod-prize {
  margin-top: calc(.1 * var(--u));
  font-size: calc(.72 * var(--u)); font-weight: 900;
  background: linear-gradient(180deg, #fff5cc, #f2b23c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 2px rgba(120, 70, 0, .35);
}
.ic-pod-1 .ic-pod-prize { font-size: calc(.92 * var(--u)); }
/* 台座 */
.ic-pod-stand {
  margin-top: calc(.2 * var(--u));
  width: 100%; height: calc(1.9 * var(--u));
  border-radius: calc(.5 * var(--u)) calc(.5 * var(--u)) calc(.35 * var(--u)) calc(.35 * var(--u));
  display: grid; place-items: center;
  font-size: calc(1.15 * var(--u)); font-weight: 900; font-style: italic;
  color: rgba(255, 246, 214, .92);
  background: linear-gradient(180deg, rgba(90, 170, 205, .55), rgba(30, 90, 125, .65));
  border: 1px solid rgba(190, 235, 255, .4);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.35), 0 2px 6px rgba(0, 25, 45, .5);
  text-shadow: 0 1px 2px rgba(0, 30, 50, .8);
}
.ic-pod-1 .ic-pod-stand {
  height: calc(2.5 * var(--u));
  font-size: calc(1.55 * var(--u));
  background: linear-gradient(180deg, rgba(255, 216, 120, .55), rgba(200, 130, 20, .55));
  border-color: rgba(255, 232, 160, .65);
}

/* ---------- 京东E卡进度卡 ---------- */
.ic-jd {
  position: relative; z-index: 2;
  border-radius: calc(1.1 * var(--u));
  padding: calc(.85 * var(--u)) calc(.85 * var(--u)) calc(.9 * var(--u));
  background: linear-gradient(160deg, rgba(20, 80, 115, .82), rgba(8, 40, 66, .9));
  border: 1px solid rgba(120, 205, 240, .35);
  box-shadow: 0 calc(.3 * var(--u)) calc(1.1 * var(--u)) rgba(0, 20, 40, .5), inset 0 1px 1px rgba(255,255,255,.12);
  display: flex; align-items: center; gap: calc(.7 * var(--u));
  margin-bottom: calc(.8 * var(--u));
  overflow: hidden;
}
/* 左侧京东E卡图形 */
.ic-jd-card {
  position: relative; flex: 0 0 auto;
  width: calc(5.2 * var(--u)); height: calc(3.5 * var(--u));
  border-radius: calc(.5 * var(--u));
  background: linear-gradient(135deg, #ff5b5b, #d92b2b 60%, #b01a1a);
  box-shadow: 0 calc(.15 * var(--u)) calc(.6 * var(--u)) rgba(150, 20, 20, .45);
  transform: rotate(-7deg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(.35 * var(--u)) calc(.4 * var(--u));
  box-sizing: border-box;
}
.ic-jd-amt { font-size: calc(1.05 * var(--u)); font-weight: 900; color: #fff; line-height: 1; }
.ic-jd-brand { display: flex; align-items: center; justify-content: space-between; }
.ic-jd-logo { font-size: calc(.5 * var(--u)); font-weight: 800; color: #fff; letter-spacing: .3px; }
.ic-jd-label { font-size: calc(.42 * var(--u)); color: rgba(255,255,255,.9); }
/* 右侧文案 + 进度 */
.ic-jd-body { flex: 1 1 auto; min-width: 0; }
.ic-jd-headline {
  font-size: calc(.86 * var(--u)); font-weight: 900; color: #fff; line-height: 1.25;
}
.ic-jd-headline em {
  font-style: normal;
  background: linear-gradient(180deg, #fff3c0, #f5b53c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-jd-progress { margin-top: calc(.42 * var(--u)); }
.ic-jd-pbar {
  position: relative;
  height: calc(.85 * var(--u));
  border-radius: 9999px;
  background: rgba(3, 28, 46, .85);
  border: 1px solid rgba(120, 200, 235, .3);
  overflow: hidden;
}
.ic-jd-pfill {
  height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, #46c8ea, #9be7ff);
  box-shadow: 0 0 calc(.5 * var(--u)) rgba(90, 210, 255, .7);
  transition: width .5s ease;
}
.ic-jd-pmeta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: calc(.22 * var(--u));
  font-size: calc(.55 * var(--u)); color: rgba(180, 225, 245, .85);
}
.ic-jd-pcount { font-weight: 800; color: #cdeeff; }
.ic-jd-tip {
  margin-top: calc(.3 * var(--u));
  font-size: calc(.5 * var(--u)); color: #ffd98a;
  display: flex; align-items: center; gap: calc(.18 * var(--u));
}
/* 领取按钮 */
.ic-claim-btn {
  margin-top: calc(.55 * var(--u));
  width: 100%;
  height: calc(2.1 * var(--u));
  border-radius: calc(1.05 * var(--u));
  font-size: calc(.82 * var(--u)); font-weight: 900; letter-spacing: .5px;
  color: #4a2c00;
  background: linear-gradient(180deg, #ffe89a, #f5b73e);
  border: 1px solid rgba(255, 246, 210, .9);
  box-shadow: 0 calc(.18 * var(--u)) calc(.6 * var(--u)) rgba(200, 130, 10, .4), inset 0 1px 2px rgba(255,255,255,.7);
}
.ic-claim-btn:active { transform: scale(.98); }
.ic-claim-btn[disabled] {
  opacity: .55;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.12));
  color: rgba(230, 245, 255, .7);
  box-shadow: none;
}

/* ---------- 我的排名条 ---------- */
.ic-mine {
  position: relative; z-index: 2;
  border-radius: calc(1.1 * var(--u));
  padding: calc(.75 * var(--u));
  background: linear-gradient(160deg, rgba(18, 74, 108, .8), rgba(6, 36, 60, .88));
  border: 1px solid rgba(120, 205, 240, .32);
  box-shadow: 0 calc(.25 * var(--u)) calc(.9 * var(--u)) rgba(0, 20, 40, .45);
  margin-bottom: calc(.8 * var(--u));
}
.ic-mine-row {
  display: flex; align-items: center; gap: calc(.6 * var(--u));
}
.ic-mine-orb {
  width: calc(2.9 * var(--u)); height: calc(2.9 * var(--u));
  border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #dff3ff, #7fb9d8 60%, #2a6a92);
  border: calc(.12 * var(--u)) solid rgba(255, 226, 150, .7);
  box-shadow: 0 0 calc(.5 * var(--u)) rgba(90, 200, 240, .35);
}
.ic-mine-orb img { width: 100%; height: 100%; object-fit: cover; }
.ic-mine-orb svg { width: 46%; height: 46%; color: rgba(255,255,255,.9); }
.ic-mine-stats { flex: 1 1 auto; display: flex; min-width: 0; }
.ic-mine-cell { flex: 1; text-align: center; position: relative; }
.ic-mine-cell + .ic-mine-cell::before {
  content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px;
  background: rgba(140, 200, 230, .22);
}
.ic-mine-label { font-size: calc(.5 * var(--u)); color: rgba(170, 215, 240, .8); }
.ic-mine-val {
  margin-top: calc(.12 * var(--u));
  font-size: calc(.92 * var(--u)); font-weight: 900; color: #eaf8ff;
  white-space: nowrap;
}
.ic-mine-val small { font-size: calc(.5 * var(--u)); font-weight: 600; color: rgba(190, 225, 245, .85); margin-left: 1px; }
.ic-mine-val.gold {
  background: linear-gradient(180deg, #fff3c0, #f2b23c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-invite-btn {
  margin-top: calc(.65 * var(--u));
  width: 100%; height: calc(2.35 * var(--u));
  border-radius: calc(1.2 * var(--u));
  font-size: calc(.92 * var(--u)); font-weight: 900; letter-spacing: 1px;
  color: #4a2c00;
  background: linear-gradient(180deg, #ffe89a 0%, #f5b73e 55%, #e29a1e 100%);
  border: 1px solid rgba(255, 248, 214, .95);
  box-shadow: 0 calc(.22 * var(--u)) calc(.7 * var(--u)) rgba(200, 130, 10, .45), inset 0 1px 3px rgba(255,255,255,.8);
}
.ic-invite-btn:active { transform: scale(.98); }

/* ---------- 榜单 4-10 ---------- */
.ic-rank {
  position: relative; z-index: 2;
  border-radius: calc(1.1 * var(--u));
  overflow: hidden;
  background: linear-gradient(160deg, rgba(14, 62, 94, .72), rgba(5, 30, 52, .85));
  border: 1px solid rgba(110, 190, 225, .28);
}
.ic-rank-item {
  display: flex; align-items: center; gap: calc(.5 * var(--u));
  padding: calc(.52 * var(--u)) calc(.7 * var(--u));
}
.ic-rank-item + .ic-rank-item { border-top: 1px solid rgba(120, 190, 225, .16); }
.ic-rank-item.me { background: rgba(255, 210, 110, .12); }
.ic-rank-no {
  flex: 0 0 auto; width: calc(1.35 * var(--u)); text-align: center;
  font-size: calc(.85 * var(--u)); font-weight: 900; font-style: italic;
  color: rgba(180, 225, 245, .8);
}
.ic-rank-orb {
  width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u));
  border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #dff3ff, #7fb9d8 60%, #2a6a92);
  border: 1px solid rgba(190, 235, 255, .4);
}
.ic-rank-orb img { width: 100%; height: 100%; object-fit: cover; }
.ic-rank-orb svg { width: 48%; height: 48%; color: rgba(255,255,255,.9); }
.ic-rank-name {
  flex: 1 1 auto; min-width: 0;
  font-size: calc(.68 * var(--u)); font-weight: 700; color: #dff2ff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ic-rank-name em {
  font-style: normal; font-size: calc(.48 * var(--u)); color: rgba(170, 215, 240, .7);
  margin-left: calc(.25 * var(--u));
}
.ic-rank-mid {
  flex: 0 0 auto; font-size: calc(.55 * var(--u)); color: rgba(175, 220, 242, .82);
  white-space: nowrap;
}
.ic-rank-prize {
  flex: 0 0 auto; margin-left: calc(.4 * var(--u));
  font-size: calc(.68 * var(--u)); font-weight: 900;
  background: linear-gradient(180deg, #fff3c0, #f2b23c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}

/* 空态 */
.ic-empty {
  padding: calc(1.6 * var(--u)) calc(.8 * var(--u));
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: calc(.3 * var(--u));
}
.ic-empty svg { width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); color: rgba(140, 200, 230, .6); }
.ic-empty b { font-size: calc(.72 * var(--u)); color: #d5ecfa; }
.ic-empty span { font-size: calc(.56 * var(--u)); color: rgba(170, 215, 240, .7); line-height: 1.5; }

/* 底部标语 */
.ic-footer {
  position: relative; z-index: 2;
  margin-top: calc(.9 * var(--u));
  text-align: center;
  font-size: calc(.5 * var(--u)); letter-spacing: calc(.15 * var(--u));
  color: rgba(150, 200, 230, .55);
}

/* ---------- 卡券背包页（复用 ic 主题） ---------- */
.ic-card-item {
  display: flex; align-items: center; gap: calc(.6 * var(--u));
  padding: calc(.7 * var(--u));
  border-radius: calc(.9 * var(--u));
  background: linear-gradient(160deg, rgba(20, 80, 115, .8), rgba(8, 40, 66, .9));
  border: 1px solid rgba(120, 205, 240, .3);
  margin-bottom: calc(.6 * var(--u));
}
.ic-card-badge {
  flex: 0 0 auto; width: calc(3.4 * var(--u)); height: calc(2.4 * var(--u));
  border-radius: calc(.4 * var(--u));
  background: linear-gradient(135deg, #ff5b5b, #d92b2b 60%, #b01a1a);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; box-shadow: 0 calc(.12 * var(--u)) calc(.5 * var(--u)) rgba(150,20,20,.4);
}
.ic-card-badge b { font-size: calc(.85 * var(--u)); font-weight: 900; line-height: 1; }
.ic-card-badge span { font-size: calc(.4 * var(--u)); margin-top: calc(.1 * var(--u)); opacity: .9; }
.ic-card-info { flex: 1 1 auto; min-width: 0; }
.ic-card-title { font-size: calc(.72 * var(--u)); font-weight: 800; color: #eaf8ff; }
.ic-card-sub { margin-top: calc(.18 * var(--u)); font-size: calc(.52 * var(--u)); color: rgba(175, 220, 242, .78); }
.ic-card-status {
  flex: 0 0 auto; text-align: right;
  font-size: calc(.6 * var(--u)); font-weight: 800;
  padding: calc(.2 * var(--u)) calc(.5 * var(--u));
  border-radius: 9999px;
}
.ic-card-status.pending { color: #ffd98a; background: rgba(255, 200, 90, .16); border: 1px solid rgba(255, 210, 110, .4); }
.ic-card-status.issued { color: #7ff0c0; background: rgba(60, 220, 160, .15); border: 1px solid rgba(90, 230, 180, .4); }
.ic-code-box {
  margin-top: calc(.4 * var(--u));
  padding: calc(.35 * var(--u)) calc(.5 * var(--u));
  border-radius: calc(.4 * var(--u));
  background: rgba(3, 28, 46, .8);
  border: 1px dashed rgba(120, 200, 235, .4);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: calc(.6 * var(--u)); color: #9be7ff;
  word-break: break-all;
}

/* 2/3 名皇冠调色：银 / 铜 */
.ic-pod-2 .ic-pod-crown { filter: grayscale(1) brightness(1.25) drop-shadow(0 1px 2px rgba(60,80,100,.55)); }
.ic-pod-3 .ic-pod-crown { filter: sepia(1) saturate(1.9) hue-rotate(-16deg) brightness(.92) drop-shadow(0 1px 2px rgba(90,50,10,.55)); }
