/* 集卡补给包 · 温馨暖色，贴合和谐家庭日 */

.supply-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 10px;
  padding: 8px 10px;
  border: 1.5px solid rgba(255, 200, 150, 0.85);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9f2 0%, #ffe8d0 55%, #ffd9bc 100%);
  box-shadow: 0 3px 12px rgba(255, 140, 80, 0.16);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.supply-banner:active {
  transform: scale(0.98);
}

.supply-banner--owned {
  background: linear-gradient(135deg, #f4fff6 0%, #e8f8ec 55%, #dff5e4 100%);
  border-color: rgba(143, 212, 160, 0.75);
  box-shadow: 0 3px 12px rgba(92, 184, 110, 0.14);
}

.supply-banner__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: linear-gradient(145deg, #ffb86a, #ff8c42);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 140, 66, 0.35);
}

.supply-banner--owned .supply-banner__icon {
  background: linear-gradient(145deg, #8fd4a0, #5cb86e);
  font-size: 13px;
  font-weight: 900;
}

.supply-banner__body {
  flex: 1;
  min-width: 0;
}

.supply-banner__title {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #c45a20;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supply-banner--owned .supply-banner__title {
  color: #2d7a42;
}

.supply-banner__sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #a87850;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supply-banner--owned .supply-banner__sub {
  color: #5a9a68;
}

.supply-banner__arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: #ffb07a;
  line-height: 1;
}

.supply-banner--owned .supply-banner__arrow {
  color: #8fd4a0;
}

/* ── 半屏 Sheet ── */
.supply-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 108;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(40, 28, 30, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.supply-sheet-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.supply-sheet {
  width: 100%;
  max-width: 430px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #fffaf5 0%, #fff3e8 100%);
  border: 2px solid rgba(255, 210, 170, 0.9);
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(180, 100, 60, 0.18);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.supply-sheet-overlay.is-open .supply-sheet {
  transform: translateY(0);
}

.supply-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(200, 150, 110, 0.45);
}

.supply-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 8px;
}

.supply-sheet__head-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #c45a20;
  letter-spacing: 0.5px;
}

.supply-sheet__head-text p {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #b88868;
}

.supply-sheet__close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #c48868;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.supply-sheet__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 190, 140, 0.45);
}

.supply-sheet__price {
  font-size: 28px;
  font-weight: 900;
  color: #e85a00;
  line-height: 1;
}

.supply-sheet__price-note {
  font-size: 11px;
  font-weight: 700;
  color: #a87850;
}

.supply-sheet__timer {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  color: #c44d6a;
  text-align: right;
  line-height: 1.35;
}

.supply-sheet__benefits {
  margin: 0 16px 14px;
  padding: 0;
  list-style: none;
}

.supply-sheet__benefit {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 180, 130, 0.4);
}

.supply-sheet__benefit:last-child {
  border-bottom: none;
}

.supply-sheet__benefit-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 235, 215, 0.9);
}

.supply-sheet__benefit-body strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #5a4030;
  line-height: 1.3;
}

.supply-sheet__benefit-body span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #9a7860;
  line-height: 1.45;
}

.supply-sheet__owned-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 16px 12px;
}

.supply-sheet__stat {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(143, 212, 160, 0.45);
  text-align: center;
}

.supply-sheet__stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #7a9a82;
}

.supply-sheet__stat-value {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #2d7a42;
}

.supply-sheet__foot {
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 248, 240, 0.95);
  border-top: 1px solid rgba(255, 200, 150, 0.35);
}

.supply-sheet__pay-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(180deg, #ffc978 0%, #ff9f43 45%, #ff8c2a 100%);
  box-shadow: 0 4px 0 #d97a20, 0 8px 20px rgba(255, 150, 50, 0.35);
}

.supply-sheet__pay-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d97a20, 0 4px 12px rgba(255, 150, 50, 0.3);
}

.supply-sheet__pay-btn:disabled {
  filter: grayscale(0.4);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.supply-sheet__legal {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #b89888;
}

.supply-sheet__gate-hint {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  font-size: 11px;
  font-weight: 700;
  color: #ad6800;
  line-height: 1.4;
  text-align: center;
}

.supply-sheet__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.supply-sheet__tabs--single .supply-sheet__tab {
  cursor: default;
}

.supply-sheet__tab {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid #e8ddd6;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: #888;
  cursor: pointer;
}

.supply-sheet__tab.is-active {
  border-color: #5cb86e;
  background: #f0fff4;
  color: #389e0d;
}

.supply-sheet__tab-panel[hidden] {
  display: none !important;
}

.supply-sheet__price-row--points .supply-sheet__price {
  color: #ad4e00;
}

.supply-sheet__pay-btn--points {
  background: linear-gradient(180deg, #ffd666, #faad14);
  box-shadow: 0 4px 0 #d48806;
}

/* ── 支付成功 ── */
.supply-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 20, 30, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.supply-success-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.supply-success-card {
  width: 100%;
  max-width: 300px;
  padding: 22px 18px 18px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(180deg, #fffaf5 0%, #ffe8d4 100%);
  border: 2px solid rgba(255, 200, 150, 0.85);
  box-shadow: 0 12px 40px rgba(180, 90, 50, 0.22);
  transform: scale(0.92);
  transition: transform 0.28s ease;
}

.supply-success-overlay.is-open .supply-success-card {
  transform: scale(1);
}

.supply-success-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #c45a20;
}

.supply-success-card > p {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #b87858;
}

.supply-success-avatar {
  width: 72px;
  height: 72px;
  margin: 16px auto 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffb86a;
  box-shadow: 0 4px 16px rgba(255, 140, 66, 0.3);
}

.supply-success-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.supply-success-plus {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: #e85a00;
}

.supply-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supply-success-btn {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  border: none;
}

.supply-success-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff9eb5, #ff6b8a);
  box-shadow: 0 3px 12px rgba(255, 107, 138, 0.35);
}

.supply-success-btn--ghost {
  color: #c45a20;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 180, 120, 0.55);
}

.supply-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(8px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(60, 45, 35, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* 对齐集卡弹层：限定在 iOS 预览框内 */
.ios-screen .supply-sheet-overlay,
.ios-screen .supply-success-overlay {
  position: absolute;
  border-radius: 34px;
}

.ios-screen .supply-toast {
  position: absolute;
  left: 50%;
  bottom: 48px;
}
