/* ===================================================================
 * css/v3.css — v3 改造覆盖层（在 index.css 之后加载，只做增量与覆盖）
 * -------------------------------------------------------------------
 * 覆盖项：
 *   1) 顶部实时时钟（YYYY-MM-DD HH:mm:ss 秒级跳动）
 *   2) 奖品正方形产品图 + 等级超大描金 + 型号-SKU 金标（pc-* 组件）
 *   3) 奖池横向轮播（≥6 款自动轮播 / ≤5 款静止铺满）
 *   4) 单文件响应式：≤767 / 768–1439 / 1440–2559 / ≥2560 四档断点
 *   5) 中奖汇总表格 + 逐条明细折叠（result-*）
 *   6) 抽奖动画层（ov-*）、撤销确认（rv-*）、工号二次确认（cf-*）
 *   7) 移动端顶部单按钮（m-bar）+ 全屏弹层
 * =================================================================== */

/* ==================================================================
 * 0. 页面级修正：去掉 v2 双页架构遗留的底部大留白
 *    （v2 的 mobile.html 靠 body padding-bottom 给固定操作条让位；
 *      v3 单文件已改为流式布局，这里必须收回，否则 1440–2559 会出现滚动条）
 * ================================================================== */
body { padding-bottom: 0 !important; }
.screen-wrap { padding-bottom: clamp(18px, 2vh, 40px); }

/* ==================================================================
 * 1. 顶部实时时钟
 * ================================================================== */
.top-clock {
  display: flex;
  align-items: center;
  height: clamp(38px, 2.9vw, 50px);
  padding: 0 clamp(12px, 1vw, 20px);
  border-radius: 10px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(227, 185, 95, .26);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .07);
  white-space: nowrap;
  flex: none;
}
.top-clock time {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-num);
  letter-spacing: .04em;
  color: rgba(255, 232, 200, .58);
  font-size: clamp(11px, .82vw, 15px);
  font-variant-numeric: tabular-nums;
}
.top-clock .c-date { opacity: .7; }
.top-clock .c-time {
  color: var(--gold-200);
  font-weight: 700;
  font-size: 1.16em;
  letter-spacing: .1em;
  text-shadow: 0 0 14px rgba(227, 185, 95, .38);
}
/* 秒跳时给冒号一点呼吸感（CSS 无法单独染冒号，用整段轻微闪烁替代） */
.top-clock .c-time::after {
  content: '';
}

/* ==================================================================
 * 2. 移动端顶部单按钮（≤767px 才出现）
 * ================================================================== */
.m-bar { display: none; }

@media (max-width: 767px) {
  .m-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 80;
    margin: 0 calc(-1 * clamp(18px, 2.2vw, 56px)) 16px;
    padding: 8px clamp(18px, 2.2vw, 56px) 12px;
    background: linear-gradient(180deg, rgba(46, 4, 9, .97) 0%, rgba(46, 4, 9, .82) 62%, rgba(46, 4, 9, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .m-start {
    display: block;
    width: 100%;
    height: 54px;
    border-radius: 13px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .3em;
    color: #4A1206;
    background: linear-gradient(180deg, var(--gold-200) 0%, var(--gold-400) 48%, var(--gold-500) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      0 12px 30px -12px rgba(227, 185, 95, .75),
      0 0 0 1px rgba(255, 236, 190, .55);
    transition: transform .16s, filter .2s;
  }
  .m-start:active { transform: scale(.985); filter: brightness(1.05); }
}

/* ==================================================================
 * 3. 栅格：≤1439 单栏（display:contents 让各区块直接参与排序）
 *          ≥1440 两栏（左：奖品/奖池/规则　右：舞台/动态）
 * ================================================================== */
.layout { display: flex; flex-direction: column; }
.col-main,
.col-side { display: contents; }

.sec-prizes { order: 1; }
.sec-pool   { order: 2; }
.sec-rules  { order: 3; }
.sec-stage  { order: 4; }
.sec-feed   { order: 5; }

@media (min-width: 1440px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 30.5vw);
    gap: clamp(18px, 1.5vw, 44px);
    align-items: start;
  }
  .col-main,
  .col-side { display: block; }
  .col-side {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.2vh, 22px);
  }
  .col-side .sec { margin-bottom: 0; }
  /* 1440–2559（投屏主场景）压紧纵向节奏，保证单视窗零滚动 */
  .sec { margin-bottom: clamp(14px, 1.5vh, 26px); }
  .sec-head { margin-bottom: clamp(10px, 1.2vh, 18px); }
  .topbar { margin-bottom: clamp(14px, 1.6vh, 26px); }
  .screen-wrap { padding-top: clamp(16px, 1.6vh, 28px); }
}

