/* Hallmark · redesign 2026-10-09 · genre: editorial · macrostructure: Split-doc hybrid
 * 系统沿用 brand.css 的 token，不改主题；本轮只修审计出的 5 条 critical 与观感重复。
 */

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

/* 分区：靠发丝线分隔，不靠底色 */
/* 2026-10-09：节自己原来还带一层 clamp 横向内边距，和内部 .wrap 的内边距叠成两层，
   顶栏只带一层 ⇒ 窄屏下顶栏与正文差 40px。横向上收到 0，统一由 .wrap 决定版心。 */
.section + .section { border-top: 1px solid var(--color-line); }
.section { padding-inline: 0; }
.section .head { max-width: 46rem; margin-bottom: var(--space-lg); }
.section .head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.section .head p { margin: 0; color: var(--color-muted-soft); font-size: 1rem; }

/* 2026-10-09 审计 major：八个节头共用一张脸。三张「说明型」小节压一档，
   承诺那节从 label-value 表改成三列，别和下面两张表撞。 */
#promise .head h2, #contact .head h2, #terms .head h2 { font-size: clamp(1.12rem, 1.9vw, 1.38rem); }
#promise .head, #terms .head { margin-bottom: var(--space-md); }
#promise .rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 2rem; }
#promise .rows > div { display: block; }

/* 行情条（活数据，横向；五格）—— 2026-10-10 用户令：跟顶栏一样贴边，不套 1180 容器 */
.ledger {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--color-line);
}
.ledger > div { padding: 1.1rem 1rem 1.1rem 0; min-width: 0; }
.ledger > div + div { padding-left: 1.2rem; border-left: 1px solid var(--color-line); }
.ledger b {
  display: block;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger span { display: block; margin-top: 0.35rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--color-muted); }
.ledger .live b { color: var(--color-focus); }

/* 双列释义行（承诺、条款） */
.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--color-line);
}
.rows > div:last-child { border-bottom: 1px solid var(--color-line); }
.rows h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.rows p { margin: 0; color: var(--color-muted-soft); font-size: 0.96rem; }

/* 价目表 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--color-accent); font-size: 0.85rem; letter-spacing: 0.04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
.muted { color: var(--color-muted); font-size: 0.9rem; }
.mono, code { font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace; }
code { background: rgba(255, 255, 255, 0.07); padding: 0.08em 0.35em; border-radius: 2px; font-size: 0.88em; }

/* 三栏 / 三档 */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.cols h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; }
.cols p { margin: 0; color: var(--color-muted-soft); font-size: 0.94rem; }

/* 2026-10-09 审计 critical：四张卡落三列 ⇒ 第二行只放一张、右边空两格。
   auto-fit 让它按容器宽自己定列数，1180 宽正好四列，窄屏不许留洞。 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); }
.plans > div { background: var(--color-ink); padding: 1.15rem 1.2rem 1.3rem; }
.plans h3 { margin: 0 0 0.6rem; font-size: 0.92rem; font-weight: 600; color: var(--color-accent); letter-spacing: 0.04em; }
.plans .price { margin: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.plans .price span { display: block; margin-top: 0.45rem; font-family: var(--font-body); font-size: 0.86rem; font-weight: 400; color: var(--color-muted-soft); }

/* 输入区：两行输入框必须等宽对齐（原来第一行满宽、第二行只占五六成，右边挤三个按钮） */
.field { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.field input {
  flex: 1 1 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-snow);
  font: inherit;
  padding: 0.7rem 0.8rem;
}
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.out { margin: 0.85rem 0 0; color: var(--color-accent); font-size: 0.92rem; }
/* 2026-10-09 审计 critical：原来 .stamp 带边框，和上一行的代码块撞成两个「输入框」，
   可它其实是纯文字。去掉框，降成一行后置小字。 */
.stamp {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border: 0;
  padding: 0;
}
.hero-more { margin: 0; }
.hero-more a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; font-size: 0.92rem; }

/* 套餐下拉：原来是裸的原生 select（实测 border rgb(118,118,118)、radius 0、高 19px） */
.sel {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-snow);
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b7c7d1' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 2.2rem 0.7rem 0.8rem;
}
.sel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.sel option { background: var(--color-ink-mid); color: var(--color-snow); }

/* 首屏标记：内联 SVG 锁定版（O 走红）。位图 logo-hero.png 里还是旧名「素问中转」。 */
.hero-mark {
  position: relative;
  width: min(78%, 420px);
  /* 2026-10-11：换成无阴影抠图后不再是方卡，aspect-ratio 必须撤，否则 1400x477 会被拉成正方 */
  aspect-ratio: auto;
  height: auto;
  border-radius: 6px;
  /* 实测：var(--shadow-soft) 那条 18px/50px 的阴影挂在方卡上会让 Playwright 截图合成卡死
     （隔离实录：shadow_off → 640ms 正常，其余组合 8s 超时）。换成单层小模糊阴影。 */
  box-shadow: 0 10px 26px rgba(2, 16, 24, 0.4);
  /* 注意：这里不要再写 background-image —— 实测平铺/渐变都会让截图合成卡死 */
}
.hero-mark-t { font-family: var(--font-display); font-size: 100px; font-weight: 700; letter-spacing: 0.005em; fill: var(--color-snow); }
.hero-mark-s { font-family: var(--font-body); font-size: 14px; letter-spacing: 0.32em; fill: var(--color-muted-soft); }

