/* 定价页套餐卡（JS 动态注入）— 静态 public 文件，构建后直达 /pricing-plans.css */
.plan-grid-root,
#planGrid.plan-grid-root {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.plan-group {
  width: 100%;
}

.plan-group-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-align: center;
}

.plan-grid-root .pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  padding: 12px 6px 24px;
}

.plan-grid-root .price-card {
  padding: 28px 22px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #111d33e6 0%, #0d1628f2 100%);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  outline: none;
  transition:
    transform 0.32s cubic-bezier(0.22, 0.82, 0.22, 1),
    box-shadow 0.32s cubic-bezier(0.22, 0.82, 0.22, 1),
    border-color 0.25s ease,
    opacity 0.25s ease;
  box-shadow: 0 8px 28px #00000035;
}

.plan-grid-root .pricing-cards:has(.is-active) .price-card:not(.is-active) {
  opacity: 0.78;
  transform: scale(0.985);
}

.plan-grid-root .price-card:hover {
  border-color: #56ecff55;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px #00000045;
}

.plan-grid-root .price-card.is-active {
  transform: translateY(-14px) scale(1.03);
  z-index: 4;
  opacity: 1;
  border-color: #56ecff99;
  box-shadow:
    0 28px 56px #00000055,
    0 0 0 1px #56ecff66,
    0 0 32px #56ecff22;
  background: linear-gradient(180deg, #152a4ae6 0%, #0f1f38f5 55%, #0d1628f8 100%);
}

.plan-grid-root .price-card.featured:not(.is-active) {
  border-color: #56ecff44;
}

.plan-grid-root .card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062133;
  box-shadow: 0 0 14px #56ecff55;
}

.plan-grid-root .tier-name {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}

.plan-grid-root .tier-name .tier-code {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.plan-grid-root .tier-name .tier-hint {
  font-size: 13px;
  font-weight: 500;
  color: #b8d4f0;
}

.compare-table .tier .tier-code {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.compare-table .tier .tier-hint {
  font-size: 11px;
  color: #b8d4f0;
  font-weight: 500;
}

.plan-grid-root .tier-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 20px;
  min-height: 40px;
}

.plan-grid-root .amount {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.plan-grid-root .amount--yearly {
  font-size: 28px;
  color: #d4e8ff;
}

.plan-grid-root .price-block {
  margin: 0 0 12px;
}

.plan-grid-root .price-block--dual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 6px;
  border-top: 1px solid #56ecff18;
  border-bottom: 1px solid #56ecff18;
}

.plan-grid-root .price-block--free {
  padding: 8px 0 4px;
}

.plan-grid-root .price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.plan-grid-root .price-row--yearly {
  opacity: 0.92;
}

.plan-grid-root .price-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  background: #56ecff14;
  border: 1px solid #56ecff33;
}

.plan-grid-root .price-period {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.plan-grid-root .price-block--free .price-period {
  font-size: 14px;
}

.plan-grid-root .seat-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 20px;
  opacity: 0.9;
}

.plan-grid-root .bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.plan-grid-root .bullet-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #c5daf5;
  line-height: 1.45;
  margin-bottom: 10px;
}

.plan-grid-root .tick {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  box-shadow: 0 0 10px #56ecff55;
}

.plan-grid-root .tick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #062133;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-grid-root .card-actions {
  margin-top: auto;
}

.plan-grid-root .card-actions--dual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-grid-root .card-actions .plan-buy-btn {
  font-size: 13px;
  padding: 12px 14px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  display: block;
  border-radius: 12px;
}

.plan-grid-root .card-actions--dual .plan-buy-btn {
  font-size: 13px;
  padding: 12px 14px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  display: block;
  border-radius: 12px;
}

.plan-grid-root .plan-buy-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 订阅按钮：科幻霓虹风格（月付 / 年付） */
.plan-grid-root .subscribe-btn {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}

