/* ==========================================================================
   幸运转盘 /activity/wheel
   PC 稿 1920(内容列 490 居中) / H5 稿 375(≈PC×0.768)
   分层:纯背景图 + CSS 渐变罩 + 标题艺术字 + 机身 + 盘面 + GO 指针 + DOM 文案/按钮
   ========================================================================== */

.page-main.activity-wheel {
  padding: 0;
  gap: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.activity-wheel__hero {
  width: 100%;
  background: #fff;
  overflow: hidden;
}

/* 场景层:纯背景图(顶部) + 设计稿同款渐变罩(向下过渡到黄再到白) */
.activity-wheel__scene {
  position: relative;
  padding-bottom: 30px;
}

.activity-wheel__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(252, 79, 63, 0) 9.2%,
      rgba(253, 226, 223, 0) 18.5%,
      #ffeaa4 37.5%,
      #ffeaa4 51.5%,
      #fff 87%,
      #fff 100%
    ),
    url("/static/images/activity/activity-wheel-bg.webp") top center / cover no-repeat,
    #fff;
}

.activity-wheel__scene > * {
  position: relative;
}

/* --- 面包屑 --- */
.activity-wheel__breadcrumb {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 3;
}

.activity-wheel__breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  line-height: 24px;
  color: var(--text-primary);
}

.activity-wheel__breadcrumb-link {
  color: var(--text-primary);
}

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

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

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

