/* ===== 我的奖品 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #c0392b 0%, #e74c3c 45%, #d35400 100%);
  min-height: 100vh;
  color: #fff;
}

.hidden { display: none !important; }

.page { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }

/* ===== 顶部 ===== */
.hero { text-align: center; padding: 6px 0 18px; position: relative; }

.back-link {
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 14px;
  color: #ffe9a8;
  text-decoration: none;
  font-weight: 600;
}

.hero-title { font-size: 24px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }

.hero-sub { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.85); }

/* ===== 查询 ===== */
.query-box {
  background: rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255,217,122,.4);
}

/* 自动识别提示（免手机号查询） */
.auto-tip {
  font-size: 13px;
  font-weight: 600;
  color: #ffe9a8;
  text-align: center;
  padding: 6px 0 2px;
}

.auto-tip.ok { color: #b7f5c0; }
.auto-tip.fallback { color: #ffd7d2; }

.phone-input {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  color: #333;
  outline: none;
}

.phone-input::placeholder { color: #aaa; }

.query-btn {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(145deg, #ffd97a, #f5b942);
  color: #a8331f;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.query-btn:disabled { opacity: .6; }

.tip {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
  text-align: center;
  color: #ffe9a8;
  font-weight: 600;
}

.tip.error { color: #ffd7d2; }

/* ===== 列表 ===== */
.list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }

.prize-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  color: #333;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  border-left: 5px solid #e0a83c;
  text-decoration: none;
  transition: transform .12s ease;
}

.prize-card:active { transform: scale(.985); }

.prize-card.used { border-left-color: #bbb; opacity: .85; }
.prize-card.expired { border-left-color: #ddd; opacity: .7; }

.prize-img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f6efe0;
  border: 1px solid #eee;
}

.prize-img-placeholder {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #fdf3dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1px solid #f0e0bd;
}

.prize-main { flex: 1; min-width: 0; }

.prize-head { display: flex; align-items: center; gap: 8px; }

.prize-name { font-size: 16px; font-weight: 700; color: #333; }

.prize-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  flex: 0 0 auto;
}

.prize-status.pending { background: #fdeaea; color: #c0392b; }
.prize-status.used { background: #ececec; color: #888; }
.prize-status.expired { background: #f4f4f4; color: #aaa; }

.prize-type { margin-top: 3px; font-size: 12px; color: #999; }

.prize-code-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
}

.prize-code {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c0392b;
  background: #fdf6e6;
  border: 1px dashed #e0a83c;
  border-radius: 6px;
  padding: 2px 8px;
}

.prize-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #777;
  white-space: pre-line;
}

.prize-redeem {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #a8331f;
  background: #fdf3dc;
  border-radius: 8px;
  padding: 8px 10px;
}

.prize-time { margin-top: 6px; font-size: 11px; color: #bbb; }

.prize-valid { margin-top: 6px; font-size: 12px; font-weight: 700; color: #a8894a; }

.prize-valid.expired { color: #c0392b; }

.prize-detail-tip { margin-top: 8px; font-size: 12px; font-weight: 700; color: #c0392b; text-align: right; }

/* ===== 到店核销门店 ===== */
.addr-box {
  margin-top: 18px;
  background: #fff8ea;
  border: 1px dashed #e0a83c;
  border-radius: 12px;
  padding: 14px;
}

.addr-box-title { font-size: 14px; font-weight: 700; color: #b03a2e; margin-bottom: 8px; }

.addr-box-tip { margin-top: 10px; font-size: 12px; color: #a8894a; text-align: center; }

/* ===== 空态 ===== */
.empty { text-align: center; padding: 40px 0; }

.empty-emoji { font-size: 44px; }

.empty-text { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.85); }

.empty-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #ffe9a8;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,233,168,.5);
  padding-bottom: 2px;
}

.footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}
