/* 在线付款 · 微信支付 · 对齐小程序结账节奏 */

.pay-page .dl-bg__flow,
.pay-page .dl-bg__orb,
.pay-page .dl-bg__particles {
  display: none !important;
}

.pay-bg {
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(184, 146, 74, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 18%, rgba(20, 14, 6, 0.08), transparent 50%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.pay {
  --pay-ink: #14110e;
  --pay-mute: rgba(20, 17, 14, 0.58);
  --pay-line: rgba(20, 17, 14, 0.1);
  --pay-gold: #b8924a;
  --pay-gold-soft: #e8d5a8;
  --pay-display: "Instrument Serif", "Songti SC", Georgia, serif;
  --pay-sans: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--pay-sans);
  margin: 0 auto;
  max-width: 74rem;
  padding: calc(var(--header-h) + 1.5rem) 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
}

.pay-kicker {
  color: var(--pay-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  margin: 0 0 0.7rem;
}

.pay-mast h1 {
  animation: payRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  color: var(--pay-ink);
  font-family: var(--pay-display);
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.pay-mast__lead {
  animation: payRise 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
  color: var(--pay-mute);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: 38rem;
}

.pay-trust {
  animation: payRise 0.7s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.pay-trust li {
  color: var(--pay-mute);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
}

.pay-trust li::before {
  color: var(--pay-gold);
  content: "◆";
  font-size: 0.55rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

@keyframes payRise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pay-shell {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(17.5rem, 0.85fr);
  margin-bottom: 2.5rem;
}

.pay-hero-custom {
  animation: payRise 0.75s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
  background:
    linear-gradient(135deg, #1a1612 0%, #0e0c0a 55%, #17120c 100%);
  border: 1px solid rgba(232, 213, 168, 0.28);
  border-radius: 1.35rem;
  box-shadow: 0 1.2rem 2.4rem rgba(12, 8, 4, 0.12);
  color: #f6efe0;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.25rem;
  position: relative;
  text-align: left;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  width: 100%;
}

.pay-hero-custom::after {
  background: radial-gradient(circle at 88% 20%, rgba(232, 213, 168, 0.22), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.pay-hero-custom:hover,
.pay-hero-custom.is-on {
  border-color: rgba(232, 213, 168, 0.55);
  box-shadow: 0 1.4rem 2.8rem rgba(12, 8, 4, 0.18);
  transform: translateY(-2px);
}

.pay-hero-custom__badge {
  color: var(--pay-gold-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  position: relative;
  z-index: 1;
}

.pay-hero-custom strong {
  font-family: var(--pay-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.pay-hero-custom__desc {
  color: rgba(246, 239, 224, 0.58);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 34rem;
  position: relative;
  z-index: 1;
}

.pay-hero-custom__go {
  color: var(--pay-gold-soft);
  font-size: 0.88rem;
  font-weight: 750;
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
}

.pay-sec h2 {
  color: var(--pay-ink);
  font-family: var(--pay-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
}

.pay-sec p {
  color: var(--pay-mute);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}

.pay-group {
  margin-bottom: 1.25rem;
}

.pay-group__title {
  color: var(--pay-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.55rem;
}

.pay-sku {
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: 1rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem 1rem;
  grid-template-columns: 1fr auto;
  margin: 0 0 0.5rem;
  padding: 0.95rem 1.05rem;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  width: 100%;
}

.pay-sku:hover {
  border-color: rgba(184, 146, 74, 0.45);
  box-shadow: 0 0.6rem 1.4rem rgba(20, 14, 6, 0.06);
  transform: translateY(-1px);
}

.pay-sku.is-on {
  background: #171410;
  border-color: rgba(184, 146, 74, 0.55);
  box-shadow: 0 0.6rem 1.4rem rgba(20, 14, 6, 0.1);
  color: #f6efe0;
}

.pay-sku strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 750;
}

.pay-sku span {
  color: var(--pay-mute);
  display: block;
  font-size: 0.8rem;
  grid-column: 1;
  line-height: 1.45;
  margin-top: 0.2rem;
}

.pay-sku.is-on span {
  color: rgba(246, 239, 224, 0.55);
}

.pay-sku em {
  color: var(--pay-gold);
  font-style: normal;
  font-weight: 800;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  white-space: nowrap;
}

.pay-sku.is-on em {
  color: #e8d5a8;
}

.pay-panel {
  align-self: start;
  background: #171410;
  border: 1px solid rgba(232, 213, 168, 0.18);
  border-radius: 1.35rem;
  box-shadow: 0 1.2rem 2.6rem rgba(8, 6, 4, 0.18);
  color: #f6efe0;
  padding: 1.35rem 1.25rem 1.3rem;
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
}

.pay-panel__idle-kicker {
  color: var(--pay-gold-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0 0 0.55rem;
}

.pay-panel__idle p:last-child {
  color: rgba(246, 239, 224, 0.55);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.pay-form label {
  display: block;
  margin-bottom: 0.7rem;
}

.pay-form label span {
  color: rgba(246, 239, 224, 0.45);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.pay-form input,
.pay-form textarea {
  background: rgba(255, 248, 230, 0.06);
  border: 1px solid rgba(232, 213, 168, 0.18);
  border-radius: 0.65rem;
  color: #f6efe0;
  font: inherit;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.pay-form textarea {
  resize: vertical;
}

.pay-form__sku {
  color: rgba(246, 239, 224, 0.55);
  font-size: 0.82rem;
  margin: 0 0 0.35rem;
}

.pay-form__price {
  margin: 0 0 1rem;
}

.pay-form__price b {
  color: #e8d5a8;
  font-family: var(--pay-display);
  font-size: 2rem;
  font-weight: 400;
}

.pay-form__price span {
  color: rgba(246, 239, 224, 0.45);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.pay-amount {
  animation: payRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: rgba(232, 213, 168, 0.06);
  border: 1px solid rgba(232, 213, 168, 0.2);
  border-radius: 0.95rem;
  margin: 0 0 1rem;
  padding: 0.9rem 0.95rem 0.95rem;
}

.pay-amount__label {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem !important;
}

.pay-amount__label span {
  margin-bottom: 0 !important;
}

.pay-amount__label em {
  color: rgba(232, 213, 168, 0.55);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
}

.pay-amount__field {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.pay-amount__yen {
  color: #e8d5a8;
  font-family: var(--pay-display);
  font-size: 1.85rem;
  line-height: 1;
}

.pay-amount__field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(232, 213, 168, 0.35);
  border-radius: 0;
  color: #e8d5a8;
  font-family: var(--pay-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 0.15rem 0.2rem 0.35rem;
}

.pay-amount__field input:focus {
  border-bottom-color: #e8d5a8;
  outline: none;
}

.pay-amount__field input::placeholder {
  color: rgba(232, 213, 168, 0.28);
  font-size: 1.25rem;
}

.pay-amount__tip {
  color: rgba(246, 239, 224, 0.42);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0.55rem 0 0;
}

.pay-form__hint {
  color: rgba(246, 239, 224, 0.4);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0.65rem 0 0.85rem;
}

.pay-btn {
  appearance: none;
  border: 0;
  border-radius: 999rem;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  transition: transform 0.18s, opacity 0.18s;
  width: 100%;
}

.pay-btn--gold {
  background: #e8d5a8;
  color: #14110e;
}

.pay-btn--gold:hover {
  transform: translateY(-1px);
}

.pay-btn--gold:disabled {
  opacity: 0.55;
  transform: none;
}

.pay-btn--ghost {
  background: transparent;
  border: 1px solid rgba(246, 239, 224, 0.22);
  color: #f6efe0;
  margin-top: 0.5rem;
}

.pay-checkout__title {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 0.35rem;
}

.pay-checkout__meta {
  color: rgba(246, 239, 224, 0.5);
  font-size: 0.82rem;
  margin: 0 0 1rem;
}

.pay-checkout__qr {
  animation: payRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: #fff;
  border-radius: 0.85rem;
  display: grid;
  margin: 0 auto 1rem;
  padding: 0.75rem;
  place-items: center;
  width: fit-content;
}

.pay-checkout__status {
  color: #e8d5a8;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  text-align: center;
}

.pay-done h2 {
  font-family: var(--pay-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 0.55rem;
}

.pay-done p {
  color: rgba(246, 239, 224, 0.6);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.pay-note {
  border-top: 1px solid var(--pay-line);
  padding-top: 1.6rem;
}

.pay-note h2 {
  color: var(--pay-ink);
  font-family: var(--pay-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.7rem;
}

.pay-note ul {
  color: var(--pay-mute);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  padding-left: 1.15rem;
}

.pay-note li + li {
  margin-top: 0.35rem;
}

html[data-theme="light"] .pay-page .dl-header {
  background: rgba(12, 10, 8, 0.94);
  border-bottom-color: rgba(232, 213, 168, 0.12);
}

html[data-theme="light"] .pay-page .dl-brand__cn,
html[data-theme="light"] .pay-page .dl-nav__link {
  color: rgba(246, 239, 224, 0.82);
}

html[data-theme="dark"] .pay {
  --pay-ink: #f3ebe0;
  --pay-mute: rgba(243, 235, 224, 0.6);
  --pay-line: rgba(243, 235, 224, 0.12);
}

html[data-theme="dark"] .pay-sku {
  background: #171410;
}

@media (max-width: 56rem) {
  .pay-shell {
    grid-template-columns: 1fr;
  }

  .pay-panel {
    position: static;
  }

  .pay {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pay-hero-custom {
    margin-bottom: 1.15rem;
    padding: 1.15rem 1.1rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay-mast h1,
  .pay-mast__lead,
  .pay-trust,
  .pay-hero-custom,
  .pay-amount,
  .pay-checkout__qr {
    animation: none;
  }
}
