/**
 * QieYun Plan — v3.64.30 纯黑深邃 + 玻璃态卡片
 * 独立命名空间 qp-*，不依赖 fw-plan / qy-glass 等旧样式
 */

/* ── Reset scoped ── */
.qp-page,
.qp-page *,
.qp-overlay,
.qp-overlay * {
  box-sizing: border-box;
}

.qp-page {
  --qp-bg: #0a0a0a;
  --qp-surface: #111111;
  --qp-panel: #0e0e0e;
  --qp-panel-2: #111111;
  --qp-teal: #26a69a;
  --qp-teal-hi: #2ec4b6;
  --qp-teal-lo: #1e8e82;
  --qp-teal-dim: rgba(38, 166, 154, 0.14);
  --qp-teal-glow: rgba(38, 166, 154, 0.4);
  --qp-green: #4ade80;
  --qp-text: #ffffff;
  --qp-muted: #8a8a8a;
  --qp-soft: #b3b3b3;
  --qp-line: rgba(255, 255, 255, 0.06);
  --qp-line-hi: rgba(255, 255, 255, 0.1);
  --qp-glass: rgba(255, 255, 255, 0.03);
  --qp-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --qp-inset-bottom: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  --qp-shadow-card: 0 16px 48px rgba(0, 0, 0, 0.62);
  --qp-r: 14px;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--qp-text);
  background: var(--qp-bg);
  padding: 8px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  -webkit-font-smoothing: antialiased;
}

/* ═══ Header ═══ */
.qp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid var(--qp-line);
  border-radius: var(--qp-r);
  box-shadow: var(--qp-inset-top), var(--qp-inset-bottom), var(--qp-shadow-card);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.qp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qp-teal);
  padding-left: 12px;
  border-left: 3px solid var(--qp-teal);
  margin-bottom: 12px;
}

.qp-header__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.qp-header__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--qp-muted);
  max-width: 480px;
}

.qp-header__aside {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qp-stat {
  min-width: 160px;
  padding: 18px 22px;
  background: rgba(17, 17, 17, 0.88);
  border: 1px solid var(--qp-line);
  border-radius: 12px;
  box-shadow: var(--qp-inset-top), var(--qp-inset-bottom);
}

.qp-stat__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--qp-muted);
  margin-bottom: 8px;
}

.qp-stat__value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--qp-teal);
  letter-spacing: -0.02em;
}

/* ═══ Buttons ═══ */
.qp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.qp-btn--primary {
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, var(--qp-teal-hi) 0%, var(--qp-teal) 100%);
  box-shadow: 0 4px 20px var(--qp-teal-glow);
}

.qp-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 8px 28px var(--qp-teal-glow);
}

.qp-btn--primary:active:not(:disabled) {
  transform: scale(0.98);
}

.qp-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qp-btn--outline {
  width: 100%;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--qp-soft);
  background: transparent;
  border: 1px solid var(--qp-line);
}

.qp-btn--outline:hover {
  border-color: var(--qp-teal);
  color: var(--qp-teal);
}

.qp-btn--ghost {
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--qp-soft);
  background: transparent;
  border: 1px solid var(--qp-line);
}

.qp-btn--ghost:hover {
  border-color: var(--qp-teal);
  color: var(--qp-teal);
}

.qp-btn--sm {
  min-height: auto;
}

.qp-btn--block {
  width: 100%;
}

/* ═══ Tabs ═══ */
.qp-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid var(--qp-line);
  border-radius: 12px;
  box-shadow: var(--qp-inset-top), var(--qp-inset-bottom);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qp-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--qp-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qp-tabs__btn:hover {
  color: var(--qp-soft);
  background: rgba(255, 255, 255, 0.04);
}

.qp-tabs__btn--active {
  color: #fff;
  background: var(--qp-teal);
  border-color: var(--qp-teal);
  box-shadow: 0 4px 16px var(--qp-teal-glow);
}

.qp-tabs__count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.qp-tabs__btn--active .qp-tabs__count {
  background: rgba(0, 0, 0, 0.2);
}

/* ═══ Grid & Cards — PC 四列对齐 ═══ */
.qp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: none;
  align-items: stretch;
  justify-items: stretch;
}

