/* ===== #tierBuy — 多瓶梯度选购（tier-buy.js） ===== */

.tb-section .wrap { position: relative; }

.tb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tb-card {
  /* button reset */
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  text-align: center;
  cursor: pointer;

  background: #fff;
  border: 1.5px solid var(--line, #e4dfd3);
  border-radius: 18px;
  padding: 14px 10px 16px;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;

  transition: border-color .2s ease, box-shadow .2s ease;
}

.tb-card:focus-visible {
  outline: 2px solid #c9a24b;
  outline-offset: 2px;
}

.tb-card.on {
  border-color: #c9a24b;
  background: linear-gradient(180deg, #fffaf0, #fff);
  box-shadow:
    0 10px 28px rgba(60, 40, 10, .14),
    inset 0 0 0 1px #c9a24b;
}

/* 「推荐」小徽标 */
.tb-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: #f0b25e;
  color: #2a1c05;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

/* 瓶身插画区 */
.tb-art {
  position: relative;
  width: 100%;
  height: 176px;
  margin: 30px 0 4px;
}

.tb-art::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 84%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(60, 40, 10, .16), rgba(60, 40, 10, 0) 70%);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}

.tb-b {
  position: absolute;
}

.tb-b svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transition: transform .35s ease;
}

.tb-card.on .tb-b svg {
  transform: translateY(-6px);
}

/* 文字层级 */
.tb-n {
  font-size: 13px;
  color: var(--muted, #6b6f7e);
  line-height: 1.5;
}

.tb-total {
  font-family: var(--num-font, 'NumA', sans-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink, #141b33);
  letter-spacing: -0.01em;
}

.tb-per {
  font-family: var(--num-font, 'NumA', sans-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft, #2b2f3d);
  line-height: 1.35;
}

.tb-disc {
  font-size: 12px;
  color: #8b5a2b;
  min-height: 2.6em;
  line-height: 1.3;
}

.tb-disc span {
  display: block;
}

.tb-month {
  font-size: 11.5px;
  color: #9a9aa3;
  margin-top: 4px;
  line-height: 1.4;
}

.tb-note {
  margin-top: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .tb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .tb-card {
    border-radius: 16px;
    padding: 12px 8px 14px;
  }

  .tb-art {
    height: 120px;
    margin: 18px 0 4px;
  }

  .tb-total {
    font-size: 26px;
  }

  .tb-per {
    font-size: 15px;
  }

  .tb-disc {
    font-size: 11px;
  }

  .tb-pill {
    font-size: 10.5px;
    padding: 2px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-card {
    transition: none;
  }

  .tb-b svg,
  .tb-card.on .tb-b svg {
    transition: none;
    transform: none;
  }
}
