/* ============================================================
   全站公共价格弹框
   全站共用一个全屏弹层：
   - 任意页面通过定价入口或「算力不足」直接铺满视口，
     视觉上像一页，但本质是公共弹框，不改 URL / 标题 / 历史记录；
   - /pricing 仅作为直接访问时的兜底入口。
   视觉沿用站内深色页面 + 霓虹紫强调色。
   ============================================================ */

/* ---------- 全屏弹层 ---------- */
.pricing-modal {
  --pricing-content-max: 1460px;
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(760px 220px at 82% -90px, rgba(255,45,104, .05), transparent 62%),
    radial-gradient(900px 220px at 54% -100px, rgba(255, 255, 255, .035), transparent 62%),
    linear-gradient(180deg, #0d0e10 0, #0a0b0d 18%, #0a0b0d 100%);
  transition: opacity .2s ease;
}
.pricing-modal[hidden] { display: none !important; }
.pricing-modal.is-closing { opacity: 0; }

/* 打开动画：display:none 切回显示时 transition 不会触发，
   这里用 keyframes，保证每次打开都从透明 + 略低的位置重新浮现。 */
@keyframes pricing-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pricing-dialog-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes pricing-section-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.pricing-modal:not([hidden]) { animation: pricing-modal-in .18s ease-out backwards; }
.pricing-modal:not([hidden]) .pricing-dialog {
  animation: pricing-dialog-in .46s cubic-bezier(.22, 1, .36, 1) backwards;
}
.pricing-modal:not([hidden]) .pricing-main > * {
  animation: pricing-section-in .52s cubic-bezier(.22, 1, .36, 1) backwards;
}
.pricing-modal:not([hidden]) .pricing-main > :nth-child(1) { animation-delay: .04s; }
.pricing-modal:not([hidden]) .pricing-main > :nth-child(2) { animation-delay: .09s; }
.pricing-modal:not([hidden]) .pricing-main > :nth-child(3) { animation-delay: .14s; }
.pricing-modal:not([hidden]) .pricing-main > :nth-child(4) { animation-delay: .19s; }
/* 关闭时取消入场动画，让淡出过渡完整生效。 */
.pricing-modal.is-closing,
.pricing-modal.is-closing .pricing-dialog,
.pricing-modal.is-closing .pricing-main > * { animation: none; }

.pricing-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  transition: opacity .2s ease, transform .2s ease;
}
.pricing-modal.is-closing .pricing-dialog {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(.997);
}
/* 打开时程序化聚焦页面本身，用于读屏宣布标题；页面不是控件，不显示焦点框。 */
.pricing-dialog:focus { outline: none; }

/* 关闭按钮浮在页面右上角，内容滚动时始终可见。 */
.pricing-close {
  position: absolute;
  top: 12px;
  right: 24px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  color: #d7dade;
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.pricing-close svg { width: 17px; height: 17px; }
.pricing-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .11);
}
.pricing-close:focus-visible {
  outline: 2px solid #ff4d9b;
  outline-offset: 2px;
}

/* 内部滚动区域：内容超出视口时只滚动页面层，不带动背后的原页面。 */
.pricing-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.pricing-scroll::-webkit-scrollbar { width: 8px; }
.pricing-scroll::-webkit-scrollbar-track { background: transparent; }
.pricing-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
.pricing-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); }

.pricing-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: min(var(--pricing-content-max), 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 64px 32px 56px;
}
body.pricing-modal-open { overflow: hidden; }

