/* 提现进度 /activity/wheel/progress
   设计稿：PC 39398:123386（变体 39420:60237 对照）/ H5 39279:87293、39279:97256
   提现确认弹窗：PC 39420:61735 / H5 39092:52906
   桌面优先，主断点 @media (max-width: 768px) */

.activity-wheel-progress {
  font-family: "PingFang SC", sans-serif;
  color: var(--text-primary);
}

.activity-wheel-progress__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---------- 面包屑 ---------- */

.activity-wheel-progress__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.activity-wheel-progress__breadcrumb-link {
  color: var(--text-primary);
  transition: color .2s;
}

.activity-wheel-progress__breadcrumb-link:hover {
  color: var(--color-primary-500);
}

.activity-wheel-progress__breadcrumb-sep {
  color: var(--text-primary);
}

.activity-wheel-progress__breadcrumb-current {
  color: var(--text-secondary);
}

/* ---------- 京东E卡余额进度卡 ---------- */

.activity-wheel-progress__ecard {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px;
  border: 1px solid #FCE3AD;
  border-radius: 12px;
  background: linear-gradient(to top, #FDF6DE, #FFFFFF);
}

.activity-wheel-progress__ecard-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 420px;
}

.activity-wheel-progress__ecard-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #7B0000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-wheel-progress__ecard-amount,
.activity-wheel-progress__ecard-target {
  font-weight: 500;
}

.activity-wheel-progress__bar {
  position: relative;
  width: 100%;
  max-width: 233px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  filter: drop-shadow(0 0 2.8px rgba(254, 203, 3, 0.9));
}

.activity-wheel-progress__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #F1519D 15.48%, #001EFF 45.67%, #FAC840 81.92%);
  transition: width .8s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.activity-wheel-progress__bar-gloss {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.activity-wheel-progress__ecard-tip {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: #FF272B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-wheel-progress__ecard-side {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.activity-wheel-progress__withdraw {
  height: 36px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary-500);
  font-family: "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: filter .2s;
  white-space: nowrap;
}

.activity-wheel-progress__withdraw:hover {
  filter: brightness(0.95);
}

/* 已提交（审核中）态：JS 模拟提交成功后追加 */
.activity-wheel-progress__withdraw--pending {
  background: #FEF0B8;
  color: rgba(0, 0, 0, 0.55);
  cursor: default;
  pointer-events: none;
}

.activity-wheel-progress__ecard-thumb {
  display: block;
  width: 70px;
  height: 72px;
  overflow: hidden;
}

.activity-wheel-progress__ecard-thumb img {
  display: block;
  width: 80px;
  height: 80px;
  margin: -4px 0 0 -5px;
  object-fit: contain;
}

/* ---------- 邀请好友 CTA ---------- */

.activity-wheel-progress__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 24px;
  border-radius: 12px;
  background: var(--color-primary-500);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.9);
  transition: filter .2s;
  white-space: nowrap;
}

.activity-wheel-progress__cta:hover {
  filter: brightness(0.95);
}

.activity-wheel-progress__cta-icon {
  width: 18px;
  height: 18px;
}

/* ---------- 已邀请好友 ---------- */

.activity-wheel-progress__section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-wheel-progress__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-wheel-progress__section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.activity-wheel-progress__section-bar {
  flex-shrink: 0;
  width: 6px;
  height: 28px;
  border-radius: 4px;
  background: #FCD417;
}

.activity-wheel-progress__section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  color: var(--text-primary);
  white-space: nowrap;
}

.activity-wheel-progress__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-primary);
  transition: color .2s;
  white-space: nowrap;
}

.activity-wheel-progress__more:hover {
  color: var(--color-primary-500);
}

.activity-wheel-progress__more-text--h5 {
  display: none;
}

.activity-wheel-progress__more-icon {
  width: 18px;
  height: 18px;
}

.activity-wheel-progress__list-card {
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--surface-foreground);
}

.activity-wheel-progress__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-wheel-progress__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.activity-wheel-progress__row:last-child {
  border-bottom: none;
}

.activity-wheel-progress__row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.activity-wheel-progress__avatar {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-neutral-50);
}

.activity-wheel-progress__avatar img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.activity-wheel-progress__row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.activity-wheel-progress__row-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
  white-space: nowrap;
}

.activity-wheel-progress__row-time {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.activity-wheel-progress__row-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.activity-wheel-progress__row-gain {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  background: linear-gradient(142.82deg, #35DEBC 0%, #22BB9C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.activity-wheel-progress__row-state {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* ---------- 提现确认弹窗 ---------- */

.activity-wheel-progress__layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 320;
}

.activity-wheel-progress__layer--open {
  display: block;
}

body.activity-wheel-progress-layer-open {
  overflow: hidden;
}

.activity-wheel-progress__layer-mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.activity-wheel-progress__layer-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.activity-wheel-progress__layer-card {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 48px);
  margin-top: 114px;
  border-radius: 12px;
  /* 顶部左粉右暖的柔光（CSS 重建两枚模糊椭圆），底部收白 */
  background-color: #FFFFFF;
  background-image:
    radial-gradient(circle 190px at -1% -20%, rgba(255, 107, 149, 0.34), rgba(255, 107, 149, 0) 100%),
    radial-gradient(circle 190px at 65% -8%, rgba(254, 203, 3, 0.30), rgba(254, 203, 3, 0) 100%);
  text-align: center;
  box-sizing: border-box;
}

.activity-wheel-progress__layer-glow {
  position: absolute;
  left: 50%;
  top: -104px;
  width: 268px;
  height: 268px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 214, 100, 0.55), rgba(255, 214, 100, 0));
  pointer-events: none;
}