/* ==================================================================
 * 4. 奖品一览 · 横向轮播舞台
 * ================================================================== */
.prize-stage {
  position: relative;
  --pv-n: 5;
  --pv-gap: clamp(10px, .9vw, 22px);
}

.prize-viewport { overflow: hidden; }

.prize-track {
  display: flex;
  gap: var(--pv-gap);
  transition: transform .62s cubic-bezier(.22, .82, .26, 1);
  will-change: transform;
}

/* ---- 卡片：正方形产品图 + 超大描金等级 + 型号SKU 金标 ---- */
.pc-card {
  position: relative;
  flex: 0 0 auto;
  width: calc((100% - (var(--pv-n) - 1) * var(--pv-gap)) / var(--pv-n));
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .028) 100%);
  border: 1px solid var(--gold-line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .12), 0 20px 44px -26px rgba(0, 0, 0, .95);
  transition: transform .26s var(--ease-out), border-color .26s, box-shadow .26s;
}
.pc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 185, 95, .55);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .18), 0 30px 56px -26px rgba(0, 0, 0, 1), 0 0 0 1px rgba(227, 185, 95, .18);
}

/* 正方形产品图：严格 1:1 + cover（PC / 移动端统一） */
.pc-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #FFFFFF;
}
.pc-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s var(--ease-out), filter .3s;
}
.pc-card:hover .pc-media img { transform: scale(1.035); }

.pc-sold {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, .95vw, 17px);
  letter-spacing: .3em;
  color: #FFF3E4;
  background: rgba(18, 2, 5, .6);
  backdrop-filter: blur(1px);
}
.pc-card.is-out .pc-sold { display: flex; }
.pc-card.is-out .pc-media img { filter: grayscale(.85) opacity(.55); }

.pc-body {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, .38vw, 9px);
  padding: clamp(9px, .78vw, 17px) clamp(10px, .82vw, 17px) clamp(10px, .9vw, 19px);
}

/* 第一视觉优先级：等级超大描金字 */
.pc-tier {
  font-size: clamp(19px, 1.62vw, 42px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .05em;
  white-space: nowrap;
  filter:
    drop-shadow(0 0 1px rgba(255, 246, 214, .95))
    drop-shadow(0 2px 0 rgba(60, 8, 14, .8))
    drop-shadow(0 8px 20px rgba(0, 0, 0, .55));
}

/* 型号-SKU：等宽字体 + 金色描边标签，独立一行高对比 */
.pc-sku {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: clamp(2px, .2vw, 4px) clamp(8px, .62vw, 13px);
  border-radius: 6px;
  font-family: var(--font-num);
  font-size: clamp(10.5px, .8vw, 17px);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-200);
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(227, 185, 95, .18) 0%, rgba(227, 185, 95, .05) 100%);
  border: 1px solid rgba(227, 185, 95, .55);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .18);
  text-shadow: 0 1px 6px rgba(227, 185, 95, .3);
}

.pc-name {
  font-size: clamp(11.5px, .9vw, 19px);
  font-weight: 600;
  line-height: 1.42;
  color: #FFEFE3;
  letter-spacing: .01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.84em;
}

