/* ============================================================
   peizhi-dingdan.css — 配置下单页 · 与首页森林主题一致
   依赖：body.home-forest + common.css + index.css
   ============================================================ */

body.home-forest {
  --pg-muted: rgba(236, 253, 245, 0.55);
  --pg-border: rgba(167, 243, 208, 0.14);
  --pg-border-strong: rgba(134, 239, 172, 0.22);
}

body.home-forest .pg-main {
  padding-bottom: 56px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero（对齐定价页 pp-hero）── */
.pg-hero {
  position: relative;
  text-align: center;
  padding: calc(var(--nav-height) + 28px) 0 32px;
  overflow: hidden;
}

.pg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(74, 222, 128, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 70%, rgba(16, 185, 129, 0.07) 0%, transparent 45%);
  pointer-events: none;
}

.pg-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(167, 243, 208, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 243, 208, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
  pointer-events: none;
}

.pg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.pg-hero .fr-eyebrow.pg-hero-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.pg-hero-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--fr-mist);
  margin: 0 0 16px;
}

.pg-hero-inner .fr-lead.pg-hero-lead {
  margin: 0 auto 0;
  max-width: 520px;
}

.pg-hero-eyebrow {
  animation: pg-fade-up 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pg-hero-title {
  animation: pg-fade-up 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.pg-hero-lead {
  animation: pg-fade-up 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes pg-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════ 配置页布局 v2：紧凑顶栏 + 宽主栏 + 结账侧栏 / 移动底栏 ═══════════ */
.pg-main--checkout {
  position: relative;
}

body.home-forest .pg-main--checkout {
  padding-bottom: 56px;
}

@media (max-width: 1023px) {
  body.home-forest .pg-main--checkout {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

.pg-checkout-hero {
  position: relative;
  padding: calc(var(--nav-height) + 22px) 0 28px;
  border-bottom: 1px solid rgba(134, 239, 172, 0.1);
  background: linear-gradient(180deg, rgba(4, 18, 12, 0.72) 0%, rgba(6, 22, 14, 0.35) 45%, transparent 100%);
  overflow: hidden;
}

.pg-checkout-hero__ambient {
  position: absolute;
  inset: -20% -10% 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 18% 20%, rgba(74, 222, 128, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 45% at 92% 35%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 35% 40% at 70% 0%, rgba(250, 204, 21, 0.05) 0%, transparent 45%);
  z-index: 0;
}

.pg-checkout-hero__gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(167, 243, 208, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 243, 208, 0.5) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black 0%, transparent 88%);
  pointer-events: none;
  z-index: 0;
}

.pg-checkout-hero-inner {
  position: relative;
  z-index: 1;
}

.pg-checkout-hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 40px;
  align-items: center;
}

.pg-checkout-intro {
  position: relative;
  min-width: 0;
  max-width: 40rem;
}

.pg-checkout-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(134, 200, 155, 0.58);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pg-checkout-kicker::before {
  content: '';
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.95), rgba(74, 222, 128, 0));
}

.pg-checkout-title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
  background: linear-gradient(120deg, #ecfdf5 0%, #d1fae5 38%, #86efac 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(74, 222, 128, 0.12);
}

.pg-checkout-sub {
  margin: 0;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.68;
  color: rgba(214, 245, 225, 0.58);
}

.pg-checkout-sub strong {
  font-weight: 800;
  color: rgba(236, 253, 245, 0.9);
}

.pg-checkout-flow {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.42);
}

.pg-checkout-flow__step {
  color: rgba(186, 230, 200, 0.72);
}

.pg-checkout-flow__chev {
  margin: 0 2px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(74, 222, 128, 0.35);
  transform: translateY(-1px);
}

