/* 企业邮箱购买引导流程 */
.page-buy {
  background: #f5f7fb;
}

.buy-hero {
  background: linear-gradient(135deg, #1a2744 0%, #2d4a8a 55%, #3a6fd8 100%);
  color: #fff;
  padding: 36px 0 28px;
}

.buy-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.buy-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.buy-hero p {
  margin: 0;
  font-size: 15px;
  opacity: 0.92;
}

.buy-hero__promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.buy-hero__promo em {
  font-style: normal;
  color: #ffe08a;
  font-weight: 700;
}

.buy-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.buy-main {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.buy-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #fafbfd;
}

.buy-step {
  flex: 1 1 auto;
  min-width: 88px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #94a3b8;
  cursor: default;
  user-select: none;
}

.buy-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.buy-step.is-active {
  color: #1e40af;
  background: #eff6ff;
}

.buy-step.is-active .buy-step__num {
  background: #2563eb;
  color: #fff;
}

.buy-step.is-done {
  color: #0f766e;
}

.buy-step.is-done .buy-step__num {
  background: #14b8a6;
  color: #fff;
}

.buy-panel {
  display: none;
  padding: 28px 24px 32px;
}

.buy-panel.is-active {
  display: block;
}

.buy-panel__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.buy-panel__desc {
  margin: 0 0 22px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.buy-question + .buy-question {
  margin-top: 18px;
}

.buy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.buy-chips--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.buy-chip {
  padding: 10px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  transition: var(--transition-fast);
}

.buy-chip--card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px 16px;
  min-height: 76px;
}

.buy-chip__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.buy-chip__subtitle {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
}

.buy-chip:hover {
  border-color: #93c5fd;
}

.buy-chip.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.buy-chip.is-active .buy-chip__title {
  color: #1d4ed8;
}

.buy-chip.is-active .buy-chip__subtitle {
  color: #3b82f6;
}

.buy-recommend {
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  margin-bottom: 20px;
}

.buy-extra {
  margin-bottom: 20px;
}

.buy-extra__label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.buy-extra__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  background: #fff;
  transition: var(--transition-fast);
}

.buy-extra__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.buy-extra__input::placeholder {
  color: #94a3b8;
}

.buy-extra__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.buy-extra__actions .btn-primary,
.buy-extra__actions .btn-outline {
  min-width: 180px;
  padding: 10px 18px;
  font-size: 14px;
}

.buy-extra__actions .buy-btn--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-extra__actions .buy-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.buy-extra__actions .buy-btn__svg {
  width: 17px;
  height: 17px;
  display: block;
}

.buy-extra__actions .buy-btn__text {
  line-height: 1.2;
}

@media (max-width: 640px) {
  .buy-extra__actions {
    flex-direction: column;
  }

  .buy-extra__actions .btn-primary,
  .buy-extra__actions .btn-outline {
    width: 100%;
  }
}

.buy-recommend strong {
  color: #1d4ed8;
}

.buy-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.buy-plan-card {
  position: relative;
  padding: 18px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.buy-plan-card:hover {
  border-color: #93c5fd;
}

.buy-plan-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.buy-plan-card.is-consult .buy-plan-card__price {
  font-size: 18px;
  color: #64748b;
}

.buy-plan-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 600;
}

.buy-plan-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #0f172a;
}

.buy-plan-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  min-height: 36px;
}

.buy-plan-card__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.buy-plan-card__price small {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

.buy-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.buy-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.buy-field select,
.buy-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.buy-field input:focus {
  border-color: #93c5fd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.buy-form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}

.buy-field.is-error label {
  color: #b91c1c;
}

.buy-field.is-error input {
  border-color: #ef4444;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.buy-field.is-error input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.buy-field__error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.4;
}

.buy-promo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.buy-promo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
}

.buy-promo-item.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
}

.buy-promo-item input {
  margin-top: 3px;
}

.buy-promo-item strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.buy-promo-item span {
  font-size: 12px;
  color: #64748b;
}

.buy-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.buy-form-grid .buy-field--full {
  grid-column: 1 / -1;
}