/* ---------- 弹框头部 ---------- */
.pricing-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding-right: 58px;
}
.pricing-card-head-copy { min-width: 0; }
.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9bec5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.pricing-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: #ff4d9b;
}
#pricing-title {
  margin: 10px 0 0;
  color: transparent;
  background: #fff;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(255,45,104, .22));
  font-family: var(--h1-font);
  font-size: 36px;
  line-height: 1.08;
  font-weight: var(--h1-weight);
  letter-spacing: var(--h1-track);
  text-wrap: balance;
}
.pricing-card-head-copy > p {
  max-width: 460px;
  margin: 10px 0 0;
  color: #8e969f;
  font-size: 13px;
  line-height: 1.6;
}
.pricing-tabs {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}
.pricing-tab {
  min-width: 78px;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #9298a1;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.pricing-tab:hover { color: #f2f3f5; }
.pricing-tab.is-active {
  color: #ffffff;
  border-color: transparent;
  background:
    radial-gradient(110% 110% at 95% 0%, rgba(255, 255, 255, .3), transparent 48%),
    linear-gradient(145deg, #ff2d68 0%, #ff4d9b 100%);
  box-shadow: 0 8px 20px rgba(255, 45, 104, .22), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.pricing-tab:focus-visible {
  outline: 2px solid rgba(255, 77, 155, .78);
  outline-offset: 2px;
}

/* ---------- Seedance 价格视频横幅 ---------- */
.pricing-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  min-height: 200px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 255, 255, .05), transparent 62%),
    radial-gradient(620px 240px at 0% 100%, rgba(255,45,104, .05), transparent 72%),
    linear-gradient(180deg, #101214 0%, #0c0d0f 52%, #090a0c 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .045) inset,
    0 24px 56px rgba(0, 0, 0, .45);
}
.pricing-banner::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -6%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,104, .06) 0%, rgba(255,45,104, 0) 68%);
  pointer-events: none;
}
.pricing-banner-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.pricing-banner-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  color: #ff8ab2;
  background: rgba(255,45,104, .12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.pricing-banner h2 {
  margin: 12px 0 8px;
  color: #f6f5f8;
  font-family: var(--h1-font);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
}
.pricing-banner h2 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(180deg, #ff2d68 0%, #ff4d9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-banner p {
  max-width: 560px;
  margin: 0;
  color: #8e969f;
  font-size: 12.5px;
  line-height: 1.65;
}
.pricing-banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pricing-banner-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #c3c8d0;
  background: rgba(255, 255, 255, .05);
  font-size: 10.5px;
  font-weight: 700;
}
.pricing-banner-stat {
  position: relative;
  z-index: 1;
  flex: 0 0 380px;
  min-width: 320px;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  background: #0f1013;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .5),
    0 1px 0 rgba(255, 255, 255, .08) inset;
}
.pricing-banner-stat-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pricing-banner-stat-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 14, .45) 0%, rgba(10, 9, 14, .62) 55%, rgba(10, 9, 14, .88) 100%);
}
.pricing-banner-stat-body {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  height: 100%;
  min-height: 170px;
  padding: 15px 20px;
  text-align: right;
}
.pricing-banner-stat-label {
  align-self: flex-end;
  padding: 4px 8px;
  border-radius: 6px;
  color: #d9dce1;
  background: rgba(8, 9, 12, .55);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}