/* ── 顶栏文案 / 宝箱 出场（错开）── */
html.pg-motion-on .pg-checkout-kicker {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  animation: pg-checkout-hero-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

html.pg-motion-on .pg-checkout-title {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: pg-checkout-hero-title 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

html.pg-motion-on .pg-checkout-sub {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  animation: pg-checkout-hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

html.pg-motion-on .pg-checkout-flow {
  opacity: 0;
  transform: translateY(12px);
  animation: pg-checkout-hero-in 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

html.pg-motion-on .pg-treasure {
  opacity: 0;
  transform: translateX(18px) scale(0.85);
  animation: pg-checkout-hero-treasure-wrap 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

@keyframes pg-checkout-hero-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pg-checkout-hero-title {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pg-checkout-hero-treasure-wrap {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ── 顶栏宝藏：跳入 + 微光 ── */
.pg-treasure {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  pointer-events: none;
  align-self: center;
}

.pg-treasure__bob {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 85%;
}

.pg-treasure__chest {
  display: block;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4));
}

.pg-treasure__spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #fffbeb 0%, #facc15 42%, transparent 68%);
  opacity: 0;
}

html.pg-motion-on .pg-treasure__chest {
  animation: pg-treasure-pop 0.88s cubic-bezier(0.34, 1.65, 0.55, 1) 0.48s both;
}

html.pg-motion-on .pg-treasure__bob {
  animation: pg-treasure-float 3.1s ease-in-out 1.42s infinite;
}

html.pg-motion-on .pg-treasure__spark--a {
  width: 9px;
  height: 9px;
  left: 2px;
  top: 8px;
  animation: pg-treasure-spark 2.5s ease-in-out 0.75s infinite;
}

html.pg-motion-on .pg-treasure__spark--b {
  width: 6px;
  height: 6px;
  right: 6px;
  top: 18px;
  animation: pg-treasure-spark 2.2s ease-in-out 1.15s infinite;
}

html.pg-motion-on .pg-treasure__spark--c {
  width: 7px;
  height: 7px;
  right: 14px;
  bottom: 10px;
  animation: pg-treasure-spark 2.8s ease-in-out 0.55s infinite;
}

@keyframes pg-treasure-pop {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.15) rotate(-14deg);
  }
  58% {
    opacity: 1;
    transform: translateY(-8px) scale(1.1) rotate(5deg);
  }
  80% {
    transform: translateY(3px) scale(0.96) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes pg-treasure-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pg-treasure-spark {
  0%,
  38%,
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
  52% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 640px) {
  .pg-checkout-hero {
    padding-bottom: 22px;
  }

  .pg-checkout-hero__stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pg-treasure {
    order: -1;
    justify-self: center;
    width: 68px;
    height: 68px;
    margin: 2px 0 4px;
  }

  .pg-treasure__chest {
    width: 56px;
    height: 56px;
  }

  .pg-checkout-intro {
    padding-right: 0;
  }

  .pg-checkout-kicker::before {
    width: 22px;
  }

  .pg-checkout-flow {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

.pg-checkout-page {
  padding-top: 24px;
  padding-bottom: 24px;
}

@media (max-width: 1023px) {
  .pg-checkout-page {
    padding-bottom: 8px;
  }
}

.pg-checkout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .pg-checkout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 36px 40px;
  }
}

.pg-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.pg-checkout-section-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(134, 200, 155, 0.55);
}

.pg-checkout-section-lead {
  margin: -6px 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(214, 245, 225, 0.52);
  max-width: 42rem;
}

.pg-checkout-toolbar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(110, 190, 140, 0.22);
  background: rgba(4, 18, 12, 0.45);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: pg-fade-up 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@media (min-width: 880px) {
  .pg-checkout-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
  }

  .pg-toolbar-region {
    flex: 1 1 280px;
    min-width: 0;
  }

  .pg-toolbar-period {
    flex: 0 1 auto;
  }
}

.pg-toolbar-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.45);
}

.pg-toolbar-region .region-tabs {
  justify-content: flex-start;
}

