/* =========================================================
   LuckyRed · 阶梯任务奖励 · 天降红包
   设计语言:东南亚娱乐活动页 · 红金喜庆 + 大厂级克制排版
   移动端正屏优先,最大宽度 448px 居中,窄屏无横向溢出
   ========================================================= */

:root {
  /* 品牌色 */
  --red-1: #8e0f1c;
  --red-2: #b3121f;
  --red-3: #d81f2a;
  --red-deep: #5b0710;
  --gold-1: #ffe08a;
  --gold-2: #f5c542;
  --gold-3: #e0a021;
  --gold-deep: #a9761a;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --ink: #2a1416;
  --ink-2: #6b4b4e;
  --ink-3: #9a8082;
  --line: rgba(140, 30, 40, 0.1);
  --ok: #1f9d63;
  --lock: #b9a9aa;

  /* 尺寸节奏(4/8) */
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --gap: 14px;
  --pad: 16px;

  /* 阴影(分层,克制) */
  --sh-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 18px rgba(88, 8, 16, 0.08);
  --sh-float: 0 10px 30px rgba(88, 8, 16, 0.22);
  --sh-gold: 0 6px 16px rgba(224, 160, 33, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden 属性最高优先级:防止类选择器的 display 覆盖 UA 的 [hidden]{display:none}
   (影响 加入按钮 / 已加入徽章 / 天降锁层 / 弹窗 / toast 的显隐) */
[hidden] { display: none !important; }

/* 统一键盘可见焦点环(仅键盘导航时出现,不干扰鼠标点击) */
:focus-visible { outline: none; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -10%, #a6142099 0%, transparent 60%),
    radial-gradient(90% 50% at 100% 20%, #e0a02133 0%, transparent 55%),
    linear-gradient(180deg, var(--red-1) 0%, var(--red-deep) 60%, #3a040c 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; fill: currentColor; }
.coin { color: var(--gold-2); }

/* ============ 手机容器 ============ */
.phone {
  max-width: 448px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #7c0d18 0%, #6a0a14 30%, #4d0710 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

.body { padding: var(--pad) var(--pad) 40px; position: relative; z-index: 2; }

/* ============ 头图 Hero ============ */
.hero {
  position: relative;
  padding: 26px 20px 30px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #e23b2e 0%, #b3121f 42%, #7c0d18 100%);
  border-bottom: 3px solid var(--gold-3);
}
.hero__glow {
  position: absolute; inset: -40% -20% auto -20%; height: 240px;
  background: radial-gradient(50% 60% at 50% 30%, rgba(255, 224, 138, 0.55), transparent 70%);
  pointer-events: none;
}
.hero__lanterns span {
  position: absolute; top: 14px; width: 26px; height: 34px; border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #ff5a4d, #c9101c);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}
.hero__lanterns span::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; width: 3px; height: 10px;
  background: var(--gold-2); transform: translateX(-50%);
}
.hero__lanterns span:first-child { left: 16px; animation: sway 3.6s ease-in-out infinite; }
.hero__lanterns span:last-child { right: 16px; animation: sway 3.6s ease-in-out infinite reverse; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.hero__brand { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--red-deep);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  padding: 4px 12px; border-radius: 999px;
  box-shadow: var(--sh-gold);
}
.hero__badge .ic { color: var(--red-2); }

.hero__title {
  position: relative; z-index: 2;
  margin-top: 14px;
  font-size: clamp(28px, 8.5vw, 36px);
  font-weight: 800; line-height: 1.15; letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(120, 6, 14, 0.6), 0 6px 18px rgba(0, 0, 0, 0.3);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, #fff2c8, var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 0.62em;
  filter: drop-shadow(0 2px 3px rgba(90, 40, 0, 0.35));
}
.hero__sub {
  position: relative; z-index: 2;
  margin-top: 8px; font-size: 13px; color: #ffe6c9;
}
.hero__sub b { color: var(--gold-1); font-weight: 800; }

/* 倒计时 */
.countdown {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; padding: 7px 14px;
  background: rgba(60, 4, 10, 0.42);
  border: 1px solid rgba(255, 224, 138, 0.35);
  border-radius: 999px; color: #ffe6c9; font-size: 13px;
  backdrop-filter: blur(4px);
}
.countdown .countdown__label { margin: 0 4px 0 2px; color: #ffd7bb; }
.countdown__seg {
  min-width: 26px; padding: 2px 5px; border-radius: 6px;
  background: linear-gradient(180deg, #3a040c, #260309);
  color: var(--gold-1); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: 14px; text-align: center; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}
.countdown i { font-style: normal; color: var(--gold-2); font-weight: 700; padding: 0 1px; }

/* 加入活动按钮 */
.btn-join {
  position: relative; z-index: 2;
  display: block; width: 100%; max-width: 300px; margin: 20px auto 0;
  border: 0; cursor: pointer; border-radius: 16px; padding: 12px 16px;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
  color: var(--red-deep); box-shadow: var(--sh-gold), 0 0 0 3px rgba(255, 255, 255, 0.15);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  animation: breathe 2.4s ease-in-out infinite;
}
.btn-join:active { transform: scale(0.97); }
.btn-join__txt { display: block; font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.btn-join__hint { display: block; font-size: 11px; font-weight: 600; opacity: 0.72; margin-top: 1px; }
@keyframes breathe {
  0%, 100% { box-shadow: var(--sh-gold), 0 0 0 3px rgba(255, 255, 255, 0.12); }
  50% { box-shadow: 0 8px 24px rgba(224, 160, 33, 0.6), 0 0 0 6px rgba(255, 224, 138, 0.22); }
}
.joined-badge {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 18px auto 0; padding: 9px 18px; border-radius: 999px;
  background: rgba(31, 157, 99, 0.16); border: 1px solid rgba(120, 240, 180, 0.4);
  color: #b8ffd8; font-size: 14px; font-weight: 700;
}
.joined-badge .ic { color: #7bf5b3; }

/* ============ 通用卡片 ============ */
.card {
  background: linear-gradient(180deg, var(--paper), var(--cream));
  border-radius: var(--r-lg);
  padding: var(--pad);
  margin-top: var(--gap);
  box-shadow: var(--sh-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 12px;
}
.sec-title > span { position: relative; padding-left: 12px; }
.sec-title > span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, var(--red-3), var(--gold-3));
}
.sec-title em, .sec-title__em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.sec-title--plain { color: #fff2df; }
.sec-title--plain > span::before { background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); }
.sec-title--plain em { color: #ffcfa8; }
.mock-tag {
  background: rgba(216, 31, 42, 0.1); color: var(--red-2);
  padding: 2px 8px; border-radius: 999px; font-weight: 700 !important;
}
.sec-desc { font-size: 12.5px; color: var(--ink-2); margin: -4px 0 12px; }

/* ============ 活动目的 ============ */
.purpose__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.purpose__list li {
  list-style: none; text-align: center; padding: 12px 6px;
  background: linear-gradient(180deg, #fff, #fff6e8);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.purpose__ic {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px; font-size: 22px; color: #fff;
  margin-bottom: 7px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.purpose__no {
  position: absolute; top: -6px; left: -6px;
  width: 19px; height: 19px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: var(--red-deep); font-size: 11px; font-weight: 900; font-style: normal;
  display: grid; place-items: center;
  border: 1.5px solid #fff; box-shadow: 0 2px 4px rgba(169, 118, 26, 0.4);
}
.pi-bind { background: linear-gradient(135deg, #ff7a59, #d81f2a); }
.pi-pay { background: linear-gradient(135deg, #ffc24b, #e0a021); }
.pi-ref { background: linear-gradient(135deg, #34d07a, #159d5a); }
.purpose__list b { display: block; font-size: 13.5px; font-weight: 800; }
.purpose__list small { display: block; font-size: 11px; color: var(--ink-2); line-height: 1.4; margin-top: 3px; }
.purpose__list small em { font-style: normal; color: var(--red-2); font-weight: 800; }
.purpose__foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; padding: 9px 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.16), rgba(216, 31, 42, 0.1));
  border: 1px dashed rgba(224, 160, 33, 0.5);
  font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.4;
}
.purpose__foot .ic { color: var(--gold-3); flex: 0 0 auto; }
.purpose__foot b { color: var(--red-2); font-weight: 900; }

/* ============ 进度总览 ============ */
.progress__top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.progress__num { font-size: 30px; font-weight: 900; color: var(--red-2); font-variant-numeric: tabular-nums; }
.progress__den { font-size: 13px; color: var(--ink-2); margin-left: 4px; }
.progress__amount {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 18px; font-weight: 800; color: var(--gold-deep); font-variant-numeric: tabular-nums;
}
.progress__amount .coin { font-size: 20px; }
.progress__amt-total { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.progress__bar {
  height: 12px; border-radius: 999px; overflow: hidden;
  background: #f0e2cf; box-shadow: inset 0 1px 3px rgba(120, 60, 20, 0.2);
}
.progress__bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-2), var(--red-3));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(224, 160, 33, 0.6);
}
.progress__note { font-size: 12px; color: var(--ink-2); margin-top: 8px; text-align: center; }

/* ============ 我的数据 ============ */
.mydata__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.stat-cell {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff, #fff5e6); border: 1px solid var(--line);
}
.stat-cell__ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--red-3), var(--red-1));
}
.stat-cell__ic.g { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
.stat-cell__ic.b { background: linear-gradient(135deg, #34d07a, #159d5a); }
.stat-cell__ic.p { background: linear-gradient(135deg, #e0864a, #b3541f); }
.stat-cell__body { min-width: 0; flex: 1; }
.stat-cell__label { font-size: 11px; color: var(--ink-3); }
.stat-cell__val { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-cell__plus {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(216, 31, 42, 0.12); color: var(--red-2); font-size: 17px; font-weight: 800;
  display: grid; place-items: center; transition: transform 0.1s;
}
.stat-cell__plus:active { transform: scale(0.9); }
.stat-cell__plus:disabled { opacity: 0.35; cursor: not-allowed; }
.stat-cell__ctrl { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.stat-cell__input {
  width: 52px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-weight: 700; text-align: center; color: var(--ink); background: #fff;
  font-variant-numeric: tabular-nums; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-cell__input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.25); }
.stat-cell__unit { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-left: -2px; }
.mydata__tip { font-size: 11.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.link-reset {
  border: 0; background: none; color: var(--red-2); font-size: 11.5px; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 0 2px; margin-left: 4px;
}

/* ============ 平台绑定 ============ */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.plat {
  position: relative; border: 0; cursor: pointer; text-align: center;
  padding: 9px 4px 8px; border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff4e3); border: 1px solid var(--line);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.plat:active { transform: scale(0.94); }
.plat__logo {
  width: 40px; height: 40px; margin: 0 auto 5px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 21px;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.14);
}
.plat__name { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat__cat { display: block; font-size: 9px; color: var(--ink-3); }
.plat--bound { background: linear-gradient(180deg, #f2fff8, #e6fff1); border-color: rgba(31, 157, 99, 0.35); }
.plat--bound .plat__check {
  position: absolute; top: 5px; right: 5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 11px;
  box-shadow: 0 2px 5px rgba(31, 157, 99, 0.5);
}
.plat__check { display: none; }
.plat--bound .plat__logo { filter: saturate(0.85); }

/* ============ 阶梯 17 档 ============ */
.ladder-sec { margin-top: 22px; }
.ladder-legend {
  font-size: 11.5px; color: #ffd7bb; margin: -4px 0 12px; padding-left: 12px;
}
.ladder-legend b { color: var(--gold-1); font-weight: 800; }
.ladder { display: flex; flex-direction: column; gap: 10px; position: relative; }

/* ============ 递进闭环漏斗 ============ */
.funnel__steps { display: flex; align-items: stretch; gap: 3px; }
.funnel__step {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 3px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, #fff, #fff6e8); border: 1px solid var(--line); transition: 0.25s;
}
.funnel__ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 17px; color: #fff; background: linear-gradient(135deg, #ccbdbd, #a99);
}
.funnel__step b { font-size: 12px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.funnel__step small { font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.funnel__arrow { display: flex; align-items: center; color: var(--gold-3); font-size: 11px; flex: 0 0 auto; opacity: 0.6; }
.funnel__step.is-active { background: linear-gradient(180deg, #fffdf4, #fff2d6); border-color: var(--gold-2); box-shadow: 0 0 0 1.5px var(--gold-2); }
.funnel__step.is-active .funnel__ic { background: linear-gradient(135deg, var(--red-3), var(--red-1)); }
.funnel__step.is-active b { color: var(--red-2); }
.funnel__step.is-done .funnel__ic { background: linear-gradient(135deg, var(--ok), #157a4b); }
.funnel__step.is-done b { color: var(--ok); }
.funnel__tip { margin-top: 10px; font-size: 11.5px; color: var(--ink-2); text-align: center; line-height: 1.5; background: rgba(224, 160, 33, 0.08); padding: 7px 10px; border-radius: 10px; }

/* ============ 平台分类计数 ============ */
.platform-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.cat-badge { font-size: 11px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.cat-badge b { color: var(--cc, var(--red-2)); font-weight: 800; }
.cat-badge--full { background: rgba(31, 157, 99, 0.1); border-color: rgba(31, 157, 99, 0.35); }
.cat-badge--full b { color: var(--ok); }

/* ============ 阶梯三组折叠 ============ */
.tier-group { margin-bottom: 10px; }
.tier-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none;
  padding: 11px 14px; border-radius: var(--r-md); user-select: none;
  background: linear-gradient(180deg, rgba(255, 247, 230, 0.16), rgba(255, 247, 230, 0.06));
  border: 1px solid rgba(255, 224, 138, 0.24);
}
.tier-group__head::-webkit-details-marker { display: none; }
.tier-group[open] .tier-group__head { border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 0; }
.tier-group__title { font-size: 15px; font-weight: 800; color: #fff2df; display: flex; align-items: center; gap: 8px; }
.tier-group__range { font-style: normal; font-size: 11px; font-weight: 600; color: #ffcfa8; background: rgba(0, 0, 0, 0.2); padding: 2px 8px; border-radius: 999px; }
.tier-group__done { font-size: 13px; font-weight: 800; color: var(--gold-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier-group__body { display: grid; grid-template-columns: 1fr; gap: 10px; padding-top: 10px; align-items: start; }

/* ============ 档位卡:阶段徽章 + 逐条件 + current 高亮 ============ */
.tier__top { display: flex; align-items: center; gap: 8px; }
.tier__phase { font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 999px; color: #fff; white-space: nowrap; }
.phase-bind { background: linear-gradient(135deg, #ff7a59, #d81f2a); }
.phase-deposit { background: linear-gradient(135deg, #ffc24b, #e0a021); }
.phase-referral { background: linear-gradient(135deg, #34d07a, #159d5a); }
.tier__conds { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.cond { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; line-height: 1.35; }
.cond__mk { flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.cond--met { color: var(--ink); }
.cond--met .cond__mk { background: rgba(31, 157, 99, 0.15); color: var(--ok); }
.cond--met b { color: var(--ok); }
.cond--no .cond__mk { background: rgba(216, 31, 42, 0.1); color: var(--red-2); }
.cond--no b { color: var(--red-2); }
.cond b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tier--current { box-shadow: 0 0 0 2px var(--gold-2), var(--sh-card); }
.tier__btn--prev { background: #efe4d2 !important; color: var(--gold-deep) !important; box-shadow: none !important; animation: none !important; }
/* 弹窗内逐条件 */
.cond-met { color: var(--ok); font-weight: 700; }
.cond-no { color: var(--red-2); font-weight: 700; }
.tier {
  position: relative; display: flex; gap: 12px; align-items: stretch;
  background: linear-gradient(180deg, var(--paper), var(--cream));
  border-radius: var(--r-md); padding: 12px 14px 12px 12px;
  box-shadow: var(--sh-card); border: 1px solid rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.tier__rail { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.tier__no {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 4px 10px rgba(169, 118, 26, 0.4);
}
.tier__main { flex: 1; min-width: 0; }
.tier__reward {
  display: flex; align-items: center; gap: 5px; font-size: 20px; font-weight: 900;
  color: var(--red-2); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.tier__reward .coin { font-size: 19px; }
.tier__reward .unit { font-size: 11px; font-weight: 700; color: var(--gold-deep); align-self: flex-end; margin-bottom: 2px; }
.tier__cond { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.tier__hint {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700;
  color: var(--red-2); background: rgba(216, 31, 42, 0.08); padding: 2px 8px; border-radius: 6px;
}
.tier__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
.tier__state {
  font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.tier__btn {
  border: 0; cursor: pointer; border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 800; white-space: nowrap; transition: transform 0.1s, filter 0.2s;
}
.tier__btn:active { transform: scale(0.94); }
.tier__meet {
  border: 0; background: none; color: var(--ink-3); font-size: 10.5px; cursor: pointer;
  text-decoration: underline; padding: 0;
}

/* 三态样式 */
.tier--locked { opacity: 0.72; }
.tier--locked .tier__no { background: linear-gradient(135deg, #cbb, #a99); box-shadow: none; }
.tier--locked .tier__reward { color: var(--ink-3); }
.tier--locked .tier__reward .coin { color: var(--lock); }
.tier--locked .tier__state { background: #ece4e4; color: var(--ink-3); }
.tier--locked .tier__btn { background: #e7dede; color: var(--ink-3); cursor: not-allowed; }

.tier--progress .tier__state { background: rgba(224, 160, 33, 0.16); color: var(--gold-deep); }
.tier--progress .tier__btn { background: #efe4d2; color: var(--gold-deep); }

.tier--claimable {
  box-shadow: 0 0 0 2px var(--gold-2), var(--sh-card);
  background: linear-gradient(180deg, #fffdf4, #fff3d6);
}
.tier--claimable .tier__no { background: linear-gradient(135deg, var(--red-3), var(--red-1)); box-shadow: 0 4px 12px rgba(216, 31, 42, 0.45); }
.tier--claimable .tier__state { background: rgba(216, 31, 42, 0.14); color: var(--red-2); }
.tier--claimable .tier__btn {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--red-deep); box-shadow: var(--sh-gold); animation: btnpulse 1.6s ease-in-out infinite;
}
@keyframes btnpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.1); } }

.tier--done { background: linear-gradient(180deg, #f4fff9, #ecfff4); }
.tier--done .tier__no { background: linear-gradient(135deg, var(--ok), #157a4b); box-shadow: 0 4px 10px rgba(21, 122, 75, 0.35); }
.tier--done .tier__state { background: rgba(31, 157, 99, 0.14); color: var(--ok); }
.tier--done .tier__btn { background: rgba(31, 157, 99, 0.12); color: var(--ok); cursor: default; }
.tier--done .tier__reward { color: var(--ink-2); }

/* ============ 天降终极大奖 ============ */
.sky {
  position: relative; overflow: hidden; text-align: center; margin-top: 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, #7a0f1c 0%, #4a0910 52%, #1f0206 100%);
  border: 1px solid rgba(255, 224, 138, 0.45);
  color: #fff;
}
.sky__rain { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sky__rain i {
  position: absolute; top: -20px; font-size: 18px; color: var(--gold-1);
  animation: coinfall linear forwards;
}
@keyframes coinfall {
  0% { transform: translateY(-30px) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(360px) rotate(360deg); opacity: 0; }
}
.sky__tag {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--red-deep);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  padding: 4px 14px; border-radius: 999px; box-shadow: var(--sh-gold);
}
.sky__amount {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px 0 6px; font-size: clamp(30px, 9vw, 40px); font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6d6, var(--gold-2) 60%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.sky__amount .coin { font-size: 0.7em; -webkit-text-fill-color: var(--gold-2); }
.sky__desc { position: relative; z-index: 2; font-size: 12.5px; color: #ffdcc2; margin-bottom: 14px; }
.btn-sky {
  position: relative; z-index: 2; border: 0; cursor: pointer; width: 100%; max-width: 260px;
  padding: 12px; border-radius: 14px; font-size: 16px; font-weight: 800;
  background: #591019; color: #d7a778;
}
.btn-sky--ready {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--red-deep); box-shadow: 0 8px 22px rgba(224, 160, 33, 0.5);
  cursor: pointer; animation: breathe 2s ease-in-out infinite;
}
.sky__lock {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(28, 3, 7, 0.74); color: #ffdcc2; backdrop-filter: blur(2px); font-size: 14px; font-weight: 700;
}
.sky__lock .ic { font-size: 30px; color: var(--gold-2); }

/* ============ 规则 ============ */
.rules__list { padding-left: 4px; }
.rules__list li {
  list-style: none; position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
.rules__list li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-3), var(--gold-3));
}
.rules__list b { color: var(--ink); }
.rules__toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  margin-top: 6px; border: 1px dashed rgba(216, 31, 42, 0.35); background: rgba(216, 31, 42, 0.04);
  color: var(--red-2); font-size: 13px; font-weight: 700; padding: 9px; border-radius: 12px; cursor: pointer;
}
.rules__toggle .ic { transition: transform 0.3s ease; }
.rules__toggle.open .ic { transform: rotate(90deg); }
.rules__table-wrap { margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rules__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rules__table th, .rules__table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.rules__table th { background: rgba(216, 31, 42, 0.06); color: var(--red-2); font-weight: 800; }
.rules__table td:first-child { font-weight: 800; color: var(--red-2); text-align: center; width: 40px; }
.rules__table td:nth-child(2) { font-weight: 800; color: var(--gold-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rules__table td:last-child { color: var(--ink-2); }
.rules__table tr:last-child td { border-bottom: 0; }
.rules__table tr.hl td { background: rgba(224, 160, 33, 0.1); }

/* ============ 页脚 ============ */
.foot { text-align: center; padding: 22px 10px 6px; color: #e9c9c9; font-size: 12px; }
.foot__mini { font-size: 10.5px; color: #d3a5a5; margin-top: 4px; }

/* ============ 弹窗通用 ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__mask { position: absolute; inset: 0; background: rgba(20, 4, 8, 0.6); backdrop-filter: blur(3px); animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 底部弹层(绑定) */
.sheet {
  position: relative; z-index: 2; width: 100%; max-width: 448px; margin-top: auto;
  align-self: flex-end; background: linear-gradient(180deg, var(--paper), var(--cream));
  border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--sh-float); animation: slideup 0.3s cubic-bezier(0.22, 1, 0.36, 1); text-align: center;
}
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet__close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.05); color: var(--ink-2); cursor: pointer; font-size: 16px;
  display: grid; place-items: center;
}
.sheet__icon { width: 60px; height: 60px; margin: 4px auto 10px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.sheet__title { font-size: 19px; font-weight: 800; }
.sheet__sub { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 16px; }
.sheet__field { display: block; text-align: left; margin-bottom: 16px; }
.sheet__field span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.sheet__field input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px;
  background: #fff; color: var(--ink); outline: none; transition: border-color 0.2s;
}
.sheet__field input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.25); }

/* 居中对话框(提示) */
.dialog {
  position: relative; z-index: 2; width: calc(100% - 56px); max-width: 320px;
  background: linear-gradient(180deg, var(--paper), var(--cream)); border-radius: 22px; padding: 26px 22px 20px;
  text-align: center; box-shadow: var(--sh-float); animation: pop 0.28s cubic-bezier(0.22, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog__icon {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--red-3), var(--red-1));
}
.dialog__icon.warn { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
.dialog__title { font-size: 18px; font-weight: 800; }
.dialog__msg { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 18px; line-height: 1.6; }
.dialog__actions { display: flex; gap: 10px; }

/* 领取成功 */
.win {
  position: relative; z-index: 2; width: calc(100% - 56px); max-width: 320px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #b3121f, #7c0d18); border-radius: 24px;
  padding: 30px 22px 22px; text-align: center; color: #fff; box-shadow: var(--sh-float);
  border: 1px solid rgba(255, 224, 138, 0.5); animation: pop 0.3s cubic-bezier(0.22, 1.4, 0.4, 1);
}
.win__rays {
  position: absolute; top: -30%; left: 50%; width: 300px; height: 300px; transform: translateX(-50%);
  background: conic-gradient(from 0deg, transparent 0 8deg, rgba(255, 224, 138, 0.18) 8deg 16deg);
  animation: spin 12s linear infinite; z-index: 0;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.win__coins { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
/* 金币位置/旋转由 JS 物理引擎驱动(translate + rotate + scale) */
.win__coins i { position: absolute; left: 0; top: 0; font-size: 22px; color: var(--gold-1);
  will-change: transform, opacity; filter: drop-shadow(0 2px 3px rgba(90, 40, 0, 0.4)); }
.win__gift { position: relative; z-index: 2; font-size: 46px; color: var(--gold-1); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); animation: giftpop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes giftpop { 0% { transform: scale(0) rotate(-15deg); } 100% { transform: scale(1) rotate(0); } }
.win__label { position: relative; z-index: 2; font-size: 15px; color: #ffe0c0; margin-top: 6px; }
.win__amount {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 4px 0 8px; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums;
  color: var(--gold-1); text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.win__amount .coin { font-size: 30px; }
.win__desc { position: relative; z-index: 2; font-size: 12.5px; color: #ffd9bd; margin-bottom: 18px; }

/* 按钮 */
.btn-primary {
  width: 100%; border: 0; cursor: pointer; border-radius: 14px; padding: 13px; font-size: 16px; font-weight: 800;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); color: var(--red-deep);
  box-shadow: var(--sh-gold); transition: transform 0.1s;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { filter: grayscale(0.4) brightness(0.95); opacity: 0.7; cursor: wait; }
.btn-ghost {
  flex: 1; border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 14px; padding: 12px;
  font-size: 15px; font-weight: 700; color: var(--ink-2);
}
.btn-cta {
  flex: 1; border: 0; cursor: pointer; border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 800;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); color: var(--red-deep);
}

/* 加载 spinner */
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--red-deep); border-radius: 50%; animation: spin2 0.7s linear infinite; vertical-align: -3px;
}
@keyframes spin2 { to { transform: rotate(360deg); } }

/* toast */
.toast {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 200;
  background: rgba(30, 8, 12, 0.92); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px;
  font-weight: 600; box-shadow: var(--sh-float); opacity: 0; transition: opacity 0.25s, transform 0.25s;
  border: 1px solid rgba(255, 224, 138, 0.3); max-width: 88%; text-align: center;
}
.toast[hidden] { display: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--gold-2); margin-right: 5px; }

/* 数字滚动强调 */
.bump { animation: bump 0.4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* 活动已结束:领取入口置灰(时间窗到期) */
.is-ended .countdown { opacity: 0.85; }
.is-ended .countdown__label { color: #ffb3a0; }
.is-ended .tier--claimable .tier__btn,
.is-ended .btn-sky--ready {
  filter: grayscale(0.7); opacity: 0.55; box-shadow: none; animation: none;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.05s !important; }
}

/* 超窄屏微调 */
@media (max-width: 340px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .purpose__list { gap: 7px; }
  .hero__title { font-size: 26px; }
}

/* 移动端(默认)不并排 */
.dash-row { display: block; }

/* 交互打磨:去除移动端点击灰闪 + 桌面 hover 微悬浮(仅精确指针设备) */
* { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .plat { transition: transform 0.16s ease, box-shadow 0.2s ease; }
  .plat:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(88, 8, 16, 0.16); }
  .tier:hover { box-shadow: 0 8px 22px rgba(88, 8, 16, 0.14); }
  .tier--claimable:hover { box-shadow: 0 0 0 2px var(--gold-2), 0 8px 22px rgba(224, 160, 33, 0.28); }
  .btn-join:hover, .btn-primary:hover, .btn-sky--ready:hover, .btn-cta:hover { filter: brightness(1.04); }
  .stat-cell__plus:hover { background: rgba(216, 31, 42, 0.2); }
  .link-reset:hover, .tier__meet:hover { opacity: 0.75; }
}

/* ============ PC / 桌面端(≥960px):多列宽屏布局 ============ */
@media (min-width: 960px) {
  body { padding: 34px 24px; background-attachment: fixed; }
  .phone {
    max-width: 1120px; min-height: auto;
    border-radius: 30px; overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  }

  /* 头图变横幅 */
  .hero { padding: 46px 48px 50px; border-bottom-width: 4px; }
  .hero__title { font-size: 54px; }
  .hero__sub { font-size: 15.5px; margin-top: 10px; }
  .hero__lanterns span:first-child { left: 40px; }
  .hero__lanterns span:last-child { right: 40px; }
  .countdown { margin-top: 20px; font-size: 14px; }
  .btn-join { max-width: 360px; }

  .body { padding: 28px 34px 48px; }
  .card { padding: 20px 22px; }

  /* 进度 + 我的数据 并排一行 */
  .dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
  .dash-row .card { margin-top: 0; }
  /* 我的数据:桌面空间足够 → 双列 */
  .mydata__grid { grid-template-columns: 1fr 1fr; }

  /* 平台网格:宽屏自动多列 */
  .platform-grid { grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 12px; }
  .plat__logo { width: 44px; height: 44px; }

  /* 17 档阶梯:组内双列,缩短纵向长度、卡片更从容 */
  .tier-group__body { grid-template-columns: 1fr 1fr; }
  .funnel__steps { padding: 4px 8px; }

  /* 活动目的:文字更大些 */
  .purpose__list b { font-size: 14.5px; }
  .sec-title { font-size: 17px; }

  /* 天降大奖:横幅化,数字更大 */
  .sky { padding-top: 26px; padding-bottom: 24px; }
  .sky__amount { font-size: 48px; }
}

/* 超宽屏:阶梯组内 3 列 */
@media (min-width: 1280px) {
  .tier-group__body { grid-template-columns: 1fr 1fr 1fr; }
}