.pc-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding-top: clamp(6px, .5vw, 10px);
  margin-top: auto;
  border-top: 1px dashed rgba(227, 185, 95, .18);
  font-size: clamp(9.5px, .74vw, 14px);
  letter-spacing: .06em;
  color: rgba(255, 232, 200, .48);
}
.pc-meta b {
  font-family: var(--font-num);
  font-size: 1.3em;
  font-weight: 700;
  color: var(--gold-200);
  letter-spacing: .02em;
}
.pc-meta .is-rate b { color: #F2AE96; }

/* ---- 轮播箭头 / 指示点 ---- */
.pv-nav {
  position: absolute;
  top: 34%;
  transform: translateY(-50%);
  z-index: 6;
  width: clamp(28px, 2.3vw, 46px);
  height: clamp(28px, 2.3vw, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: clamp(16px, 1.4vw, 26px);
  line-height: 1;
  color: var(--gold-200);
  background: rgba(18, 2, 5, .62);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(4px);
  transition: all .2s var(--ease-out);
}
.pv-nav:hover { background: rgba(227, 185, 95, .24); color: var(--gold-100); border-color: var(--gold-300); }
.pv-nav:active { transform: translateY(-50%) scale(.94); }
.pv-prev { left: -4px; }
.pv-next { right: -4px; }
.pv-nav[disabled] { opacity: .25; cursor: default; }

.pv-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(10px, .85vw, 18px);
}
.pv-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(227, 185, 95, .26);
  cursor: pointer;
  transition: all .26s var(--ease-out);
}
.pv-dots i.is-active { width: 22px; border-radius: 4px; background: var(--gold-300); box-shadow: 0 0 12px rgba(227, 185, 95, .55); }

/* ≤5 款：静止铺满（不轮播、无箭头、无指示点） */
.prize-stage.is-static .prize-track { justify-content: center; transform: none !important; }
.prize-stage.is-static .pc-card {
  flex: 1 1 0;
  width: auto;
  max-width: calc((100% - 4 * var(--pv-gap)) / 5);
  min-width: 0;
}
.prize-stage.is-static .pv-nav,
.prize-stage.is-static .pv-dots { display: none; }

/* ==================================================================
 * 5. 奖池剩余面板
 * ================================================================== */
.pool-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.4vw, 34px);
  padding: clamp(13px, 1.25vw, 26px) clamp(16px, 1.9vw, 40px);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 185, 95, .12) 0%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(135deg, rgba(158, 21, 38, .4) 0%, rgba(56, 5, 11, .62) 100%);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .12), 0 24px 54px -32px rgba(0, 0, 0, .95);
}
.pool-center { flex: 1; text-align: center; min-width: 0; }
.pool-label { font-size: clamp(10.5px, .8vw, 15px); letter-spacing: .3em; color: rgba(255, 232, 200, .58); }
.pool-num {
  font-family: var(--font-num);
  font-size: clamp(32px, 3vw, 74px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: .01em;
  color: var(--gold-200);
  text-shadow: 0 0 26px rgba(227, 185, 95, .45), 0 4px 0 rgba(60, 8, 14, .6);
  font-variant-numeric: tabular-nums;
}
.pool-sub { font-size: clamp(9.5px, .72vw, 13px); letter-spacing: .2em; color: rgba(255, 232, 200, .38); }

.pool-side { flex: none; text-align: center; min-width: clamp(58px, 5.4vw, 118px); }
.pool-side .k { font-size: clamp(9.5px, .7vw, 13px); letter-spacing: .16em; color: rgba(255, 232, 200, .4); }
.pool-side .v {
  margin-top: 2px;
  font-family: var(--font-num);
  font-size: clamp(17px, 1.45vw, 34px);
  font-weight: 700;
  color: rgba(255, 238, 214, .82);
  font-variant-numeric: tabular-nums;
}

/* ==================================================================
 * 6. 抽奖规则
 * ================================================================== */
.rule-list {
  counter-reset: rl;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, .62vw, 13px) clamp(16px, 2.2vw, 46px);
}
.rule-list li {
  counter-increment: rl;
  display: flex;
  gap: 9px;
  font-size: clamp(11px, .86vw, 17px);
  line-height: 1.72;
  letter-spacing: .02em;
  color: rgba(255, 240, 225, .72);
}
.rule-list li::before {
  content: counter(rl, decimal-leading-zero);
  flex: none;
  font-family: var(--font-num);
  font-size: .96em;
  letter-spacing: .04em;
  color: var(--gold-400);
  padding-top: .12em;
}

