/* 定价页套餐卡（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, #ffffff 0%, var(--green-100, #e6f7ef) 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 rgba(14, 122, 86, 0.1);
}

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

.plan-grid-root .price-card:hover {
  border-color: var(--green-500, #16c07a);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(14, 122, 86, 0.14);
}

.plan-grid-root .price-card.is-active {
  transform: translateY(-14px) scale(1.03);
  z-index: 4;
  opacity: 1;
  border-color: var(--green-500, #16c07a);
  box-shadow:
    0 28px 56px rgba(14, 122, 86, 0.16),
    0 0 0 1px rgba(22, 192, 122, 0.35),
    0 0 32px rgba(22, 192, 122, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #e6f7ef 55%, #dff5ea 100%);
}

.plan-grid-root .price-card.featured:not(.is-active) {
  border-color: rgba(22, 192, 122, 0.45);
}

.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(--green-700, #0e7a56), var(--green-500, #16c07a));
  color: #fff;
  box-shadow: 0 0 14px rgba(22, 192, 122, 0.35);
}

.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: var(--muted);
}

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

.compare-table .tier .tier-hint {
  font-size: 11px;
  color: var(--muted);
  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: var(--green-700, #0e7a56);
}

.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 var(--border);
  border-bottom: 1px solid var(--border);
}

.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: rgba(22, 192, 122, 0.1);
  border: 1px solid rgba(22, 192, 122, 0.25);
}

.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: var(--muted);
  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(--green-700, #0e7a56), var(--green-500, #16c07a));
  position: relative;
  box-shadow: 0 0 10px rgba(22, 192, 122, 0.3);
}

.plan-grid-root .tick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  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: #fff;
  background: linear-gradient(135deg, var(--green-700, #0e7a56) 0%, var(--green-500, #16c07a) 100%);
  background-size: 220% 220%;
  border: 1px solid var(--green-500, #16c07a);
  box-shadow: 0 8px 24px rgba(14, 122, 86, 0.2);
  text-shadow: none;
}

.plan-grid-root .subscribe-btn--monthly:hover:not(:disabled) {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 122, 86, 0.28);
  filter: brightness(1.04);
}

.plan-grid-root .subscribe-btn--yearly {
  color: var(--green-900, #083d2c);
  background: linear-gradient(160deg, #ffffff 0%, var(--green-100, #e6f7ef) 100%);
  border: 1px solid var(--green-500, #16c07a);
  box-shadow: 0 8px 20px rgba(14, 122, 86, 0.12);
  text-shadow: none;
}

.plan-grid-root .subscribe-btn--yearly::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(22, 192, 122, 0.15) 45%,
    rgba(14, 122, 86, 0.2) 55%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.plan-grid-root .subscribe-btn--yearly:hover:not(:disabled) {
  color: var(--green-900, #083d2c);
  border-color: var(--green-700, #0e7a56);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 122, 86, 0.18);
}

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

/* 一次永久：科幻霓虹（金青渐变，与月付/年付同级视觉） */
.plan-grid-root .subscribe-btn--lifetime {
  color: #fff;
  background: linear-gradient(
    125deg,
    var(--green-700, #0e7a56) 0%,
    var(--green-500, #16c07a) 45%,
    #4dd999 72%,
    var(--green-700, #0e7a56) 100%
  );
  background-size: 260% 260%;
  border: 1px solid #4dd999;
  box-shadow: 0 10px 28px rgba(14, 122, 86, 0.22);
  text-shadow: none;
}

.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, #e6f7ef 0%, #dff5ea 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(22, 192, 122, 0.35);
}

@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;
  }
}
