/* 首页 / 定价页共用：套餐卡片、对比表、优惠券与企业咨询弹窗 */
.pricing-shell {
  max-width: var(--content, 1190px);
  margin: 0 auto;
}
.pricing-section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.pricing-section-head h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.16;
  font-weight: 600;
}
.pricing-section-head p {
  margin: 18px 0 0;
  color: var(--muted, #626262);
  font-size: 18px;
}

.segment {
  width: min(508px, 100%);
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 auto 30px;
  padding: 5px;
  border: 1px solid #d8d8d8;
  border-radius: 18px;
  background: #f3f3f3;
}
.segment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #666;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.segment button.active {
  background: var(--primary, #006b4b);
  color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
}
.segment-icon {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
}
.segment-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.coupon-banner {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 10px 14px;
  border: 1px solid #bfe3d2;
  border-radius: 999px;
  background: #f1fbf6;
  color: var(--text, #111);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.coupon-banner:hover {
  border-color: var(--primary, #006b4b);
  background: #e8f7ef;
  transform: translateY(-1px);
}
.coupon-banner-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary, #006b4b);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.coupon-banner-text {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 14px;
}
.coupon-banner-text strong {
  color: var(--primary, #006b4b);
  font-weight: 700;
}
.coupon-banner-arrow {
  color: var(--primary, #006b4b);
  font-size: 24px;
  line-height: 1;
}

.plans-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}
.plans-grid.personal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-grid.business {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}
.plan-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  color: var(--muted, #626262);
  text-align: center;
  font-size: 14px;
}
.plan-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
}
.plans-grid.business .plan-card { min-height: 620px; }
.plan-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
}
.plan-card h2 .subtle {
  color: #666;
  font-size: 20px;
}
.plan-summary {
  min-height: 72px;
  margin: 8px 0 0;
  color: #444;
  font-size: 15px;
  line-height: 1.42;
}
.plan-price {
  min-height: 98px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 12px 0 18px;
  border-bottom: 1px solid #eee;
}
.price-prefix {
  padding-bottom: 4px;
  color: var(--muted, #626262);
  font-size: 13px;
  white-space: nowrap;
}
.price-value {
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}
.price-unit {
  padding-bottom: 4px;
  color: #666;
  font-size: 13px;
}
.plan-action {
  width: 100%;
  min-height: 38px;
  margin: 18px 0;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #006b4b);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.plan-action:hover {
  transform: translateY(-1px);
  background: var(--primary-hover, #00563c);
}
.features-label {
  margin: 0 0 8px;
  font-weight: 700;
}
.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 20px;
  color: #444;
  font-size: 14px;
  line-height: 1.42;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary, #006b4b);
}
.plan-note {
  margin: auto 0 0;
  padding-top: 18px;
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}

.compare-section {
  max-width: 930px;
  width: 100%;
  margin: 0 auto;
  padding-top: 10px;
}
.comparison-wrap {
  overflow-x: auto;
  border-bottom: 1px solid var(--line, #dededb);
}
.comparison { min-width: 790px; }
.comparison.comparison-personal { padding-top: 28px; }
.comparison-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(var(--plan-count), minmax(120px, 1fr));
  border-top: 1px solid #eee;
}
.comparison-row > div {
  min-width: 0;
  padding: 17px 16px;
}
.comparison-head {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 30;
  border-top: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}
.comparison-head > div:not(:first-child) { text-align: center; }
.comparison-head strong {
  display: block;
  font-size: 16px;
}
.comparison-section-row {
  padding: 36px 16px 12px;
  border-top: 1px solid var(--line, #dededb);
  font-size: 21px;
  font-weight: 500;
}
.comparison-feature {
  color: #333;
  font-size: 14px;
}
.comparison-value {
  color: #666;
  text-align: center;
  font-size: 14px;
}
.comparison-value.yes {
  color: var(--primary, #006b4b);
  font-size: 17px;
}
.fine-print {
  display: grid;
  gap: 10px;
  padding: 28px 0 0;
  color: #929292;
  font-size: 12px;
}
.fine-print p { margin: 0; }

.coupon-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .58);
}
.coupon-modal.open { display: grid; }
.coupon-box {
  position: relative;
  width: min(400px, 100%);
  padding: 28px 22px 22px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}
.coupon-box[data-stage="lead"],
.coupon-box[data-stage="form"] {
  width: min(440px, 100%);
  padding: 34px;
}
.coupon-box[data-stage="loading"],
.coupon-box[data-stage="pay"] { min-height: 420px; }
.coupon-box[data-stage="lead"] .coupon-pay-title,
.coupon-box[data-stage="lead"] .coupon-loading,
.coupon-box[data-stage="lead"] .coupon-form { display: none; }
.coupon-box[data-stage="form"] .coupon-redeem-toggle { display: none; }
.coupon-box[data-stage="form"] .coupon-pay-title,
.coupon-box[data-stage="form"] .coupon-loading,
.coupon-box[data-stage="form"] .coupon-quote,
.coupon-box[data-stage="form"] .coupon-pay { display: none !important; }
.coupon-box[data-stage="loading"] .coupon-lead,
.coupon-box[data-stage="loading"] .coupon-pay-title,
.coupon-box[data-stage="loading"] .coupon-form { display: none; }
.coupon-box[data-stage="pay"] .coupon-lead,
.coupon-box[data-stage="pay"] .coupon-loading,
.coupon-box[data-stage="pay"] .coupon-input,
.coupon-box[data-stage="pay"] .coupon-submit,
.coupon-box[data-stage="pay"] .coupon-message { display: none !important; }
.coupon-box[data-stage="pay"] .coupon-form {
  display: grid;
  margin-top: 0;
  gap: 10px;
}
.coupon-lead { display: block; }
.coupon-loading {
  display: none;
  place-items: center;
  gap: 14px;
  min-height: 360px;
  color: #5f6b66;
  text-align: center;
}
.coupon-box[data-stage="loading"] .coupon-loading { display: grid; }
.coupon-loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #dbe8e1;
  border-top-color: var(--primary, #006b4b);
  border-radius: 50%;
  animation: coupon-spin .8s linear infinite;
}
@keyframes coupon-spin { to { transform: rotate(360deg); } }
.coupon-loading strong {
  display: block;
  color: #12231b;
  font-size: 18px;
  font-weight: 700;
}
.coupon-loading span {
  font-size: 14px;
  line-height: 1.5;
}
.coupon-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid #dfe5e2;
  border-radius: 50%;
  background: #fff;
  color: #66736d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.coupon-pay-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}
.coupon-box[data-stage="pay"] .coupon-pay-title { display: block; }
.coupon-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}
.coupon-desc {
  margin: 12px 0 22px;
  color: #5f6b66;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}
.coupon-qr {
  width: 178px;
  height: 178px;
  display: block;
  margin: 0 auto 18px;
  object-fit: contain;
}
.coupon-redeem-toggle {
  width: 100%;
  height: 44px;
  margin-top: 2px;
  border: 1px solid var(--primary, #006b4b);
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #006b4b);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.coupon-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.coupon-box[data-stage="form"] .coupon-form { margin-top: 0; }
.coupon-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d8e2dc;
  border-radius: 6px;
  font: inherit;
}
.coupon-input:focus {
  outline: none;
  border-color: var(--primary, #006b4b);
  box-shadow: 0 0 0 3px rgba(0, 107, 75, .12);
}
.coupon-submit {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #006b4b);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.coupon-message {
  min-height: 20px;
  margin: 0;
  color: #66736d;
  font-size: 13px;
}
.coupon-message.error { color: #c24141; }
.coupon-message.success { color: var(--primary, #006b4b); }
.coupon-message.loading { color: #66736d; }
.coupon-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid #dbe8e1;
  border-radius: 12px;
  background: #f7fbf9;
  text-align: left;
}
.coupon-quote div { display: grid; gap: 4px; }
.coupon-quote span {
  color: #66736d;
  font-size: 12px;
}
.coupon-quote strong {
  color: #12231b;
  font-size: 14px;
  font-weight: 700;
}
.coupon-quote .accent strong { color: var(--primary, #006b4b); }
.coupon-pay {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px 10px;
  border: 1px solid #dbe8e1;
  border-radius: 14px;
  background: #fff;
}
.coupon-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
.coupon-pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}
.coupon-pay-method img {
  width: auto;
  max-width: 100%;
  height: 32px;
  display: block;
  object-fit: contain;
}
.coupon-pay-method.active {
  border-color: var(--primary, #006b4b);
  box-shadow: inset 0 0 0 1px var(--primary, #006b4b);
}
.coupon-pay-amount {
  margin: 0;
  color: var(--primary, #006b4b);
  font-size: 24px;
  font-weight: 700;
}
.coupon-pay-desc,
.coupon-pay-hint {
  margin: 0;
  color: #66736d;
  font-size: 13px;
  text-align: center;
}
.coupon-pay-qr-wrap {
  position: relative;
  width: 148px;
  height: 148px;
}
.coupon-pay-qr {
  width: 148px;
  height: 148px;
  display: block;
  border-radius: 12px;
  background: #f4f8f6;
}
.coupon-pay-qr-loading {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}
.coupon-pay-qr-wrap.is-loading .coupon-pay-qr-loading {
  display: grid;
}
.coupon-pay-qr-loading .coupon-loading-spinner {
  width: 28px;
  height: 28px;
  border-width: 2px;
}
.coupon-pay-method:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.coupon-pay-refresh {
  width: 100%;
  min-height: 40px;
  border: 1px solid #006b4b;
  border-radius: 8px;
  background: #006b4b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.coupon-pay-refresh:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 1050px) {
  .plans-grid.business { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid.business .plan-card { min-height: 680px; }
}

@media (max-width: 720px) {
  .pricing-section-head h2 { font-size: 30px; }
  .pricing-section-head p { font-size: 16px; }
  .segment {
    height: 54px;
    margin-bottom: 22px;
  }
  .coupon-banner {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
  }
  .coupon-banner-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .coupon-banner-text { font-size: 12px; }
  .coupon-banner-text strong { font-size: 13px; }
  .coupon-banner-arrow { font-size: 20px; }
  .plans-grid.personal,
  .plans-grid.business { grid-template-columns: 1fr; }
  .plan-card,
  .plans-grid.business .plan-card { min-height: auto; }
  .plan-summary { min-height: auto; }
  .comparison.comparison-personal { padding-top: 16px; }
  .comparison-head strong { font-size: 13px; }
  .comparison-section-row {
    padding: 22px 10px 10px;
    font-size: 16px;
  }
  .comparison-feature,
  .comparison-value { font-size: 12px; }
  .comparison-value.yes { font-size: 14px; }
  .coupon-box {
    width: min(92vw, 440px);
    padding: 26px 18px 22px;
  }
  .coupon-title { font-size: 22px; }
  .coupon-desc {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .coupon-qr {
    width: min(156px, 58vw);
    height: min(156px, 58vw);
    margin-bottom: 14px;
  }
  .coupon-redeem-toggle,
  .coupon-submit {
    height: 42px;
    font-size: 14px;
  }
}
