/* ==========================================================================
   GEOER · 完整版下单页（画布 frame 111:38）
   注意：画布里的「C · 支付态说明」139:13 是给设计看的交互对照，不进页面；
   页面上的支付态是摘要卡原地切换（见 js/order.js）。
   ========================================================================== */

.order-main {
  background: var(--bg-base);
  padding: 56px var(--pad-page) 88px;
}

/* 画布 111:378 页头下边距为 48（公共默认 44） */
.order-head {
  padding-bottom: 48px;
}

.order-main__inner {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.order-form {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ------------------------------------------------------------ 步骤卡 */

.step-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
}

.step-card--options {
  gap: 14px;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step-head__no {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

/* 画布口径：18px Bold */
.step-head__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.step-head__hint {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------- 单选卡组 */

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.option:hover {
  border-color: var(--brand);
}

.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option__dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--border-base);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.option__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.option__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.option__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 选中态 */
.option:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.option:has(input:checked) .option__dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------- 竞品标签 */

.competitor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 画布口径：13px Medium（111:423 / 111:425） */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

.tag-chip__x {
  font-size: 13px;
  line-height: 1;
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease-out);
}

.tag-chip__x:hover {
  color: var(--accent-bad);
}

.tag-add {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-tag-bg);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  transition: background var(--dur-fast) var(--ease-out);
}

.tag-add:hover {
  background: var(--brand-tag-bg-hover);
}

.competitor-input {
  display: none;
  height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-input);
  background: var(--bg-card);
  font-size: 14px;
  outline: none;
}

.competitor-input.is-open {
  display: block;
  flex: 1 1 160px;
}

.competitor-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58, 91, 224, 0.12);
}

.step-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ------------------------------------------------------------ 右侧栏 */

.order-side {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
}

/* 画布口径：18px Bold（111:430 / 111:388 / 111:407 / 111:419） */
.summary-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.summary-row__k {
  color: var(--text-muted);
}

/* 画布口径：值列 13px Medium（111:433 / 111:436 / 111:439） */
.summary-row__v {
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

.summary-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 画布口径：15px Medium（111:442） */
.summary-amount__k {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.summary-amount__v {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.summary-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 已支付态（原地切换） */
.paid-state {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.summary-card.is-paid .paid-state {
  display: flex;
}

.summary-card.is-paid .pay-block {
  display: none;
}

.paid-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.paid-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  background: var(--accent-ok-soft);
  color: var(--accent-ok);
  font-size: 13px;
  font-weight: 500;
}

.paid-order {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 交付说明卡 */
.deliver-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
  background: var(--bg-alt);
  border-radius: var(--radius-card);
}

.deliver-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.deliver-row__no {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.deliver-row__text {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* -------------------------------------------------------------- 断点 */

@media (max-width: 1199px) {
  .order-main__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .order-side {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 639px) {
  .order-main {
    padding-top: 40px;
  }

  .step-card {
    padding: 20px 18px 22px;
  }

  .summary-card,
  .deliver-card {
    padding: 20px 18px;
  }

  .option {
    padding: 14px 16px;
  }
}

/* ======================================================================
   v1.2 新增区块 —— 以下全部为「只追加」，上方既有规则一行未改。
   画布：734858469252010 · page「检测配置页」2:1（付费档态）/ 2:183（免费档态）
   ====================================================================== */

/* ------------------------------------------------------- 01 三档卡 */

.plan-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 176px; /* 画布行高 176，三卡严格等高 */
  padding: 18px 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.plan-card:hover {
  border-color: var(--brand);
}

.plan-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.plan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-card__dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-base);
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.plan-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-tag);
  background: var(--bg-inset);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.plan-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-card__spec {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.plan-card__desc {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 选中态：底色 + 描边 + 实心圆点（与全站单选卡同一套语言） */
.plan-card:has(input:checked),
.plan-card.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.plan-card:has(input:checked) .plan-card__dot,
.plan-card.is-active .plan-card__dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}

.plan-card:has(input:checked) .plan-card__badge,
.plan-card.is-active .plan-card__badge {
  background: var(--brand);
  color: #fff;
}

.plan-card:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 卡3「内容与投放」：排期中，禁用 */
.plan-card--soon,
.plan-card--soon.is-active {
  background: var(--bg-inset);
  border-color: var(--border-base);
  cursor: not-allowed;
}

.plan-card--soon:hover {
  border-color: var(--border-base);
}

.plan-card--soon .plan-card__dot {
  border-color: var(--text-disabled);
}

.plan-card--soon .plan-card__name,
.plan-card--soon .plan-card__spec,
.plan-card--soon .plan-card__desc {
  color: var(--text-disabled);
}

/* ---------------------------------------------------- 参与模型行 */

.model-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.model-row__k {
  font-size: 13px;
  color: var(--text-muted);
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.model-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.model-chip__tag {
  padding: 1px 7px;
  border-radius: var(--radius-tag);
  background: var(--bg-inset);
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.7;
}

.model-chip__tick {
  display: none;
  font-size: 12px;
  font-weight: 700;
}

.model-chip.is-on {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.model-chip.is-on .model-chip__tag {
  background: var(--brand-tag-bg);
  color: var(--brand);
}

.model-chip.is-on .model-chip__tick {
  display: inline;
}

.model-chip.is-locked,
.model-chip.is-locked:hover {
  background: var(--bg-inset);
  border-color: var(--border-base);
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* ------------------------------- 04 特色词行（与 03 竞品行同构） */

.chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-input {
  display: none;
  height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-input);
  background: var(--bg-card);
  font-size: 14px;
  outline: none;
}

.chip-input.is-open {
  display: block;
  flex: 1 1 160px;
}

.chip-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58, 91, 224, 0.12);
}

/* -------------------------------------------- 必选块：提示与拦截态 */

.step-head__hint--required {
  color: var(--brand);
}

.step-card .field__error {
  display: none;
}

.step-card.has-error {
  border-color: var(--accent-bad);
}

.step-card.has-error .field__error {
  display: block;
}

/* ------------------------------------------------ 摘要卡（两态） */

.summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-card__plan {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  background: var(--brand-tag-bg);
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---------------------------------------------------- 表单级错误提示 */

.order-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-bad-soft);
  color: var(--accent-bad);
  font-size: 13px;
  line-height: 1.6;
}

.order-error.is-on {
  display: block;
}

/* ---------------------------------------------------------- 断点 */

@media (max-width: 899px) {
  .plan-row {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 0;
  }
}
