@charset "UTF-8";
/* v3 静态住宅购买器 — 对齐 platform-ui client/ip/static */

.pricing-static-residential .pricing-section {
  padding: 88px 0 56px;
  background: #fff;
}

.pricing-static-residential .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pricing-loading,
.pricing-error {
  text-align: center;
  padding: 3rem 0;
  color: #64748b;
}

.pricing-error {
  color: #ef4444;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: start;
}

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

.pricing-main {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.5rem;
}

.pricing-main__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b1f3a;
}

.pricing-main__desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.pricing-form-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.pricing-form-section__title {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0b1f3a;
}

.pricing-form-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

@media (max-width: 640px) {
  .pricing-form-row {
    grid-template-columns: 1fr;
  }
}

.pricing-form-label {
  padding-top: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.pricing-form-hint {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.45;
}

.pricing-biz-select,
.pricing-biz-static {
  font-size: 0.875rem;
  color: #0b1f3a;
}

.pricing-biz-static {
  padding: 0.45rem 0;
  font-weight: 600;
}

/* card 选择器 */
.m-card-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.m-card-empty {
  font-size: 0.875rem;
  color: #64748b;
  padding: 0.35rem 0;
}

.m-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  color: #0b1f3a;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.m-card:hover:not(.m-card-disabled):not(:disabled) {
  border-color: rgba(0, 100, 207, 0.45);
  color: #0064cf;
}

.m-card-selected {
  border-color: #0064cf !important;
  background: rgba(0, 100, 207, 0.08) !important;
  color: #0064cf !important;
  font-weight: 600;
}

.m-card-disabled,
.m-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.m-card-min {
  min-width: 4.5rem;
}

.m-card-country .fi {
  width: 1.5rem;
  height: 1rem;
  border-radius: 2px;
  background-size: cover;
}

.m-card-tip {
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 100, 207, 0.12);
  color: #0064cf;
  font-size: 0.7rem;
  font-weight: 700;
}

.m-card-small .m-card {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
}

/* 右侧订单栏 */
.pricing-aside {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1100px) {
  .pricing-aside {
    position: static;
  }
}

.pricing-aside__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1f3a;
}

.pricing-aside__subtitle {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.pricing-aside-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  margin: 0.9rem 0 1rem;
}

.as-c-item--full {
  grid-column: 1 / -1;
}

.as-c-item-title {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.as-c-item-content {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0b1f3a;
  word-break: break-word;
}

.as-c-item-stock {
  color: #0064cf;
}

.pricing-aside-form {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.85rem;
}

.pricing-aside-field {
  margin-bottom: 0.85rem;
}

.pricing-aside-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.pricing-aside-field__label--inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 500;
}

.pricing-help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: help;
}

.pricing-qty-input {
  max-width: 140px;
}

.pricing-pay-method-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pricing-pay-card {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #334155;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pricing-pay-card.selected {
  border-color: #0064cf;
  background: rgba(0, 100, 207, 0.06);
  color: #0064cf;
  font-weight: 600;
}

.pricing-pay-card-icon {
  display: block;
}

/* 金额 */
.pricing-amount-box {
  position: relative;
  text-align: right;
}

.pricing-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.pricing-amount-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0b1f3a;
}

.pricing-amount-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0064cf;
}

.pricing-amount-details {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: #0064cf;
  font-weight: 600;
  cursor: pointer;
}

.pricing-amount-original {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.pricing-amount-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  min-width: 240px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.amount-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 7px 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
  border-bottom: 1px solid #f1f5f9;
}

.amount-detail-row:last-child {
  border-bottom: none;
}

.amount-detail-row--total {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid #e2e8f0;
  font-weight: 600;
  color: #0b1f3a;
}

.amount-detail-row--total span:last-child {
  color: #0064cf;
  font-size: 0.9375rem;
}

.amount-detail-discount {
  color: #ef4444 !important;
}

.pricing-agreement-box {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.pricing-agreement-label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
  cursor: pointer;
}

.pricing-agreement-label a {
  color: #0064cf;
}

.pricing-ip-warning {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #dc2626;
  font-weight: 500;
  line-height: 1.45;
}

.pricing-purchase-msg {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #ef4444;
}

.pricing-buy-btn {
  width: 100%;
  margin-top: 0.85rem;
  min-height: 2.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.pricing-cta-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* IP 风险弹窗 */
.pricing-modal[hidden] {
  display: none !important;
}

.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pricing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.pricing-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

.pricing-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1f3a;
}

.pricing-modal__body {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.6;
}

.pricing-modal__warn {
  margin: 0.75rem 0 0;
  color: #ef4444;
  font-size: 0.8125rem;
}

.pricing-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.pricing-modal__footer .btn-outline-secondary {
  color: #64748b;
  border-color: #cbd5e1;
  background: #fff;
}

.pricing-modal__footer .btn-outline-secondary:hover {
  color: #475569;
  border-color: #94a3b8;
  background: #f8fafc;
}

.pricing-modal__footer .btn-primary {
  background: #0064cf;
  border-color: #0064cf;
}

/* solution/price 底部广告区 */
.price-ad-strip {
  padding: 3.5rem 1.25rem 1.5rem;
  background: transparent;
}

.price-ad-strip__inner {
  max-width: min(960px, 100%);
  margin: 0 auto;
  padding: 2.25rem 2rem 2.5rem;
  text-align: center;
  border-radius: 16px;
  color: #0f172a;
}

.price-ad-strip__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0b1f3a;
}

.price-ad-strip__subtitle {
  margin-bottom: 1.25rem;
  color: #475569;
  line-height: 1.55;
}

.price-ad-strip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  background: #0064cf;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #0064cf;
}

.price-ad-strip__btn:hover {
  background: #0056b3;
  border-color: #0056b3;
  color: #fff;
}

@media (max-width: 767.98px) {
  .price-ad-strip {
    padding: 2.5rem 1rem 1.25rem;
  }

  .price-ad-strip__inner {
    padding: 1.75rem 1.25rem 2rem;
    border-radius: 14px;
  }

  .price-ad-strip__title {
    font-size: 1.25rem;
  }
}
