/* 烟邮驿站开业抽奖 H5 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #072B18;
  color: #fff;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

.page {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, #14603A 0%, #0C4527 46%, #082F1B 100%);
  overflow: hidden;
  padding-bottom: 40px;
}

/* 彩带装饰 */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.confetti i {
  position: absolute; display: block; border-radius: 2px; opacity: .85;
  animation: cf-fall 7s linear infinite;
}
.confetti i:nth-child(5n)   { background: #FFD24D; }
.confetti i:nth-child(5n+1) { background: #FF7A59; }
.confetti i:nth-child(5n+2) { background: #7FD08D; }
.confetti i:nth-child(5n+3) { background: #FFF3C2; }
.confetti i:nth-child(5n+4) { background: #F86D5B; border-radius: 50%; }
@keyframes cf-fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: .9; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: .4; }
}

.inner { position: relative; z-index: 1; padding: 0 16px; }

/* ---------- 顶部角标按钮 ---------- */
.top-tags { display: flex; justify-content: space-between; padding: 14px 0 4px; }
.tag-btn {
  font-size: 12px; color: #FFE9A8; background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,226,150,.55); border-radius: 14px;
  padding: 5px 12px; line-height: 1;
}

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 26px 0 6px; }
.hero .slogan {
  display: inline-block; font-size: 13px; color: #BFE8CB; letter-spacing: 4px; margin-bottom: 10px;
}
.hero h1 {
  font-size: 44px; line-height: 1.18; font-weight: 900; color: #FFE14D;
  text-shadow: 0 3px 0 #A05A00, 0 6px 16px rgba(0,0,0,.45);
  letter-spacing: 2px;
}
.hero h1 .l2 { display: block; color: #FFF2B0; }
.hero-banner { border-radius: 14px; overflow: hidden; margin: 6px 0 2px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }

.date-ribbon {
  display: inline-block; margin-top: 14px;
  background: linear-gradient(180deg, #FF9D3C, #F0611C);
  border: 2px solid #FFD98A; border-radius: 20px;
  color: #fff; font-size: 15px; font-weight: bold; padding: 8px 22px;
  box-shadow: 0 4px 12px rgba(240, 97, 28, .5);
}

.rule-line {
  margin: 16px auto 0; width: fit-content;
  background: rgba(0,0,0,.25); border: 2px solid #FFD766; border-radius: 26px;
  color: #FFE14D; font-size: 21px; font-weight: 800; padding: 9px 26px;
}
.pills { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.pill {
  font-size: 13px; color: #FFE9A8; border: 1px solid rgba(255,215,102,.8);
  border-radius: 14px; padding: 4px 14px; background: rgba(255,215,102,.12);
}
.pill::before { content: "◆ "; color: #FFD766; font-size: 10px; }

.store-card { margin: 20px 0 0; border-radius: 14px; overflow: hidden; }

.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 86%; height: 62px; margin: 24px auto 0;
  background: linear-gradient(180deg, #FFB84D 0%, #FF7A00 100%);
  border: 3px solid #FFE3A8; border-radius: 34px;
  color: #fff; font-size: 26px; font-weight: 900; letter-spacing: 4px;
  box-shadow: 0 8px 20px rgba(255, 122, 0, .45), inset 0 -4px 0 rgba(0,0,0,.12);
  animation: cta-pulse 1.6s ease-in-out infinite;
}
.cta-btn .play {
  width: 30px; height: 30px; border-radius: 50%; background: #fff; position: relative; flex: none;
}
.cta-btn .play::after {
  content: ""; position: absolute; left: 11px; top: 8px;
  border-left: 11px solid #FF7A00; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
@keyframes cta-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.entry-row { display: flex; gap: 12px; margin-top: 18px; }
.entry-card {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: #FFF9E8; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.entry-card .ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.entry-card .ico.green { background: #0E5A32; }
.entry-card .ico.gold { background: linear-gradient(180deg,#FFC24D,#F09218); }
.entry-card b { display: block; color: #333; font-size: 15px; }
.entry-card span { color: #999; font-size: 11px; }

.prize-board {
  margin-top: 18px; background: #FFF9E8; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.prize-board .pb-hd {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #0E5A32, #0A3D22); padding: 10px 14px;
}
.prize-board .pb-hd b { color: #FFE14D; font-size: 15px; }
.prize-board .pb-hd .mini { font-size: 11px; color: #fff; background: #E23A2E; border-radius: 10px; padding: 2px 8px; }
.pb-list { max-height: 132px; overflow: hidden; position: relative; }
.pb-scroll { animation: pb-roll 12s linear infinite; }
.pb-item { display: flex; align-items: center; padding: 9px 14px; border-bottom: 1px dashed #EFE3BC; }
.pb-item .lv {
  font-size: 12px; color: #B54708; background: #FFEFC9; border: 1px solid #F5D98B;
  border-radius: 4px; padding: 2px 7px; margin-right: 10px; flex: none;
}
.pb-item .nm { color: #444; font-size: 13px; flex: 1; }
.pb-item .qt { color: #999; font-size: 12px; }
@keyframes pb-roll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ---------- 表单页（资格验证） ---------- */
.form-card {
  background: #FFF9E8; border-radius: 16px; margin-top: 20px; padding: 22px 18px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.form-card .f-title { text-align: center; color: #0A3D22; font-size: 21px; font-weight: 800; }
.form-card .f-sub { text-align: center; color: #D96A1B; font-size: 13px; margin-top: 6px; }
.f-row { margin-top: 16px; display: flex; align-items: center; background: #fff; border: 1px solid #E8DDB8; border-radius: 10px; padding: 0 12px; height: 48px; }
.f-row label { font-size: 14px; color: #333; font-weight: bold; width: 74px; flex: none; }
.f-row input { flex: 1; border: none; outline: none; font-size: 14px; height: 100%; background: transparent; color: #333; }
.f-block { margin-top: 16px; }
.f-block > label { font-size: 14px; color: #333; font-weight: bold; display: block; margin-bottom: 4px; }
.f-block .up-tip { font-size: 12px; color: #999; margin-bottom: 8px; }
.upload-box {
  border: 2px dashed #D9C88F; border-radius: 12px; background: #fff;
  min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #B8860B; cursor: pointer; overflow: hidden; position: relative;
}
.upload-box .cam { font-size: 34px; }
.upload-box p { font-size: 14px; margin-top: 6px; color: #C08A2D; }
.upload-box small { font-size: 11px; color: #BBB; margin-top: 4px; }
.upload-box img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-note { font-size: 12px; color: #999; margin-top: 10px; display: flex; gap: 4px; }
.submit-btn {
  width: 100%; height: 50px; border: none; border-radius: 25px; margin-top: 18px;
  background: linear-gradient(180deg, #FFA33A, #FF7A00);
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 2px; cursor: pointer;
  box-shadow: 0 6px 14px rgba(255,122,0,.4);
}
.submit-btn:disabled { opacity: .6; }
.tips-card { background: rgba(255,249,232,.95); border-radius: 12px; margin-top: 16px; padding: 14px 16px; }
.tips-card b { color: #D96A1B; font-size: 14px; }
.tips-card p { color: #8A7A55; font-size: 12px; line-height: 1.9; white-space: pre-line; margin-top: 6px; }

/* ---------- 转盘页 ---------- */
.wheel-head { text-align: center; padding-top: 10px; }
.wheel-head h2 { font-size: 30px; font-weight: 900; color: #FFE14D; text-shadow: 0 2px 0 #A05A00, 0 5px 12px rgba(0,0,0,.4); letter-spacing: 1px; }
.wheel-wrap { position: relative; width: min(88vw, 400px); margin: 22px auto 0; }
.wheel-ring {
  position: relative; width: 100%; padding-top: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #FFDF8C 0%, #F7B733 55%, #C8811A 100%);
  box-shadow: 0 12px 34px rgba(0,0,0,.5), inset 0 -6px 14px rgba(120,60,0,.35);
}
.lamp { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #FFF6D8; box-shadow: 0 0 6px 2px rgba(255,240,180,.9); }
.lamp.dim { background: #E8A93C; box-shadow: none; }
.wheel-disc {
  position: absolute; inset: 7.5%;
  border-radius: 50%; overflow: hidden;
  transition: transform 5s cubic-bezier(.17, .8, .17, 1);
  will-change: transform;
}
.wheel-disc svg { width: 100%; height: 100%; display: block; }
.wheel-pointer {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 31%; z-index: 5; text-align: center;
}
.pointer-btn {
  position: relative; width: 100%; padding-top: 100%; border-radius: 50%;
  background: linear-gradient(180deg, #FFAE45 0%, #F2600F 100%);
  border: 4px solid #FFE9B8; cursor: pointer;
  box-shadow: 0 6px 16px rgba(180, 70, 0, .55), inset 0 -4px 0 rgba(0,0,0,.15);
}
.pointer-btn::before {
  content: ""; position: absolute; left: 50%; top: -26px; transform: translateX(-50%);
  border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-bottom: 30px solid #F2600F;
}
.pointer-btn span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 900; line-height: 1.3; letter-spacing: 2px;
  writing-mode: horizontal-tb; text-align: center; white-space: pre-line;
}
.chance-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: fit-content; margin: 26px auto 0;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,215,102,.6);
  border-radius: 22px; padding: 10px 22px; font-size: 15px; color: #FFE9A8;
}
.chance-bar b { color: #FFE14D; }
.chance-bar .detail { font-size: 12px; color: #BFE8CB; border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; }
.act-time { text-align: center; color: #9CCBAA; font-size: 13px; margin-top: 22px; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 50;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.mask.show { display: flex; }
.modal { width: 100%; max-width: 340px; position: relative; animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ribbon {
  position: relative; z-index: 2; width: 76%; margin: 0 auto -22px;
  background: linear-gradient(180deg, #FF9D3C, #F0611C);
  border: 2px solid #FFD98A; border-radius: 14px;
  text-align: center; color: #fff; font-size: 22px; font-weight: 900;
  padding: 10px 0; letter-spacing: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.modal-card { background: #FFF9E8; border-radius: 18px; padding: 34px 20px 22px; text-align: center; }
.modal-card .lv { color: #E23A2E; font-size: 22px; font-weight: 900; }
.modal-card .nm { color: #333; font-size: 16px; margin-top: 4px; }
.modal-card .pimg { width: 110px; height: 110px; object-fit: contain; margin: 14px auto 6px; }
.modal-card .code-line { font-size: 13px; color: #8A7A55; margin-top: 6px; }
.modal-card .code-line b { color: #B54708; font-size: 16px; letter-spacing: 2px; }
.modal-card .note { color: #999; font-size: 12px; margin-top: 10px; }
.modal-btns { display: flex; gap: 12px; margin-top: 16px; }
.modal-btns .mb {
  flex: 1; height: 44px; border-radius: 22px; font-size: 15px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: none;
}
.mb.ghost { background: #fff; color: #D96A1B; border: 1px solid #F0C060; }
.mb.solid { background: linear-gradient(180deg, #FFA33A, #FF7A00); color: #fff; }
.modal-close {
  width: 34px; height: 34px; margin: 18px auto 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.rules-body { max-height: 55vh; overflow-y: auto; text-align: left; color: #6B5B36; font-size: 13px; line-height: 2; white-space: pre-line; }
.rules-title { color: #0A3D22; font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 10px; }

/* ---------- 我的奖品页 ---------- */
.page-title { text-align: center; font-size: 24px; font-weight: 900; color: #FFE14D; padding-top: 22px; text-shadow: 0 2px 0 #A05A00; }
.query-bar { display: flex; gap: 10px; margin-top: 18px; }
.query-bar input {
  flex: 1; height: 44px; border: 1px solid rgba(255,215,102,.6); border-radius: 22px;
  background: rgba(0,0,0,.25); color: #fff; padding: 0 16px; font-size: 14px; outline: none;
}
.query-bar input::placeholder { color: #86B295; }
.query-bar button {
  height: 44px; padding: 0 22px; border: none; border-radius: 22px;
  background: linear-gradient(180deg, #FFA33A, #FF7A00); color: #fff; font-size: 15px; font-weight: bold; cursor: pointer;
}
.win-list { margin-top: 16px; }
.win-item {
  display: flex; align-items: center; gap: 12px;
  background: #FFF9E8; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.win-item img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.win-item .wi-main { flex: 1; min-width: 0; }
.win-item .wi-main b { color: #E23A2E; font-size: 15px; }
.win-item .wi-main p { color: #444; font-size: 13px; margin-top: 2px; }
.win-item .wi-main small { color: #999; font-size: 11px; display: block; margin-top: 3px; }
.win-item .wi-state { flex: none; text-align: center; font-size: 12px; }
.wi-state .st0 { color: #D96A1B; border: 1px solid #F0C060; border-radius: 12px; padding: 3px 10px; }
.wi-state .st1 { color: #999; border: 1px solid #ddd; border-radius: 12px; padding: 3px 10px; }
.wi-state .code { display: block; color: #B54708; font-weight: bold; margin-top: 6px; letter-spacing: 1px; }
.empty { text-align: center; color: #86B295; padding: 60px 0; font-size: 14px; }
.empty .e-ico { font-size: 46px; margin-bottom: 10px; }

.back-home {
  display: flex; align-items: center; justify-content: center;
  width: 60%; height: 44px; margin: 26px auto 0;
  border: 1px solid rgba(255,215,102,.7); border-radius: 22px; color: #FFE9A8; font-size: 14px;
}

/* 明细弹层 */
.subs-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #555; }
.subs-table th { color: #0A3D22; padding: 6px 4px; border-bottom: 1px solid #E8DCB2; font-size: 12px; }
.subs-table td { padding: 7px 4px; border-bottom: 1px dashed #EFE3BC; text-align: center; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 42%; transform: translateX(-50%);
  background: rgba(0,0,0,.78); color: #fff; font-size: 14px;
  padding: 12px 22px; border-radius: 10px; z-index: 99; display: none;
  max-width: 80vw; text-align: center; line-height: 1.5;
}