.plan-grid-root .subscribe-btn--monthly {
  color: #021018;
  background: linear-gradient(135deg, #56ecff 0%, #8cf8ff 38%, #7f7dff 72%, #56ecff 100%);
  background-size: 220% 220%;
  border: 1px solid #b8ffff;
  box-shadow:
    0 0 22px #56ecff66,
    0 4px 18px #00000055,
    inset 0 1px 0 #ffffff55;
  text-shadow: 0 1px 0 #ffffff44;
}

.plan-grid-root .subscribe-btn--monthly:hover:not(:disabled) {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow:
    0 0 32px #56ecff99,
    0 8px 28px #00000066,
    inset 0 1px 0 #ffffff66;
  filter: brightness(1.06);
}

.plan-grid-root .subscribe-btn--yearly {
  color: #e8f8ff;
  background: linear-gradient(160deg, #0c1f3ef0 0%, #1a0e3cf0 48%, #0a1830f0 100%);
  border: 1px solid #7f7dff;
  box-shadow:
    0 0 18px #7f7dff55,
    0 0 36px #56ecff22,
    inset 0 0 28px #56ecff0d;
  text-shadow: 0 0 12px #56ecff44;
}

.plan-grid-root .subscribe-btn--yearly::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    #56ecff33 45%,
    #7f7dff55 55%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.plan-grid-root .subscribe-btn--yearly:hover:not(:disabled) {
  color: #ffffff;
  border-color: #56ecff;
  transform: translateY(-2px);
  box-shadow:
    0 0 26px #7f7dff88,
    0 0 48px #56ecff44,
    inset 0 0 32px #56ecff18;
}

.plan-grid-root .subscribe-btn--yearly:hover:not(:disabled)::before {
  transform: translateX(120%);
}

/* 一次永久：科幻霓虹（金青渐变，与月付/年付同级视觉） */
.plan-grid-root .subscribe-btn--lifetime {
  color: #021018;
  background: linear-gradient(
    125deg,
    #56ecff 0%,
    #9efcff 22%,
    #ffe566 48%,
    #56ecff 72%,
    #7f7dff 100%
  );
  background-size: 260% 260%;
  border: 1px solid #ffe566;
  box-shadow:
    0 0 26px #56ecff77,
    0 0 42px #ffd96644,
    0 4px 20px #00000055,
    inset 0 1px 0 #ffffff66;
  text-shadow: 0 1px 0 #ffffff55;
}

.plan-grid-root .subscribe-btn--lifetime::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    #ffffff55 42%,
    #56ecff66 50%,
    transparent 58%
  );
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.plan-grid-root .subscribe-btn--lifetime:hover:not(:disabled) {
  background-position: 100% 50%;
  transform: translateY(-2px);
  border-color: #56ecff;
  box-shadow:
    0 0 36px #56ecff99,
    0 0 56px #ffd96655,
    0 8px 28px #00000066,
    inset 0 1px 0 #ffffff77;
  filter: brightness(1.08);
}

.plan-grid-root .subscribe-btn--lifetime:hover:not(:disabled)::before {
  transform: translateX(130%);
}

.plan-grid-root .price-card.is-active .subscribe-btn--lifetime {
  box-shadow:
    0 0 32px #56ecff99,
    0 0 48px #ffd96655,
    0 4px 22px #00000055,
    inset 0 1px 0 #ffffff77;
}

.plan-grid-root .price-card.is-active .subscribe-btn--monthly {
  box-shadow:
    0 0 28px #56ecff88,
    0 4px 20px #00000055,
    inset 0 1px 0 #ffffff66;
}

.plan-grid-root .price-card.is-active .subscribe-btn--yearly {
  border-color: #56ecff99;
  box-shadow:
    0 0 24px #7f7dff77,
    0 0 40px #56ecff33,
    inset 0 0 24px #56ecff14;
}

.plan-grid-root .subscribe-btn:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
}

.plan-grid-root .subscribe-btn:disabled,
.plan-grid-root .plan-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.45) brightness(0.85);
  box-shadow: none;
  transform: none;
}

.plan-grid-root .loading-hint {
  color: var(--muted);
  text-align: center;
  padding: 48px;
}

.compare-table [data-plan-col].col-active {
  background: linear-gradient(180deg, #1a3558 0%, #132a48 100%) !important;
  box-shadow: inset 0 0 0 1px #56ecff44;
}

@media (max-width: 900px) {
  .plan-grid-root .pricing-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 0 16px;
  }

  .plan-grid-root .price-card {
    min-height: 0;
  }

  .plan-grid-root .price-card.is-active {
    transform: translateY(-8px) scale(1.01);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .plan-grid-root .pricing-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .plan-grid-root .price-card {
    min-height: 480px;
    padding: 22px 16px 24px;
  }

  .plan-grid-root .amount {
    font-size: 32px;
  }

  .plan-grid-root .amount--yearly {
    font-size: 24px;
  }
}
