/* 订阅弹窗样式 */
.subscription-lightbox + .i-spzhtml-lightbox-mask {
  pointer-events: none;
}

.subscription-close-mobile {
  display: none;
}

.subscription-modal {
  position: relative;
  border-radius: 20px;
  width: min(860px, 90vw);
  background: #ffffff;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "DM Sans", sans-serif;
}

.subscription-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.subscription-layout {
  display: flex;
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
}

.subscription-pane--info {
  width: 380px;
  position: relative;
  background: url("/assets/images/subscription-bg.png") no-repeat center center;
  background-size: cover;
  padding: 52px 24px 40px 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.subscription-pane--info > * {
  position: relative;
  z-index: 2;
}

.subscription-offer {
  margin-bottom: 16px;
}
.offer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #ff4c88;
  font-size: 13px;
  font-weight: 500;
  line-height: 14px;
  color: #ffffff;
}

.offer-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.offer-desc {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  color: #27293a;
}

.plan-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-header-new {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #f0f0f5;
}

.plan-name-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.plan-subtitle {
  font-size: 12px;
  color: #6d708a;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.plan-price {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-now {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  line-height: 1;
}

.price-amount {
  font-size: 50px;
  font-weight: 700;
  color: #27293a;
  line-height: 1;
  letter-spacing: -0.5px;
}

.price-unit {
  font-size: 18px;
  color: #46496c;
  line-height: 1.4;
  font-weight: 400;
}

.price-old {
  margin-top: 6px;
  font-size: 14px;
  color: #a4a4cb;
  text-decoration: line-through;
  line-height: 1.4;
  font-weight: 400;
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #27293a;
}
.feature-dot {
  width: 16px;
  height: 16px;
}

.subscription-pane--payment {
  flex: 1;
}

.payment-card {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-title {
  font-size: 20px;
  font-weight: 700;
  color: #27293a;
  line-height: 1.3;
  margin: 0;
}

.payment-subtitle {
  font-size: 14px;
  color: #6d708a;
  line-height: 1.5;
  margin: 0;
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f8ff 0%, #f0f2ff 100%);
  border: 1px solid #e0e3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.summary-label {
  font-size: 15px;
  color: #46496c;
  font-weight: 600;
  line-height: 1.4;
  font-family: "HarmonyOS Sans SC", "PingFang SC", sans-serif;
}

.summary-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.summary-amount {
  font-size: 26px;
  font-weight: 700;
  color: #27293a;
  line-height: 1;
  letter-spacing: -0.3px;
  font-family: "HarmonyOS Sans SC", "PingFang SC", sans-serif;
}

.summary-unit {
  font-size: 14px;
  color: #6d708a;
  line-height: 1.4;
  font-weight: 400;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.methods-title {
  font-size: 15px;
  font-weight: 700;
  color: #27293a;
  line-height: 1.4;
  font-family: "HarmonyOS Sans SC", "PingFang SC", sans-serif;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.payment-actions-note {
  font-size: 12px;
  color: #6d708a;
  line-height: 1.5;
  text-align: center;
}

.subscription-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "DM Sans", sans-serif;
}

.subscription-btn-primary {
  background: #ff7784;
  color: #ffffff;
}

/* Loading 状态样式 - 禁用按钮 */
spz-custom-subscription-plan[loading] .subscription-btn {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 959.98px) {
  .subscription-lightbox {
    flex-direction: column;
  }
  .subscription-modal {
    width: 90%;
    max-height: calc(90vh - 50px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .subscription-close {
    display: none;
  }

  .subscription-close-mobile {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 2px;
    margin-top: 12px;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
  }

  .subscription-close-mobile svg {
    width: 16px;
    height: 16px;
  }

  .subscription-layout {
    flex-direction: column;
  }

  .subscription-pane--info {
    width: 100%;
    padding: 40px 30px 20px 30px;
    border-radius: 0 0 20px 20px;
  }

  .subscription-pane--info::before {
    background-size: cover;
    background-position: center;
  }

  .subscription-offer {
    margin-bottom: 12px;
  }

  .offer-label {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 10px;
    line-height: 1.2;
    gap: 5px;
  }

  .offer-icon {
    width: 10px;
    height: 10px;
  }

  .offer-desc {
    font-size: 22px;
    line-height: 20px;
    font-weight: 700;
    color: #27293a;
  }

  .plan-header-new {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .plan-name-wrap {
    width: 100%;
  }

  .plan-subtitle {
    font-size: 13px;
    line-height: 1.4;
  }

  .plan-price {
    width: 100%;
  }

  .price-amount {
    font-size: 44px;
  }

  .price-unit {
    font-size: 20px;
  }

  .price-old {
    margin-top: 4px;
    font-size: 13px;
  }

  .plan-features {
    gap: 14px;
  }

  .feature-item {
    font-size: 13px;
    gap: 10px;
  }

  .feature-dot {
    width: 14px;
    height: 14px;
  }

  .subscription-pane--payment {
    flex: none;
    padding: 20px;
  }

  .payment-card {
    padding: 0;
    gap: 20px;
  }

  .payment-header {
    gap: 6px;
  }

  .payment-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .payment-subtitle {
    font-size: 13px;
    line-height: 1.4;
  }

  .payment-summary {
    padding: 16px 18px;
    border-radius: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .summary-label {
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
  }

  .summary-price {
    width: 100%;
    justify-content: flex-start;
  }

  .summary-amount {
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.2px;
  }

  .summary-unit {
    font-size: 13px;
  }

  .payment-methods {
    gap: 12px;
  }

  .methods-title {
    font-size: 14px;
    line-height: 1.4;
  }
  .methods-list {
    padding-bottom: 12px;
  }

  .payment-actions {
    gap: 8px;
  }

  .payment-actions-note {
    font-size: 11px;
    line-height: 1.4;
  }

  .subscription-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 48px;
  }
}

.subscription-fail-toast {
  width: 266px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  display: inline-flex;
  padding: 12px 20px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  color: #27293A;
  background: #fff;
  box-shadow: 0 4px 10px 8px rgba(24, 23, 62, 0.04),
    0 10px 40px 0 rgba(24, 23, 62, 0.25);
}