.pg-toolbar-period {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

@media (min-width: 880px) {
  .pg-toolbar-period {
    align-items: flex-end;
  }
}

.pg-toolbar-period .period-tabs-row {
  margin-bottom: 0;
}

.pg-toolbar-period .pg-period-note {
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
}

@media (min-width: 880px) {
  .pg-toolbar-period .pg-period-note {
    text-align: right;
  }
}

.pg-plans-shell--checkout,
.pg-checkout-main > .pg-plans-shell {
  margin: 0;
  max-width: none;
  padding: 22px 18px 26px;
  border-radius: 18px;
  border: 1px solid rgba(90, 170, 120, 0.26);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(74, 222, 128, 0.08) 0%, transparent 55%),
    rgba(3, 14, 10, 0.52);
  box-shadow: 0 20px 48px -28px rgba(0, 0, 0, 0.5);
}

.pg-checkout-aside {
  min-width: 0;
}

@media (min-width: 1024px) {
  .pg-checkout-aside {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    align-self: start;
  }
}

@media (max-width: 1023px) {
  .pg-checkout-aside {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 20, 14, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
    border-top: 1px solid rgba(134, 239, 172, 0.2);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  }

  .pg-checkout-aside .order-summary-section {
    margin: 0;
  }

  .pg-checkout-aside .order-box {
    padding: 12px 14px;
    max-height: none;
    animation: none;
    border-radius: 14px;
  }

  .pg-checkout-aside .order-box::before {
    display: none;
  }

  .pg-checkout-aside .order-title {
    display: none;
  }

  .pg-checkout-aside .pg-pay-hint {
    display: none;
  }

  .pg-checkout-aside #pg-order-rows {
    max-height: none;
    overflow: visible;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .pg-checkout-aside .order-row {
    padding: 5px 0;
    font-size: 12px;
  }

  .pg-checkout-aside .order-total {
    font-size: 1.2rem;
  }

  .pg-checkout-aside .pg-order-total-row .pg-order-total-label {
    font-size: 13px;
  }

  .pg-checkout-aside .order-actions {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .pg-checkout-aside .order-actions .btn-clay {
    display: none;
  }

  .pg-checkout-aside .order-actions .btn-primary {
    min-height: 48px;
    flex: 1;
    font-size: 15px;
  }
}

.pg-checkout-aside .order-summary-section,
.pg-layout-sticky-card.order-summary-section {
  margin: 0;
  max-width: none;
}

.pg-checkout-aside .order-box {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
}

.pg-checkout-aside .order-title {
  flex-shrink: 0;
  margin-bottom: 14px;
}

.pg-checkout-aside #pg-order-rows {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

@media (max-width: 1023px) {
  .pg-checkout-aside .order-box {
    max-height: none;
  }
}

.pg-checkout-aside .order-actions {
  flex-shrink: 0;
  margin-top: 18px;
  flex-direction: column;
  align-items: stretch;
}

.pg-checkout-aside .order-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

.pg-plan-card:nth-child(1) {
  border-radius: 26px 22px 28px 24px;
}

.pg-plan-card:nth-child(2) {
  border-radius: 22px 28px 24px 26px;
}

/* ── 扩展：与主栏统一的轻量卡片区 ── */
.pg-checkout-addons.addons-section {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.pg-checkout-addons .addon-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(100, 170, 125, 0.2);
}

.pg-checkout-addons .addon-card:hover {
  border-color: rgba(134, 239, 172, 0.32);
}

/* ── 订单摘要卡片 ── */
.order-box--checkout {
  border-radius: 18px;
  border-color: rgba(72, 150, 100, 0.35);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(74, 222, 128, 0.08) 0%, transparent 55%),
    rgba(5, 20, 14, 0.68);
  animation: none;
}

.order-box--checkout::before {
  display: none;
}

.order-box--checkout::after {
  display: none;
}

html.pg-motion-on .order-box--checkout.pg-treasure-ping {
  animation: pg-treasure-order-glow 0.82s ease-out !important;
}

