/* s5a: 定价页 DESIGN 10.5（点数包优先）。从 fx/fc-ui 迁出并收口；fc 内禁止强制优先级。 */

.fx-pricing .lead {
  max-width: 36em;
}

html body .fx-pricing h2 {
  font: 600 28px / 1.3 var(--f-head);
  letter-spacing: 0;
  margin: 96px 0 40px;
  color: var(--ink);
}

html body .fx-pricing h2:first-of-type {
  margin-top: 64px;
}

/* —— 点数包三档 —— */
.fx-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  align-items: stretch;
  padding-top: 12px; /* 给荐档上移留顶空 */
}

.fx-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--r-16);
  border: 0;
  background-color: var(--l1);
  background-image: var(--dp-card), var(--dp-grain);
  box-shadow: var(--dp-up);
  color: var(--ink);
}

.fx-pack::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: var(--dp-hair);
  opacity: 0.55;
  pointer-events: none;
}

.fx-pack .nm {
  font: 400 14px / 1.6 var(--f-body);
  color: var(--ink2);
  letter-spacing: 0.04em;
}

.fx-pack .pr {
  /* audit10：价格/点数无衬线（Cormorant 的 1≈I、0≈O） */
  font: 600 40px / 1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  margin: 8px 0 0;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
}

.fx-pack .pr small {
  font: 400 14px / 1.6 var(--f-body);
  color: var(--ink2);
  letter-spacing: 0;
  margin-left: 4px;
}

.fx-pack .pt {
  font: 600 18px / 1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  color: var(--ink);
  margin: 8px 0 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.fx-pack .approx {
  font: 400 14px / 1.6 var(--f-body);
  color: var(--ink2);
  margin: 8px 0 0;
}

.fx-pack .fc-btn {
  margin-top: 24px;
  width: 100%;
}

/* audit10：收银台未开，禁用钮一律去金（含荐档 .pri），内凹次按钮态 */
.fx-pack .fc-btn:is(:disabled, [aria-disabled="true"]),
.fx-pack .fc-btn.pri:is(:disabled, [aria-disabled="true"]) {
  background-color: var(--l1);
  background-image: none;
  box-shadow: var(--dp-in);
  color: var(--ink2);
  opacity: 0.7;
  cursor: not-allowed;
  filter: none;
}

/* 荐档：特写 + 辉光 + 上移 + 顶金光 + 金标（推荐靠角标，不靠金钮） */
.fx-pack.rec {
  box-shadow: var(--dp-up-hi), var(--dp-glow);
  transform: translateY(-12px);
  background-image:
    radial-gradient(
      300px 200px at 50% 0,
      color-mix(in srgb, var(--gold) 18%, transparent),
      transparent 70%
    ),
    var(--dp-card),
    var(--dp-grain);
}

.fx-pack.rec::after {
  opacity: 0.9;
}

.fx-pack .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 2px 8px;
  border-radius: var(--r-4);
  background: var(--gold-soft);
  color: var(--gold-text);
  font: 400 12px / 1.5 var(--f-body);
  letter-spacing: 0.04em;
}

.fx-pack .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* 非荐档顶对齐金标占位（桌面；荐档可在任意列，靠角标识别） */
.fx-pack:not(.rec)::before {
  content: "";
  display: block;
  height: 26px;
  margin: 0 0 16px;
}

.fx-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0 0;
  font: 400 14px / 1.6 var(--f-body);
  color: var(--ink2);
}

.fx-trust svg {
  width: 16px;
  height: 16px;
  color: var(--gold-text);
  flex: none;
}

@media (min-width: 1100px) {
  .fx-trust {
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    max-width: 1052px;
    gap: 8px 6px;
  }
}

/* —— 点数怎么用（消耗三卡） —— */
.fx-uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-uses li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--r-16);
  background-color: var(--l1);
  background-image: var(--dp-card), var(--dp-grain);
  box-shadow: var(--dp-up);
  color: var(--ink);
}

.fx-uses li::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: var(--dp-hair);
  opacity: 0.55;
  pointer-events: none;
}

.fx-uses b {
  font: 600 40px / 1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}

.fx-uses b small {
  font: 400 14px / 1.6 var(--f-body);
  color: var(--ink2);
  margin-left: 4px;
}

.fx-uses span {
  font: 400 14px / 1.6 var(--f-body);
  color: var(--ink2);
}

/* —— FAQ 折叠（文案来自 LEGAL，结构用 details） —— */
.fx-faq {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fx-faq details {
  position: relative;
  border-radius: var(--r-16);
  background-color: var(--l1);
  background-image: var(--dp-card), var(--dp-grain);
  box-shadow: var(--dp-up);
  color: var(--ink);
  padding: 0;
}

.fx-faq details::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: var(--dp-hair);
  opacity: 0.55;
  pointer-events: none;
}

.fx-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  font: 600 16px / 1.6 var(--f-head);
  color: var(--ink);
}

.fx-faq summary::-webkit-details-marker {
  display: none;
}

.fx-faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 1.5px solid var(--ink2);
  border-bottom: 1.5px solid var(--ink2);
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
  margin-top: -4px;
}

.fx-faq details[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.fx-faq details > ul {
  list-style: none;
  margin: 0;
  padding: 0 24px 20px;
  display: grid;
  gap: 8px;
}

.fx-faq details > ul > li {
  padding: 8px 16px;
  border-radius: var(--r-8);
  background: var(--l2);
  font: 400 14px / 1.6 var(--f-body);
  color: var(--ink);
}

.fx-faq details > ul > li a {
  color: var(--gold-text);
}

.fx-pricing .xt-ai-note {
  margin: 40px 0 0;
  font: 400 12px / 1.5 var(--f-body);
  color: var(--ink2);
}

@media (max-width: 760px) {
  html body .fx-pricing h2 {
    font-size: 22px;
    margin: 64px 0 24px;
  }

  html body .fx-pricing h2:first-of-type {
    margin-top: 40px;
  }

  .fx-packs {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .fx-pack {
    padding: 24px;
  }

  .fx-pack.rec {
    transform: none;
  }

  .fx-pack:not(.rec)::before {
    display: none;
  }

  .fx-uses {
    grid-template-columns: 1fr;
  }

  .fx-uses li {
    padding: 16px;
  }

  .fx-trust {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px 8px;
    align-items: start;
    white-space: normal;
    width: auto;
  }

  .fx-trust > span[aria-hidden] {
    display: none;
  }

  .fx-trust > span {
    grid-column: 2;
  }

  .fx-trust svg {
    grid-row: 1;
    margin-top: 3px;
  }

  .fx-faq summary {
    padding: 14px 16px;
  }

  .fx-faq details > ul {
    padding: 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-pack.rec {
    transform: none;
  }

  .fx-faq summary::after {
    transition: none;
  }
}

/* v118：综合报告消耗卡内「样例」链 */
.fx-uses a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
  font: 500 13px/1.4 var(--f-body);
}
.fx-uses a:hover { color: var(--ink); }