@media (min-width: 769px) and (max-width: 1280px) {
  .qp-grid {
    gap: 14px;
  }

  .qp-card__inner {
    padding: 18px 14px 8px;
  }

  .qp-card__name {
    font-size: 14px;
    padding-right: 60px;
  }

  .qp-card__amount {
    font-size: 30px;
  }

  .qp-card__cycle {
    font-size: 13px;
  }

  .qp-features {
    min-height: 180px;
  }
}

.qp-grid > .qp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.qp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  background: linear-gradient(168deg, rgba(20, 20, 20, 0.94) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid var(--qp-line);
  border-radius: var(--qp-r);
  overflow: hidden;
  box-shadow: var(--qp-inset-top), var(--qp-inset-bottom), var(--qp-shadow-card);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.qp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 166, 154, 0.32);
  box-shadow:
    var(--qp-inset-top),
    var(--qp-inset-bottom),
    0 20px 56px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(38, 166, 154, 0.12);
}

/* 推荐 = 参考图选中卡片（边框等宽，避免卡片尺寸不一致） */
.qp-card--featured {
  background: linear-gradient(165deg, rgba(38, 166, 154, 0.14) 0%, rgba(17, 17, 17, 0.96) 42%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid rgba(38, 166, 154, 0.55);
  box-shadow:
    var(--qp-inset-top),
    var(--qp-inset-bottom),
    0 0 0 1px rgba(38, 166, 154, 0.35),
    0 0 36px rgba(38, 166, 154, 0.16),
    var(--qp-shadow-card);
}

.qp-card--featured:hover {
  box-shadow:
    var(--qp-inset-top),
    var(--qp-inset-bottom),
    0 0 52px rgba(38, 166, 154, 0.24),
    0 20px 56px rgba(0, 0, 0, 0.68);
}

.qp-card--current {
  border-color: rgba(74, 222, 128, 0.42);
  box-shadow:
    var(--qp-inset-top),
    var(--qp-inset-bottom),
    0 0 0 1px rgba(74, 222, 128, 0.2),
    var(--qp-shadow-card);
}

.qp-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: var(--qp-teal);
  color: #042f2e;
}

.qp-badge--current {
  background: rgba(74, 222, 128, 0.15);
  color: var(--qp-green);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.qp-card__inner {
  flex: 1 1 auto;
  padding: 20px 18px 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--qp-r) var(--qp-r) 0 0;
}

.qp-card__name {
  margin: 0 0 10px;
  padding-right: 68px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qp-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.qp-card__amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--qp-teal-hi);
}

.qp-card--featured .qp-card__amount {
  text-shadow: 0 0 24px rgba(38, 166, 154, 0.35);
}

.qp-card__cycle {
  font-size: 14px;
  font-weight: 500;
  color: var(--qp-muted);
}

.qp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--qp-muted);
}

.qp-meta-sep {
  opacity: 0.45;
}

.qp-card__cycles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.qp-cycle-tag {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--qp-teal);
  background: var(--qp-teal-dim);
  border: 1px solid rgba(38, 166, 154, 0.2);
  border-radius: 999px;
}

/* Features — 固定弹性区域，保证同行卡片底部对齐 */
.qp-features {
  flex: 1 1 auto;
  min-height: 196px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--qp-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.qp-features__title {
  margin: 0 0 10px;
  padding-left: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4d4d4;
  border-left: 2px solid var(--qp-teal);
  flex-shrink: 0;
}

.qp-features__list {
  list-style: none;
  margin: 0;
  padding: 0 6px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--qp-teal) rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

.qp-features__list::-webkit-scrollbar {
  width: 6px;
}

.qp-features__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.qp-features__list::-webkit-scrollbar-thumb {
  background: rgba(38, 166, 154, 0.55);
  border-radius: 999px;
}

.qp-features__scroll-hint {
  flex-shrink: 0;
  margin: 8px 0 0;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--qp-teal);
  text-align: center;
  background: rgba(38, 166, 154, 0.08);
  border: 1px dashed rgba(38, 166, 154, 0.25);
  border-radius: 8px;
}

.qp-features__item {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #e5e5e5;
}

.qp-features__text {
  display: block;
  word-break: break-word;
}

.qp-features__item--off {
  opacity: 0.45;
  text-decoration: line-through;
}