@keyframes pg-treasure-order-glow {
  0% {
    border-color: rgba(72, 150, 100, 0.35);
    box-shadow:
      0 20px 48px -20px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  35% {
    border-color: rgba(250, 204, 21, 0.55);
    box-shadow:
      0 20px 52px -16px rgba(250, 204, 21, 0.28),
      0 0 40px -6px rgba(250, 204, 21, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  100% {
    border-color: rgba(72, 150, 100, 0.35);
    box-shadow:
      0 20px 48px -20px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 1023px) {
  body:has(.pg-main--checkout) #main-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-checkout-toolbar {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ── 数据中心 ── */
.pg-regions-wrap {
  margin: 28px 0 22px;
}

.pg-regions-panel {
  padding: 22px 20px 24px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--pg-border);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: 0 16px 48px -24px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pg-regions-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.5);
  margin: 0 0 14px;
}

.region-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#pg-region-tabs .region-tab {
  opacity: 0;
  animation: pg-pill-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#pg-region-tabs .region-tab:nth-child(1) {
  animation-delay: 0.04s;
}
#pg-region-tabs .region-tab:nth-child(2) {
  animation-delay: 0.08s;
}
#pg-region-tabs .region-tab:nth-child(3) {
  animation-delay: 0.12s;
}
#pg-region-tabs .region-tab:nth-child(4) {
  animation-delay: 0.16s;
}
#pg-region-tabs .region-tab:nth-child(5) {
  animation-delay: 0.2s;
}

@keyframes pg-pill-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.region-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: rgba(236, 253, 245, 0.88);
  background: rgba(15, 31, 24, 0.5);
  border: 1px solid var(--pg-border);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.region-tab:hover {
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(15, 31, 24, 0.75);
  transform: translateY(-2px);
}

.region-tab.active {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
  color: var(--fr-moss);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.12);
}