/* ==================================================================
 * 7. 抽奖主舞台
 * ================================================================== */
.stage {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(16px, 1.5vw, 30px) clamp(16px, 1.6vw, 32px) clamp(18px, 1.7vw, 34px);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% -6%, rgba(227, 185, 95, .18) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, rgba(130, 17, 32, .82) 0%, rgba(62, 7, 14, .9) 55%, rgba(38, 3, 8, .94) 100%);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .16), 0 34px 74px -36px rgba(0, 0, 0, 1);
}
.stage .corner { position: absolute; width: 16px; height: 16px; border: 1px solid rgba(227, 185, 95, .55); pointer-events: none; }
.stage .corner.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.stage .corner.tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.stage .corner.bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.stage .corner.br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.stage-lights {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background:
    conic-gradient(from 195deg at 50% 0%, rgba(227, 185, 95, .16), rgba(227, 185, 95, 0) 28%, rgba(227, 185, 95, 0) 72%, rgba(227, 185, 95, .16) 100%);
  filter: blur(6px);
  pointer-events: none;
  opacity: .8;
}

.stage-zone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: clamp(10.5px, .8vw, 15px);
  letter-spacing: .14em;
  color: rgba(255, 238, 214, .72);
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(227, 185, 95, .2);
}
.stage-zone .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #63D68A;
  box-shadow: 0 0 10px rgba(99, 214, 138, .9);
  animation: stage-pulse 2s ease-in-out infinite;
}
@keyframes stage-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.stage-title {
  position: relative;
  margin-top: clamp(8px, .8vw, 16px);
  font-size: clamp(19px, 1.85vw, 42px);
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.25;
}
.stage-desc {
  margin-top: 6px;
  font-size: clamp(10.5px, .78vw, 15px);
  letter-spacing: .08em;
  color: rgba(255, 232, 200, .48);
}

.stage-window {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: clamp(12px, 1.1vw, 22px) auto clamp(14px, 1.2vw, 24px);
}
.sw-img {
  width: clamp(88px, 7.4vw, 176px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-line);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .95), 0 0 0 4px rgba(227, 185, 95, .06);
  transition: opacity .3s ease, transform .35s var(--ease-out);
}
.sw-img.is-swapping { opacity: 0; transform: scale(.96); }
.sw-name {
  min-height: 1.5em;
  font-size: clamp(10.5px, .82vw, 15px);
  letter-spacing: .05em;
  color: rgba(255, 238, 214, .7);
  text-align: center;
}

.btn-lucky {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 430px;
  height: clamp(50px, 4.1vw, 76px);
  border-radius: 999px;
  font-size: clamp(16px, 1.35vw, 27px);
  font-weight: 800;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #4A1206;
  background: linear-gradient(180deg, var(--gold-200) 0%, var(--gold-400) 47%, var(--gold-500) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -2px 0 rgba(120, 72, 10, .38),
    0 18px 42px -14px rgba(227, 185, 95, .62),
    0 0 0 1px rgba(255, 236, 190, .6);
  transition: transform .18s var(--ease-out), filter .2s;
}
.btn-lucky::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -60%;
  width: 38%;
  height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-18deg);
  animation: btn-sheen 4.6s ease-in-out infinite;
}
@keyframes btn-sheen {
  0%, 62% { left: -60%; }
  86%, 100% { left: 130%; }
}
.btn-lucky:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-lucky:active { transform: translateY(1px) scale(.996); }
.btn-lucky:disabled { filter: grayscale(.4) brightness(.92); cursor: not-allowed; }

