/* ====== 1. Variables & Reset ====== */
:root {
  /* 颜色：初始化使用中性色，设计稿确认后按页面或组件语义扩展。 */
  --color-surface-page: #fff;
  --color-text-primary: #222;
  --color-text-strong: #000;
  --color-text-accent: #ff4444;

  /* 字体：页面默认字体栈。 */
  --font-family-base: "Microsoft YaHei", Arial, sans-serif;

  /* 交互与安全区：44px 为最小触摸热区，安全区间距配合 env() 使用。 */
  --size-touch-target-min: 44px;
  --space-safe-area-control: .24rem;

  /* 动效与无障碍：减少动态效果时使用。 */
  --motion-duration-reduced: .01ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
button,
input,
textarea {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  background: var(--color-surface-page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  /* min-width: var(--size-touch-target-min);
  min-height: var(--size-touch-target-min); */
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: var(--motion-duration-reduced);
    animation-iteration-count: 1;
    transition-duration: var(--motion-duration-reduced);
  }
}


/* ====== 2. Layout ====== */
.app {
  width: 7.5rem;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

.safe-area-control {
  right: max(var(--space-safe-area-control), env(safe-area-inset-right));
  bottom: max(var(--space-safe-area-control), env(safe-area-inset-bottom));
}

@supports (min-height: 100dvh) {
  .app {
    min-height: 100dvh;
  }
}

/* ====== 3. Components ====== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 任务内容区（各Tab对应的内容面板） */
.task-content {
  display: none;
}

.task-content--active {
  display: block;
}

/* 任务列表容器 */
.task-list {
  padding-top: 0.16rem;
  padding-left: 0.10rem;
  padding-right: 0.10rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem; /* 卡片间距 */
}

/* 单个任务卡片 */
.task-card {
  display: flex;
  align-items: center;
  background: #FEFCF8;
  border-radius: 0.20rem;
  padding: 0.8rem 0.10rem 0.8rem 0.3rem;
  gap: 0.20rem;
  border: 1px solid #FE917A;
  height: 1.50rem; /* 固定高度：150px */
  box-sizing: border-box; 
}

.task-card:last-child {
  margin-bottom: 0;
}

/* 任务卡左侧图标区（使用图片素材） */
.task-card__icon {
  flex-shrink: 0;
  width: 1.30rem;   /* 固定宽度：130px */
  height: 1.30rem;  /* 固定高度：130px */
  background: url('../images/icon-redpacket-coins.png') no-repeat center/contain;
  overflow: hidden;
}

/* 任务卡中间内容区 */
.task-card__content {
  flex: 1;
  min-width: 0;
}

/* 任务标题 */
.task-card__title {
  font-size: 0.30rem;
  color: #222222;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.08rem;
}

/* 任务描述 */
.task-card__desc {
  font-size: 0.24rem;
  color: #b9917e;
  line-height: 1.4;
}

/* 任务卡右侧操作区 */
.task-card__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;      /* 垂直居中 */
  justify-content: center; /* 水平居中 */
}

/* ====== 任务按钮样式（单按钮 + inset box-shadow 双层边框）====== */

:root {
  --claimed-bg: #fdccbe;
  --claimed-border: #fa9a90;
  --claimed-text: #a55850;

  --claimable-bg: #b0f4c5;
  --claimable-border: #83c7ad;
  --claimable-text: #32543f;

  --pending-bg: #eae5e4;
  --pending-border: #b4afab;
  --pending-text: #7c7574;
}

/* 任务按钮：108 × 46px，胶囊形，inset box-shadow 实现内发光双层边框 */
.reward-button {
  --button-bg: #fff;
  --button-border: #ccc;
  --button-text: #333;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.08rem;      /* 固定宽度：108px */
  height: 0.66rem;     /* 固定高度：46px */
  flex: 0 0 0.66rem;
  margin: 0;
  padding: 0 0.76rem;
  border: 2px solid var(--button-border);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 78%);
  font-size: 0.26rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  appearance: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  box-sizing: border-box;
  min-width: auto;
  min-height: auto;
  cursor: pointer;
  box-sizing: border-box;
}

.reward-button:disabled {
  cursor: default;
  opacity: 1;
}

/* 已领取态 */
.reward-button--claimed {
  --button-bg: var(--claimed-bg);
  --button-border: var(--claimed-border);
  --button-text: var(--claimed-text);
}

/* 可领取态 */
.reward-button--claimable {
  --button-bg: var(--claimable-bg);
  --button-border: var(--claimable-border);
  --button-text: var(--claimable-text);
  cursor: pointer;
}

.reward-button--claimable:hover {
  filter: saturate(1.04) brightness(1.01);
  transform: translateY(-1px);
}

.reward-button--claimable:active {
  filter: brightness(0.96);
  transform: translateY(1px) scale(0.985);
}

.reward-button--claimable:focus-visible {
  outline: 3px solid rgb(72 141 255 / 45%);
  outline-offset: 3px;
}

/* 待完成/进行中态 */
.reward-button--pending {
  --button-bg: var(--pending-bg);
  --button-border: var(--pending-border);
  --button-text: var(--pending-text);
}

/* 领取中态 */
.reward-button--claiming {
  --button-bg: var(--claimable-bg);
  --button-border: var(--claimable-border);
  --button-text: var(--claimable-text);
  cursor: wait;
}

/* 加载状态 */
.task-loading {
  text-align: center;
  padding: 1rem 0;
}

.loading-text {
  font-size: 0.28rem;
  color: #ffffff;
  font-weight: 500;
}

/* 空状态 */
.task-empty {
  text-align: center;
  padding: 1rem 0;
}

.empty-text {
  font-size: 0.28rem;
  color: #999999;
}

/* 错误状态 */
.task-error {
  text-align: center;
  padding: 1rem 0;
}

.error-text {
  font-size: 0.28rem;
  color: #E82A34;
  margin-bottom: 0.2rem;
}

.retry-btn {
  font-size: 0.26rem;
  color: #FD4A35;
  background: transparent;
  border: 1px solid #FD4A35;
  border-radius: 0.32rem;
  padding: 0.14rem 0.32rem;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: auto;
  min-height: auto;
}

.retry-btn:hover,
.retry-btn:active {
  background: #FD4A35;
  color: #ffffff;
}

/* 占位提示（其他Tab） */
.task-placeholder {
  text-align: center;
  padding: 2rem 0;
}

.task-placeholder p {
  font-size: 0.28rem;
  color: #CCCCCC;
}

/* 工具类：隐藏元素 */
.hidden {
  display: none !important;
}

/* ====== 邀请好友模块样式 ====== */

/* 邀请好友内容容器（带内边距） */
.invite-container {
  padding: 0.10rem 0.16rem;
}

/* 活动说明Banner区域（点击触发分享弹窗） */
.invite-banner-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 0.16rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border-radius: 0.12rem;
  overflow: hidden;
  transition: transform 150ms ease;
}

.invite-banner-wrap:hover,
.invite-banner-wrap:active {
  transform: scale(0.985);
}

.invite-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.12rem;
}

/* ====== 分享邀请码弹窗内容样式（tw-modal 内部）====== */

/* 弹窗容器 - 透明背景，背景图由 bodyBg 参数设置（tw-modal 自动应用 background-image）
   注意：tw-modal.css 移动端媒体查询用了 width:100% !important，需用同等优先级覆盖 */
.share-invite-modal .tw-modal {
  background: transparent !important;
  box-shadow: none;
  overflow: hidden;
  /* 宽高由 JS 设置为 rem 单位（5.8rem × 9.12rem），匹配图片 437×688 比例 */
}

/* 覆盖 tw-modal.css 移动端的 width:100% !important（需同级别选择器 + !important） */
@media (max-width: 480px) {
  .share-invite-modal .tw-modal {
    width: 5.8rem !important;
    max-width: 5.8rem !important;
    height: 9.12rem !important;
    border-radius: 0.27rem !important; /* 20px → rem */
  }
}

/* 弹窗 body 区域 - 控制 bodyBg 背景图的填充方式
   tw-modal 的 bodyBg 参数会自动设置 background-image 到 .tw-modal-body 上 */
.share-invite-modal .tw-modal-body {
  /* 关键：让背景图 100% 填满弹窗实际尺寸，保持原图比例不变形 */
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding: 0 !important; /* 清除默认padding，由内部 share-modal-content 控制 */
}