.qp-features__item--off::before {
  content: '×' !important;
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.3) !important;
}

.qp-features__item--label {
  padding-left: 0;
}

.qp-features__item--label::before {
  display: none !important;
}

.qp-features__item--rich {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 18px;
}

.qp-features__item--rich::before {
  display: none !important;
}

.qp-features__item--rich b,
.qp-features__item--rich strong {
  font-weight: 700;
}

.qp-bill__feats li.qp-features__item--rich {
  padding: 14px 16px;
  padding-left: 16px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.qp-bill__feats li.qp-features__item--rich::before {
  display: none !important;
}

html[data-theme="light"] .qp-features__item--rich,
html[data-theme="light"] .qp-bill__feats li.qp-features__item--rich {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #1e293b;
}

.rk-plan-feats li.qp-features__item--rich,
.fw-plan-feats li.qp-features__item--rich {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rk-plan-feats li.qp-features__item--rich::before,
.fw-plan-feats li.qp-features__item--rich::before {
  display: none !important;
  content: none !important;
}

html[data-theme="light"] .rk-plan-feats li.qp-features__item--rich,
html[data-theme="light"] .fw-plan-feats li.qp-features__item--rich {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #334155;
}

.qp-feat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.qp-features__more {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--qp-teal);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.qp-features__more:hover {
  color: var(--qp-teal-hi);
}

.qp-features__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--qp-green);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.qp-card__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--qp-line);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border-radius: 0 0 var(--qp-r) var(--qp-r);
}

/* Loading / Empty */
.qp-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--qp-muted);
  font-size: 15px;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid var(--qp-line);
  border-radius: var(--qp-r);
  box-shadow: var(--qp-inset-top), var(--qp-inset-bottom), var(--qp-shadow-card);
}

/* 套餐页内加载态 — 与纯黑底统一 */
.qp-page .qy-page-load {
  background: rgba(14, 14, 14, 0.94) !important;
  border: 1px solid var(--qp-line) !important;
  box-shadow: var(--qp-inset-top), var(--qp-inset-bottom), var(--qp-shadow-card) !important;
}

.qp-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(38, 166, 154, 0.25);
  border-top-color: var(--qp-teal);
  border-radius: 50%;
  animation: qpSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes qpSpin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════
   Checkout Modal — 商用级高端支付页 v3.60.7
   ═══════════════════════════════════════ */
@keyframes qpAuroraShift {
  0%, 100% { opacity: 0.85; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(2%, -1%, 0) scale(1.03); }
}

@keyframes qpBtnShine {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

@keyframes qpGlowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(45, 212, 191, 0.25), 0 8px 32px rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 0 32px rgba(45, 212, 191, 0.45), 0 12px 40px rgba(139, 92, 246, 0.2); }
}

.qp-overlay--premium {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(45, 212, 191, 0.06), transparent 58%),
    rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.qp-checkout--premium {
  --qp-cx-teal: #2dd4bf;
  --qp-cx-green: #4ade80;
  --qp-cx-purple: #a78bfa;
  --qp-cx-blue: #38bdf8;
  --qp-cx-text: #ffffff;
  --qp-cx-muted: rgba(226, 232, 240, 0.72);
  --qp-cx-soft: rgba(241, 245, 249, 0.92);
  --qp-cx-line: rgba(255, 255, 255, 0.08);
  --qp-cx-glass: rgba(255, 255, 255, 0.04);

  position: relative;
  width: min(960px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(45, 212, 191, 0.06), transparent 55%),
    linear-gradient(168deg, #14161c 0%, #11151f 45%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 88px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 -18px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--qp-cx-text);
  isolation: isolate;
}

.qp-checkout__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(56, 189, 248, 0.14), transparent 62%),
    radial-gradient(ellipse 48% 38% at 8% 92%, rgba(124, 58, 237, 0.1), transparent 58%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(45, 212, 191, 0.05), transparent 70%);
  animation: qpAuroraShift 16s ease-in-out infinite;
}

.qp-checkout--premium > *:not(.qp-checkout__aurora) {
  position: relative;
  z-index: 1;
}

.qp-eyebrow--glow {
  color: var(--qp-cx-teal);
  text-shadow: 0 0 20px rgba(45, 212, 191, 0.45);
}