.stage-note {
  margin-top: 10px;
  font-size: clamp(9.5px, .72vw, 13px);
  letter-spacing: .12em;
  color: rgba(255, 232, 200, .32);
}

/* ==================================================================
 * 8. 最近中奖动态（列表滚动 / 行内撤销入口）
 * ================================================================== */
.feed-scroll {
  max-height: clamp(280px, 40vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.feed-list { border-radius: 10px; overflow: hidden; }

.feed-row .fd-del {
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 150, 130, .6);
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 150, 130, .22);
  opacity: 0;
  transition: all .18s;
}
.feed-row:hover .fd-del { opacity: 1; }
.feed-row .fd-del:hover { color: #FFB4A2; border-color: rgba(255, 150, 130, .6); background: rgba(158, 21, 38, .4); }
@media (hover: none) { .feed-row .fd-del { opacity: .7; } }

.feed-row .res .gsku {
  font-family: var(--font-num);
  font-size: clamp(9.5px, .72vw, 14px);
  letter-spacing: .06em;
  color: rgba(227, 185, 95, .8);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(227, 185, 95, .28);
  background: rgba(227, 185, 95, .07);
  white-space: nowrap;
}

@media (min-width: 1440px) {
  .sec-feed { display: flex; flex-direction: column; min-height: 0; }
  .feed-scroll { max-height: clamp(200px, 30vh, 420px); }
}

/* ==================================================================
 * 9. 录入弹窗：必填标记 / 二次确认卡片
 * ================================================================== */
.fld-tag {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: rgba(255, 232, 200, .42);
  margin-left: 6px;
}
.fld-tag.is-optional {
  color: rgba(140, 205, 255, .78);
  border: 1px solid rgba(140, 205, 255, .34);
  border-radius: 4px;
  padding: 1px 6px;
  background: rgba(140, 205, 255, .08);
}

.confirm-card {
  padding: 4px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .26);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .1);
}
.cf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(9px, .8vw, 13px) 0;
  border-bottom: 1px dashed rgba(227, 185, 95, .16);
}
.cf-row:last-child { border-bottom: 0; }
.cf-k { font-size: 12.5px; letter-spacing: .16em; color: rgba(255, 232, 200, .55); flex: none; }
.cf-v {
  font-family: var(--font-num);
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold-100);
  text-align: right;
  word-break: break-all;
}
.cf-emp .cf-k { color: rgba(255, 232, 200, .7); }
.cf-emp .cf-v {
  font-size: clamp(20px, 1.6vw, 28px);
  color: var(--gold-200);
  text-shadow: 0 0 18px rgba(227, 185, 95, .4);
}
.cf-v.cf-dim {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(255, 238, 214, .78);
}

.ug-alert.is-warn {
  background: rgba(227, 185, 95, .1);
  border-color: rgba(227, 185, 95, .34);
  border-left-color: var(--gold-300);
  color: #FFE9C9;
}

/* ==================================================================
 * 10. 开奖弹窗：中奖汇总表格 + 明细折叠
 * ================================================================== */
.result-dialog { max-width: 660px; }

.result-eyebrow {
  text-align: center;
  font-size: 10px;
  letter-spacing: .46em;
  color: rgba(227, 185, 95, .5);
  margin-bottom: 8px;
}
.result-title {
  text-align: center;
  font-size: clamp(21px, 1.85vw, 34px);
  font-weight: 800;
  letter-spacing: .07em;
}
.result-sub {
  margin-top: 6px;
  margin-bottom: clamp(14px, 1.4vw, 20px);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(255, 234, 210, .55);
}