.region-tab.pg-tab-pop {
  animation: pg-tab-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pg-tab-pop {
  0% {
    transform: scale(0.94);
  }
  55% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/* ── 计费周期（对齐 pp-period-toggle）── */
.pg-period-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto 36px;
  max-width: 520px;
  opacity: 0;
  animation: pg-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.period-tabs-row {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 100px;
  background: rgba(15, 31, 24, 0.65);
  border: 1px solid rgba(167, 243, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  justify-content: center;
}

.period-tab {
  padding: 9px 16px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: rgba(236, 253, 245, 0.5);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.period-tab:hover:not(.active) {
  color: rgba(236, 253, 245, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.period-tab.active {
  background: linear-gradient(135deg, #14532d 0%, #166534 55%, #15803d 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.22);
}

.period-tab.pg-tab-pop {
  animation: pg-tab-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pg-period-save {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  vertical-align: middle;
  background: rgba(4, 26, 18, 0.78);
  color: #ecfdf5;
  border: 1px solid rgba(110, 231, 183, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.period-tab.active .pg-period-save {
  background: rgba(5, 35, 22, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pg-period-note {
  font-size: 12px;
  color: rgba(236, 253, 245, 0.48);
  text-align: center;
  margin: 0;
}

/* ── 方案区外壳 ── */
.pg-plans-shell {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 24px 20px 28px;
  border-radius: 28px;
  border: 1px solid rgba(74, 222, 128, 0.14);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(74, 222, 128, 0.07) 0%, transparent 55%),
    rgba(6, 18, 14, 0.42);
  box-shadow:
    0 24px 56px -28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pg-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 0;
  perspective: 1100px;
  align-items: stretch;
}

.pg-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 26px;
  border: 1px solid var(--pg-border);
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  padding: 28px 24px 22px;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: pg-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.05s + var(--pg-card-i, 0) * 0.1s);
  transition: border-color 0.35s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  height: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.pg-plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(74, 222, 128, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.pg-plan-card > * {
  position: relative;
  z-index: 1;
}

@keyframes pg-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) rotateX(6deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .pg-plan-card:hover,
  .pg-plan-card:focus-visible {
    border-color: rgba(134, 239, 172, 0.3);
    box-shadow:
      0 32px 56px -18px rgba(6, 20, 14, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: translate3d(0, -6px, 0) rotateX(3deg);
  }
}

.pg-plan-card.selected {
  border-color: rgba(134, 239, 172, 0.34);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(74, 222, 128, 0.14),
    0 0 0 1px rgba(74, 222, 128, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pg-plan-card.featured.selected {
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(74, 222, 128, 0.18),
    0 0 0 1px rgba(74, 222, 128, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pg-plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #15803d, #22c55e);
  box-shadow:
    0 6px 22px rgba(34, 197, 94, 0.45),
    0 0 24px rgba(74, 222, 128, 0.22);
  white-space: nowrap;
  animation: pg-badge-float 3.2s ease-in-out infinite;
}

@keyframes pg-badge-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

.pg-plan-id {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: rgba(167, 243, 208, 0.55);
  background: rgba(15, 31, 24, 0.55);
  padding: 4px 9px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid var(--pg-border);
}

.pg-plan-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--fr-mist);
}

.pg-plan-spec {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(236, 253, 245, 0.62);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pg-border);
  margin-bottom: 18px;
}

.pg-plan-price {
  font-size: 38px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--fr-mist);
}

.pg-plan-price-val {
  display: inline-block;
  transform-origin: 50% 60%;
}

.pg-plan-price-val.pg-price-tick {
  animation: pg-price-tick 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pg-price-tick {
  0% {
    transform: scale(0.88) translateY(6px);
    opacity: 0.35;
  }
  60% {
    transform: scale(1.05) translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.pg-plan-price sup {
  font-size: 18px;
  font-weight: 700;
  color: rgba(167, 243, 208, 0.7);
}

.pg-plan-price > span:last-child {
  font-size: 15px;
  color: var(--pg-muted);
  font-weight: 500;
}

.pg-plan-note {
  font-size: 12px;
  color: rgba(167, 243, 208, 0.45);
  margin-top: 6px;
  margin-bottom: 20px;
}

.pg-plan-features {
  list-style: none;
  margin: 0 0 22px;
  flex: 1 1 auto;
  min-height: 0;
}

.pg-plan-features li {
  font-size: 13px;
  color: rgba(236, 253, 245, 0.82);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pg-plan-features li::before {
  content: '✓';
  color: var(--fr-moss);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-order {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  background: rgba(15, 31, 24, 0.65);
  color: var(--fr-mist);
  border: 1px solid var(--pg-border-strong);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  margin-top: auto;
  flex-shrink: 0;
}

.btn-order:hover {
  background: rgba(22, 101, 52, 0.45);
  border-color: rgba(74, 222, 128, 0.35);
  transform: translateY(-2px);
}

/* 仅「已选择」时用高亮按钮；featured 未选时与普通卡一致，避免误以为已选中 */
.pg-plan-card.selected .btn-order {
  background: linear-gradient(135deg, #166534 0%, #22c55e 50%, #4ade80 100%);
  color: #fff;
  border: none;
  box-shadow: 0 12px 32px -8px rgba(34, 197, 94, 0.45);
}

.pg-plan-card.selected .btn-order:hover {
  background: linear-gradient(135deg, #166534 0%, #22c55e 50%, #4ade80 100%);
  border: none;
  box-shadow: 0 16px 36px -6px rgba(74, 222, 128, 0.52);
}

/* ── 扩展服务 ── */
.addons-section {
  max-width: 960px;
  margin: 0 auto 48px;
}

.addons-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--fr-mist);
  margin-bottom: 20px;
  text-align: center;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.addon-card {
  border: 1px solid var(--pg-border);
  border-radius: 20px;
  padding: 22px 20px 20px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
  cursor: pointer;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* 顶部高光线（选中后变亮绿） */
.addon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.35), transparent);
  border-radius: 20px 20px 0 0;
  transition: opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* 右上角勾选角标 */
.addon-card::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 3;
}

.addon-card:hover {
  border-color: rgba(134, 239, 172, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -14px rgba(6, 20, 14, 0.5);
}

.addon-card.selected {
  border-color: #22c55e;
  background: rgba(74, 222, 128, 0.1);
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.35),
    0 0 28px rgba(74, 222, 128, 0.18),
    0 16px 40px -12px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.addon-card.selected::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.85), transparent);
}

.addon-card.selected::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.addon-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(134, 239, 172, 0.22);
  animation: pg-addon-icon-bob 5s ease-in-out infinite;
}

.addon-icon--forest {
  font-size: 0;
  line-height: 0;
  color: transparent;
  background-color: rgba(20, 50, 32, 0.35);
  background-repeat: no-repeat;
  background-position: center;
}

.addon-icon--forest-1tb {
  background-image: url(../images/addon-forest-1tb.svg);
  background-size: 26px 26px;
}

.addon-icon--forest-2tb {
  background-image: url(../images/addon-forest-2tb.svg);
  background-size: 28px 28px;
}

.addon-icon--forest-tb5 {
  background-image: url(../images/addon-forest-tb5.svg);
  background-size: 28px 28px;
}

.addon-card:nth-child(2) .addon-icon {
  animation-delay: 0.4s;
}
.addon-card:nth-child(3) .addon-icon {
  animation-delay: 0.8s;
}

@keyframes pg-addon-icon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.addon-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--fr-mist);
}

.addon-desc {
  font-size: 12px;
  color: var(--pg-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.addon-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--fr-fern);
}

.addon-price span {
  font-size: 12px;
  color: var(--pg-muted);
  font-weight: 500;
}

.addon-card.selected .addon-icon {
  background-color: rgba(74, 222, 128, 0.18);
  border-color: rgba(134, 239, 172, 0.5);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.25);
}

.addon-card.selected .addon-price {
  color: #4ade80;
}

.addon-card.selected .addon-name {
  color: #ecfdf5;
}

/* 滚动显现 */
html.pg-motion-on .pg-reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

html.pg-motion-on .pg-reveal.pg-reveal-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

html.pg-motion-on .pg-reveal.pg-reveal-in.pg-reveal-out {
  opacity: 0;
  transform: translateY(-26px) scale(0.985);
  filter: blur(5px);
  pointer-events: none;
}

@keyframes pg-addon-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.pg-motion-on .pg-reveal.pg-reveal-in .addons-grid .addon-card {
  opacity: 0;
  animation: pg-addon-reveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.pg-motion-on .pg-reveal.pg-reveal-in .addons-grid .addon-card:nth-child(1) {
  animation-delay: 0.08s;
}
html.pg-motion-on .pg-reveal.pg-reveal-in .addons-grid .addon-card:nth-child(2) {
  animation-delay: 0.14s;
}
html.pg-motion-on .pg-reveal.pg-reveal-in .addons-grid .addon-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* ── 订单摘要 ── */
.order-summary-section {
  max-width: 960px;
  margin: 0 auto 72px;
}

.order-box {
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 24px;
  padding: 28px 26px 26px;
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(74, 222, 128, 0.08) 0%, transparent 55%),
    rgba(6, 18, 14, 0.5);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 48px -20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: pg-order-glow 7s ease-in-out infinite;
}

.order-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12), transparent 70%);
  pointer-events: none;
  animation: pg-order-orb 10s ease-in-out infinite;
}

@keyframes pg-order-glow {
  0%,
  100% {
    box-shadow:
      0 20px 48px -20px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow:
      0 24px 56px -18px rgba(34, 197, 94, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

@keyframes pg-order-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-12px, 8px) scale(1.08);
    opacity: 0.85;
  }
}

.order-title {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  color: var(--fr-mist);
}

#pg-order-rows {
  position: relative;
  z-index: 1;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pg-border);
  font-size: 14px;
  color: rgba(236, 253, 245, 0.88);
}

.order-row.pg-order-empty {
  justify-content: center;
  color: var(--pg-muted);
  padding: 16px 0;
  border-bottom: none;
}

.order-row__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-row__label > span:last-child {
  min-width: 0;
}

.order-row__icon-img {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  vertical-align: middle;
}

.pg-order-divider {
  margin: 0;
  padding: 0;
  height: 0;
  border: none;
}

.pg-order-divider--dashed {
  border-top: 1px dashed var(--pg-border-strong);
  margin: 10px 0;
}

.pg-order-divider--strong {
  border-top: 1px solid var(--pg-border-strong);
  margin: 12px 0 6px;
}

.pg-order-total-row {
  padding: 8px 0;
  border-bottom: none;
}

.pg-order-total-row .pg-order-total-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--fr-mist);
}

.order-total {
  font-size: 22px;
  font-weight: 900;
  color: var(--fr-fern);
}

.order-total .pg-order-period {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pg-muted);
}

