/* 限定秒杀 —— 使用游戏原生 UI 素材（9宫格底框 / 活动按钮 / 道具框 / 秒杀字） */
#secMask, #secPanel, #secPanel * { box-sizing: border-box; }

#secMask {
  position: fixed; inset: 0; z-index: 99998; display: none;
  background: rgba(0, 0, 0, 0.78);
  -webkit-tap-highlight-color: transparent;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
#secMask.show { display: block; }

#secStage {
  position: absolute; left: 50%; top: 50%;
  width: 1000px; height: 640px;
  transform-origin: center center;
}

/* ---------- 面板：原生奖励底框做九宫 ---------- */
#secPanel {
  position: absolute; inset: 0;
  border: 30px solid transparent;
  border-image: url(/custom/seckill/assets/reward_bg.png) 32 fill stretch;
  border-radius: 2px;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.8));
  color: #f0dcb4;
}

/* 内容区（避开 30px 边框） */
.sec-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 6px 10px 10px;
}

/* ---------- 标题 ---------- */
.sec-head {
  position: relative;
  height: 74px;
  flex: 0 0 74px;
  display: flex; align-items: center; justify-content: center;
}
.sec-title { display: flex; align-items: center; gap: 2px; }
.sec-title .ch {
  font-size: 40px; font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(180deg, #fff6cf 0%, #ffd66b 42%, #f0a52a 62%, #ffe9a8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 0 rgba(90, 46, 4, 0.55);
}
.sec-title img.seckill-word {
  height: 52px; margin-left: 4px;
  filter: drop-shadow(0 3px 2px rgba(80, 30, 0, 0.6));
}
.sec-sub {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: #d8b782; line-height: 1.45;
}
.sec-close {
  position: absolute; right: -6px; top: -6px;
  width: 62px; height: 68px; border: 0; padding: 0;
  background: url(/custom/seckill/assets/btn_close.png) center/contain no-repeat;
  cursor: pointer;
}
.sec-close:active { filter: brightness(0.85); }

/* ---------- 倒计时 ---------- */
.sec-timer {
  flex: 0 0 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 6px 8px;
  font-size: 15px; color: #cbb08a;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(201, 161, 90, 0.45);
  border-radius: 6px;
}
.sec-timer .val {
  min-width: 42px; padding: 2px 8px;
  border-radius: 4px; background: #1a1206;
  border: 1px solid rgba(201, 161, 90, 0.6);
  color: #ffd066; font-size: 19px; font-weight: 700;
  text-align: center; font-variant-numeric: tabular-nums;
}
.sec-timer .sep { color: #8a6c42; font-weight: 700; }

/* ---------- 7 档列表 ---------- */
.sec-list { flex: 1 1 auto; overflow-y: auto; padding: 0 6px; }
.sec-list::-webkit-scrollbar { width: 7px; }
.sec-list::-webkit-scrollbar-thumb { background: rgba(201, 161, 90, 0.55); border-radius: 4px; }

.sec-row {
  display: flex; align-items: center; gap: 12px;
  height: 86px; margin-bottom: 8px; padding: 0 12px;
  background: linear-gradient(90deg, rgba(60, 36, 12, 0.92), rgba(34, 21, 8, 0.92));
  border: 1px solid rgba(201, 161, 90, 0.38);
  border-radius: 8px;
}
.sec-row:hover { border-color: rgba(255, 205, 110, 0.8); }

/* 道具格：原生奖励底框 */
.sec-slot {
  flex: 0 0 68px; width: 68px; height: 68px;
  border: 10px solid transparent;
  border-image: url(/custom/seckill/assets/reward_bg.png) 28 fill stretch;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #a89373;
}
.sec-slot img { max-width: 100%; max-height: 100%; display: block; }

.sec-info { flex: 1 1 auto; min-width: 0; }
.sec-info .name { font-size: 17px; font-weight: 700; color: #ffe1a8; letter-spacing: 1px; }
.sec-info .desc { margin-top: 3px; font-size: 13px; color: #a8906c; }
.sec-info .desc.empty { font-style: italic; color: #857056; }

.sec-price {
  flex: 0 0 150px; text-align: right; color: #ffd77d;
  font-variant-numeric: tabular-nums;
}
.sec-price .cur { font-size: 16px; }
.sec-price .num {
  font-size: 30px; font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(90, 52, 10, 0.8);
}

/* 购买按钮：原生活动按钮 */
.sec-buy {
  flex: 0 0 132px; width: 132px; height: 50px;
  border: 14px solid transparent;
  border-image: url(/custom/seckill/assets/btn.png) 16 22 fill stretch;
  background: none; padding: 0;
  color: #6b3c05; font-size: 18px; font-weight: 800; letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.sec-buy:active { filter: brightness(0.9); }
.sec-buy.locked {
  filter: grayscale(0.85) brightness(0.72);
  color: #4a3a22; cursor: not-allowed; text-shadow: none;
}

/* ---------- 底部 ---------- */
.sec-foot {
  flex: 0 0 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #8f795c;
}

/* 轻提示 */
#secToast {
  position: fixed; left: 50%; top: 16%; transform: translateX(-50%);
  z-index: 100001; padding: 12px 26px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(52, 33, 12, 0.97), rgba(28, 17, 7, 0.97));
  border: 1px solid rgba(201, 161, 90, 0.75);
  color: #ffd88f; font-size: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
#secToast.show { opacity: 1; }