/* 代码块 */
pre {
  margin: 0;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
pre code { background: none; padding: 0; font-size: 0.84rem; line-height: 1.7; }

/* 付款码 */
.pay-qr { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.pay-qr img { width: 168px; height: 168px; object-fit: contain; background: #fff; padding: 6px; border-radius: 2px; }
.pay-qr.is-missing img { display: none; }
.pay-qr.is-missing p::after { content: "（收款码图待贴 site/pay-qr.png）"; }

/* 页脚小字区：主标题那句口号放这里 */
.footer-note { flex-basis: 100%; color: var(--color-muted); font-size: 0.85rem; }
.footer-note em { font-style: normal; color: var(--color-accent); }

@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger > div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 460px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .ledger > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .field .btn { width: 100%; }
  .pay-qr { flex-direction: column; align-items: flex-start; }
}
/* ── 2026-10-04 目审 P2：手机端 5 行状态条曾吃掉近半首屏 ⇒ 压成两列紧凑块 ── */
@media (max-width: 640px) {
  .ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; padding: .35rem 1rem .6rem; }
  .ledger > div { padding: .42rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .ledger b { font-size: 1.02rem; }
  .ledger span { font-size: .76rem; }
  /* 2026-10-09：手机端整页 6843px，节间空档占了太多行程，压一档 */
  .section { padding-block: var(--space-xl); }
}

/* 首屏可复制 base_url（Cursor1 n=1759 §一：要在一屏内看得见，不只是 DOM 里有） */
.hero-code { margin: 1rem 0 .5rem; padding: .6rem .8rem; border: 1px solid var(--color-line);
  border-radius: 8px; background: rgba(0,0,0,.18); position: relative; overflow-x: auto; }
.hero-code code { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .86rem; }
@media (max-width: 768px) {
  .hero-visual { display: none; }                 /* 装饰块不再占满手机首屏 */
  .hero-split { display: block; }
  .cta-row { margin-top: .6rem; }
  header { flex-wrap: nowrap; align-items: center; }
  .nav-links { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: .9rem;
    max-width: 100%; min-width: 0; }
  .nav-links a { flex: 0 0 auto; }                 /* 单行横滑，不折两行 */
  .nav-links::-webkit-scrollbar { display: none; }
}

.order { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.order .out { flex-basis: 100%; margin: .2rem 0 0; }

/* ── 2026-10-10 尺寸适配（用户报：超宽屏与手机端都要能用）─────────────────
   用户实机是 3164px 级的超宽屏：hero 两栏各一千五百多像素，420px 的标记孤零零漂在
   空栏正中，右栏文案也被拉得极宽。两栏跟着 1180 版心走，底纹仍全宽铺。
   首屏高度同时封顶，免得高窗口下 hero 空一大片、内容全挤在中间。 */
.hero-split { min-height: min(calc(100svh - 4.5rem), 780px); }
@media (min-width: 1400px) {
  .hero-split { grid-template-columns: minmax(0, 620px) minmax(0, 560px); justify-content: center; }
}
/* 中窄屏（1020–1400）：版心之外不再额外拉，hero 两栏按比例收 */
@media (max-width: 1399px) and (min-width: 1021px) {
  .hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-visual { padding: clamp(1.2rem, 3vw, 2.2rem); }
}
/* 窄屏（≤480）：导航拆两行。七个链接挤一行横滑时，第一个「价目」会被吃掉。 */
@media (max-width: 480px) {
  .site-nav { flex-wrap: wrap; row-gap: .35rem; }
  .nav-links { width: 100%; justify-content: flex-start; gap: .5rem 1rem; }
  .nav-links a { flex: 0 0 auto; }
}
/* 极窄（≤360，含 320）：再收一档，保证不出横向滚动 */
@media (max-width: 360px) {
  .wrap { padding-inline: .9rem; }
  .hero-copy h1 { font-size: 2rem; }
  .btn { padding: .6rem .85rem; }
  .nav-links { gap: .4rem .8rem; }
  .nav-links a { font-size: .86rem; }
}

/* ── 2026-10-11 多尺寸视觉目审：顶部状态带与正文不齐（实测 1920 屏上正文内容左端 403、
   状态带元素左端 40，差 363px）。根因是这条自己写了 `max-width:none`，把它身上 `wrap`
   class 的 1180 上限顶掉了 ⇒ 整条全宽、元素贴屏幕边。用双类提高优先级（不改原规则，
   免得动到别人依赖的全宽行为），让状态带与正文同一条中线。
   顺带：5 列里有 3 个元素被 display:none（固定倍率/免费额度/限速暂不公开），
   剩下 2 个视觉上占满即可，不必留 3 个空列。 */
@media (min-width: 721px) {
  .ledger.wrap { max-width: 1180px; margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