.qp-checkout__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-bottom: 1px solid var(--qp-cx-line);
}

.qp-checkout__title {
  margin: 10px 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.qp-checkout__sub {
  margin: 0;
  font-size: 14px;
  color: var(--qp-cx-muted);
  line-height: 1.6;
}

.qp-checkout__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--qp-cx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.qp-checkout__close:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.2);
  color: #fff;
}

.qp-checkout__body {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.qp-checkout__main {
  padding: 26px 30px 30px;
  overflow-y: auto;
  border-left: 1px solid var(--qp-cx-line);
  background: rgba(255, 255, 255, 0.02);
}

.qp-section-title {
  margin: 0 0 18px;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border-left: 3px solid var(--qp-cx-teal);
  letter-spacing: 0.02em;
}

.qp-section-title--sm {
  margin: 20px 0 14px;
  font-size: 14px;
}

.qp-cycle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.qp-cycle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--qp-cx-line);
  background: var(--qp-cx-glass);
  color: var(--qp-cx-soft);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.qp-cycle:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.12);
}

.qp-cycle--active {
  border-color: var(--qp-cx-teal);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22) 0%, rgba(139, 92, 246, 0.12) 100%);
  color: #fff;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.2), 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.qp-cycle__label {
  font-weight: 700;
  font-size: 14px;
}

.qp-cycle__price {
  font-weight: 800;
  font-size: 16px;
  color: var(--qp-cx-teal);
}

.qp-cycle--active .qp-cycle__price {
  color: #fff;
}

.qp-checkout__bill {
  padding: 26px 28px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.qp-checkout__bill--pay {
  gap: 0;
}

.qp-pay-amount-hero {
  text-align: center;
  padding: 12px 16px 22px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -8px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qp-pay-amount-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qp-cx-muted);
  margin-bottom: 8px;
}

.qp-pay-amount-value {
  display: block;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(45, 212, 191, 0.35));
}

.qp-pay-amount-cycle {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--qp-cx-teal);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 999px;
}

.qp-price-rows--glass {
  padding: 14px 16px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--qp-cx-glass);
  border: 1px solid var(--qp-cx-line);
}

.qp-price-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.qp-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--qp-cx-soft);
}

.qp-price-row--discount span:last-child {
  color: var(--qp-cx-green);
  font-weight: 700;
}

.qp-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.qp-pay-methods-empty {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--qp-cx-muted);
}

.qp-pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(241, 245, 249, 0.92);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.qp-pay-method:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(45, 212, 191, 0.08);
}

.qp-pay-method--active {
  border-color: var(--qp-cx-teal);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.18);
}

.qp-pay-method--balance.qp-pay-method--active {
  border-color: rgba(74, 222, 128, 0.55);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.16) 0%, rgba(45, 212, 191, 0.1) 100%);
}

.qp-pay-method__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.qp-pay-method__icon.alipay,
.qp-pay-method__icon.wechat {
  background: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.qp-pay-method__icon.balance { background: rgba(74, 222, 128, 0.2); }

.qp-pay-method__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.qp-pay-method__name {
  flex: 1;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
}

.qp-pay-method__check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #042f2e;
  background: var(--qp-cx-teal);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.5);
}

.qp-balance {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.5;
}

.qp-balance--ok {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--qp-cx-green);
}

.qp-balance--warn {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

/* Premium buttons */
.qp-checkout--premium .qp-btn--premium {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2dd4bf 0%, #26a69a 45%, #7c3aed 100%);
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.qp-checkout--premium .qp-btn--premium:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.08);
  animation: qpGlowPulse 2s ease-in-out infinite;
}

.qp-checkout--premium .qp-btn--premium:active:not(:disabled) {
  transform: scale(0.98);
}

.qp-checkout--premium .qp-btn--premium:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.qp-btn__shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: qpBtnShine 3.5s ease-in-out infinite;
  pointer-events: none;
}

.qp-checkout--premium .qp-btn--premium-outline {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--qp-cx-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--qp-cx-soft);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.qp-checkout--premium .qp-btn--premium-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.15);
}

.qp-btn--pay {
  margin-top: 4px;
}

.qp-pay-balance-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: none;
  background: none;
  color: var(--qp-cx-teal);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.qp-pay-balance-link:hover:not(:disabled) {
  color: #5eead4;
  transform: translateY(-1px);
}