.pricing-banner-stat-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
}
.pricing-banner-stat-price strong {
  color: #fff;
  font-size: clamp(36px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .72);
}
.pricing-banner-stat-price span {
  color: #c9ccd2;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}
.pricing-banner-stat-foot {
  color: #a8abb3;
  font-size: 11px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}

/* ---------- 会员套餐 ---------- */
.pricing-section { min-width: 0; }
.pricing-panel { min-width: 0; }
.pricing-panel[hidden] { display: none !important; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
}

/* 价格卡：彩色价格头 + 深色权益区，对应参考图的 Basic / Pro / Max 节奏。 */
.price-card {
  --hero-bg: linear-gradient(145deg, #2b2c30 0%, #17181b 100%);
  --hero-fg: #f7f7f8;
  --hero-muted: rgba(255, 255, 255, .58);
  --hero-line: rgba(255, 255, 255, .15);
  --pill-bg: rgba(255, 255, 255, .08);
  --pill-dot-bg: #f7f7f8;
  --pill-dot-fg: #17181b;
  --plan-accent: #aeb3ba;
  --hero-border: rgba(255, 255, 255, .09);
  --card-glow: 0 24px 60px rgba(0, 0, 0, .45);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.price-card:nth-child(2) {
  --hero-bg: linear-gradient(145deg, #3b3c40 0%, #1d1e22 100%);
}
.price-card:hover .plan-hero {
  box-shadow: var(--card-glow), 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 0 rgba(255, 255, 255, .22) inset;
}
.price-card:hover .plan-body {
  border-color: rgba(255, 255, 255, .12);
}
.price-card.is-popular {
  --hero-bg:
    radial-gradient(110% 110% at 95% 0%, rgba(255, 255, 255, .42), transparent 48%),
    linear-gradient(145deg, #ddff5f 0%, #b8ef00 100%);
  --hero-fg: #0c1003;
  --hero-muted: rgba(12, 16, 3, .62);
  --hero-line: rgba(12, 16, 3, .16);
  --pill-bg: rgba(12, 16, 3, .08);
  --pill-dot-bg: #0c1003;
  --pill-dot-fg: #d9ff5e;
  --plan-accent: #c4f400;
  --hero-border: rgba(214, 255, 90, .5);
  --card-glow: 0 26px 76px rgba(184, 239, 0, .18);
}
.price-card.is-value {
  --hero-bg:
    radial-gradient(110% 110% at 95% 0%, rgba(255, 255, 255, .3), transparent 48%),
    linear-gradient(145deg, #ff2d68 0%, #ff4d9b 100%);
  --hero-fg: #ffffff;
  --hero-muted: rgba(255, 255, 255, .78);
  --hero-line: rgba(255, 255, 255, .26);
  --pill-bg: rgba(255, 255, 255, .16);
  --pill-dot-bg: #ffffff;
  --pill-dot-fg: #ff2d68;
  --plan-accent: #ff4d9b;
  --hero-border: rgba(255, 77, 155, .45);
  --card-glow: 0 26px 76px rgba(255, 45, 104, .2);
}

.plan-hero {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 22px 20px 20px;
  border: 1px solid var(--hero-border);
  border-radius: 24px;
  color: var(--hero-fg);
  background: var(--hero-bg);
  box-shadow: var(--card-glow), 0 1px 0 rgba(255, 255, 255, .18) inset;
}
.plan-hero::after {
  content: "";
  position: absolute;
  left: 18%;
  right: -22%;
  bottom: -58%;
  height: 72%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .18), transparent 66%);
}
.plan-kicker {
  position: relative;
  z-index: 1;
  color: var(--hero-fg);
  opacity: .66;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.plan-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.plan-name {
  min-width: 0;
  margin: 0;
  color: var(--hero-fg);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.plan-credits-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px 0 6px;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--hero-fg);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.plan-credits-pill em {
  color: inherit;
  font-style: normal;
  font-weight: 650;
  opacity: .55;
}
.plan-plus {
  width: 15px;
  height: 15px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pill-dot-bg);
  color: var(--pill-dot-fg);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.plan-plus::before { content: "+"; }
.plan-sub {
  position: relative;
  z-index: 1;
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--hero-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--hero-fg);
}
.price-row del {
  margin-right: 6px;
  color: var(--hero-muted);
  opacity: .8;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.price-currency {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.price-row strong {
  font-size: 46px;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.price-term {
  margin-left: 3px;
  color: var(--hero-muted);
  font-size: 10.5px;
  font-weight: 600;
}

/* 所有套餐共用白底购买按钮；优惠信息收纳进按钮内部的小胶囊。 */
.price-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-top: 17px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  color: #0b0c0e;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease;
}
.price-btn:hover {
  background: #f3f3f4;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .22);
}
.price-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.price-offer {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: #ff2d6f;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: #101113;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26), 0 1px 0 rgba(255, 255, 255, .045) inset;
}
.plan-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}
.plan-validity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: #b8bdc5;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}
.plan-validity::before {
  content: "✓";
  width: 14px;
  height: 14px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--plan-accent);
  background: rgba(255, 255, 255, .07);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}
.plan-stat { min-width: 0; padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .06); }
.plan-stat:last-child { padding-right: 0; border-right: 0; }
.plan-stat + .plan-stat { padding-left: 12px; }
.plan-stat strong {
  display: block;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.plan-stat span {
  display: block;
  margin-top: 4px;
  color: #7e848c;
  font-size: 9.5px;
  line-height: 1.3;
}
.plan-models {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.plan-model-group { display: grid; gap: 6px; }
.plan-model-group > span {
  color: #737981;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.model-tags em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 6px;
  color: #c6cbd2;
  background: rgba(255, 255, 255, .045);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.25;
}
.model-tags em::before {
  content: "✓";
  width: 12px;
  height: 12px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--plan-accent);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}
.model-tags em.is-price {
  color: #f2f3f5;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .1);
}
.model-tags em.is-price::before {
  content: "¥";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--plan-accent);
  font-weight: 800;
}

/* ---------- 算力加油包 ---------- */
.addon-section {
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.addon-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.addon-heading { min-width: 0; }
.addon-copy h2 {
  margin: 8px 0 0;
  color: #f4f5f6;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.addon-copy p {
  max-width: 390px;
  margin: 0;
  color: #8e969f;
  font-size: 12.5px;
  line-height: 1.65;
  text-align: right;
}
.addon-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* 加油包沿用套餐卡的彩色头部/深色内容层次，选中项用旗舰粉渐变强调。 */
.addon-offer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 18px 18px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  color: #f1eff4;
  background:
    radial-gradient(130% 95% at 100% 0%, rgba(255, 45, 104, .1), transparent 52%),
    #0f1012;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .4),
    0 1px 0 rgba(255, 255, 255, .045) inset;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.addon-offer:hover {
  border-color: rgba(255, 77, 155, .3);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(255, 45, 104, .1) inset;
}
.addon-offer.is-selected {
  border-color: rgba(255, 77, 155, .55);
  color: #ffffff;
  background:
    radial-gradient(110% 110% at 95% 0%, rgba(255, 255, 255, .3), transparent 48%),
    linear-gradient(145deg, #ff2d68 0%, #ff4d9b 100%);
  box-shadow:
    0 26px 60px rgba(255, 45, 104, .22),
    0 1px 0 rgba(255, 255, 255, .3) inset;
}
.addon-offer.is-selected:hover {
  border-color: rgba(255, 255, 255, .58);
}
.addon-offer:focus-visible {
  outline: 2px solid rgba(255, 77, 155, .8);
  outline-offset: 3px;
}
.addon-offer-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  color: inherit;
  font-size: 13px;
  font-weight: 760;
}
.addon-offer-name em {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  color: #dfe2e7;
  background: rgba(255, 255, 255, .09);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.addon-offer.is-selected .addon-offer-name em {
  color: #ffffff;
  background: rgba(255, 255, 255, .18);
}
.addon-offer.is-selected .addon-offer-name::after {
  content: "✓";
  width: 17px;
  height: 17px;
  margin-left: auto;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ff2d68;
  background: #ffffff;
  font-size: 9px;
  font-weight: 900;
}
.addon-offer-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}
.addon-offer-credits {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #8e969f;
  font-size: 11px;
}
.addon-offer-credits strong {
  color: #ffffff;
  font-size: 33px;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.addon-offer-price {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.addon-offer.is-selected .addon-offer-credits,
.addon-offer.is-selected .addon-offer-credits strong,
.addon-offer.is-selected .addon-offer-price {
  color: #ffffff;
}
.addon-offer-note {
  color: #8b919b;
  font-size: 10.5px;
  line-height: 1.5;
}
.addon-offer.is-selected .addon-offer-note {
  color: rgba(255, 255, 255, .78);
}
.addon-offer-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 3px;
  border-radius: 9px;
  color: #0b0c0e;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  font-size: 12px;
  font-weight: 760;
  transition: background .18s ease, transform .18s ease;
}
.addon-offer:hover .addon-offer-buy,
.addon-offer.is-selected .addon-offer-buy {
  background: #f4f4f5;
}
.addon-offer:active .addon-offer-buy {
  transform: scale(.99);
}

/* ---------- FAQ ---------- */
.pricing-dialog .faq-eyebrow { color: #ff8ab2; }
.pricing-dialog .faq-section {
  order: 0;
  gap: 20px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background:
    radial-gradient(1100px 320px at 12% 0%, rgba(255,45,104, .025), transparent 62%),
    linear-gradient(180deg, #101214 0%, #0c0d0f 52%, #090a0c 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .04) inset,
    0 24px 56px rgba(0, 0, 0, .45);
}
.pricing-dialog .faq-heading h2 {
  margin-top: 10px;
  color: #f4f5f6;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.pricing-dialog .faq-heading p {
  margin-top: 10px;
  color: #8e969f;
  font-size: 12.5px;
}
.pricing-dialog .faq-grid { gap: 8px; }
.pricing-dialog .faq-item {
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
  transition: background .18s ease, border-color .18s ease;
}
.pricing-dialog .faq-item[open] {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
}
.pricing-dialog .faq-item:hover { background: rgba(255, 255, 255, .04); }
.pricing-dialog .faq-item summary {
  min-height: 56px;
  padding: 0 54px 0 18px;
  color: #e7e9ec;
  font-size: 14px;
  font-weight: 700;
}
.pricing-dialog .faq-item summary span { right: 17px; }
.pricing-dialog .faq-item p {
  padding: 0 54px 18px 18px;
  color: #9aa0a7;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- 空态 / 加载失败 ---------- */
.pricing-load-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  padding: 40px 20px;
  color: #9aa0a7;
  font-size: 13px;
  text-align: center;
}
.pricing-load-error button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  color: #f2f3f5;
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pricing-load-error button:hover { background: rgba(255, 255, 255, .1); }

/* ---------- 直接访问 /pricing 时的兜底背景 ---------- */
body.pricing-page {
  overflow: hidden;
  background:
    radial-gradient(900px 340px at 50% -160px, rgba(255,45,104, .05), transparent 66%),
    linear-gradient(180deg, #0a0b0d 0%, #07080a 100%);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1279px) {
  .pricing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pricing-banner { display: grid; gap: 20px; padding: 20px; }
  .pricing-banner-stat { width: 100%; min-width: 0; min-height: 200px; }
  .pricing-banner-stat-body { min-height: 200px; text-align: left; }
  .pricing-banner-stat-label { align-self: flex-start; }
  .pricing-banner-stat-price { justify-content: flex-start; }
  .addon-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pricing-card-head {
    display: block;
    padding-right: 52px;
  }
  .pricing-tabs { margin-top: 16px; }
  #pricing-title { font-size: 30px; }
  .pricing-main { gap: 22px; padding: 58px 22px 44px; }
  .addon-copy { display: block; }
  .addon-copy h2 { font-size: 26px; }
  .addon-copy p { margin-top: 8px; text-align: left; }
}
@media (max-width: 640px) {
  .pricing-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .pricing-banner { padding: 18px 16px; border-radius: 16px; }
  .pricing-banner h2 { font-size: 26px; }
  .pricing-banner-stat { min-height: 180px; }
  .pricing-banner-stat-body { min-height: 180px; padding: 14px 16px; }
  .pricing-main {
    gap: 20px;
    padding: 58px 16px max(34px, env(safe-area-inset-bottom));
  }
  .pricing-card-head { padding-right: 46px; }
  #pricing-title { font-size: 27px; }
  .pricing-card-head-copy > p { margin-top: 8px; font-size: 12px; }
  .pricing-tabs { width: 100%; }
  .pricing-tab { flex: 1; min-width: 0; }
  .pricing-cards { grid-template-columns: 1fr; gap: 12px; }
  .price-card { gap: 12px; padding: 0; }
  .plan-hero { padding: 20px 16px 18px; }
  .plan-body { padding: 14px 16px 16px; }
  .plan-name { font-size: 32px; }
  .plan-credits-pill { height: 26px; font-size: 10px; }
  .price-row strong { font-size: 42px; }
  .plan-sub { min-height: 0; }
  .addon-section { padding: 2px 0 0; border-radius: 0; }
  .addon-copy h2 { font-size: 28px; }
  .addon-offer { padding: 16px 14px 12px; }
  .addon-offers { grid-template-columns: 1fr; gap: 10px; }
  .pricing-dialog .faq-section { padding: 22px 14px 18px; border-radius: 16px; }
  .pricing-dialog .faq-heading h2 { font-size: 24px; }
  .pricing-dialog .faq-item summary { min-height: 52px; padding-right: 48px; font-size: 13px; }
  .pricing-dialog .faq-item p { padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-close,
  .price-card,
  .price-btn,
  .addon-offer,
  .addon-offer-buy,
  .pricing-tab,
  .pricing-dialog,
  .pricing-modal { transition: none; }
  .pricing-modal:not([hidden]),
  .pricing-modal:not([hidden]) .pricing-dialog,
  .pricing-modal:not([hidden]) .pricing-main > * { animation: none; }
  .pricing-modal.is-closing { opacity: 0; }
}

/* 强制配色模式下保证标题和按钮仍然可读。 */
@media (forced-colors: active) {
  .pricing-dialog,
  .price-card,
  .addon-offer,
  .addon-section,
  .pricing-dialog .faq-section { border-color: CanvasText; }
  #pricing-title {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: CanvasText;
    filter: none;
  }
  .pricing-tab.is-active,
  .price-btn,
  .addon-offer.is-selected .addon-offer-buy {
    color: HighlightText;
    background: Highlight;
  }
  .plan-credits-pill,
  .price-offer { border-color: CanvasText; }
}

/* ============================================================
   微信支付弹窗（Native 扫码）
   与登录弹窗同一套黑白灰体系：深灰底 + 点阵背景 + 白色二维码。
   ============================================================ */
.pay-overlay {
  --pay-ink: #f5f6f8;
  --pay-muted: #a2a8b2;
  --pay-dim: #777e88;
  --pay-silver: #b9bfc8;
  --pay-line: rgba(255, 255, 255, .09);
  --pay-line-soft: rgba(255, 255, 255, .06);
  --pay-line-strong: rgba(255, 255, 255, .16);
  --pay-soft: rgba(255, 255, 255, .05);
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 24px;
}
.pay-overlay[hidden] { display: none !important; }
.pay-badge[hidden], .pay-row[hidden] { display: none !important; }

.pay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, .78);
  backdrop-filter: blur(12px) saturate(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
  opacity: 0;
  transition: opacity .24s ease;
}
.pay-overlay.is-visible .pay-backdrop { opacity: 1; }

.pay-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(155deg, #17191d 0%, #101113 62%, #0d0e11 100%);
  box-shadow: 0 46px 110px rgba(0, 0, 0, .68), 0 1px 0 rgba(255, 255, 255, .06) inset;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .24s ease, transform .3s cubic-bezier(.22, .9, .3, 1);
}
.pay-overlay.is-visible .pay-dialog { opacity: 1; transform: none; }

/* ---------- 顶栏 ---------- */
.pay-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px 15px 22px;
  border-bottom: 1px solid var(--pay-line-soft);
  background: rgba(255, 255, 255, .012);
}
.pay-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pay-brand img { width: 24px; height: 24px; flex: none; }
.pay-brand strong { color: var(--pay-ink); font-size: 14px; font-weight: 750; letter-spacing: .01em; }
.pay-brand span {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: #c3c8cf;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}
.pay-secure {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pay-dim);
  font-size: 11px;
  white-space: nowrap;
}
.pay-secure svg { width: 13px; height: 13px; color: #8d939c; }
.pay-close {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #e9eaee;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.pay-close:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .16); color: #fff; }
.pay-close:focus-visible { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 3px; }
.pay-close svg { width: 16px; height: 16px; }

/* ---------- 主体 ---------- */
.pay-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 18px;
  padding: 22px;
}

/* 左：与登录弹窗同款点阵面板 */
.pay-summary {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(420px 220px at 76% 34%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, #17191d 0%, #111318 68%, #0e1014 100%);
}
.pay-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    radial-gradient(rgba(255, 255, 255, .58) 1px, transparent 1.3px),
    radial-gradient(rgba(201, 203, 209, .34) .9px, transparent 1.2px);
  background-position: 0 0, 16px 16px;
  background-size: 24px 24px, 48px 48px;
  mask-image: radial-gradient(125% 110% at 50% 42%, #000 58%, rgba(0, 0, 0, .45) 100%);
  -webkit-mask-image: radial-gradient(125% 110% at 50% 42%, #000 58%, rgba(0, 0, 0, .45) 100%);
  animation: pay-dots-twinkle 4.8s steps(4, end) infinite;
}
@keyframes pay-dots-twinkle {
  0%, 100% { opacity: .3; filter: brightness(.94); }
  45% { opacity: .56; filter: brightness(1.1); }
  70% { opacity: .44; filter: brightness(1); }
}

.pay-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: #9aa1aa;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
}
.pay-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .72); box-shadow: 0 0 10px rgba(255, 255, 255, .35); }
.pay-summary h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--pay-ink);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -.015em;
}
.pay-plan {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: #c3c8cf;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 积分主角：黑白灰，只靠字号和留白 */
.pay-credits-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 18px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, #15161a 0%, #0e0f12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 44px rgba(0, 0, 0, .2);
}
.pay-credits-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9aa1aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.pay-credits-label::before {
  content: "";
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, .72);
}
.pay-credits {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 5px;
  min-width: 0;
}
.pay-plus {
  color: #c8ccd3;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}
.pay-credits strong {
  color: #f5f6f8;
  font-size: 56px;
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pay-credits strong {
    background: linear-gradient(180deg, #ffffff 0%, #eef0f3 45%, #b9bfc8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.pay-credits em {
  margin-left: 4px;
  color: #9aa1aa;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .02em;
}
.pay-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pay-badge.is-outline {
  border: 1px solid rgba(255, 255, 255, .38);
  background: transparent;
  color: #f5f6f8;
}
.pay-badge.is-soft {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #c3c8cf;
}
.pay-badge.is-line {
  border: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  color: #9aa1aa;
}

/* 小票明细 */
.pay-receipt {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, .14);
}
.pay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--pay-muted); font-size: 12.5px; }
.pay-row strong { color: #e9ecf1; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pay-row strong s { color: #7c828b; font-weight: 500; text-decoration-color: rgba(255, 255, 255, .35); }
.pay-row strong.is-discount { color: #f5f6f8; font-weight: 700; }
.pay-row.is-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, .14);
  color: #c3c8cf;
  font-size: 12px;
}
.pay-total {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1;
  font-weight: 800 !important;
  letter-spacing: -.03em;
}
.pay-total small { color: var(--pay-silver); font-size: 15px; font-weight: 700; }
.pay-points { position: relative; z-index: 1; display: grid; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.pay-points li { position: relative; padding-left: 15px; color: var(--pay-dim); font-size: 11.5px; line-height: 1.55; }
.pay-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
}

/* 右：与登录弹窗同款二维码面板 */
.pay-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 24px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(320px 170px at 50% -60px, rgba(255, 255, 255, .07), transparent 72%),
    linear-gradient(180deg, #17181b 0%, #121316 100%);
  overflow: hidden;
}
.pay-scan-head { position: absolute; top: 24px; left: 22px; right: 22px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: auto; }
.pay-wechat { display: inline-flex; align-items: center; gap: 8px; color: #07c160; font-size: 13px; font-weight: 700; }
.pay-wechat svg { width: 17px; height: 17px; color: #07c160; }
}
.pay-scan-body {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pay-qr-stage { position: relative; width: 244px; height: 244px; display: grid; place-items: center; margin-top: 0; }
.pay-qr {
  position: relative;
  z-index: 2;
  width: 208px;
  height: 208px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
}
.pay-qr canvas, .pay-qr img { display: block; max-width: 100%; height: auto; }
.pay-qr-loading { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: #5f6570; font-size: 11.5px; text-align: center; line-height: 1.5; }
.pay-qr-loading::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(17, 19, 22, .12);
  border-top-color: #3a3f47;
  animation: pay-spin .9s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-qr:empty::after {
  content: "二维码加载失败\A 请关闭后重试";
  white-space: pre-line;
  color: #a3403a;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}
.pay-corner { position: absolute; z-index: 3; width: 18px; height: 18px; pointer-events: none; border: 0 solid rgba(255, 255, 255, .42); }
.pay-corner.is-tl { left: 4px; top: 4px; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 7px; }
.pay-corner.is-tr { right: 4px; top: 4px; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 7px; }
.pay-corner.is-bl { left: 4px; bottom: 4px; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 7px; }
.pay-corner.is-br { right: 4px; bottom: 4px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 7px; }
.pay-scanline {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 18%;
  width: 74%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  box-shadow: 0 0 12px rgba(255, 255, 255, .25);
  opacity: 0;
  pointer-events: none;
}
.pay-overlay.is-ready .pay-scanline { opacity: .55; animation: pay-scan 3.2s ease-in-out infinite; }
@keyframes pay-scan {
  0%, 100% { top: 18%; opacity: .2; }
  50% { top: 82%; opacity: .6; }
}
.pay-overlay.is-ready .pay-qr { animation: pay-qr-in .45s cubic-bezier(.22, .9, .3, 1) backwards; }
@keyframes pay-qr-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
.pay-hint { margin: 0; color: var(--pay-dim); font-size: 11.5px; line-height: 1.6; text-align: center; }
.pay-status { min-height: 18px; color: var(--pay-muted); font-size: 12.5px; font-weight: 650; text-align: center; }
.pay-status.is-success { color: #e9ecf1; }
.pay-status.is-error { color: #f08b82; }


/* 成功态：黑白灰 */
.pay-success {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(280px 200px at 50% 34%, rgba(255, 255, 255, .07), transparent 70%),
    linear-gradient(180deg, #0d0e11, #0a0b0d);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(.97);
  transition: opacity .24s ease, transform .3s cubic-bezier(.22, .9, .3, 1), visibility .24s;
}
.pay-overlay.is-paid .pay-success { opacity: 1; visibility: visible; transform: none; }
.pay-success-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  color: #f5f6f8;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .03), 0 18px 40px rgba(0, 0, 0, .35);
}
.pay-success-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  animation: pay-success-ring 2.4s ease-out infinite;
}
.pay-success-icon svg { width: 30px; height: 30px; }
.pay-overlay.is-paid .pay-success-icon svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: pay-check .5s .12s ease-out forwards; }
@keyframes pay-check { to { stroke-dashoffset: 0; } }
@keyframes pay-success-ring {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}
.pay-success strong { color: #f5f6f8; font-size: 20px; font-weight: 760; letter-spacing: .01em; }
.pay-success-credits {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin: 2px 0 4px;
}
.pay-success-credits > span { color: #c8ccd3; font-size: 22px; font-weight: 700; }
.pay-success-credits b {
  color: #f5f6f8;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pay-success-credits b {
    background: linear-gradient(180deg, #ffffff 0%, #eef0f3 48%, #b9bfc8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.pay-success-credits em { color: #9aa1aa; font-size: 12px; font-style: normal; margin-left: 4px; }
.pay-success-note { color: #9aa1aa; font-size: 12px; }
.pay-success em { margin-top: 8px; color: #6f757d; font-size: 10.5px; font-style: normal; letter-spacing: .04em; }

/* ---------- 底栏 ---------- */
.pay-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 12px 20px 13px;
  border-top: 1px solid var(--pay-line-soft);
  color: #777e88;
  font-size: 10.5px;
}
.pay-foot-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pay-foot-item i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); box-shadow: 0 0 8px rgba(255, 255, 255, .2); }
.pay-order { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: #6f757d; }
.pay-order b {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #98a0ab;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

@media (max-width: 760px) {
  .pay-overlay { padding: 14px; }
  .pay-dialog { max-height: calc(100vh - 28px); border-radius: 24px; }
  .pay-topbar { padding: 12px 12px 12px 16px; gap: 8px; }
  .pay-brand strong { font-size: 13px; }
  .pay-secure { display: none; }
  .pay-close { width: 44px; height: 44px; margin-left: auto; }
  .pay-body { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .pay-summary { padding: 20px 18px 18px; border-radius: 20px; }
  .pay-summary h3 { font-size: 22px; }
  .pay-credits-hero { margin-top: 14px; padding: 15px 16px 14px; }
  .pay-credits strong { font-size: 46px; }
  .pay-plus { font-size: 22px; }
  .pay-credits em { font-size: 12px; }
  .pay-badges { gap: 6px; margin-top: 11px; }
  .pay-badge { padding: 3px 8px; font-size: 10px; }
  .pay-receipt { margin-top: 13px; padding-top: 0; border-top: 0; }
  .pay-receipt .pay-row:not(.is-total) { display: none; }
  .pay-total { font-size: 30px !important; }
  .pay-points { display: none; }
  .pay-panel { padding: 18px 14px 16px; gap: 10px; border-radius: 20px; }
  .pay-scan-head { top: 18px; left: 14px; right: 14px; }
  .pay-qr-stage { width: 226px; height: 226px; }
  .pay-qr { width: 194px; height: 194px; padding: 9px; }
  .pay-success { padding: 18px; }
  .pay-success-icon { width: 56px; height: 56px; }
  .pay-success strong { font-size: 19px; }
  .pay-success-credits b { font-size: 34px; }
  .pay-foot { gap: 6px 12px; padding: 10px 12px 11px; }
  .pay-order b { max-width: 120px; }
}
@media (max-width: 400px) {
  .pay-qr-stage { width: 210px; height: 210px; }
  .pay-qr { width: 180px; height: 180px; }
  .pay-credits strong { font-size: 42px; }
  .pay-badge { font-size: 9.5px; }
  .pay-foot-item:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-dialog, .pay-success, .pay-qr, .pay-success-icon svg path, .pay-scanline, .pay-summary::before {
    animation: none !important;
    transition: none !important;
  }
  .pay-scanline { display: none; }
  .pay-overlay.is-paid .pay-success-icon svg path { stroke-dashoffset: 0; }
  .pay-summary::before { opacity: .3; }
}