/* 关闭按钮 - 容器样式（图标由 JS onOpen 注入 close.png） */
.share-invite-modal .tw-close-btn {
  width: 0.44rem;
  height: 0.44rem;
  top: 0.16rem;
  right: 0.16rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.share-invite-modal .tw-close-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* 内容区域 - 按背景图布局定位（所有元素在 content 中，包括"去邀请"按钮） */
.share-modal-content {
  padding: 3.20rem 0.64rem 0.46rem; /* 顶部留出给背景图的装饰空间 */
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 标题：红色大字 */
.share-modal-title {
  font-size: 0.49rem;
  font-weight: bold;
  color: #f01104;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0.24rem;
  letter-spacing: 0.04rem;
  
}

/* 邀请码展示框：宽圆角胶囊形 + 浅底（匹配图一设计） */
.share-code-box {
  background: linear-gradient(180deg, #FFF9F7 0%, #FFF0EC 100%);
  border: 1px solid #FFE0D8;
  border-radius: 999px;
  padding: 0.24rem 0.48rem;
  margin-bottom: 0.28rem;
  cursor: pointer;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.share-code-box:hover,
.share-code-box:active {
  border-color: #FFB0A0;
  background: #FFF;
  transform: scale(1.01);
}

.share-code-text {
  display: inline-block;
  font-size: 0.38rem;
  font-weight: 900;
  color: #E82A34;
  letter-spacing: 0.06rem;
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.35;
  white-space: nowrap; /* 不换行 */
  word-break: keep-all;
}

/* 规则列表：虚线边框 + 圆角浅底（匹配图一设计） */
.share-rules-list {
  list-style: none;
  margin: 0 auto 0.28rem;
  padding: 0.22rem 0.32rem;
  background: rgba(255, 250, 248, 0.85);
  border: 1px dashed #FFD4CC;
  border-radius: 0.14rem;
  text-align: left;
}

.share-rules-list li {
  font-size: 0.24rem;
  color: #666666;
  line-height: 1.7;
  padding-left: 0.26rem;
  position: relative;
  margin-bottom: 0.04rem;
}

.share-rules-list li:last-child {
  margin-bottom: 0;
}

/* 列表项圆点（橙色小圆点） */
.share-rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.10rem;
  width: 0.10rem;
  height: 0.10rem;
  border-radius: 50%;
  background: #FF9980;
}

/* 规则高亮文字 */
.rule-highlight {
  color: #E82A34;
  font-weight: 600;
}

/* 底部"去邀请"按钮 */
.share-go-btn {
  display: block;
  width: 80%;
  height: 0.80rem;
  font-size: 0.32rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #FF6B5B 0%, #E82A34 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 0.04rem 0.12rem rgba(232, 42, 52, 0.35),
    inset 0 0.02rem 0 rgba(255, 255, 255, 0.25);
  transition: all 120ms ease;
  letter-spacing: 0.06rem;
  min-width: auto;
  min-height: auto;
  -webkit-tap-highlight-color: transparent;
}

.share-go-btn:hover,
.share-go-btn:active {
  transform: scale(1.03);
  box-shadow:
    0 0.06rem 0.16rem rgba(232, 42, 52, 0.45),
    inset 0 0.02rem 0 rgba(255, 255, 255, 0.3);
}

/* 填写邀请码父容器 - 浅粉色背景 */
.invite-code-wrapper {
  background: #FEF3F3;
  padding: 0.16rem; /* 内边距 */
  border-radius: 0.12rem;
  margin-bottom: 0.16rem;
}

/* 填写邀请码区域 - 参考设计图样式 */
.invite-code-section {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 左右布局：输入框在左，按钮在右 */
  gap: 0.12rem;
  padding: 0.06rem 0.10rem; /* 更紧凑的内边距 */
  background: #ffffff; /* 白色背景 */
  border-radius: 0.40rem; /* 较大圆角 */
  border: 2px solid #FF9B8F; /* 浅红色边框 */
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(255, 107, 91, 0.1); /* 轻微阴影 */
}

.invite-code-input {
  flex: 1;
  min-width: 0;
  height: 0.68rem; /* 稍矮一点 */
  padding: 0 0.20rem;
  border: none;
  outline: none;
  font-size: 0.26rem;
  color: #666666; /* 稍浅的文字颜色 */
  background: transparent;
  line-height: 1.4;
}

.invite-code-input::placeholder {
  color: #CCCCCC; /* 浅灰色占位符 */
}

.invite-code-submit-btn {
  flex-shrink: 0;
  height: 0.60rem; /* 与输入框高度协调 */
  padding: 0 0.36rem;
  font-size: 0.28rem;
  color: #ffffff;
  background: linear-gradient(135deg, #FF5A48 0%, #FF3828 100%); /* 鲜艳的红色渐变 */
  border: none;
  border-radius: 0.30rem; /* 圆角（不是完全的胶囊形） */
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: auto;
  min-height: auto;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02rem; /* 字间距稍宽 */
}

.invite-code-submit-btn:hover,
.invite-code-submit-btn:active {
  transform: scale(1.02);
  box-shadow: 0 0.04rem 0.10rem rgba(255, 90, 72, 0.35);
}

.invite-code-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 邀请任务卡列表 - 参考buttons-style-demo.html样式 */
.invite-task-list {
  --action-width: 1.74rem; /* 174px */
  --notch-width: 0.14rem;  /* 14px */
  --notch-depth: 0.08rem;  /* 8px */

  width: 100%;
  padding: 0.1rem;
  display: grid;
  gap: 0.17rem;
  overflow: hidden;
  background: #fff0e8;
  border-radius: 0.20rem;
}

/* 邀请任务卡片外层容器 */
.invite-task-card {
  width: 100%;
  height: 1.60rem; /* 160px */
  position: relative;
  overflow: visible;
  filter:
    drop-shadow(0 0 0.7px rgb(255 255 255 / 100%))
    drop-shadow(0 0 1.2px rgb(255 126 104 / 92%))
    drop-shadow(0 3px 5px rgb(211 67 45 / 30%));
}

/* 邀请任务卡片形状层（带凹槽效果） */
.invite-task-card__shape {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--action-width);
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 96%);
  border-radius: 0.14rem;
  background: #fef4eb;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 92%),
    inset 0 0 18px rgb(255 230 203 / 42%);
  -webkit-mask:
    radial-gradient(
      ellipse var(--notch-width) var(--notch-depth) at calc(100% - var(--action-width)) 0,
      transparent 96%,
      #000 100%
    ),
    radial-gradient(
      ellipse var(--notch-width) var(--notch-depth) at calc(100% - var(--action-width)) 100%,
      transparent 96%,
      #000 100%
    );
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(
      ellipse var(--notch-width) var(--notch-depth) at calc(100% - var(--action-width)) 0,
      transparent 96%,
      #000 100%
    ),
    radial-gradient(
      ellipse var(--notch-width) var(--notch-depth) at calc(100% - var(--action-width)) 100%,
      transparent 96%,
      #000 100%
    );
  mask-composite: intersect;
}

/* 分隔线（从上下凹槽底部开始） */
.invite-task-card__shape::before {
  content: "";
  position: absolute;
  top: var(--notch-depth);
  bottom: var(--notch-depth);
  left: calc(100% - var(--action-width));
  width: 1px;
  z-index: 4;
  background: #efe1d5;
  pointer-events: none;
}

/* 任务卡主体内容区 */
.invite-task-card__main {
  min-width: 0;
  height: 100%;
  padding: 0.14rem;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  border: 0;
  background: transparent;
}

/* 任务卡图标 - 使用 invite-task-icon.png (127×131px) */
.invite-task-card__icon {
  width: 1.27rem;   /* 127px（按实际图片宽度） */
  height: 1.31rem;  /* 131px（按实际图片高度） */
  flex: 0 0 auto;
  display: block;
  border-radius: 0.19rem;
  object-fit: cover;
  box-shadow: 0 2px 5px rgb(190 100 54 / 24%);
  background: url('../images/invite-task-icon.png') no-repeat center/contain;
}

/* 任务卡内容区 */
.invite-task-card__content {
  min-width: 0;
  transform: translateY(0.03rem);
}

/* 任务标题（奖励金额） */
.invite-task-card__title {
  margin: 0 0 0.09rem;
  color: #2e1712;
  font-size: 0.29rem;
  font-weight: 700;
  line-height: 1.2;
}

/* 任务描述 */
.invite-task-card__description {
  margin: 0;
  color: #ff514e;
  font-size: 0.20rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

/* 任务条件 */
.invite-task-card__condition {
  margin: 0.02rem 0 0;
  color: #2e1712;
  font-size: 0.20rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

/* 任务卡操作按钮区域 */
.invite-task-card__action {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  background: transparent;
}

/* 邀请好友任务卡片中的按钮（稍小尺寸） */
.invite-task-card__action .reward-button {
  width: 0.60rem;   /* 100px（比公共样式108px小） */
  height: 0.60rem;  /* 60px（比公共样式46px大一点，但比之前的54px小） */
  line-height: 0.56rem;
  font-size: 0.24rem; /* 24px（比公共样式26px小） */
}

/* ====== 4. Page Sections ====== */

/* 页面根节点 */
.page-red-packet {
  /* background: linear-gradient(180deg, #ff6b35 0%, #ffa726 50%, #fff 100%); */
  min-height: 100vh;
}

/* 头部背景区域 */
.header-bg {
  position: relative;
  background-image: url('../images/header-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 0.20rem;
  padding-left: 0.33rem;
  padding-right: 0.33rem;
  padding-bottom: 0.16rem;
}

.header-content {
  position: relative;
  z-index: 1;
}

/* 信息容器：用户信息 + 登录按钮 */
.user-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.16rem;
}

.user-nickname {
  color: #ffffff;
  font-size: 0.3rem;
  font-weight: 500;
}

/* 登录按钮 */
.login-btn {
  font-size: 0.22rem;
  color: #fff;
  background: transparent;
  border: 1px solid #ffcd9b;
  border-radius: 0.08rem;
  padding: 0.14rem 0.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: auto;
  min-height: auto;
}

.login-btn:hover,
.login-btn:active {
  background: rgba(255, 205, 155, 0.15);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 红包余额/提现入口容器 */
.balance-container {
  width: 100%;
 /* 固定高度：204px */
  background: #ffffff;
  border-radius: 0.12rem;
  padding: 0.20rem 0.32rem;
  box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.06);
}

.balance-header {
  margin-bottom: 0.08rem;
  line-height: 1;
}

.balance-label {
  display: block;
  font-size: 0.27rem;
  color: #000;
  font-weight: 500;
}

.balance-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.12rem 0 0.16rem;
}

.amount-value {
  font-size: 0.64rem;
  color: #e82a34;
  font-weight: bold;
  line-height: 1.2;
}

.withdraw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  font-size: 0.24rem;
  color: #fff;
  background: linear-gradient(135deg, #FD4A35 0%, #FF3223 100%);
  border: none;
  border-radius: 1rem; /* 胶囊形状 */
  padding: 0.14rem 0.32rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: auto;
  min-height: auto;
  flex-shrink: 0;
}

.withdraw-btn:hover,
.withdraw-btn:active {
  transform: scale(1.02);
  box-shadow: 0 0.04rem 0.12rem rgba(255, 86, 39, 0.4);
}

.withdraw-icon {
  width: 0.50rem;
  height: auto;
  display: block;
}

.balance-notice {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  background: #FEF6ED; /* 浅橙色背景 */
  border: 1px solid #FCE4C8; /* 橙色边框 */
  border-radius: 0.08rem;
  padding: 0.1rem 0.14rem;
  margin-top: 0.08rem;
}

.notice-icon {
  width: 0.22rem;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.notice-marquee {
  flex: 1;
  min-width: 0;
  height: 0.29rem; /* 单行公告高度（0.22rem 字号 × 1.3 行高） */
  overflow: hidden;
}

.notice-marquee__track {
  will-change: transform;
}

.notice-marquee__line {
  display: block;
  font-size: 0.22rem;
  color: #666;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-marquee--running .notice-marquee__track {
  animation: notice-marquee-scroll 18s linear infinite;
}

.notice-marquee--paused .notice-marquee__track {
  animation-play-state: paused;
}

@keyframes notice-marquee-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-marquee__track {
    animation: none;
  }
}

/* Banner 横幅（在 header-bg 内） */
.banner-wrap {
  margin-top: 0.16rem;
  margin-bottom: 0.12rem;
  border-radius: 0.12rem;
  overflow: hidden;
}

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

/* 贪玩星球推广（在 header-bg 内） */
.planet-wrap {
  margin-bottom: 0.16rem;
  border-radius: 0.12rem;
  overflow: hidden;
}

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

/* 白色背景内容区域 */
.content-section {
  background: linear-gradient(180deg, #FEFBFA 0%, #ffffff 100%);
  border-radius: 0.24rem 0.24rem 0 0;
  padding: 0.20rem 0.33rem calc(0.20rem + env(safe-area-inset-bottom));
  z-index: 2;
}

/* 红包类型Tab区域（父容器） */
.red-packet-section {
  height: auto; /* 高度自适应 */
  border-radius: 0.16rem; /* 圆角 */
  overflow: hidden; /* 防止子元素溢出圆角 */
  padding-top: 2px;
  padding-left: 2px;
  padding-right: 2px;
  padding-bottom: 0.12rem;
  background: linear-gradient(180deg, #FD4E43 0%, #FE8369 100%);
}

/* 红包类型Tab容器 - 参考方案：grid布局 + 内部子元素方案 */
.red-packet-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  height: 0.82rem; /* 固定高度：62px → 0.82rem */
  overflow: hidden;
  background: var(--color-nav-bg, #feece2); /* 浅米色导航背景 */
  border-radius: 0.2rem 0.2rem 0 0;
}

.tab-item {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  border: none;
  padding: 0;
  color: var(--color-text-primary, #7b3829); /* 未选中：深棕色文字 */
  background: transparent;
  font-family: inherit;
  font-size: 0.26rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 120ms ease;
}

/* 分隔线（未选中状态的右侧竖线）*/
.tab-item::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 51%;
  right: -0.01rem; /* -1px → -0.01rem */
  transform: translateY(-50%);
  width: 0.02rem; /* 2px → 0.02rem */
  height: 0.21rem; /* 23px → 0.31rem */
  background: var(--color-active, #fc4f43);
  transition: opacity 120ms ease;
}

/* 隐藏分隔线的场景：最后一个、选中的、选中项前一个 */
.tab-item:last-child::after,
.tab-item.tab-item--active::after,
.tab-item[aria-selected="true"]::after,
.tab-item.is-before-active::after {
  opacity: 0;
}

/*
 * 选中时的背景层（内部子元素）
 * 通过 radial-gradient 反向圆角形成底部外扩弧形轮廓
 */
.tab-surface {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  background: linear-gradient(
    180deg,
    var(--color-active-start, #fd4e43) 0%,
    var(--color-active-end, #FD4E43) 100%
  );
  border-radius: 0.2rem 0.2rem 0 0; /* 默认：左右上都有圆角 */
}

/* 第一个tab选中：左上无圆角，仅保留右上圆角 */
.tab-item:first-child .tab-surface {
  border-radius: 0 0.2rem 0 0;
}

/* 最后一个tab选中：右上无圆角，仅保留左上圆角 */
.tab-item:last-child .tab-surface {
  border-radius: 0.2rem 0 0 0;
}

/* 选中时显示背景层 */
.tab-item.tab-item--active .tab-surface,
.tab-item[aria-selected="true"] .tab-surface {
  display: block;
}

/* 选中状态样式 */
.tab-item.tab-item--active,
.tab-item[aria-selected="true"] {
  z-index: 3;
  color: #ffffff; /* 白色文字 */
}

/*
 * 弧形效果：通过"反向圆角"形成素材中的底部外扩轮廓
 * 左侧弧形（第一个tab隐藏）
 */
.tab-surface::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -0.19rem; /* -15px → -0.2rem */
  width: 0.2rem; /* 15px → 0.2rem */
  height: 0.2rem; /* 15px → 0.2rem */
  pointer-events: none;
  background: radial-gradient(
    circle at 0 0,
    transparent calc(0.2rem - 1px), /* 比方块小1px，消除缝隙 */
    var(--color-active-end, #FD4E43) 0.2rem /* 与方块同大 */
  );
}

/* 右侧弧形（最后一个tab隐藏）*/
.tab-surface::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -0.19rem; /* -15px → -0.2rem */
  width: 0.2rem; /* 15px → 0.2rem */
  height: 0.2rem; /* 15px → 0.2rem */
  pointer-events: none;
  background: radial-gradient(
    circle at 100% 0,
    transparent calc(0.2rem - 1px), /* 比方块小1px，消除缝隙 */
    var(--color-active-end, #FD4E43) 0.2rem /* 与方块同大 */
  );
}

/* 首尾tab隐藏对应方向的弧形 */
.tab-item:first-child .tab-surface::before,
.tab-item:last-child .tab-surface::after {
  display: none;
}

/* 文字标签层 */
.tab-label {
  position: relative;
  z-index: 3;
  display: grid;
  height: 100%;
  place-items: center;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

/* 键盘焦点可见性 */
.tab-item:focus-visible {
  outline: 0.04rem solid rgba(123, 56, 41, 0.35); /* 3px → 0.04rem */
  outline-offset: -0.05rem; /* -4px → -0.05rem */
}

/* 未选中tab的hover效果（可选）*/
.tab-item:hover:not(.tab-item--active):not([aria-selected="true"]) .tab-label {
  opacity: 0.8;
}

/* 活动倒计时（在 header-bg 内） */
.countdown-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.4;
}

.end-time-text {
  font-size: 0.26rem;
  color: var(--color-text-accent);
  font-weight: 600;
  flex-shrink: 0;
}

.countdown-text {
  font-size: 0.24rem;
  color: var(--color-text-strong);
  font-weight: 500;
  white-space: nowrap;
}

/* ====== 绑定成功确认弹窗 ====== */
.invite-bind-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-bind-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.invite-bind-modal__content {
  position: relative;
  z-index: 1;
  width: 5.60rem;
  max-width: 88vw;
  background: #ffffff;
  border-radius: 0.24rem;
  padding: 0.48rem 0.36rem 0.36rem;
  text-align: center;
  box-shadow:
    0 0.16rem 0.48rem rgba(0, 0, 0, 0.18),
    0 0.04rem 0.12rem rgba(0, 0, 0, 0.1);
  animation: inviteModalIn 250ms ease-out;
}

@keyframes inviteModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(0.20rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 成功图标（绿色圆形勾） */
.invite-bind-modal__icon {
  width: 0.80rem;
  height: 0.80rem;
  margin: 0 auto 0.20rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #52C41A 0%, #389E0D 100%);
  display: grid;
  place-items: center;
}

.invite-bind-modal__icon::after {
  content: "";
  width: 0.36rem;
  height: 0.18rem;
  border-left: 0.06rem solid #ffffff;
  border-bottom: 0.06rem solid #ffffff;
  transform: rotate(-45deg) translateY(-0.02rem);
}

/* 弹窗标题 */
.invite-bind-modal__title {
  font-size: 0.34rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 0.16rem;
  line-height: 1.3;
}

/* 弹窗描述文字 */
.invite-bind-modal__desc {
  font-size: 0.26rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0.32rem;
}

.invite-binder-name,
.invite-reward-amount {
  color: #FF5A48;
  font-weight: 600;
}

/* 确认按钮 */
.invite-bind-modal__confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 0.76rem;
  font-size: 0.30rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #FF5A48 0%, #FF3828 100%);
  border: none;
  border-radius: 0.38rem;
  cursor: pointer;
  box-shadow: 0 0.04rem 0.10rem rgba(255, 90, 72, 0.35);
  transition: all 150ms ease;
  min-width: auto;
  min-height: auto;
}

.invite-bind-modal__confirm-btn:hover,
.invite-bind-modal__confirm-btn:active {
  transform: scale(1.02);
  box-shadow: 0 0.06rem 0.14rem rgba(255, 90, 72, 0.45);
}

/* ====== 4.1 Sidebar Entries（侧边栏悬浮入口）====== */

.sidebar-entries {
  position: fixed;
  z-index: 100;
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding-right: env(safe-area-inset-right);
}

/* 单个侧边栏按钮 - 直接使用图片素材，无背景无动画 */
.sidebar-entry {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 侧边栏图片 */
.sidebar-entry__img {
  display: block;
  width: 1.00rem;   /* 根据实际素材尺寸调整 */
  height: auto;
}




/* ====== 4.2 Rule Modal（活动规则弹窗 - tw-modal 内部样式）====== */

/* tw-modal 容器：红底圆角弹窗（匹配设计图）*/
.rule-tw-modal  {
   background: linear-gradient(180deg, #FF6B4A 0%, #E84A3C 100%) !important;
}

.rule-tw-modal  .tw-modal-body {
  padding: 0 0.1rem 0.2rem;
}
.rule-tw-modal .tw-modal {
 
  border-radius: 0.20rem;
  overflow: hidden;
}

@media (max-width: 480px) {
  .rule-tw-modal .tw-modal {
    width: 6.00rem !important;
    max-width: 6.00rem !important;
    height: auto !important;
    max-height: 85vh !important;
  }
}

/* 规则弹窗内部容器 */
.rule-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

/* 标题：白色大字居中（在红色背景上）*/
.rule-title {
  text-align: center;
  font-size: 0.38rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  padding: 0.30rem 0.40rem 0.24rem;
  letter-spacing: 0.08rem;
}

/* 可滚动内容区：白色圆角卡片（内嵌在红色背景中）*/
.rule-scroll {
  flex: 1;
  min-height: 0;
  max-height: 7.00rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.32rem 0.28rem 0.36rem;
  background: #FDFAF6;
  margin: 0 0.12rem 0.12rem;
  border-radius: 0.14rem;
}

/* 隐藏滚动条但保留功能 */
.rule-scroll::-webkit-scrollbar {
  width: 0.04rem;
}
.rule-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(232, 74, 60, 0.3);
  border-radius: 0.02rem;
}

/* 有序列表样式（匹配设计图）*/
.rule-list {
  list-style: none;
  counter-reset: rule-counter;
  padding: 0;
  margin: 0;
}

.rule-list li {
  position: relative;
  padding-left: 0.36rem;
  font-size: 0.24rem;
  color: #222222;
  line-height: 1.8;
  margin-bottom: 0.16rem;
  counter-increment: rule-counter;
  word-break: break-all;
}

.rule-list li:last-child {
  margin-bottom: 0;
}

/* 红色数字编号 */
.rule-list li::before {
  content: counter(rule-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #E82A34;
  font-weight: 700;
  font-size: 0.26rem;
}

/* 关闭按钮（使用 close.png）*/
.rule-tw-modal .tw-close-btn {
  width: 0.52rem !important;
  height: 0.52rem !important;
  top: 0.10rem !important;
  right: 0.10rem !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 10;
}


/* ====== 4.3 Reward Modal（我的奖励弹窗）====== */

/*
 * 设计理念："克制的节日质感"
 * - 微妙的暖色调层次
 * - 精确的间距系统
 * - 专业而不花哨
 */

/* tw-modal 容器 */
.reward-tw-modal .tw-modal {
  background: transparent !important;
  box-shadow: none;
  overflow: hidden;
}

/* 关键：防止抖动 - 固定高度（参考 share-invite-modal）*/
@media (max-width: 480px) {
  .reward-tw-modal .tw-modal {
    width: 6.80rem !important;
    max-width: 6.80rem !important;
    /* 固定高度，按图片比例 437×382 计算 */
    height: 5.94rem !important;
    min-height: 5.94rem !important;
    max-height: 5.94rem !important;
    border-radius: 0.27rem !important;
  }
}

/* 背景图设置 - 完全参考 share-invite-modal */
.reward-tw-modal .tw-modal-body {
  /* 关键：让背景图 100% 填满弹窗实际尺寸，保持原图比例不变形 */
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding: 0 !important; /* 清除默认padding，由内部容器控制 */
}

/* ====== 内部容器 - 参考分享邀请弹窗的定位方式 ===== */
.reward-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0; /* 清除默认 padding */
}

/* 标题 - 在背景图红色区域内（参考 share-invite-modal 的定位）*/
.reward-title {
  text-align: center;
  font-size: 0.36rem;
  font-weight: 700;
  color: #E82A34;
  line-height: 1.3;
  /* 调整 padding 让标题位于背景图红色标题区域 */
  padding: 0.32rem 0.40rem 0.18rem;
  letter-spacing: 0.06rem;
  text-shadow: 0 0.02rem 0.04rem rgba(180, 30, 20, 0.25);
}

/* 关闭按钮 */
.reward-tw-modal .tw-close-btn {
  width: 0.44rem;
  height: 0.44rem;
  top: 0.16rem;
  right: 0.16rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
.reward-tw-modal .tw-close-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* ====== 卡片列表容器 ===== */
.reward-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0.12rem 0.16rem 0.16rem;
  background: #ffffff;
  border-radius: 0.16rem;
  overflow: hidden;
  margin-top: 0.4rem;
  padding: 0 0.2rem;
}

/* ====== 可滚动区域 - 完全隐藏滚动条 ===== */
.reward-card-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* 在固定高度弹窗内自适应 */
  min-height: 2.00rem;   /* 最小：至少显示2-3条 */
  max-height: 4.20rem;   /* 最大：适配 5.94rem 弹窗高度 */
}

/* 完全隐藏滚动条（兼容所有浏览器）*/
.reward-card-list::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}
.reward-card-list {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

/* ====== 单个奖励卡片 - 精致设计 ===== */
.reward-card {
  display: flex;
  flex-direction: column;
  padding: 0.20rem 0.24rem;
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid #F8F4F0;
  transition: all 180ms ease;
  position: relative;
}

.reward-card:last-child {
  border-bottom: none;
}

/* 悬浮状态 - 微妙的提升感 */
.reward-card:hover {
  background: linear-gradient(135deg, #FFFEFA 0%, #FFF9F5 100%);
}
.reward-card:active {
  transform: scale(0.995);
}

/* ====== 第一行：类型标签 + 时间 ===== */
.reward-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.16rem;
  margin-bottom: 0.10rem;
}

/* 类型标签 - 小圆角 badge */
.reward-card__type-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.21rem;
  font-weight: 500;
  color: #E82A34;
  background: rgba(232, 42, 52, 0.08);
  border-radius: 0.06rem;
  padding: 0.04rem 0.12rem;
  white-space: nowrap;
  line-height: 1.3;
}

/* 时间 - 优雅的辅助信息 */
.reward-card__time {
  flex-shrink: 0;
  font-size: 0.21rem;
  color: #A89080; /* 柔和的金棕色 */
  line-height: 1.4;
  white-space: nowrap;
  font-weight: 400;
  font-variant-numeric: tabular-nums; /* 等宽数字 */
}

/* ====== 第二行：奖励名称 ===== */
.reward-card__name {
  font-size: 0.27rem;
  font-weight: 600;
  color: #2C1810; /* 深棕，比纯黑更温暖 */
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.005rem;
}

/* ====== 状态提示 - 统一风格 ===== */

/* 加载中 */
.reward-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.50rem 0;
  font-size: 0.25rem;
  color: #C5A88E;
  letter-spacing: 0.02rem;
}

/* 空状态 */
.reward-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.80rem 0;
}
.reward-empty p,
.reward-empty__text {
  font-size: 0.25rem;
  color: #D4B8A0;
  font-weight: 400;
}

/* 错误状态 */
.reward-error {
  text-align: center;
  padding: 1.40rem 0;
}
.reward-error p {
  font-size: 0.25rem;
  color: #E86A4A;
  margin-bottom: 0.14rem;
  font-weight: 400;
}
.reward-error__retry {
  font-size: 0.23rem;
  color: #E86A4A;
  background: transparent;
  border: 1px solid #E86A4A;
  border-radius: 0.22rem;
  padding: 0.08rem 0.24rem;
  cursor: pointer;
  transition: all 150ms ease;
}
.reward-error__retry:hover {
  background: #E86A4A;
  color: #ffffff;
}

/* 加载更多 */
.reward-load-more {
  text-align: center;
  padding: 0.16rem 0 0.08rem;
}

.reward-load-more__btn {
  font-size: 0.24rem;
  color: #888888;
  background: #F5F5F5;
  border: none;
  border-radius: 0.28rem;
  padding: 0.12rem 0.40rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reward-load-more__btn:hover,
.reward-load-more__btn:active {
  background: #EEEEEE;
  color: #666666;
}


/* ====== 提现流程弹窗样式（tw-modal 版本，参考 rule-tw-modal 写法）====== */

/*
 * 重要：className 会直接添加到 .tw-modal 元素上
 * 所以 .withdraw-tw-modal 就是 .tw-modal.withdraw-tw-modal（同一元素）
 * 参考 rule-tw-modal 的成功实现方式
 */

/* ====== 弹窗容器基础样式（红色渐变背景）====== */

/* 直接在 .withdraw-tw-modal 上设置背景（同 rule-tw-modal 写法）*/
.withdraw-tw-modal {
  background: linear-gradient(180deg, #FF6B5A 0%, #E84A3C 100%) !important;
  color: #ffffff !important; /* 文字默认白色 */
  box-shadow:
    0 0.16rem 0.48rem rgba(0, 0, 0, 0.18),
    0 0.04rem 0.12rem rgba(0, 0, 0, 0.1) !important;
}

.withdraw-tw-modal {
  border-radius: 0.24rem;
  overflow: hidden;
  /* 宽高由 JS 设置为 rem 单位（5.80rem × auto），匹配设计稿 */
}

/* 移动端媒体查询覆盖（确保宽度生效）*/
@media (max-width: 480px) {
  .withdraw-tw-modal {
    width: 5.80rem !important;
    max-width: 5.80rem !important;
    min-width: 5.80rem !important;
    height: auto !important;
    max-height: 85vh !important;
  }
}

/* ====== 标题区域（.tw-modal-head > h2）====== */

.withdraw-tw-modal .tw-modal-head {
  text-align: center;
  padding: 0.28rem 0.36rem 0.16rem;
  background: transparent;
  border-radius: 0; /* 覆盖默认圆角 */
}

.withdraw-tw-modal .tw-modal-head h2 {
  font-size: 0.34rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: 0.02rem;
  margin: 0;
}

/* ====== 内容区域（.tw-modal-body）====== */

.withdraw-tw-modal .tw-modal-body {
  padding: 0 0.36rem 0.24rem;
  background: transparent;
  text-align: center;
  color: rgba(255, 255, 255, 0.92); /* 默认文字颜色 */
  border-radius: 0;
}

/* 描述文字 */
.withdraw-tw-modal .withdraw-modal__desc {
  font-size: 0.26rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin: 0;
  padding: 0 0.08rem;
}

/* ====== 二维码弹窗专用内容 ===== */

.withdraw-tw-modal .withdraw-qrcode-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 二维码容器 */
.withdraw-tw-modal .withdraw-modal__qrcode-box {
  width: 3.20rem;
  height: 3.20rem;
  margin: 0.16rem auto 0.12rem;
  padding: 0.16rem;
  background: #ffffff;
  border-radius: 0.16rem;
  display: grid;
  place-items: center;
}

.withdraw-tw-modal .withdraw-modal__qrcode-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ====== 按钮区域（.tw-modal-foot）====== */

.withdraw-tw-modal .tw-modal-foot {
  padding: 0.16rem 0.36rem 0.36rem;
  background: transparent;
  gap: 0.20rem; /* 双按钮间距 */
  border-radius: 0; /* 覆盖默认圆角 */
}

/* 单个按钮基础样式覆盖 - 完全覆盖 tw-modal 默认样式 */
.withdraw-tw-modal .tw-btn {
  height: 0.76rem !important;
  font-size: 0.30rem !important;
  font-weight: 600 !important;
  border-radius: 0.38rem !important;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  min-height: auto !important;
  margin: 0 !important; /* 覆盖默认 margin: 0 4px */
  display: inline-flex !important; /* 支持并排布局 */
  align-items: center;
  justify-content: center;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  padding: 0 0.48rem !important; /* 覆盖默认 padding: 9px 24px */
  width: auto !important; /* 覆盖默认宽度 */
}

/* 主要按钮（复制链接、我知道了、确认）- 白底红字 - 必须覆盖 tw-modal 默认的深色背景 */
.withdraw-tw-modal .withdraw-btn-primary,
.withdraw-tw-modal .withdraw-btn-confirm {
  color: #E82A34 !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 0.04rem 0.10rem rgba(232, 42, 52, 0.25) !important;
  /* 覆盖 tw-modal 默认的 hover 样式 */
  background-image: none !important;
}

.withdraw-tw-modal .withdraw-btn-primary:hover,
.withdraw-tw-modal .withdraw-btn-primary:active,
.withdraw-tw-modal .withdraw-btn-confirm:hover,
.withdraw-tw-modal .withdraw-btn-confirm:active {
  transform: scale(1.02);
  box-shadow: 0 0.06rem 0.14rem rgba(232, 42, 52, 0.35) !important;
  background: #ffffff !important; /* 保持白色背景 */
}

/* 取消按钮 - 透明底白字描边 - 覆盖 tw-modal 的 secondary 样式 */
.withdraw-tw-modal .withdraw-btn-cancel {
  color: #ffffff !important;
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: none !important;
  /* 覆盖 tw-modal .tw-btn-secondary 默认样式 */
  background-image: none !important;
}

.withdraw-tw-modal .withdraw-btn-cancel:hover,
.withdraw-tw-modal .withdraw-btn-cancel:active {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* 确认弹窗双按钮布局（并排显示）*/
.withdraw-tw-modal--confirm .tw-modal-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left; /* 覆盖默认居中 */
}

.withdraw-tw-modal--confirm .tw-modal-foot .tw-btn {
  flex: 1;
}

/* ====== 提现池 Sheet 样式（withdraw-tw-modal--pool）======
   复用 .withdraw-tw-modal 的红渐变背景，调整为底部 Sheet 形态：
   - 横向撑满，仅顶部圆角
   - 标题居中、内容左对齐
   - 列表项使用半透明白色卡片，与领取记录弹窗视觉一致
   - 安全区底部内边距，避免被 Home Indicator 遮挡 */

.withdraw-tw-modal--pool {
  border-radius: 0.24rem 0.24rem 0 0 !important;
  min-height: 6.5rem; /* sheet 整体最小高度，避免加载态过于空旷 */
  max-height: 80vh !important;
  /* 覆盖 480px 媒体查询的固定宽度，让 Sheet 横向撑满 */
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 480px) {
  .withdraw-tw-modal--pool {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 80vh !important;
  }
}

/* 标题区域 */
.withdraw-tw-modal--pool .tw-modal-head {
  padding: 0.32rem 0.36rem 0.20rem;
  position: relative;
}

/* 关闭按钮位置（右上角，浅色）*/
.withdraw-tw-modal--pool .tw-close-btn {
  top: 0.24rem;
  right: 0.20rem;
  color: rgba(255, 255, 255, 0.85);
}

.withdraw-tw-modal--pool .tw-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* 内容区域：允许滚动、左对齐、最小高度防拖开闪动 */
.withdraw-tw-modal--pool .tw-modal-body {
  padding: 0 0.24rem 0.24rem;
  text-align: left;
  min-height: 5.0rem; /* 与各状态块统一，避免加载→数据撑开跳变 */
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

/* 隱藏滚动条 */
.withdraw-tw-modal--pool .tw-modal-body::-webkit-scrollbar {
  display: none;
}
.withdraw-tw-modal--pool .tw-modal-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 底部安全区（弹窗有 btns 时生效）*/
.withdraw-tw-modal--pool .tw-modal-foot {
  padding: 0.16rem 0.36rem calc(0.24rem + env(safe-area-inset-bottom, 0));
}

/* 池子列表容器 */
.withdraw-pool-list {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-height: 5.0rem; /* 与 body/loading/empty 统一，避免内容渲染后高度跳变 */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 单个池子卡片 */
.pool-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.16rem;
  padding: 0.20rem 0.24rem;
  display: flex;
  align-items: center;
  gap: 0.20rem;
  position: relative;
}

/* 禁用态（余额不足）*/
.pool-item--disabled {
  opacity: 0.6;
}

/* 左侧图标（1.3rem × 1.3rem，按设计稿）*/
.pool-item__icon {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pool-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 中间内容区 */
.pool-item__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
}

/* 金额 + 标签同一行 */
.pool-item__row {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  flex-wrap: wrap;
}

/* 金额 */
.pool-item__amount {
  font-size: 0.40rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* 标签（还差 N 元提现 / 可提现）*/
.pool-item__tag {
  display: inline-block;
  font-size: 0.20rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.02rem 0.14rem;
  border-radius: 0.16rem;
  width: fit-content;
  white-space: nowrap;
  line-height: 1.5;
}

/* 达标态标签（可提现）*/
.pool-item__tag--ok {
  color: #fff5d6;
  background: rgba(255, 213, 0, 0.35);
}

/* 池子名称 */
.pool-item__name {
  font-size: 0.24rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

/* 右侧「提现 >」按钮 */
.pool-item__action {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #ffe5b4;
  font-size: 0.26rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.12rem 0.16rem;
  min-width: 1rem;
  min-height: 0.60rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.pool-item__action:hover,
.pool-item__action:active {
  color: #ffffff;
  text-shadow: 0 0 0.08rem rgba(255, 255, 255, 0.4);
}

/* 禁用态按钮（余额不足）*/
.pool-item__action--disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  pointer-events: none;
}

/* 加载态 */
.withdraw-pool-loading {
  text-align: center;
  padding: 0.60rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.26rem;
  min-height: 5.0rem; /* 与 list/empty 统一，避免加载→数据撑开跳变 */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 错误态 */
.withdraw-pool-error {
  text-align: center;
  padding: 0.60rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.26rem;
  min-height: 5.0rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 空数据 */
.withdraw-pool-empty {
  text-align: center;
  padding: 0.60rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.26rem;
  min-height: 5.0rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 移动端窄屏适配（320px~360px）*/
@media (max-width: 360px) {
  .pool-item {
    padding: 0.16rem 0.20rem;
    gap: 0.16rem;
  }
  .pool-item__icon {
    width: 1.0rem;
    height: 1.0rem;
  }
  .pool-item__amount {
    font-size: 0.36rem;
  }
  .pool-item__row {
    gap: 0.10rem;
  }
  .pool-item__action {
    font-size: 0.24rem;
    padding: 0.10rem 0.12rem;
  }
}


/* ====== 提现梯度选择弹窗样式（withdraw-tw-modal--amount）======
   叠加在提现池 Sheet 上方，居中弹窗，复用红渐变主题：
   - 顶部展示池名与当前可提余额
   - 中部 3 列梯度按钮网格，余额不足的梯度置灰
   - 底部提示文案说明按梯度分次提现规则 */

.withdraw-tw-modal--amount .tw-modal-body {
  padding: 0.04rem 0.24rem 0.20rem;
  text-align: left;
}

/* 梯度按钮网格（3 列）*/
.withdraw-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.16rem;
}

/* 可选梯度按钮（最小热区 0.88rem ≈ 44px）*/
.amount-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0.88rem;
  padding: 0.12rem 0;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-radius: 0.12rem;
  color: #ffffff;
  font-size: 0.30rem;
  font-weight: 600;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.amount-item:hover,
.amount-item:active {
  background: #ffffff;
  color: #e82a34;
}

/* 置灰态（余额不足的梯度）*/
.amount-item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* 提示文案 */
.withdraw-amount__tip {
  font-size: 0.22rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0.20rem 0 0;
}

/* 二次确认弹窗中的提现金额展示 */
.withdraw-confirm-amount {
  text-align: center;
  font-size: 0.56rem;
  font-weight: 700;
  color: #ffe5b4;
  line-height: 1.2;
  margin-bottom: 0.18rem;
}

/* 窄屏适配（320px~360px）*/
@media (max-width: 360px) {
  .withdraw-amount-grid {
    gap: 0.12rem;
  }
  .amount-item {
    min-height: 0.84rem;
    font-size: 0.28rem;
  }
}


/* ====== 领取记录弹窗样式（复用 withdraw-tw-modal 红色渐变背景）====== */

/* 内容区域覆盖：左对齐 + 固定最小高度防止抖动 */
.withdraw-tw-modal--record .tw-modal-body {
  text-align: left;
  padding: 0 0.36rem 0.16rem;
  min-height: 4.50rem; /* 最小高度，保证加载中/空数据时不抖动 */
  max-height: 6.50rem;
  overflow: hidden;
}

/* 记录列表容器 */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 4.34rem; /* 与 body min-height 配合，少量数据也撑满 */
  max-height: 5.60rem;
  padding: 0.04rem 0;
}

/* 隱藏滚动条 */
.record-list::-webkit-scrollbar {
  display: none;
}
.record-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 单条记录卡片 */
.record-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.12rem;
  padding: 0.18rem 0.24rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

/* 第一行：来源 + 时间 */
.record-item__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.16rem;
}

.record-item__source {
  font-size: 0.28rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-item__time {
  flex-shrink: 0;
  font-size: 0.22rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 第二行：红包类型 */
.record-item__type {
  font-size: 0.24rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}

/* 加载中状态 */
.record-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.34rem; /* 与 body min-height 配合，撑满内容区 */
  font-size: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
}

/* 空状态 */
.record-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.34rem; /* 与 body min-height 配合，撑满内容区 */
}

.record-empty p {
  font-size: 0.26rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
  margin: 0;
}


/* ====== 抢红包全屏视图样式 ====== */

/*
 * 设计稿参考：独立页面风格
 * 布局：固定标题栏 + 可滚动内容区
 * 配色：白色背景 + 橙红色主题色
 */

/* 全屏视图容器 */
.grab-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 显示状态 */
.grab-fullscreen:not(.hidden) {
  animation: grabFadeIn 250ms ease-out;
}

@keyframes grabFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== 标题栏（基于设计稿：白色背景 + 黑色文字）===== */
.grab-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.28rem 0.32rem;
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #EEEEEE;
  z-index: 10;
  flex-shrink: 0;
  position: relative;
}

/* 返回按钮 - 使用图片素材 */
.grab-header__back {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.12rem 0.16rem;
  margin-left: -0.08rem;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  min-width: auto;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1 / 2;
}

/* 返回图标 */
.grab-header__back img {
  width: 0.36rem;
  height: 0.36rem;
  display: block;
  object-fit: contain;
}

.grab-header__back:hover,
.grab-header__back:active {
  opacity: 0.6;
}

/* 领取记录按钮 */
.grab-header__record {
  background: transparent;
  border: none;
  color: #333333;
  font-size: 0.28rem;
  cursor: pointer;
  padding: 0.12rem 0.20rem;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  min-width: auto;
  min-height: auto;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 3 / 4;
}

.grab-header__record:hover,
.grab-header__record:active {
  opacity: 0.7;
}

/* 标题 - Grid 自动居中 */
.grab-header__title {
  font-size: 0.38rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin: 0;
  letter-spacing: 0.02rem;
  white-space: nowrap;
  grid-column: 2 / 3;
}

/* ====== 内容区 ====== */
.grab-content {
  background-color: #fff;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.20rem 0.24rem calc(0.20rem + env(safe-area-inset-bottom));
}

/* 隐藏滚动条但保留功能 */
.grab-content::-webkit-scrollbar {
  display: none;
}
.grab-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ====== 次数提示栏（基于设计稿）===== */
.chance-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.24rem 0.2rem;
  margin-bottom: 0.16rem;
}

/* 刷新按钮 - 图片图标 + 文字（基于设计稿） */
.chance-bar__refresh {
  background: transparent;
  border: none;
  color: #666666;
  font-size: 0.26rem;
  cursor: pointer;
  padding: 0.08rem 0.12rem;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  min-width: auto;
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 0.08rem;
}

/* 刷新图标 */
.chance-bar__refresh img {
  width: 0.32rem;
  height: 0.32rem;
  display: block;
  object-fit: contain;
}

/* 刷新文字 */
.chance-bar__refresh span,
.chance-bar__refresh:not(:has(img))::after {
  content: '刷新';
  font-size: 0.26rem;
  color: #666666;
  letter-spacing: 0.02rem;
}

.chance-bar__refresh:hover,
.chance-bar__refresh:active {
  opacity: 0.6;
}

.chance-bar__refresh:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ====== 红包卡片列表（基于设计稿：背景图片 + 绝对定位文字）===== */
.packet-list {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding-top: 0.16rem;
}

/* 消息行容器（头像 + 内容） */
.packet-row {
  display: flex;
  gap: 0.20rem;
  align-items: flex-start;
  width: 100%;
}

/* 头像 */
.packet-avatar {
  flex: none;
  width: 1.00rem;
  height: 1.00rem;
  object-fit: contain;
  border-radius: 50%;
  background: #f3f4f3;
  box-shadow: 0 0 0 5px rgba(243, 244, 243, 0.88);
}

/* 消息内容区 */
.packet-content {
  flex: 1;
  min-width: 0;
  max-width: 7.20rem; /* 约 408px @ 375px 设计稿 */
}

/* 发送人名称 */
.packet-sender {
  height: 0.40rem;
  padding-left: 0.06rem;
  color: #b9b9b9;
  font-size: 0.30rem;
  font-weight: 700;
  line-height: 0.40rem;
  margin-bottom: 0.08rem;
}

/*
 * 红包卡片（核心组件）
 * - 使用背景图片作为美术底图
 * - 所有文字通过绝对定位叠加在底图上
 * - 支持响应式（Container Queries）
 */

.packet-card {
  position: relative;
  container-type: inline-size;
  width: min(7.20rem, 100%);
  aspect-ratio: 992 / 311; /* 固定宽高比，与设计稿一致 */
  overflow: visible;
  color: #fff8dc;
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 移除 hover/active 效果 */

.packet-card:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* 背景图片层 */
.packet-card__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

/*
 * 文字层（绝对定位 + Container Queries 响应式字体大小）
 * 位置百分比基于设计稿 (992×311)
 */

.packet-card__amount,
.packet-card__status,
.packet-card__type,
.packet-card__time {
  position: absolute;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0.02rem 0.04rem rgba(157, 74, 17, 0.18);
}

/* 金额位置：左上区域 */
.packet-card__amount {
  top: 11.5%;
  right: 4%;
  left: 21.2%;
  font-size: 0.28rem;
  font-size: 5.4cqw; /* Container Query 单位 */
  font-weight: 500;
  line-height: 1.1;
}

/* 状态位置：金额下方 */
.packet-card__status {
  top: 35.2%;
  right: 4%;
  left: 21.2%;
  font-size: 0.24rem;
  font-size: 4.6cqw; /* 缩小状态文字 */
  font-weight: 600;
  line-height: 1.1;
}

/* 类型位置：底部左侧 */
.packet-card__type {
  right: 48%;
  bottom: 7.5%;
  left: 4%;
  font-size: 0.26rem;
  font-size: 4.9cqw;
  font-weight: 600;
  line-height: 1.1;
}

/* 时间位置：底部右侧 */
.packet-card__time {
  right: 3.4%;
  bottom: 7.5%;
  max-width: 52%;
  font-size: 0.24rem;
  font-size: 4.45cqw;
  font-weight: 600;
  line-height: 1.1;
  text-align: right;
}

/* ====== 状态样式变体 ====== */

/* 已抢完态 */
.packet-card--claimed {
  opacity: 0.75;
}
.packet-card--claimed .packet-card__status {
  opacity: 0.85;
}

/* 可领取态 - 无特殊动画 */
.packet-card--claimable {
  /* 静态状态，无呼吸效果 */
}

/* ====== 加载/空/错误状态 ====== */
.grab-loading,
.grab-empty,
.grab-error {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.28rem;
  color: #999999;
}

.grab-error__retry {
  margin-top: 0.20rem;
  padding: 0.14rem 0.32rem;
  background: transparent;
  border: 1px solid #E82A34;
  color: #E82A34;
  border-radius: 0.24rem;
  cursor: pointer;
  font-size: 0.26rem;
  transition: all 150ms ease;
  min-width: auto;
  min-height: auto;
}

.grab-error__retry:hover,
.grab-error__retry:active {
  background: #E82A34;
  color: #ffffff;
}

/* ====== Banner 入口增强样式 ====== */
.banner-wrap[role="button"] {
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
}

.banner-wrap[role="button"]:hover,
.banner-wrap[role="button"]:active {
  transform: scale(0.985);
  filter: brightness(1.02);
}

.banner-wrap[role="button"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 0.04rem;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 91, 0.6), transparent);
  animation: bannerShine 2s ease-in-out infinite;
}

@keyframes bannerShine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* 焦点可见性（键盘导航） */
.banner-wrap[role="button"]:focus-visible {
  outline: 0.04rem solid #E82A34;
  outline-offset: 0.04rem;
}


/* ====== 抢红包结果弹窗样式（Variant A：沉浸式全屏） ====== */

/*
 * 设计稿参考：
 * 1. red-packet-linkage-prototype.html (Variant A) - 桌面原型
 * 2. red-packet-detail-750-preview.html - 750px 移动端设计基准
 *
 * 750px 设计基准规则：
 * - 设计稿宽度：750px
 * - 换算规则：1rem = 100px（通过 rem.js 自动适配）
 * - 示例：设计稿上 116px => CSS 写 1.16rem
 */

/* 详情层容器 */
.grab-detail-layer {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0; /* 750px 版本：全屏无内边距 */
  background: rgba(28, 24, 22, 0.5);
  backdrop-filter: blur(5px);
}

.grab-detail-layer.hidden {
  display: none !important;
}

/* 详情面板（750px 基准：全屏） */
.grab-detail-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  width: 100%; /* 750px 版本：全宽 */
  height: 100%; /* 750px 版本：全高，最小 14.82rem */
  min-height: 14.82rem;
  color: #45403e; /* --text-main */
  background: #ffffff;
  border-radius: 0; /* 750px 版本：无圆角 */
  box-shadow: none; /* 全屏无需阴影 */
}

/* ====== 详情头部（红色） - 750px 基准 ====== */
.grab-detail-hero {
  position: relative;
  z-index: 2; /* 层级提升 */
  flex: none;
  height: 1.28rem; /* 750px 设计稿：128px */
  color: #ffffff;
  background: #ef3f34; /* --packet-red */
}

.grab-detail-hero::after {
  content: "";
  position: absolute;
  right: -0.2rem;
  bottom: -0.54rem; /* 750px：54px 下探 */
  left: -0.2rem;
  height: 1.08rem; /* 108px 椭圆高度 */
  border-radius: 0 0 50% 50%;
  background: #ef3f34;
}

/* 关闭按钮（750px：56×56px）*/
.grab-detail-close {
  position: absolute;
  z-index: 4;
  top: 0.34rem; /* 34px */
  right: 0.28rem; /* 28px */
  display: grid;
  width: 0.56rem; /* 56px */
  height: 0.56rem; /* 56px */
  padding: 0;
  border: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  font-size: 0.42rem; /* 42px */
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  min-width: auto;
  min-height: auto;
}

.grab-detail-close:hover,
.grab-detail-close:active {
  color: rgba(255, 255, 255, 0.9);
}

/* 可滚动内容区 */
.grab-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条但保留功能 */
.grab-detail-scroll::-webkit-scrollbar {
  display: none;
}
.grab-detail-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ====== 摘要区域（红包图标 + 信息） - 750px 基准 ====== */
.grab-detail-summary {
  padding: 0.67rem 0.24rem 0.24rem; /* 750px：67px 24px 24px */
  text-align: center;
}

/* 发送人信息（750px：头像 58px）*/
.grab-sender {
  display: flex;
  gap: 0.12rem; /* 12px */
  align-items: center;
  justify-content: center;
  min-height: 0.58rem; /* 58px */
  font-size: 0.28rem; /* 28px */
  font-weight: 700;
  line-height: 1;
}

.grab-sender img {
  width: 0.58rem; /* 58px */
  height: 0.58rem; /* 58px */
  object-fit: contain;
  border-radius: 50%;
  background: #f3f4f3;
  box-shadow: 0 0 0 0.04rem rgba(243, 244, 243, 0.9); /* 750px：有阴影 */
}

.grab-sender strong {
  color: #ff5a50; /* --packet-red-light */
}

/* 祝福语（750px）*/
.grab-wish {
  margin: 0.12rem 0 0.22rem; /* 12px 0 22px */
  color: #cec7c3;
  font-size: 0.26rem; /* 26px */
  line-height: 1.35;
}

/*
 * CSS 信封图标（750px：116×142px）
 * 纯 CSS 实现，无图片
 */
.envelope-icon {
  position: relative;
  width: 1.16rem; /* 116px */
  height: 1.42rem; /* 142px */
  margin: 0 auto 0.26rem; /* 0 auto 26px */
  border-radius: 0.12rem; /* 12px */
  background: linear-gradient(155deg, #ff5f55, #dc2825); /* 750px 颜色微调 */
  box-shadow:
    inset 0 0.02rem 0 rgba(255, 255, 255, 0.28), /* 2px */
    0 0.12rem 0.26rem rgba(213, 50, 41, 0.14); /* 12px 26px */
}

/* 信封盖（750px：62px 高度）*/
.envelope-icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.62rem; /* 62px */
  border-radius: 0.12rem 0.12rem 52% 52%;
  background: linear-gradient(#ff7065, #f3433d);
  box-shadow: 0 0.03rem 0 rgba(147, 29, 27, 0.25); /* 3px */
}

/* ¥ 符号圆圈（750px：50×50px）*/
.envelope-icon::after {
  content: "¥";
  position: absolute;
  z-index: 2;
  top: 0.47rem; /* 47px */
  left: 50%;
  display: grid;
  width: 0.5rem; /* 50px */
  height: 0.5rem; /* 50px */
  transform: translateX(-50%);
  border: 0.02rem solid #eb9a1b; /* 2px，颜色微调 */
  border-radius: 50%;
  place-items: center;
  color: #ef3f34; /* 750px：更红 */
  background: #ffd959; /* 微调黄色 */
  font-size: 0.31rem; /* 31px */
  font-weight: 800;
  line-height: 1;
}

/* 奖品名称（750px：34px 字体）*/
.grab-prize-name {
  overflow: hidden;
  max-width: 6.5rem; /* 650px */
  margin: 0 auto;
  color: #d5a05e; /* --packet-gold */
  font-size: 0.34rem; /* 34px */
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 详情状态文字（750px：28px）*/
.grab-detail-status {
  margin-top: 0.10rem; /* 10px */
  color: #ff5a50; /* --packet-red-light */
  font-size: 0.28rem; /* 28px */
  font-weight: 600;
  line-height: 1.3;
}

/* ====== 领取按钮 - 750px 基准（248×76px） ====== */
.claim-button {
  min-width: 2.48rem; /* 248px */
  height: 0.76rem; /* 76px */
  margin-top: 0.20rem; /* 20px */
  padding: 0 0.34rem; /* 0 34px */
  border: 0;
  border-radius: 99rem; /* 胶囊形 */
  color: #ffffff;
  background: linear-gradient(135deg, #ff6257, #ef3f34); /* 750px 微调 */
  box-shadow: 0 0.14rem 0.34rem rgba(239, 63, 52, 0.24); /* 14px 34px */
  cursor: pointer;
  font-size: 0.27rem; /* 27px */
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  min-width: auto;
  min-height: auto;
}

.claim-button:hover,
.claim-button:active {
  transform: scale(0.98);
}

.claim-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ====== 中奖名单区域 - 750px 基准 ====== */
.record-column {
  /* 包装容器 */
}

.record-summary {
  margin: 0 0.22rem; /* 22px */
  padding: 0.15rem 0 0.16rem; /* 15px 0 16px */
  border-bottom: 0.02rem solid #dfdcda; /* 2px */
  color: #c2b2a8; /* 750px 微调 */
  font-size: 0.22rem; /* 22px */
  line-height: 1.4;
}

.recipient-list {
  margin: 0;
  padding: 0 0.22rem calc(0.58rem + env(safe-area-inset-bottom)); /* 750px：安全区域适配 */
  list-style: none;
}

/* 单条中奖记录（750px：96px 高度）*/
.recipient {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.20rem; /* 20px */
  align-items: center;
  min-height: 0.96rem; /* 96px */
  border-bottom: 0.02rem solid #e8e4e1; /* --divider，2px */
}

.recipient:last-child {
  border-bottom: none;
}

.recipient-name {
  overflow: hidden;
  color: #4b4643; /* 750px 微调 */
  font-size: 0.25rem; /* 25px */
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-time {
  margin-top: 0.08rem; /* 8px */
  color: #c5bfbb;
  font-size: 0.17rem; /* 17px */
  line-height: 1.2;
}

.recipient-prize {
  max-width: 2.9rem; /* 290px */
  overflow: hidden;
  color: #4b4643;
  font-size: 0.25rem; /* 25px */
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ====== 样式预留区域（如需添加新组件可在此扩展） ====== */

/* Loading 状态 */
.detail-loading-state {
  display: grid;
  min-height: 8.12rem; /* 260px */
  place-items: center;
  color: #aaa19c;
  font-size: 0.26rem; /* 13px */
}


/* ====== 5. Utilities & Accessibility ====== */