.qp-pay-balance-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qp-checkout__cancel {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: none;
  background: none;
  color: var(--qp-cx-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.qp-checkout__cancel:hover {
  color: #fff;
}

.qp-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--qp-cx-muted);
}

.qp-pay-order-no {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--qp-cx-muted);
  word-break: break-all;
}

.qp-coupon--main {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.qp-coupon--main input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--qp-cx-line);
  background: var(--qp-cx-glass);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qp-coupon--main input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.qp-coupon--main input::placeholder {
  color: rgba(203, 213, 225, 0.6);
}

.qp-checkout-plan-brief {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--qp-cx-line);
}

.qp-checkout-plan-brief__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.qp-spec--glass {
  background: var(--qp-cx-glass) !important;
  border-color: var(--qp-cx-line) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qp-spec--glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.qp-spec {
  padding: 14px 10px;
  text-align: center;
  background: var(--qp-cx-glass);
  border: 1px solid var(--qp-cx-line);
  border-radius: 12px;
}

.qp-spec__icon {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.qp-spec strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.qp-spec small {
  font-size: 11px;
  color: var(--qp-cx-muted);
}

.qp-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.qp-bill__feats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qp-bill__feats--main {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.qp-bill__feats li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--qp-cx-soft);
}

.qp-bill__feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--qp-cx-green);
  font-weight: 800;
}

.qp-bill__feat--off {
  opacity: 0.45;
  text-decoration: line-through;
}

/* QR premium — 与 qy-pay-qr-premium 共用，不覆盖滚动与内边距 */
.qp-pay-qr--premium {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  overflow: hidden;
  min-height: 0;
}

.qp-pay-qr__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(45, 212, 191, 0.15), transparent 70%);
  pointer-events: none;
}

.qp-pay-qr__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qp-cx-teal);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 999px;
}

.qp-pay-qr__head h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.qp-pay-qr__amount {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, #5eead4, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qp-pay-qr__hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--qp-cx-muted);
}

.qp-pay-qr__body {
  margin: 28px 0;
  position: relative;
  z-index: 1;
}

.qp-pay-qr__frame {
  padding: 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(45, 212, 191, 0.15);
}

.qp-pay-qr__poll {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--qp-cx-muted);
}

.qp-pay-qr__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

.qp-pay-qr__actions .qp-btn--premium,
.qp-pay-qr__actions .qp-btn--premium-outline {
  flex: 1;
  min-width: 140px;
}

