/* ================= 奖品页 /rewards.html ================= */

body.rewards-page {
  background: #f6faf0;
  min-height: 100vh;
}

.rewards-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 16px 48px;
}

.rewards-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 10px;
}

.rewards-back {
  font-size: 14px;
  font-weight: 600;
  color: #6a9927;
  text-decoration: none;
}
.rewards-back:hover { text-decoration: underline; }

.rewards-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #e3eecf;
  border-radius: 20px;
  padding: 6px 13px;
  box-shadow: 0 2px 8px rgba(106, 153, 39, .07);
}
.rb-label { font-size: 11.5px; color: #9aa98c; font-weight: 600; }
.rb-value { font-size: 16px; font-weight: 800; color: #3f6b12; }

.rewards-head { margin: 2px 0 16px; }
.rewards-head h1 {
  font-size: 25px;
  font-weight: 800;
  color: #1f2a16;
  margin: 0 0 6px;
  line-height: 1.3;
}
.rewards-sub {
  margin: 0;
  font-size: 13.5px;
  color: #6f8158;
  line-height: 1.6;
}

/* ===== 分类 tabs ===== */
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1.5px solid #e3eecf;
  background: #fff;
  color: #5c6b4e;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.cat-tab:active { transform: scale(.97); }
.cat-tab.active {
  background: linear-gradient(135deg, #94c84a, #6a9927);
  border-color: #6a9927;
  color: #fff;
  box-shadow: 0 3px 10px rgba(106, 153, 39, .28);
}
.cat-tab .tab-count {
  font-size: 11px;
  opacity: .75;
  margin-left: 4px;
}

/* ===== 限时活动横幅 ===== */
.limited-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(135deg, #fff4e0, #ffe6bd);
  border: 1px solid #f0d5a8;
  border-radius: 15px;
  padding: 12px 14px;
  margin-bottom: 14px;
  cursor: pointer;
}
.lb-icon { font-size: 19px; line-height: 1; }
.lb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-text strong { font-size: 13.5px; color: #8a5a24; font-weight: 800; }
.lb-text span { font-size: 11.5px; color: #a5764a; }
.lb-arrow { color: #cf9f63; font-size: 19px; line-height: 1; }

/* ===== 奖品卡片 ===== */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.reward-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #e3eecf;
  border-radius: 16px;
  padding: 13px 13px 12px;
  transition: border-color .18s, box-shadow .18s;
}
.reward-card:active { border-color: #c6dfa3; }

.reward-card.limited {
  border-color: #f0d5a8;
  background: linear-gradient(170deg, #fffdf8, #fff9ee);
}

.rw-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
}

.rw-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  background: #f2f8e8;
}
.rw-icon.airtime { background: #eef6ff; }
.rw-icon.data { background: #eefaf3; }
.rw-icon.coupon { background: #fff6e6; }
.rw-icon.emoney { background: #f4eefb; }

.rw-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 12px;
  background: #f2f8e8;
  color: #6a9927;
  white-space: nowrap;
}
.rw-tag.hot { background: linear-gradient(135deg, #ff9d4d, #f0741a); color: #fff; }

.rw-title {
  font-size: 14px;
  font-weight: 700;
  color: #22301a;
  line-height: 1.4;
  margin-bottom: 4px;
  min-height: 39px;
}

.rw-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 9px;
}
.rw-cost {
  font-size: 16px;
  font-weight: 800;
  color: #3f6b12;
}
.rw-cost small { font-size: 10.5px; font-weight: 600; color: #9aa98c; margin-left: 1px; }
.rw-was {
  font-size: 11.5px;
  color: #b3bda8;
  text-decoration: line-through;
}

.rw-stock {
  font-size: 10.5px;
  color: #b08a5a;
  margin-bottom: 8px;
}

.rw-action { margin-top: auto; }
.rw-action .btn { width: 100%; }

.rw-owned {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #9aa98c;
  background: #f6f9f1;
  border: 1.5px dashed #dfe9d2;
  border-radius: 12px;
  padding: 9px;
}

/* ===== 空状态 ===== */
.rewards-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9aa98c;
  font-size: 14px;
}

.rewards-note {
  margin-top: 22px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #a3af97;
  text-align: center;
}
.rewards-note a { color: #6a9927; }

@media (max-width: 360px) {
  .reward-grid { grid-template-columns: 1fr; }
}
