/* 活动消费送好礼 · 暖橙活动面板 */

.spend-rewards {
  padding: 0 10px 36px;
  position: relative;
  z-index: 1;
}

.spend-rewards-panel {
  background: linear-gradient(180deg, #fff8ee 0%, #ffefd8 48%, #ffe8c8 100%);
  border-radius: 20px;
  border: 2px solid rgba(255, 200, 140, 0.85);
  box-shadow: 0 8px 24px rgba(210, 140, 60, 0.18);
  padding: 16px 14px 14px;
  position: relative;
  overflow: hidden;
}

.spend-rewards-panel::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.spend-rewards-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #8b4518;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.spend-rewards-title-deco {
  color: #f5a623;
  font-size: 12px;
}

.spend-rewards-period {
  margin: 0 0 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #a07850;
}

.spend-rewards-desc {
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.55;
  color: #8a7358;
  text-align: justify;
}

/* ── 宝箱进度 ── */
.spend-tier-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.spend-tier-label {
  font-size: 8px;
  font-weight: 800;
  color: #b8956a;
  text-align: center;
  line-height: 1.25;
  min-height: 22px;
}

.spend-tier-label.is-claimable {
  color: #e85a00;
}

.spend-tier-label.is-claimed {
  color: #7a9a6e;
}

.spend-chests {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.spend-chest-btn {
  border: none;
  background: none;
  padding: 4px 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.spend-chest-icon {
  width: 44px;
  height: 40px;
  position: relative;
}

.spend-chest-btn.is-claimable .spend-chest-icon {
  filter: drop-shadow(0 0 8px rgba(255, 220, 100, 0.9));
  animation: spend-chest-glow 1.8s ease-in-out infinite;
}

@keyframes spend-chest-glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.spend-progress-wrap {
  position: relative;
  height: 8px;
  margin: 0 8px 10px;
  background: #e8ddd0;
  border-radius: 999px;
  overflow: visible;
}

.spend-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb347, #ff8c42);
  box-shadow: 0 0 8px rgba(255, 140, 60, 0.45);
  transition: width 0.4s ease;
}

.spend-progress-nodes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  pointer-events: none;
}

.spend-progress-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d4c4b0;
  transform: translateY(0);
  flex-shrink: 0;
}

.spend-progress-node.is-reached {
  border-color: #ff8c42;
  background: #ffe0b8;
}

.spend-progress-node.is-current {
  border-color: #ff6b00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 140, 60, 0.35);
}

.spend-tier-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.spend-tier-amount {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #8b6914;
}

.spend-remain-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 100, 0.4);
}

.spend-remain-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd54f, #f5a623);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.spend-remain-badge-text {
  font-size: 11px;
  font-weight: 800;
  color: #c45c00;
}

/* ── 符合条件商品轮播 ── */
.spend-products-block {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  border: 1.5px solid rgba(255, 190, 120, 0.5);
  padding: 10px 10px 8px;
}

.spend-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.spend-products-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: #8b4518;
}

.spend-products-more {
  font-size: 11px;
  font-weight: 800;
  color: #e85a00;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 200, 120, 0.25);
}

.spend-products-more:active {
  opacity: 0.8;
}

.spend-product-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.spend-product-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.spend-product-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 4px 2px 8px;
  box-sizing: border-box;
}

.spend-product-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(210, 170, 120, 0.35);
  box-shadow: 0 2px 6px rgba(180, 120, 60, 0.08);
  position: relative;
  pointer-events: none;
}

.spend-product-type {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  z-index: 1;
}

.spend-product-type--offline { background: #e85a00; }
.spend-product-type--online { background: #2b8fd4; }
.spend-product-type--physical { background: #7c5cbf; }

.spend-product-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5ebe0 0%, #e8d8c8 100%);
  margin-top: 10px;
}

.spend-product-info {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.spend-product-title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #4a4038;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-prices {
  margin: 4px 0 0;
}

.product-prices__origin {
  margin: 0;
  font-weight: 600;
  color: #a89888;
  text-decoration: line-through;
  line-height: 1.2;
}

.product-prices__now {
  margin: 1px 0 0;
  font-weight: 900;
  color: #e85a00;
  line-height: 1.2;
}

.product-prices--carousel .product-prices__origin {
  font-size: 9px;
}

.product-prices--carousel .product-prices__now {
  font-size: 12px;
}

.product-prices--list {
  margin-top: 6px;
}

.product-prices--list .product-prices__origin {
  font-size: 11px;
}

.product-prices--list .product-prices__now {
  font-size: 15px;
}

.spend-product-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.spend-product-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #dcc8b0;
  cursor: pointer;
}

.spend-product-dot.is-active {
  background: #ff8c42;
  transform: scale(1.2);
}

/* ── 宝箱礼品弹窗 ── */
.spend-chest-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(40, 28, 20, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.spend-chest-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.spend-chest-modal {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, #fff8ee 0%, #ffefd8 100%);
  border-radius: 20px;
  border: 2px solid rgba(255, 200, 140, 0.9);
  padding: 18px 14px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: scale(0.94);
  transition: transform 0.28s ease;
}

.spend-chest-overlay.is-open .spend-chest-modal {
  transform: scale(1);
}

.spend-chest-modal-title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #8b4518;
  letter-spacing: 2px;
}

.spend-chest-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
  margin-bottom: 12px;
}

.spend-chest-reward-item {
  text-align: center;
}

.spend-chest-reward-thumb {
  width: 100%;
  aspect-ratio: 1;
  max-width: 72px;
  margin: 0 auto 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(210, 170, 120, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.spend-chest-reward-name {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  color: #6a5a48;
  line-height: 1.3;
}

.spend-chest-modal-note {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  color: #a07850;
  text-align: center;
}

.spend-chest-modal-actions {
  text-align: center;
}

.spend-chest-confirm {
  min-width: 140px;
  padding: 10px 28px;
  border: 2px solid #8b4518;
  border-radius: 999px;
  background: transparent;
  color: #8b4518;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.ios-screen .spend-chest-overlay {
  position: absolute;
  border-radius: 34px;
}

/* ── 符合条件商品落地页 ── */
.eligible-app {
  min-height: 100%;
  background: #f5f0ea;
  display: flex;
  flex-direction: column;
}

.eligible-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.eligible-back {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f0ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b4518;
  cursor: pointer;
}

.eligible-title {
  flex: 1;
  text-align: center;
  margin: 0 36px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #4a4038;
}

.eligible-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.eligible-tabs::-webkit-scrollbar { display: none; }

.eligible-tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: #f0ebe4;
  color: #8a7358;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.eligible-tab.is-active {
  background: linear-gradient(135deg, #ffb347, #ff8c42);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 140, 60, 0.35);
}

.eligible-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.eligible-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.eligible-item:active {
  background: #faf8f5;
}

.eligible-item-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5ebe0, #e0d0c0);
}

.eligible-item-body {
  flex: 1;
  min-width: 0;
}

.eligible-item-type {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}

.eligible-item-type--offline { background: #e85a00; }
.eligible-item-type--online { background: #2b8fd4; }
.eligible-item-type--physical { background: #7c5cbf; }

.eligible-item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eligible-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(60, 45, 30, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  white-space: nowrap;
}

.eligible-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ios-screen .eligible-toast {
  position: absolute;
}

.ios-screen .eligible-app {
  padding-top: 46px;
}