.buy-domain-format {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.buy-domain-format strong {
  color: #334155;
  font-weight: 600;
}

.buy-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.buy-pay-method {
  padding: 18px 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.buy-pay-method:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.buy-pay-method.is-active {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.buy-pay-method[data-pay="wechat"].is-active {
  border-color: #07c160;
  background: #f0fdf4;
}

.buy-pay-method[data-pay="alipay"].is-active {
  border-color: #1677ff;
  background: #eff6ff;
}

.buy-pay-method[data-pay="bank"].is-active {
  border-color: #4f46e5;
  background: #eef2ff;
}

.buy-pay-method__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.buy-pay-method__icon--wechat {
  background: linear-gradient(145deg, #12d06a 0%, #07c160 100%);
}

.buy-pay-method__icon--alipay {
  background: linear-gradient(145deg, #4096ff 0%, #1677ff 100%);
}

.buy-pay-method__icon--bank {
  background: linear-gradient(145deg, #6366f1 0%, #4338ca 100%);
}

.buy-pay-method__svg {
  width: 28px;
  height: 28px;
  display: block;
}

.buy-pay-method__svg--alipay {
  width: 24px;
  height: 24px;
}

.buy-pay-method__label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.buy-pay-method.is-active .buy-pay-method__label {
  color: #0f172a;
}

.buy-pay-box {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  background: #f8fafc;
  margin-bottom: 20px;
}

.buy-pay-qr {
  width: 160px;
  min-height: 160px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94a3b8;
  overflow: hidden;
}

.buy-pay-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.buy-pay-qr--bank {
  width: auto;
  min-width: 280px;
  max-width: 100%;
  min-height: auto;
  padding: 16px 20px;
  text-align: left;
}

.buy-pay-bank p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.buy-pay-bank p:last-child {
  margin-bottom: 0;
}

.buy-pay-bank span {
  display: inline-block;
  min-width: 72px;
  color: #64748b;
}

.buy-pay-bank strong {
  color: #0f172a;
  font-weight: 600;
}

.buy-pay-bank__tip {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  color: #64748b !important;
}

.buy-pay-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
}

.buy-pay-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  text-align: left;
  white-space: pre-line;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.buy-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.buy-timeline li {
  position: relative;
  padding: 0 0 22px 28px;
}

.buy-timeline li::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: -4px;
  width: 2px;
  background: #dbeafe;
}

.buy-timeline li:last-child::before {
  display: none;
}

.buy-timeline li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #dbeafe;
}

.buy-timeline li.is-done::after {
  background: #14b8a6;
}

.buy-timeline h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #0f172a;
}

.buy-timeline p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.buy-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.buy-service-card {
  padding: 24px 18px 22px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.buy-service-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.buy-service-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.buy-service-card__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.buy-service-card__icon--hotline {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.buy-service-card__icon--chat {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.22);
}

.buy-service-card__icon--support {
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.22);
}

.buy-service-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.buy-service-card__main {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

.buy-service-card__main a {
  color: #2563eb;
  text-decoration: none;
}

.buy-service-card__main a:hover {
  text-decoration: underline;
}

.buy-service-card__sub {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.buy-service-foot {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.7;
}

.buy-service-foot a {
  color: #2563eb;
  text-decoration: none;
}

.buy-service-foot a:hover {
  text-decoration: underline;
}

.buy-panel--service .buy-panel__desc {
  margin-bottom: 22px;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border-light);
}

.buy-actions--center {
  justify-content: center;
  gap: 16px;
}

.buy-actions--service {
  justify-content: center;
  align-items: center;
}

.buy-actions--service .buy-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.buy-actions--service .buy-action-link.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

.buy-actions--service .buy-action-link.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.buy-actions--service .buy-action-link.btn-outline {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.buy-actions--service .buy-action-link.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.buy-actions .btn-primary,
.buy-actions .btn-outline {
  min-width: 148px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.buy-actions .buy-btn--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-actions .buy-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.buy-actions .buy-btn__svg {
  width: 18px;
  height: 18px;
  display: block;
}

.buy-actions .buy-btn__text {
  line-height: 1.2;
}

.buy-actions .btn-primary:disabled,
.buy-actions .btn-outline:disabled,
.buy-extra__actions .btn-primary:disabled,
.buy-extra__actions .btn-outline:disabled,
.buy-pay-actions .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.buy-actions .is-loading,
.buy-extra__actions .is-loading,
.buy-pay-actions .is-loading {
  pointer-events: none;
}

.buy-actions .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.buy-actions .btn-primary:hover {
  background: var(--primary-dark);
}

.buy-actions .btn-outline {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.buy-actions--pay {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.buy-pay-checkout {
  width: 100%;
}

.buy-pay-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: #fafbfd;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  cursor: pointer;
}

.buy-pay-agree.is-error {
  border-color: #fca5a5;
  background: #fffafa;
}

.buy-pay-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.buy-pay-agree__text {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.buy-pay-agree__text a {
  color: #2563eb;
  text-decoration: none;
}

.buy-pay-agree__text a:hover {
  text-decoration: underline;
}

.buy-pay-total {
  color: #ef4444;
  font-size: 18px;
  font-weight: 700;
}

.buy-pay-agree__error {
  margin: 8px 0 0;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.4;
}

.buy-agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.buy-agreement-modal[hidden] {
  display: none !important;
}

.buy-agreement-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.buy-agreement-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.buy-agreement-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8edf5;
}

.buy-agreement-modal__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.buy-agreement-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.buy-agreement-modal__close:hover {
  background: #e2e8f0;
  color: #334155;
}

.buy-agreement-modal__body {
  padding: 20px 22px;
  overflow: auto;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
}

.buy-agreement-modal__body h4 {
  margin: 18px 0 8px;
  font-size: 15px;
  color: #0f172a;
}

.buy-agreement-modal__body h4:first-of-type {
  margin-top: 0;
}

.buy-agreement-modal__body p {
  margin: 0 0 10px;
}

.buy-agreement-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e8edf5;
  background: #fafbfd;
}

.buy-agreement-modal__footer .btn-outline,
.buy-agreement-modal__footer .btn-primary {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.buy-agreement-modal__footer .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.buy-agreement-modal__footer .btn-outline {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

@media (max-width: 640px) {
  .buy-pay-agree__text {
    font-size: 13px;
  }

  .buy-pay-total {
    font-size: 16px;
  }

  .buy-agreement-modal__footer {
    flex-direction: column-reverse;
  }

  .buy-agreement-modal__footer .btn-outline,
  .buy-agreement-modal__footer .btn-primary {
    width: 100%;
  }
}

.buy-summary {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

.buy-sidebar {
  position: relative;
}

.buy-sidebar--empty {
  display: none;
}

.buy-layout:has(.buy-sidebar--empty) {
  grid-template-columns: 1fr;
}

.buy-sidebar-guide {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* display:flex 会覆盖 normalize 的 [hidden]，步骤切换时必须强制隐藏 */
.buy-sidebar-guide[hidden],
.buy-summary[hidden] {
  display: none !important;
}

.buy-widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
}

.buy-widget h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.buy-widget__desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.buy-widget .buy-field {
  margin-bottom: 12px;
}

.buy-widget .buy-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #64748b;
}

.buy-widget .buy-field select {
  width: 100%;
}

.buy-calc-result {
  margin-top: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.buy-calc-result__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  color: #64748b;
}

.buy-calc-result__row strong {
  color: #0f172a;
  font-size: 15px;
}

.buy-calc-result__hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
}

.buy-consult-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.buy-consult-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.buy-consult-card strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.buy-consult-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.buy-consult-phone {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.buy-consult-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.buy-summary h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.buy-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: #64748b;
  border-bottom: 1px dashed #f1f5f9;
}

.buy-summary__row strong {
  color: #334155;
  text-align: right;
}

.buy-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.buy-summary__total span {
  font-size: 13px;
  color: #64748b;
}

.buy-summary__total strong {
  font-size: 24px;
  color: var(--primary);
}

.buy-summary__hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  font-size: 12px;
  color: #9a3412;
  line-height: 1.5;
}

.buy-summary__hotline {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.buy-summary__hotline a {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.buy-success-banner {
  padding: 16px 18px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  margin-bottom: 20px;
}

.buy-success-banner strong {
  color: #047857;
}

@media (max-width: 960px) {
  .buy-layout {
    grid-template-columns: 1fr;
  }

  .buy-summary,
  .buy-sidebar-guide {
    position: static;
    order: -1;
  }

  .buy-plan-grid,
  .buy-options,
  .buy-form-grid,
  .buy-pay-methods,
  .buy-service-cards {
    grid-template-columns: 1fr;
  }

  .buy-step span:not(.buy-step__num) {
    display: none;
  }
}