.sum-table { width: 100%; border-collapse: collapse; }
.sum-table thead th {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-align: left;
  color: rgba(255, 232, 200, .48);
  border-bottom: 1px solid rgba(227, 185, 95, .3);
  white-space: nowrap;
}
.sum-table tbody td {
  padding: clamp(9px, .8vw, 13px) 10px;
  border-bottom: 1px dashed rgba(227, 185, 95, .14);
  color: #FFEFE3;
  vertical-align: middle;
}
.sum-table .ta-r { text-align: right; }
.sum-table .sku-cell {
  font-family: var(--font-num);
  font-size: clamp(13px, .95vw, 16px);
  letter-spacing: .09em;
  color: var(--gold-200);
  white-space: nowrap;
}
.sum-table .num-cell {
  font-family: var(--font-num);
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 700;
  color: var(--gold-200);
  font-variant-numeric: tabular-nums;
}
.sum-table .tier-cell .tier-badge { font-size: clamp(11.5px, .85vw, 14px); }
.sum-table tfoot td {
  padding: clamp(10px, .9vw, 14px) 10px;
  font-weight: 700;
  color: var(--gold-200);
  border-top: 1px solid rgba(227, 185, 95, .36);
  letter-spacing: .06em;
}
.sum-table tfoot .tf-note { font-weight: 500; font-size: 11.5px; color: rgba(255, 232, 200, .45); letter-spacing: .08em; }

.detail-fold {
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid rgba(227, 185, 95, .2);
  background: rgba(0, 0, 0, .22);
  overflow: hidden;
}
.detail-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(255, 238, 214, .74);
  transition: background .18s;
}
.detail-fold summary::-webkit-details-marker { display: none; }
.detail-fold summary:hover { background: rgba(227, 185, 95, .1); }
.detail-fold summary .df-count {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gold-300);
}
.detail-fold[open] summary { border-bottom: 1px solid rgba(227, 185, 95, .16); }

.result-list {
  max-height: 232px;
  overflow-y: auto;
  padding: 2px 14px 10px;
}
.rl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px dashed rgba(227, 185, 95, .1);
  font-size: clamp(12px, .9vw, 14px);
}
.rl-item:first-child { border-top: 0; }
.rl-idx {
  flex: none;
  width: 28px;
  font-family: var(--font-num);
  font-size: 11.5px;
  color: rgba(255, 232, 200, .38);
}
.rl-item .tier-badge { flex: none; }
.rl-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #FFEFE3;
}
.rl-sku {
  flex: none;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gold-300);
}

/* 危险操作按钮 */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8em 1.5em;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #FFE9E1;
  background: linear-gradient(180deg, #C3323F 0%, #8E1122 100%);
  border: 1px solid rgba(255, 140, 120, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px -14px rgba(0, 0, 0, .9);
  transition: filter .18s, transform .18s;
}
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-danger:active { transform: translateY(1px); }

.btn-text-danger {
  flex: none !important;
  padding: 0 4px;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255, 150, 130, .7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s;
}
.btn-text-danger:hover { color: #FF9E8A; }

/* 撤销确认弹窗 */
.rv-desc {
  font-size: 13px;
  line-height: 2;
  letter-spacing: .02em;
  text-align: center;
  color: rgba(255, 238, 214, .76);
}
.rv-emp {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-num);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--gold-200);
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(227, 185, 95, .22);
}

/* ==================================================================
 * 11. 抽奖动画层
 * ================================================================== */
.draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(158, 21, 38, .72) 0%, rgba(10, 2, 4, .97) 72%);
  backdrop-filter: blur(3px);
}
.draw-overlay.is-open { display: flex; animation: ov-in .26s ease-out; }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }

.ov-inner { width: min(92vw, 580px); text-align: center; }
.ov-head { font-size: 11px; letter-spacing: .5em; color: rgba(227, 185, 95, .7); }
.ov-slot {
  width: min(46vw, 240px);
  aspect-ratio: 1 / 1;
  margin: clamp(16px, 2vw, 26px) auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 60px rgba(227, 185, 95, .26), inset 0 0 40px rgba(0, 0, 0, .6);
  animation: ov-pulse 1.5s ease-in-out infinite;
}
@keyframes ov-pulse {
  0%, 100% { box-shadow: 0 0 34px rgba(227, 185, 95, .18), inset 0 0 34px rgba(0, 0, 0, .6); }
  50% { box-shadow: 0 0 86px rgba(227, 185, 95, .48), inset 0 0 34px rgba(0, 0, 0, .6); }
}
.ov-img {
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  filter: blur(.3px);
}
.ov-name {
  min-height: 1.5em;
  font-size: clamp(16px, 1.6vw, 27px);
  font-weight: 700;
  letter-spacing: .05em;
  color: #FFEFE3;
}
.ov-tier { min-height: 1.8em; margin-top: 8px; }
.ov-progress {
  width: 70%;
  height: 3px;
  margin: clamp(14px, 1.6vw, 20px) auto 10px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}