.pg-order-footnote {
  font-size: 12px;
  color: var(--pg-muted);
  margin-top: 4px;
  text-align: right;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.order-actions .btn-primary {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

body.home-forest .order-actions .btn-primary {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(22, 101, 52, 0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

body.home-forest .order-actions .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(22, 101, 52, 0.30);
}

body.home-forest .order-actions .btn-clay {
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fr-fern);
  border: 1px solid rgba(167, 243, 208, 0.28);
  box-shadow: none;
}

body.home-forest .order-actions .btn-clay:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 243, 208, 0.45);
}

.pay-gateway-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-gateway-list .pay-gateway-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 0;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.pay-gateway-btn__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.pay-gateway-btn__img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pay-gateway-btn__label {
  flex: 1;
  min-width: 0;
}

/* ── 支付网关弹窗：高对比、大触控、应付金额醒目 ── */
.pay-gateway-overlay.modal-overlay {
  background: rgba(4, 14, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  align-items: center;
}

#pay-gateway-modal .pay-gateway-modal.auth-modal {
  max-width: min(520px, 100%);
  width: 100%;
  padding: 28px 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 32px 64px -24px rgba(15, 23, 42, 0.35),
    0 12px 40px rgba(22, 101, 52, 0.12);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#pay-gateway-modal .pay-gateway-modal__close.modal-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  background: #f1f5f9;
  color: #334155;
}