.activity-wheel-progress__layer-figure {
  position: absolute;
  left: 50%;
  top: -114px;
  width: 263px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.activity-wheel-progress__layer-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 36px 0;
}

.activity-wheel-progress__layer-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--text-primary);
}

.activity-wheel-progress__layer-divider {
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.activity-wheel-progress__layer-prize {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #FF2D55;
}

.activity-wheel-progress__layer-desc {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: #8B1A15;
}

.activity-wheel-progress__layer-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px;
}

.activity-wheel-progress__layer-cta {
  display: block;
  width: 100%;
  height: 48px;
  padding: 11px 24px;
  border: none;
  border-radius: 12px;
  background: var(--color-primary-500);
  font-family: "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: filter .2s;
  white-space: nowrap;
}

.activity-wheel-progress__layer-cta:hover {
  filter: brightness(0.95);
}

.activity-wheel-progress__layer-later {
  padding: 0;
  border: none;
  background: transparent;
  font-family: "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.activity-wheel-progress__layer-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.activity-wheel-progress__layer-close img {
  display: block;
  width: 36px;
  height: 36px;
}

/* ---------- H5（≤768px，对齐 H5 稿 39279:87293 / 39092:52906） ---------- */

@media (max-width: 768px) {
  /* 公共资产横幅(activity-hero.css)的页面级覆盖:H5 稿本页横幅没有「我的资产」入口
     (仅 PC 有),礼盒也因此按稿子缩小内移。用页面 class 限定,不影响其余 11 页 */
  .activity-wheel-progress-page .activity-hero__assets {
    display: none;
  }

  .activity-wheel-progress-page .activity-hero__gift {
    top: 4px;
    right: 6.4%;
    width: 112px;
    height: 112px;
  }

  .activity-wheel-progress__inner {
    gap: 12px;
  }

  .activity-wheel-progress__breadcrumb {
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }

  .activity-wheel-progress__ecard {
    gap: 8px;
    padding: 12px;
  }

  .activity-wheel-progress__ecard-main {
    gap: 8px;
    max-width: none;
  }

  .activity-wheel-progress__ecard-title {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-wheel-progress__bar {
    max-width: none;
    height: 7px;
  }

  .activity-wheel-progress__ecard-tip {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-wheel-progress__ecard-side {
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
  }

  .activity-wheel-progress__withdraw {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .activity-wheel-progress__ecard-thumb {
    width: 52px;
    height: 52px;
  }

  .activity-wheel-progress__ecard-thumb img {
    width: 58px;
    height: 58px;
    margin: -3px 0 0 -3px;
  }

  .activity-wheel-progress__cta {
    padding: 12px 16px;
    white-space: nowrap;
  }

  .activity-wheel-progress__section {
    gap: 12px;
  }

  .activity-wheel-progress__section-bar {
    height: 16px;
    border-radius: 3px;
  }

  .activity-wheel-progress__section-title {
    font-size: 16px;
    line-height: 24px;
  }

  .activity-wheel-progress__more {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
  }

  .activity-wheel-progress__more-text--pc {
    display: none;
  }

  .activity-wheel-progress__more-text--h5 {
    display: inline;
  }

  .activity-wheel-progress__list-card {
    padding: 0 12px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .activity-wheel-progress__row {
    padding: 10px 0;
  }

  .activity-wheel-progress__row-left {
    gap: 8px;
  }

  .activity-wheel-progress__row-info {
    gap: 2px;
  }

  .activity-wheel-progress__row-name {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-wheel-progress__row-time {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-wheel-progress__row-gain {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-wheel-progress__row-state {
    font-size: 12px;
    line-height: 18px;
  }

  /* 弹窗 H5 */
  .activity-wheel-progress__layer-card {
    width: 311px;
    max-width: calc(100vw - 64px);
    margin-top: 92px;
    border-radius: 16px;
  }

  .activity-wheel-progress__layer-figure {
    width: 213px;
    top: -92px;
  }

  .activity-wheel-progress__layer-glow {
    width: 216px;
    height: 216px;
    top: -84px;
  }

  .activity-wheel-progress__layer-content {
    gap: 10px;
    padding: 24px 24px 0;
  }

  .activity-wheel-progress__layer-title {
    font-size: 18px;
    line-height: 26px;
  }

  /* H5 稿无分割线 */
  .activity-wheel-progress__layer-divider {
    display: none;
  }

  .activity-wheel-progress__layer-prize {
    font-size: 16px;
  }

  .activity-wheel-progress__layer-desc {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-wheel-progress__layer-footer {
    gap: 14px;
    padding: 20px 24px 24px;
  }

  .activity-wheel-progress__layer-cta {
    height: 44px;
    padding: 11px 16px;
  }

  /* H5 稿弹窗无独立关闭按钮（点遮罩／再等等 关闭） */
  .activity-wheel-progress__layer-close {
    display: none;
  }
}