.ov-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-100));
  box-shadow: 0 0 12px rgba(227, 185, 95, .8);
}
.ov-count {
  font-family: var(--font-num);
  font-size: clamp(11px, .95vw, 14px);
  letter-spacing: .16em;
  color: rgba(255, 232, 200, .5);
}

/* ==================================================================
 * 12. 响应式断点
 * ================================================================== */

/* ---- 768–1439：平板 / 小笔记本，两列自适应，允许轻量滚动 ---- */
@media (min-width: 768px) and (max-width: 1439px) {
  .prize-stage { --pv-n: 2; --pv-gap: 18px; }
  .prize-stage.is-static .prize-track { justify-content: center; }
  .prize-stage.is-static .pc-card { max-width: calc((100% - 18px) / 2); }
  .pc-tier { font-size: clamp(22px, 2.7vw, 36px); }
  .pc-sku { font-size: clamp(12px, 1.15vw, 15px); }
  .pc-name { font-size: clamp(13px, 1.2vw, 16px); }
  .sec-rules .rule-list { grid-template-columns: 1fr; }
  .feed-scroll { max-height: 46vh; }
  .rule-list li { font-size: 13px; }
}

/* ---- ≤767：移动端（单栏 / 顶部单按钮 / 全屏弹层 / 奖品平铺可滚动） ---- */
@media (max-width: 767px) {
  /* 顶栏收敛 */
  .topbar { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; }
  .brand-txt h1 { font-size: 16.5px; letter-spacing: .02em; }
  .brand-txt p { letter-spacing: .18em; font-size: 10px; }
  .brand-mark { width: 36px; height: 36px; font-size: 12px; border-radius: 9px; }
  .top-right { width: 100%; gap: 8px; flex-wrap: wrap; }
  .top-clock { flex: 1 1 100%; height: 34px; justify-content: center; }
  .top-clock time { font-size: 12px; }
  .zone-pick { flex: 1 1 auto; height: 38px; }
  .pool-chip { flex: 1 1 auto; height: 38px; justify-content: center; }
  .icon-btn { width: 38px; height: 38px; flex: none; }

  /* 奖品平铺（禁用 transform，全部可见、可纵向滚动） */
  .prize-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    transform: none !important;
    transition: none;
  }
  .prize-stage .prize-viewport { overflow: visible; }
  .pv-nav, .pv-dots { display: none !important; }
  .prize-stage.is-static .prize-track { justify-content: stretch; }
  .prize-stage.is-static .pc-card,
  .pc-card { flex: none; width: auto; max-width: none; }
  .pc-tier { font-size: 24px; }
  .pc-sku { font-size: 11px; }
  .pc-name { font-size: 12.5px; min-height: 2.8em; }

  /* 移动端以顶部单按钮为唯一抽奖入口，舞台区隐去，避免双入口与长页面 */
  .sec-stage { display: none; }

  .rule-list { grid-template-columns: 1fr; }
  .rule-list li { font-size: 12.5px; line-height: 1.78; }

  .pool-board { padding: 13px 16px; gap: 8px; }
  .pool-num { font-size: 40px; }
  .pool-side .v { font-size: 20px; }
  .pool-side { min-width: 56px; }

  .feed-scroll { max-height: none; overflow: visible; }
  .feed-row .fd-del { opacity: .85; }
  .feed-tools { flex-wrap: wrap; }

  /* 全屏弹层表单 */
  .ug-modal { padding: 0; align-items: stretch; }
  .ug-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: none;
    transform: none;
    opacity: 1;
  }
  .ug-dialog::before { left: 0; right: 0; }
  .ug-dialog-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 22px; }
  .ug-dialog-foot { margin-top: auto; padding-top: 18px; }
  .ug-step { display: flex; flex-direction: column; flex: 1; }
  .result-dialog { max-width: none; }
  .result-list { max-height: 40vh; }
  .draw-overlay .ov-slot { width: min(60vw, 220px); }
}