.pay-gateway-modal__head {
  padding-right: 36px;
  margin-bottom: 20px;
}

.pay-gateway-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #15803d;
}

.pay-gateway-modal__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 4.5vw, 26px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
}

.pay-gateway-modal__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  color: #475569;
}

.pay-gateway-modal__amount {
  margin-bottom: 20px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 45%, #f0fdf4 100%);
  border: 2px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 24px -12px rgba(22, 101, 52, 0.35);
}

.pay-gateway-modal__amount-meta {
  margin-bottom: 8px;
}

.pay-gateway-modal__amount-region {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  line-height: 1.4;
}

.pay-gateway-modal__amount-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #15803d;
  margin-bottom: 4px;
}

.pay-gateway-modal__amount-num {
  font-size: clamp(32px, 8vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #052e16;
  font-variant-numeric: tabular-nums;
}

.pay-gateway-modal__currency {
  font-size: 0.55em;
  font-weight: 800;
  vertical-align: super;
  margin-right: 2px;
  color: #166534;
}

.pay-gateway-modal__period {
  font-size: 0.42em;
  font-weight: 700;
  color: #166534;
  margin-left: 6px;
  vertical-align: middle;
}

.pay-gateway-modal__fineprint {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

.pay-gateway-list--checkout {
  gap: 12px;
}

#pay-gateway-modal .pay-gateway-list--checkout .pay-gateway-btn--checkout {
  margin-top: 0;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  justify-content: flex-start;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

#pay-gateway-modal .pay-gateway-list--checkout .pay-gateway-btn--checkout:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 8px 24px -14px rgba(22, 101, 52, 0.45);
}

#pay-gateway-modal .pay-gateway-list--checkout .pay-gateway-btn--checkout:focus-visible {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

#pay-gateway-modal .pay-gateway-list--checkout .pay-gateway-btn--checkout:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

#pay-gateway-modal .pay-gateway-btn__icon {
  width: 48px;
  height: 48px;
}