/* Mobile sticky pay bar */
.qp-checkout__mobile-bar {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .qp-header {
    padding: 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .qp-header__aside {
    width: 100%;
    flex-direction: column;
  }

  .qp-stat {
    min-width: 0;
    width: 100%;
  }

  .qp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qp-card {
    min-height: 0;
    height: auto;
  }

  .qp-features {
    min-height: 0;
  }

  .qp-features__list {
    min-height: 0;
    max-height: min(42vh, 280px);
  }

  .qp-header__title {
    font-size: 24px;
  }

  .qp-card__amount {
    font-size: 36px;
  }

  .qp-tabs {
    width: 100%;
  }

  .qp-tabs__btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
  }

  .qp-overlay--premium {
    padding: 0;
    align-items: flex-end;
    z-index: 100001;
  }

  .qp-checkout--premium {
    width: 100%;
    max-height: min(92dvh, 100%);
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    overflow: hidden;
    background: linear-gradient(168deg, #1e2842 0%, #1a2238 45%, #141a2c 100%);
  }

  .qp-checkout__aurora {
    background:
      radial-gradient(ellipse 90% 55% at 50% -10%, rgba(56, 189, 248, 0.12), transparent 68%),
      radial-gradient(ellipse 70% 45% at 100% 100%, rgba(124, 58, 237, 0.08), transparent 60%);
    animation: none;
  }

  .qp-checkout__head {
    flex-shrink: 0;
    padding: 18px 18px 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .qp-checkout__title {
    font-size: 20px;
  }

  .qp-checkout__sub {
    font-size: 13px;
    color: #d1d9e6;
  }

  .qp-checkout__body {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .qp-checkout__bill--pay {
    order: 1;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--qp-cx-line);
    background: rgba(255, 255, 255, 0.03);
  }

  .qp-checkout__main {
    order: 2;
    border-left: none;
    padding: 16px 18px 20px;
  }

  .qp-pay-amount-hero {
    padding: 10px 14px 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(124, 58, 237, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .qp-pay-amount-label {
    color: #d1d9e6;
  }

  .qp-pay-amount-value {
    font-size: 36px;
  }

  .qp-price-row {
    font-size: 14px;
    color: #eef2f7;
  }

  .qp-pay-method {
    min-height: 60px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
  }

  .qp-pay-method__name {
    font-size: 14px;
  }

  .qp-cycle-grid {
    grid-template-columns: 1fr;
  }

  .qp-cycle {
    min-height: 54px;
    color: #eef2f7;
    background: rgba(255, 255, 255, 0.06);
  }

  .qp-checkout__actions--desktop {
    display: none !important;
  }

  .qp-checkout__cancel,
  .qp-secure {
    display: none;
  }

  /* 底部固定支付栏 — flex 子项，不被 overflow 裁切 */
  .qp-checkout__mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 5;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(22, 30, 50, 0.97) 0%, rgba(16, 22, 38, 0.99) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  }

  .qp-checkout__mobile-bar-sum {
    flex: 1;
    min-width: 0;
  }

  .qp-checkout__mobile-bar-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #b8c4d4;
    margin-bottom: 2px;
    letter-spacing: 0.04em;
  }

  .qp-checkout__mobile-bar-price {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #5eead4;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  .qp-btn--pay-mobile {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 136px;
    max-width: 52%;
    min-height: 50px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 24px rgba(45, 212, 191, 0.35) !important;
  }

  .qp-pay-qr--premium {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .qp-pay-qr__amount {
    font-size: 32px;
  }

  .qp-pay-qr__actions {
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .qp-pay-qr__actions .qp-btn--premium,
  .qp-pay-qr__actions .qp-btn--premium-outline {
    width: 100%;
    min-height: 50px;
  }
}

/* ═══ 全局纯黑底 — 布局层级统一 ═══ */
html:not([data-theme="light"]) .qy-dashboard-layout.fw-layout:has(.qp-page),
html:not([data-theme="light"]) .fw-layout.qy-dashboard-layout:has(.qp-page) {
  background: #0a0a0a !important;
}

html:not([data-theme="light"]) .qy-dashboard-layout.fw-layout:has(.qp-page)::before,
html:not([data-theme="light"]) .qy-dashboard-layout.fw-layout:has(.qp-page)::after,
html:not([data-theme="light"]) .fw-layout.qy-dashboard-layout:has(.qp-page)::before,
html:not([data-theme="light"]) .fw-layout.qy-dashboard-layout:has(.qp-page)::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.fw-layout .qy-main:has(.qp-page),
.qy-dashboard-layout .qy-main:has(.qp-page) {
  background: #0a0a0a !important;
}

html[data-theme="light"] .fw-layout .qy-main:has(.qp-page),
html[data-theme="light"] .qy-dashboard-layout .qy-main:has(.qp-page) {
  background: #f1f5f9;
}

@media (min-width: 769px) {
  .fw-layout .qy-main:has(.qp-page),
  .qy-dashboard-layout .qy-main:has(.qp-page) {
    background: #0a0a0a !important;
  }

  html[data-theme="light"] .fw-layout .qy-main:has(.qp-page),
  html[data-theme="light"] .qy-dashboard-layout .qy-main:has(.qp-page) {
    background: #f1f5f9;
  }
}

/* Light theme — 套餐页变量 */
html[data-theme="light"] .qp-page {
  --qp-bg: #f1f5f9;
  --qp-panel: #ffffff;
  --qp-panel-2: #ffffff;
  --qp-text: #0f172a;
  --qp-muted: #64748b;
  --qp-soft: #475569;
  --qp-line: rgba(15, 23, 42, 0.08);
  background: var(--qp-bg);
  color: var(--qp-text);
}

html[data-theme="light"] .qp-card {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .qp-card__name,
html[data-theme="light"] .qp-features__item {
  color: #1e293b;
}

html[data-theme="light"] .qp-card__footer {
  background: rgba(15, 23, 42, 0.03);
}