/* ---- 1440–2559：1920/1080p 投屏，单视窗零滚动 ---- */
@media (min-width: 1440px) and (max-width: 2559px) {
  .prize-stage { --pv-n: 5; }
  .pc-tier { font-size: clamp(24px, 1.95vw, 46px); }
  .feed-scroll { max-height: clamp(190px, 26vh, 340px); }
  .rule-list li { font-size: clamp(11px, .82vw, 16px); }
}

/* ---- ≥2560：2K / 4K 等比放大，奖池保持多款横向轮播 ---- */
@media (min-width: 2560px) {
  .prize-stage { --pv-n: 5; --pv-gap: 32px; }
  .prize-stage.is-static .pc-card { max-width: calc((100% - 4 * 32px) / 5); }
  .pc-tier { font-size: clamp(38px, 1.75vw, 66px); }
  .pc-sku { font-size: clamp(15px, .72vw, 24px); }
  .pc-name { font-size: clamp(17px, .78vw, 26px); }
  .pc-meta { font-size: clamp(13px, .6vw, 20px); }
  .stage-title { font-size: clamp(34px, 1.6vw, 60px); }
  .btn-lucky { max-width: 620px; height: 96px; font-size: 34px; }
  .sw-img { width: clamp(170px, 7vw, 260px); }
  .pool-num { font-size: clamp(64px, 2.9vw, 120px); }
  .rule-list li { font-size: clamp(16px, .7vw, 24px); }
  .feed-scroll { max-height: clamp(420px, 26vh, 720px); }
  .layout { grid-template-columns: minmax(0, 1fr) minmax(620px, 29vw); gap: 56px; }
  .sum-table thead th { font-size: 16px; }
  .sum-table .num-cell { font-size: 30px; }
}


/* ==================================================================
 * 13. 补充：等级描金渐变字 / 6~10 等奖配色 / 动态空态 / 轮播轨道
 * ================================================================== */
/* 等级：超大描金（渐变金属字 + 保留原有 drop-shadow 立体感） */
.pc-tier {
  background: linear-gradient(180deg, #FFF9E8 0%, #F7DFA1 32%, #E3B95F 64%, #A9761F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
/* 6~10 等奖徽章配色（style.css 仅定义了 1~5） */
.tier-6  { --tc: #8FA6BF; --tc-l: #E4EDF6; }
.tier-7  { --tc: #9FB08E; --tc-l: #E8F0DE; }
.tier-8  { --tc: #B0A0C8; --tc-l: #EDE6F5; }
.tier-9  { --tc: #C39A9A; --tc-l: #F5E6E6; }
.tier-10 { --tc: #A8A8B0; --tc-l: #EDEDF2; }

.feed-empty {
  padding: clamp(22px, 2vw, 38px) 0;
  text-align: center;
  letter-spacing: .14em;
  font-size: clamp(11px, .85vw, 15px);
  color: rgba(255, 232, 200, .34);
}

/* 轮播轨道：位移用 JS transform，此处仅约束不换行 */
.prize-track { will-change: transform; }
.prize-stage.is-static .prize-track { will-change: auto; }

/* 汇总表：SKU 后跟随奖品名（弱化，保持 SKU 为第一视觉） */
.sum-table .sku-cell .sum-name {
  display: inline-block;
  margin-left: 10px;
  font-family: inherit;
  font-size: .8em;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 238, 214, .6);
}
