/* OEM / ODM project notes — fact bar, process chain, failure table, three tiers.
   与站点共用 base.css 的 token 与 page-tech.css 的 tn-* 长文版式：
   1px 线、零圆角、四级灰，石墨蓝只做标签与提示。 */

/* ---------- fact bar (four cells) ---------- */
.om-facts {
  margin-top: 34px;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--t-ink);
  border-bottom: 1px solid var(--line);
}

.om-facts > div {
  padding: 14px 18px 16px 0;
  border-right: 1px solid var(--line);
}

.om-facts > div:last-child { border-right: 0; padding-right: 0; }

.om-facts u {
  display: block;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-mute);
}

.om-facts b {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--t-ink);
}

.om-facts em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--t-mute);
}

/* ---------- cover figure ---------- */
.om-cover { margin-top: 28px; max-width: 720px; }

/* ---------- process chain ---------- */
.om-chain {
  margin-top: 22px;
  border-top: 1px solid var(--t-ink);
  list-style: none;
  counter-reset: omstep;
}

.om-chain li {
  counter-increment: omstep;
  position: relative;
  padding: 16px 0 18px 54px;
  border-bottom: 1px solid var(--line);
}

.om-chain li::before {
  content: "0" counter(omstep);
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--graphite);
}

.om-chain h3 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--t-ink);
}

.om-chain p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--t-mid);
}

.om-chain p b { font-weight: 600; color: var(--t-ink); }

.om-chain .warn {
  margin-top: 9px;
  padding-left: 12px;
  border-left: 2px solid var(--graphite);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--t-steel);
}

.om-chain .warn u {
  text-decoration: none;
  display: inline-block;
  margin-right: 6px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
}

/* ---------- failure table (four columns) ---------- */
.om-fail .tr { grid-template-columns: 1.05fr 1.15fr 1.35fr 1.25fr; }

/* ---------- three tiers ---------- */
.om-tiers {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--t-ink);
  border-bottom: 1px solid var(--line);
}

.om-tier {
  padding: 18px 22px 20px 0;
  border-right: 1px solid var(--line);
}

.om-tier:last-child { border-right: 0; padding-right: 0; }

.om-tier u {
  text-decoration: none;
  display: block;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
}

.om-tier h3 {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--t-ink);
}

.om-tier p {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--t-mid);
}

.om-tier p b { font-weight: 600; color: var(--t-ink); }

.om-tier .lim {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--t-mute);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .om-facts { grid-template-columns: 1fr 1fr; }
  .om-facts > div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 16px; }
  .om-facts > div:nth-child(2n) { padding-right: 0; }
  .om-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .om-tiers { grid-template-columns: 1fr; }
  .om-tier { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .om-tier:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .om-facts { grid-template-columns: 1fr; }
  .om-facts > div { border-bottom: 1px solid var(--line); padding-right: 0; }
  .om-facts > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .om-facts > div:last-child { border-bottom: 0; }
  .om-chain li { padding-left: 40px; }
  .om-fail { overflow-x: auto; }
  .om-fail .tr { min-width: 620px; }
  .om-cover { max-width: 100%; }
}
