/* proofmend.css — GEO 销售页共用组件(套餐 / 价目 / 方法论 / 诊断预约)。
   前缀 xg-。只消费 base.css 已定稿的设计令牌,不新增字体、不引入任何框架。
   四个页面(plans / pricing / method / audit)共用这一个文件。 */

/* [data-reveal="right"] 在揭示前会横向偏移 26px,页面级 clip 防止横向滚动条 */
.page-xg { overflow-x: clip; }

.xg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.xg-section--tint { background: color-mix(in srgb, var(--paper) 90%, var(--blue)); }
.xg-section--dark { background: var(--ink); color: var(--paper); }
.xg-section--dark .xg-card { border-color: color-mix(in srgb, var(--paper) 22%, transparent); background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.xg-section--dark .xg-card__p,
.xg-section--dark .xg-head__sub,
.xg-section--dark .xg-note { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.xg-section--dark .xg-notice { background: color-mix(in srgb, var(--ink) 82%, var(--blue)); }
.xg-head--spaced { margin-top: clamp(48px, 8vw, 96px); }

.xg-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xg-plans.xg-plans--five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xg-plans--five .xg-plan { grid-column: auto; }
.xg-plans--five .xg-plan:first-child { grid-column: 1 / -1; }

.xg-plans-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(24px, 4vh, 42px); }
.xg-plans-toolbar .xg-head { margin-bottom: 0; }
.xg-billing { display: inline-flex; flex: none; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.xg-billing button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 13px/1 var(--font-body); cursor: pointer; }
.xg-billing button.is-active { background: var(--ink); color: var(--paper); }
.xg-billing button span { padding: 5px 8px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 10px; }

.xg-trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--ink); }
.xg-trust-list li { min-height: 140px; padding: 28px; background: var(--paper); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; line-height: 1.5; }

.xg-tier-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 32px; background: color-mix(in srgb, var(--paper) 24%, transparent); }
.xg-tier-path div { display: grid; gap: 10px; min-height: 150px; padding: 30px; background: var(--ink); }
.xg-tier-path b { color: var(--yellow); font-size: 1.1rem; }
.xg-tier-path span { font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.35; }

/* ---------- hero ---------- */
.xg-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* 环境光:右上蓝晕 + 左下极淡黄晕,与首页/联系页一致 */
.xg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 82% 12%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 70%),
    radial-gradient(40% 35% at 6% 90%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%);
}

.xg-hero__wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(60px, 11vh, 120px);
  padding-bottom: clamp(40px, 7vh, 80px);
}

.xg-hero__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(22px, 4vh, 48px);
}

.xg-hero__title {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.015em;
}

.xg-hero__line { display: block; }

/* 黄色只作填充,文字用 --accent-ink,永不把 --accent 当正文色 */
.xg-hero__em {
  display: inline-block;
  padding: 0.04em 0.14em 0.02em;
  background: var(--accent);
  color: var(--accent-ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.xg-hero__lede {
  max-width: 46rem;
  margin: clamp(22px, 3.2vh, 34px) 0 0;
  color: var(--ink-dim);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.75;
}

/* ---------- 通用区块 ---------- */
.xg-section > .wrap {
  padding-top: clamp(44px, 7.5vh, 84px);
  padding-bottom: clamp(44px, 7.5vh, 84px);
}

.xg-section + .xg-section { border-top: 1px solid var(--line); }

.xg-head { margin-bottom: clamp(24px, 4vh, 42px); }

.xg-head__title {
  margin-top: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
}

.xg-head__sub {
  max-width: 46rem;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ---------- 效果边界告示(法务硬要求:显著位置,不是小字) ---------- */
.xg-notice {
  border: 1px solid var(--ink);
  border-left-width: 6px;
  background: var(--bg-alt);
  padding: clamp(18px, 2.4vw, 28px);
  margin: 0;
}

.xg-notice__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tag-ink);
}

/* 正文级字号,与页面 lede 同大小 —— 刻意不做成免责小字 */
.xg-notice__text {
  margin: 12px 0 0;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
  color: var(--ink);
}

.xg-notice__text + .xg-notice__text { margin-top: 10px; }

.xg-notice--hero { margin-top: clamp(28px, 4vh, 40px); }

/* ---------- 套餐卡 ---------- */
.xg-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}

.xg-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.18s var(--ease-out-quart);
}

.xg-plan:hover { border-color: var(--ink); transform: translateY(-3px); }

.xg-plan--featured { border-color: var(--ink); }

/* 三列栅格里占两列的宽卡(能承诺 / 不能承诺 对照) */
.xg-plan--wide { grid-column: span 2; }

.xg-plan__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tag-ink);
}

.xg-plan__name {
  margin: 12px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
}