/* --- 内容列(设计稿 490 居中) --- */
.activity-wheel__stage {
  position: relative;
  width: 490px;
  margin: 0 auto;
  padding: 150px 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 标题艺术字(独立透明图层,叠于背景之上) */
.activity-wheel__title-art {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 507px;
  max-width: none;
  pointer-events: none;
}

/* 副标题红绸带:艺术底图 + DOM 文案 */
.activity-wheel__ribbon {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 212px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/static/images/activity/activity-wheel-ribbon.webp") center / contain no-repeat;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #fff;
}

/* 我的资产统计条 */
.activity-wheel__stats {
  margin: 12px 0 0;
  padding: 8px 29px;
  list-style: none;
  width: 416px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background:
    linear-gradient(223deg, rgba(255, 220, 249, 0.2) 10%, rgba(253, 188, 111, 0.2) 60%, rgba(255, 220, 249, 0.2) 103%),
    #fff;
  box-shadow:
    0 3px 3px rgba(255, 151, 238, 0.15),
    0 12px 6px rgba(255, 151, 238, 0.13);
}

.activity-wheel__stats-item {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 资产图标(设计稿 39262:28479):四个图标原始宽高不一(28/24/29/24 × 24),
   只锁高度、宽度自适应,免得把票券压变形 */
.activity-wheel__stats-icon {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* 中奖跑马灯 */
.activity-wheel__marquee {
  position: relative;
  margin-top: 13px;
  width: 314px;
  height: 31px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.3) 11%,
    rgba(248, 250, 255, 0.8) 39%,
    rgba(245, 248, 255, 0.9) 61%,
    rgba(255, 255, 255, 0.2) 96%
  );
  box-shadow:
    12px 18px 3px rgba(255, 223, 220, 0.13),
    inset -1px -4px 12px rgba(255, 255, 255, 0.9),
    inset 1px 4px 10px rgba(255, 213, 209, 0.43);
}

.activity-wheel__marquee-icon {
  position: absolute;
  left: 8px;
  top: -2px;
  width: 30px;
  height: 30px;
  transform: rotate(169.35deg) scaleY(-1);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
  z-index: 1;
}

.activity-wheel__marquee-clip {
  position: absolute;
  inset: 0 10px 0 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.activity-wheel__marquee-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  white-space: nowrap;
  /* 位移是 -100% 即轨道自身宽度,固定秒数会随内容变速;
     真实时长由 JS syncMarqueeSpeed 按轨道实宽/字号写入 animation-duration,18s 仅兜底 */
  animation: activity-wheel-marquee 18s linear infinite;
}

.activity-wheel__marquee-item {
  font-size: 16px;
  line-height: 22px;
  color: #7b0000;
}

@keyframes activity-wheel-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* 红包点缀 */
.activity-wheel__redpacket {
  position: absolute;
  left: 409px;
  top: 217px;
  width: 62px;
  transform: rotate(16deg);
  pointer-events: none;
}

/* --- 抽奖机:机身图 + 盘面图 + GO 指针 + 公告 + 抽奖按钮 --- */
.activity-wheel__machine {
  position: relative;
  margin-top: 6px;
  width: 489px;
}

.activity-wheel__machine-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 设计稿盘面盒是 316×318,但旋转体不是正方形就会转出肉眼难察的椭圆形变,
   所以取 318×318 正方形,left 相应左移 1px(87 - (318-316)/2)保持圆心不动。
   font-size 是盘面文案的基准:1em = 盘面直径的 4.2%(设计稿 949 盘面上约 40px 字),
   子元素全部用 em/% 表达,H5 只需换这一个基准值就整体等比缩放 */
.activity-wheel__disc {
  position: absolute;
  left: 86px;
  top: 38px;
  width: 318px;
  height: 318px;
  font-size: 13.4px;
}

/* 旋转体本体:偶数格底色 = 圆心暖黄 → 外缘浅黄的径向渐变(从设计稿逐格采样) */
.activity-wheel__disc-face {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: radial-gradient(circle closest-side at 50% 50%, #fbe08c 0%, #faf4b8 100%);
}

/* 奇数格:一层 conic-gradient 盖在渐变底上,奇数段填米白、偶数段填全透明。
   分段字符串由 JS 按 prizes.length 拼(格数跟着后端走,CSS 里不写死 10 格)。
   透明段必须写 rgba(249,248,223,0) 而不是 transparent —— transparent 等价
   rgba(0,0,0,0),部分浏览器会拿它去插值,硬停止两侧渗出一圈暗边 */
.activity-wheel__disc-slices {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
}

.activity-wheel__disc-items {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

/* 每格一个铺满盘面的图层,整层按扇区中心角旋转;文案/图标挂在 12 点方向,
   随图层转到各自扇区。比"平移 + 旋转"的复合 transform 好算,也不会因
   transform-origin 差异错位 */
.activity-wheel__disc-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* 文案在外圈(与设计稿文字所在半径带 0.75R~0.94R 对齐),两行:
   第 1 行奖品名、第 2 行数量;名称过长时名称自己拆成两行(见 JS splitLongText)。
   设计稿里字符是跟着扇区一起转的(不是竖排直立字),所以是横排文本整体 rotate,
   不用 writing-mode。
   top 只是 JS 未接管时的兜底值(两行、字号 1em 的情形):真实值由 JS 按
   "首行中心恒定落在 0.893R" 反算后写成行内样式 —— 单行块和两行块若都按块中心定位,
   单行那格会整体往圆心缩约 0.06R,一圈字就不在同一环上。
   line-height 改动必须同步改 JS 的 LABEL_LINE_HEIGHT,块高与内缘半径靠它算 */
.activity-wheel__disc-label {
  position: absolute;
  left: 50%;
  top: 8.4%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.46;
  white-space: nowrap;
  color: #644c1e;
}

.activity-wheel__disc-label-line {
  display: block;
}

/* 图标在内圈(中心 0.56R),用 max-width/max-height 限一个方框:
   图片本征尺寸远大于该框,浏览器会等比缩到框内 —— 等价 object-fit:contain,
   但不依赖老 WebView 对 object-fit 的支持。
   12.3% 是 10 格时的几何上限(正方形图标的半宽要塞进图标内缘 0.44R 处的半弦长,
   还要留每侧安全余量);格数变了上限也变,所以 JS 会按实际格数覆写这两个值,
   这里的常量只是 JS 未接管时的兜底 —— 原来的 15% 会让图标每侧压过分割线约 2.7px */
.activity-wheel__disc-icon {
  position: absolute;
  left: 50%;
  top: 22%;
  max-width: 12.3%;
  max-height: 12.3%;
  transform: translate(-50%, -50%);
}

/* base.css 给所有停在 placeholder.png 上的 img 铺了 #464646 深灰底(列表卡片需要),
   但盘面是浅黄底:远端加密图解密前/解密失败时会停在 placeholder,那块深灰方块
   在盘面上极其扎眼。这里单独抹掉,让它安静地留空 */
.activity-wheel__disc-icon[src$="placeholder.png"] {
  background-color: transparent !important;
}

.activity-wheel__pointer {
  position: absolute;
  left: 122px;
  top: 98px;
  width: 78px;
  filter: drop-shadow(0 0 8px #ffcc01);
}

.activity-wheel__notice {
  position: absolute;
  left: 0;
  right: 0;
  top: 402px;
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  color: #694923;
}

.activity-wheel__spin {
  position: absolute;
  left: 65px;
  top: 444px;
  width: 369px;
  height: 98px;
  padding: 9px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border: 0;
  background: url("/static/images/activity/activity-wheel-spin-btn.webp") center / contain no-repeat;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.activity-wheel__spin:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.activity-wheel__spin:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.activity-wheel__spin-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  background: linear-gradient(180deg, #f85539 14%, #da2f17 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.activity-wheel__spin-sub {
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}

/* --- 京东E卡余额卡片 --- */
.activity-wheel__prize-card {
  position: relative;
  margin-top: 22px;
  width: 488px;
  padding: 17px;
  border: 1.4px solid #fdf2d4;
  border-radius: 17px;
  background: linear-gradient(to top, #fdf6de, #fff);
}

.activity-wheel__prize-main {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 371px;
}

.activity-wheel__prize-title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: #7b0000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-wheel__progress {
  position: relative;
  width: 356px;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 0 4px #fecb03);
  overflow: hidden;
}

.activity-wheel__progress-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1519d 15%, #001eff 46%, #fac840 82%);
}

.activity-wheel__progress-fill::after {
  content: "";
  position: absolute;
  left: 1%;
  top: 0;
  width: 97%;
  height: 62%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.05));
}

.activity-wheel__prize-tip {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: #ff272b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-wheel__prize-img {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 104px;
  height: 104px;
}

/* --- 邀请按钮(黄底近黑字) --- */
.activity-wheel__invite {
  margin-top: 33px;
  width: 417px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 999px;
  background: var(--color-primary-500);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow:
    0 4px 3px rgba(0, 0, 0, 0.12),
    inset 2px 2px 5px #ffcb45,
    inset -3px -3px 5px rgba(255, 255, 255, 0.6);
  transition: filter 0.15s ease;
  white-space: nowrap;
}

.activity-wheel__invite:hover {
  filter: brightness(0.96);
}

.activity-wheel__invite-arrow {
  width: 9px;
  height: 9px;
  border-right: 2.4px solid rgba(0, 0, 0, 0.9);
  border-bottom: 2.4px solid rgba(0, 0, 0, 0.9);
  transform: rotate(-45deg);
}

/* --- 右侧红色侧标:规则 / 我的奖品 --- */
.activity-wheel__side {
  position: absolute;
  top: 146px;
  right: max(calc(50% - 640px), 0px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
}

.activity-wheel__side-tab {
  display: block;
  padding: 6px 7px;
  border: 1px solid #ffd774;
  border-right: 0;
  border-radius: 13px 0 0 13px;
  background: #fe0e12;
  box-shadow: inset 6px 0 6px rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 19px;
  line-height: 29px;
  font-weight: 500;
  color: #fff;
  transition: filter 0.15s ease;
}

.activity-wheel__side-tab:hover {
  filter: brightness(1.08);
}

/* ==========================================================================
   H5(≤768,稿 375,≈PC×0.768)
   ========================================================================== */
@media (max-width: 768px) {
  .activity-wheel__hero {
    padding-top: 0;
  }

  .activity-wheel__scene {
    padding-bottom: 28px;
  }

  .activity-wheel__scene::before {
    background:
      linear-gradient(
        180deg,
        rgba(252, 79, 63, 0) 9.2%,
        rgba(253, 226, 223, 0) 18.5%,
        #ffeaa4 37.5%,
        #ffeaa4 51.5%,
        #fff 87%,
        #fff 100%
      ),
      url("/static/images/activity/activity-wheel-bg-h5.webp") top center / cover no-repeat,
      #fff;
  }

  .activity-wheel__breadcrumb {
    top: 12px;
  }

  .activity-wheel__breadcrumb-inner {
    gap: 4px;
    font-size: 12px;
    line-height: 18px;
  }

  .activity-wheel__stage {
    width: 100%;
    max-width: 375px;
    padding: 115px 0 0;
  }

  .activity-wheel__title-art {
    top: -9px;
    width: 390px;
  }

  .activity-wheel__ribbon {
    width: 163px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
  }

  .activity-wheel__stats {
    margin-top: 9px;
    width: 319px;
    padding: 6px 22px;
    border-radius: 6px;
  }

  .activity-wheel__stats-item {
    font-size: 16px;
    line-height: 22px;
    gap: 3px;
  }

  .activity-wheel__stats-icon {
    height: 24px;
  }

  .activity-wheel__marquee {
    margin-top: 10px;
    width: 241px;
    height: 24px;
    border-radius: 12px;
  }

  .activity-wheel__marquee-icon {
    left: 6px;
    top: -1px;
    width: 23px;
    height: 23px;
  }

  .activity-wheel__marquee-clip {
    inset: 0 8px 0 34px;
  }

  .activity-wheel__marquee-item {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-wheel__redpacket {
    left: auto;
    right: 11px;
    top: 167px;
    width: 47px;
  }

  .activity-wheel__machine {
    width: 375px;
    max-width: 100%;
  }

  /* 机身覆盖层改 %:machine 在 <375px 视口随视口收缩(width:375px + max-width:100%),
     固定 px 会脱离缩放的机身图。基准盒 375×402.6(机身图 1170×1256):
     disc 67/29/243/244;notice top 309;spin 50/341/283/75;pointer 定位父级是 disc(243×244)。
     disc 取 243.5 见方(旋转体必须正方):机身盒宽高比固定,宽/高两个百分比同步缩放,
     所以 64.93%×60.48% 在任何视口下都还是正方形 */
  .activity-wheel__disc {
    left: 17.8%;
    top: 7.27%;
    width: 64.93%;
    height: 60.48%;
    /* 盘面文案基准:243.5 × 4.2% ≈ 10.2px;<375px 视口机身随视口收缩,
       用 vw 版跟着一起缩(min() 不支持的老浏览器落到上一行的固定值) */
    font-size: 10.2px;
    font-size: min(10.2px, 2.72vw);
  }

  .activity-wheel__pointer {
    left: 38.27%;
    top: 30.74%;
    width: 24.69%;
    filter: drop-shadow(0 0 6px #ffcc01);
  }

  .activity-wheel__notice {
    top: 76.76%;
    font-size: 14px;
    line-height: 20px;
  }

  .activity-wheel__spin {
    left: 13.33%;
    top: 84.71%;
    width: 75.47%;
    height: 18.63%;
    padding-top: 7px;
    gap: 0;
  }

  .activity-wheel__spin-title {
    font-size: 26px;
    line-height: 32px;
  }

  .activity-wheel__spin-sub {
    font-size: 10px;
    line-height: 16px;
  }

  .activity-wheel__prize-card {
    margin-top: 18px;
    width: 319px;
    padding: 11px;
    border-width: 1px;
    border-radius: 11px;
  }

  .activity-wheel__prize-main {
    gap: 6px;
    width: 243px;
  }

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

  .activity-wheel__progress {
    width: 233px;
    height: 8px;
    filter: drop-shadow(0 0 3px #fecb03);
  }

  .activity-wheel__prize-tip {
    font-size: 10px;
    line-height: 16px;
  }

  .activity-wheel__prize-img {
    right: 2px;
    top: 2px;
    width: 68px;
    height: 68px;
  }

  .activity-wheel__invite {
    margin-top: 13px;
    width: 320px;
    padding: 11px 0;
    gap: 10px;
    font-size: 16px;
    line-height: 22px;
  }

  .activity-wheel__invite-arrow {
    width: 7px;
    height: 7px;
    border-right-width: 2px;
    border-bottom-width: 2px;
  }

  .activity-wheel__side {
    top: 30px;
    right: 0;
    gap: 26px;
  }

  .activity-wheel__side-tab {
    padding: 4px 4.5px;
    border-width: 0.6px;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    box-shadow: inset 4px 0 4px rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 18px;
  }
}

/* ---------- 抽奖结果弹窗(模拟交互;对齐 Figma 39390:59528 / 39427:63574) ---------- */

.activity-wheel__disc-face {
  will-change: transform;
}

.activity-wheel__spin[disabled] {
  filter: saturate(0.6) brightness(0.97);
  cursor: not-allowed;
}

.activity-wheel__progress-fill {
  transition: width 0.8s cubic-bezier(0.3, 0.8, 0.3, 1);
}

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

.activity-wheel__layer--open {
  display: block;
}

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

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

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

.activity-wheel__layer-card {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 48px);
  margin-top: 92px;
  padding: 60px 36px 36px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.activity-wheel__layer-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.activity-wheel__layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  max-width: 100%;
  height: 56px;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 28px;
  background: linear-gradient(90deg, #ffe7f0, #fff6f9);
  text-align: left;
  box-sizing: border-box;
}

.activity-wheel__layer-row-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.activity-wheel__layer-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.activity-wheel__layer-row-text b {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-primary);
  white-space: nowrap;
}

.activity-wheel__layer-row-sub {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.activity-wheel__layer-row-sub--green {
  color: #0ab35c;
}

.activity-wheel__layer-row-sub--blue {
  color: #4e8bff;
}

.activity-wheel__layer-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.activity-wheel__layer-rows[hidden],
.activity-wheel__layer-prize[hidden] {
  display: none;
}

.activity-wheel__layer-prize-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.activity-wheel__layer-prize-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #ff2d55;
}

.activity-wheel__layer-cta {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: var(--color-primary-500);
  color: rgba(0, 0, 0, 0.9);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  white-space: nowrap;
}

.activity-wheel__layer-cta:hover {
  opacity: 0.92;
}

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

.activity-wheel__layer-later[hidden] {
  display: none;
}

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

.activity-wheel__layer-close .icon {
  width: 36px;
  height: 36px;
  display: block;
}

@media (max-width: 768px) {
  .activity-wheel__layer-card {
    width: 340px;
    max-width: calc(100vw - 60px);
    margin-top: 64px;
    padding: 48px 24px 28px;
  }

  .activity-wheel__layer-figure {
    width: 200px;
    top: -70px;
  }

  .activity-wheel__layer-glow {
    width: 200px;
    height: 200px;
    top: -110px;
  }

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

/* ---------- 活动规则弹窗(设计稿弹窗形态:PC 39344:119172 / H5 39071:90984) ---------- */

.activity-wheel__rules-card {
  width: 440px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 36px;
  border-radius: 40px;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
}

.activity-wheel__rules-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

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

.activity-wheel__rules-divider {
  height: 1px;
  margin-bottom: 16px;
  background: var(--color-black-alpha-10);
}

.activity-wheel__rules-body {
  margin-bottom: 24px;
  text-align: left;
}

.activity-wheel__rules-item {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-wheel__rules-item + .activity-wheel__rules-item {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .activity-wheel__rules-card {
    max-width: calc(100vw - 60px);
    padding: 32px 24px 24px;
    border-radius: 12px;
  }

  .activity-wheel__rules-logo {
    height: 28px;
    margin-bottom: 12px;
  }

  .activity-wheel__rules-item {
    font-size: 14px;
    line-height: 24px;
    color: var(--text-secondary);
  }

  .activity-wheel__rules-item + .activity-wheel__rules-item {
    margin-top: 0;
  }
}

/* ---------- 保存到桌面引导弹窗(PC 39398:120382 / H5 安卓 39998:142881 / H5 iOS 39998:143263) ---------- */

/* 中奖弹窗里的入口行:可点开引导 */
.activity-wheel__layer-row--tap {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-wheel__layer-row--tap:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 151, 238, 0.28);
}

.activity-wheel__layer-row--tap:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* 叠在中奖弹窗之上 */
.activity-wheel__save {
  z-index: 330;
}

.activity-wheel__save-card {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 48px);
  margin-top: 92px;
  padding: 60px 36px 36px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
}

/* PC 稿走人物 + 光晕头图,H5 稿走 logo */
.activity-wheel__save-logo {
  display: none;
}

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

.activity-wheel__save-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-wheel__save-tab {
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--color-black-alpha-10);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.activity-wheel__save-tab--on {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: rgba(0, 0, 0, 0.9);
}

.activity-wheel__save-divider {
  height: 1px;
  margin-bottom: 16px;
  background: var(--color-black-alpha-10);
}

.activity-wheel__save-scroll {
  max-height: calc(100vh - 460px);
  min-height: 220px;
  margin: 0 -4px 24px;
  padding: 0 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.activity-wheel__save-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-wheel__save-panel[hidden] {
  display: none;
}

.activity-wheel__save-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.activity-wheel__save-step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.activity-wheel__save-step-no {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-500);
  color: rgba(0, 0, 0, 0.9);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.activity-wheel__save-step-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-primary);
}

.activity-wheel__save-shot {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .activity-wheel__save-card {
    width: 375px;
    max-width: calc(100vw - 24px);
    margin-top: 0;
    padding: 24px 16px 20px;
  }

  .activity-wheel__save-figure,
  .activity-wheel__save-glow {
    display: none;
  }

  .activity-wheel__save-logo {
    display: block;
    height: 28px;
    width: auto;
    margin: 8px auto 12px;
  }

  .activity-wheel__save-title {
    margin-bottom: 12px;
  }

  .activity-wheel__save-scroll {
    max-height: calc(100vh - 340px);
    min-height: 180px;
    margin-bottom: 16px;
  }
}