#pay-gateway-modal .pay-gateway-btn__img {
  width: 36px;
  height: 36px;
}

#pay-gateway-modal .pay-gateway-btn__label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 侧栏：支付前提示与合计更醒目 */
.pg-pay-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(236, 253, 245, 0.92);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.2);
}

.pg-checkout-aside .pg-order-total-row .pg-order-total-label {
  font-size: 16px;
}

.pg-checkout-aside .order-total {
  font-size: clamp(26px, 5vw, 32px);
  letter-spacing: -0.02em;
}

.pg-checkout-aside .order-total .pg-order-period {
  font-size: 16px;
  font-weight: 700;
  color: rgba(236, 253, 245, 0.75);
}

.pg-checkout-aside .pg-order-footnote {
  font-size: 13px;
  color: rgba(214, 245, 225, 0.62);
}

.pg-checkout-aside .order-actions .btn-primary {
  min-height: 52px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pg-checkout-aside .order-row {
  font-size: 15px;
  padding: 12px 0;
}

html.pg-motion-on .order-summary-section.pg-reveal.pg-reveal-in.pg-reveal-out .order-actions,
html.pg-motion-on .pg-checkout-aside .order-summary-section.pg-reveal.pg-reveal-in.pg-reveal-out .order-actions {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .pg-hero::before,
  .pg-hero-grid,
  .pg-plan-badge,
  .addon-icon,
  .order-box,
  .order-box::before {
    animation: none !important;
  }
  .pg-treasure__chest,
  .pg-treasure__bob,
  .pg-treasure__spark {
    animation: none !important;
  }
  .pg-treasure__chest,
  .pg-treasure__bob {
    opacity: 1 !important;
    transform: none !important;
  }
  .pg-treasure__spark {
    opacity: 0 !important;
  }
  .order-box--checkout.pg-treasure-ping {
    animation: none !important;
  }
  .pg-hero-eyebrow,
  .pg-hero-title,
  .pg-hero-lead,
  .pg-period-block,
  .pg-checkout-toolbar,
  #pg-region-tabs .region-tab,
  .pg-plan-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .pg-plan-price-val.pg-price-tick {
    animation: none !important;
  }
  .region-tab.pg-tab-pop,
  .period-tab.pg-tab-pop {
    animation: none !important;
  }
  html.pg-motion-on .pg-reveal,
  html.pg-motion-on .pg-reveal.pg-reveal-in .addons-grid .addon-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
  html.pg-motion-on .pg-reveal.pg-reveal-in.pg-reveal-out {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
  }
  html.pg-motion-on .pg-checkout-kicker,
  html.pg-motion-on .pg-checkout-title,
  html.pg-motion-on .pg-checkout-sub,
  html.pg-motion-on .pg-checkout-flow,
  html.pg-motion-on .pg-treasure {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (min-width: 1060px) and (max-width: 1220px) {
  .pg-checkout-main .addons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pg-plans-grid {
    grid-template-columns: 1fr;
    perspective: none;
  }
  .pg-plan-card,
  .pg-plan-card:hover,
  .pg-plan-card:focus-visible,
  .pg-plan-card.selected:hover {
    transform: none !important;
  }
  .addons-grid {
    grid-template-columns: 1fr;
  }
  .pg-hero {
    padding: calc(var(--nav-height) + 20px) 0 24px;
  }
  .pg-plans-shell {
    padding: 18px 14px 22px;
  }
  .period-tabs-row {
    border-radius: 20px;
    padding: 6px;
  }
  .period-tab {
    flex: 1 1 42%;
    min-width: 0;
    padding: 10px 12px;
  }
}