.xg-plan__price {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.xg-plan__term {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.xg-plan__what {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.xg-plan__sub {
  margin: 22px 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.xg-plan__cta { margin-top: auto; padding-top: 24px; }
.xg-plan__cta .btn { width: 100%; text-align: center; }

.xg-plan__cta .btn:disabled { cursor: wait; opacity: 0.58; }

.xg-payment-status {
  min-height: 1.5em;
  margin: 20px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
}

.xg-payment-result {
  max-width: 42rem;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.xg-payment-order { margin: 8px 0 20px; font-family: var(--font-mono); font-size: 14px; }


/* 包含 / 不包含清单。+ / − 仅为装饰,语义由上方 .xg-plan__sub 小标题承担 */
.xg-list { margin: 0; }

.xg-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.xg-list li:last-child { margin-bottom: 0; }

.xg-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 700;
}

.xg-list--in li { color: var(--ink-dim); }
.xg-list--in li::before { content: "+"; color: var(--tag-ink); }

.xg-list--out li { color: var(--muted); }
.xg-list--out li::before { content: "\2212"; color: var(--muted); }

/* ---------- 表格(套餐对照 / 价目 / 论文实证数据) ---------- */
.xg-tablewrap {
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 同一区块里紧跟在卡片栅格后面的表格 */
.xg-tablewrap--spaced { margin-top: clamp(20px, 3vh, 32px); }

.xg-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}

.xg-table caption {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.xg-table th,
.xg-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.xg-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--bg-alt);
  white-space: nowrap;
}

.xg-table tbody th {
  width: 24%;
  font-weight: 400;
  color: var(--ink);
}

.xg-table td { color: var(--ink-dim); }

.xg-table tbody tr:last-child th,
.xg-table tbody tr:last-child td { border-bottom: 0; }

.xg-table tbody tr:hover td,
.xg-table tbody tr:hover th { background: var(--bg-alt); }

.xg-yes { color: var(--ink); }
.xg-no { color: var(--muted); }

.xg-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- 卡片栅格(方法论要点 / 引擎分类) ---------- */
.xg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.xg-card {
  border: 1px solid var(--line);
  padding: clamp(20px, 2.2vw, 30px);
  background: var(--bg);
}

.xg-card--flag { border-left: 4px solid var(--blue); }

.xg-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tag-ink);
}

.xg-card__h {
  margin: 12px 0 10px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
}

.xg-card__p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.xg-card__p + .xg-card__p { margin-top: 12px; }

/* ---------- 流程步骤 ---------- */
.xg-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.xg-step { border-top: 2px solid var(--ink); padding-top: 16px; }

.xg-step__n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tag-ink);
}

.xg-step__t {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  font-weight: 400;
}

.xg-step__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ---------- 定义列表(付款方式 / 交付节奏) ---------- */
.xg-kv { margin: 0; border-top: 1px solid var(--line); }

.xg-kv__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(12px, 2vw, 32px);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.xg-kv__k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.xg-kv__v {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ---------- FAQ(原生 details/summary,零 JS) ---------- */
.xg-faq { border-top: 1px solid var(--line); }

.xg-faq__item { border-bottom: 1px solid var(--line); }

.xg-faq__q {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.xg-faq__q::-webkit-details-marker { display: none; }
.xg-faq__q:hover { color: var(--link-ink); }

.xg-faq__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--tag-ink);
}

.xg-faq__item[open] .xg-faq__q::after { content: "\2212"; }

.xg-faq__a {
  margin: 0;
  padding: 0 0 22px;
  max-width: 54rem;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-dim);
}

.xg-faq__a + .xg-faq__a { padding-top: 0; margin-top: -8px; }

/* ---------- 脚注 / 出处 ---------- */
.xg-note {
  margin: clamp(18px, 2.4vh, 26px) 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.xg-note a { color: var(--link-ink); border-bottom: 1px solid transparent; }
.xg-note a:hover { border-bottom-color: var(--link-ink); }

.xg-inline-link { color: var(--link-ink); border-bottom: 1px solid transparent; }
.xg-inline-link:hover { border-bottom-color: var(--link-ink); }

/* ---------- 收尾 CTA 带 ---------- */
.xg-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(44px, 7vh, 80px);
  padding-bottom: clamp(44px, 7vh, 80px);
}

.xg-cta__title {
  margin: 14px 0 0;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 300;
}

.xg-cta__sub {
  max-width: 40rem;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.9;
}

/* 蓝带上的按钮:黄底黑字对比度足够,沿用 .btn 默认 */
.xg-cta .btn { flex: none; }

/* ---------- 诊断表单补充(其余复用 contact.css 的 ct- 体系) ---------- */
.xg-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 24px);
}

.xg-form__grid .ct-field { min-width: 0; }

.xg-form__full { grid-column: 1 / -1; }

.xg-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.xg-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.xg-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 4px 0 0;
}

.xg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-dim);
  cursor: pointer;
}

.xg-check input { accent-color: var(--blue); width: 15px; height: 15px; }

/* 表单右侧摘要卡 */
.xg-summary { border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 32px); }

.xg-summary__price {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.xg-summary__term {
  margin: 10px 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .xg-plans,
  .xg-plans.xg-plans--five { grid-template-columns: 1fr; }
  .xg-plan--wide { grid-column: auto; }
  .xg-plans--five .xg-plan,
  .xg-plans--five .xg-plan:first-child { grid-column: auto; }
  .xg-cards--four,
  .xg-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xg-plans-toolbar { align-items: flex-start; flex-direction: column; }
  .xg-cta__inner { flex-direction: column; align-items: flex-start; }
  .xg-kv__row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 768px) {
  .xg-hero__title { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .xg-form__grid { grid-template-columns: 1fr; }
  .xg-cards--four,
  .xg-trust-list,
  .xg-tier-path { grid-template-columns: 1fr; }
  .xg-billing { width: 100%; }
  .xg-billing button { flex: 1; justify-content: center; padding-inline: 12px; }
  .xg-billing button span { display: none; }
  .xg-cta .btn { width: 100%; text-align: center; }
}
