/* ==========================================================================
   Genisource MES — 官网样式
   设计语言沿用 docs/design-system.md：暖纸 + 墨黑 + 国际橙，硬边矩形、
   发丝线、L 形角标、等宽数据。不引入第二套 UI 框架。
   ========================================================================== */

/* ---------- 0. 字体（自托管，离线可用） ---------- */
@font-face {
  font-family: "ArchivoVF";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMMono";
  src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DMMono";
  src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- 1. Token ---------- */
/* 注：--muted / --muted-2 比产品端的 #6d6a61 / #85806f 略深。
   官网正文与 9px 标签在 4.42:1 / 3.23:1，达不到 WCAG AA 的 4.5:1；
   这里调整到 5.5:1 / 4.7:1，色相不变。产品端 token 未改动。 */
:root {
  --paper: #ece8df;
  --paper-2: #f6f3ec;
  --paper-3: #e4dfd4;
  --ink: #101214;
  --ink-2: #191c1e;
  --ink-3: #24282b;
  --muted: #5f5c54;
  --muted-2: #6a665c;
  --line: rgba(16, 18, 20, 0.13);
  --line-strong: rgba(16, 18, 20, 0.26);
  --orange: #ff4b12;
  --orange-text: #bd3a07;
  --green: #1d6b4e;
  --red: #a8231b;

  --sans: "ArchivoVF", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "DMMono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  --gutter: clamp(18px, 4.2vw, 64px);
  --maxw: 1280px;
  --sec-y: clamp(64px, 8vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grid-line: rgba(16, 18, 20, 0.055);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.1;
  font-stretch: 108%;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange); color: var(--paper-2); }

:focus-visible {
  outline: 2px dashed var(--orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 排版原子 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

.micro {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.sec-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--orange-text);
}

.lede {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 62ch;
}

.hi { color: var(--orange-text); }
.on-dark .hi { color: var(--orange); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 4. 区块骨架 ---------- */
.section {
  padding-block: var(--sec-y);
  position: relative;
}
.section--tight { padding-block: clamp(44px, 5vw, 76px); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head__title {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.12;
}
.sec-head__aside {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-left: 1px solid var(--line-strong);
  padding-left: 12px;
}
@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: end;
    gap: 40px;
  }
  .sec-head__aside { text-align: right; border-left: 0; border-right: 1px solid var(--line-strong); padding: 0 12px 0 0; }
}

/* 深色区 */
.ink-block {
  background-color: var(--ink);
  color: var(--paper-2);
  background-image:
    linear-gradient(rgba(236, 232, 223, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 232, 223, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
}
.ink-block .micro,
.ink-block .eyebrow { color: rgba(246, 243, 236, 0.62); }
.ink-block .lede { color: rgba(246, 243, 236, 0.72); }

/* ---------- 5. 顶部状态带 ---------- */
.ticker {
  position: relative;
  height: 34px;
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
  animation: ticker linear infinite;
  animation-duration: var(--ticker-dur, 60s);
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline: 18px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ticker__item::after {
  content: "";
  width: 4px; height: 4px;
  background: var(--ink);
  transform: rotate(45deg);
  flex: none;
}
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 6. 导航 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.masthead.is-stuck { border-bottom-color: var(--line-strong); }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand__mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  flex: none;
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 3px; bottom: 3px;
  width: 4px; height: 4px;
  background: var(--orange);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  font-stretch: 108%;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2px;
  background: var(--orange);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

/* 窄屏：顶栏只留品牌与汉堡，CTA 收到移动菜单里，避免挤爆一行 */
@media (max-width: 719px) {
  .masthead__actions .btn { display: none; }
}

@media (min-width: 1040px) {
  .nav { display: flex; }
  .masthead__actions { margin-left: 0; }
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink); background: rgba(16, 18, 20, 0.04); }
.btn__arrow { font-family: var(--mono); font-size: 14px; transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}
.btn--primary:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.btn--ghost { border-color: var(--line-strong); color: var(--muted); }
.btn--ghost:hover { color: var(--ink); }

.btn--sm { min-height: 36px; padding: 0 13px; font-size: 12.5px; }

/* 移动端菜单按钮 */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  padding: 0 11px;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s var(--ease), opacity 0.18s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 1040px) { .burger { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 8px 0 18px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
}
.mobile-nav a span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.mobile-nav__cta { padding: 16px var(--gutter) 0; display: flex; gap: 10px; }
@media (min-width: 1040px) { .mobile-nav, .mobile-nav.is-open { display: none !important; } }

/* ---------- 7. Hero ---------- */
.hero { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(28px, 3vw, 44px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.72fr); gap: 56px; }
}

.hero h1 {
  margin-top: 20px;
  /* 字号按「栏宽 ÷ 10 个汉字」反推，保证两句各自不折行 */
  font-size: clamp(34px, 8.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 800;
  font-stretch: 110%;
}
@media (min-width: 620px) {
  .hero h1 { font-size: clamp(44px, 6.6vw, 62px); }
}
@media (min-width: 980px) {
  .hero h1 { font-size: clamp(46px, 5.2vw, 74px); }
}
.hero h1 .hi { position: relative; white-space: nowrap; }
.hero h1 .hi::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.1em;
  height: 0.09em;
  background: var(--orange);
  opacity: 0.85;
}

.hero__lede {
  margin-top: 22px;
  font-size: clamp(15px, 1.5vw, 18.5px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 40ch;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--green);
}

/* 工艺卡（右侧闭环清单） */
.jobcard {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  padding: 22px 20px 18px;
}
.jobcard::before,
.jobcard::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 0 solid var(--ink);
}
.jobcard::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.jobcard::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.jobcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.led {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.led::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.flowlist { margin-top: 6px; }
.flowlist li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.flowlist li:last-child { border-bottom: 0; }
.flowlist__n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange-text);
  letter-spacing: 0.06em;
}
.flowlist__t { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.flowlist__e {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: right;
}
.jobcard__foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jobcard__big {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 3px;
}

.stamp {
  display: inline-block;
  padding: 6px 9px;
  border: 2px solid currentColor;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-text);
  transform: rotate(-7deg);
  line-height: 1.15;
  text-align: center;
}

/* ---------- 8. KPI 条 ---------- */
.kpibar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink);
  margin-top: clamp(30px, 4vw, 48px);
}
@media (min-width: 760px) { .kpibar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kpibar__cell {
  padding: 18px 20px 16px;
  border-right: 1px solid rgba(246, 243, 236, 0.16);
  border-bottom: 1px solid rgba(246, 243, 236, 0.16);
  position: relative;
}
.kpibar__cell:last-child { border-right: 0; }
@media (max-width: 759px) {
  .kpibar__cell:nth-child(2n) { border-right: 0; }
  .kpibar__cell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 760px) {
  .kpibar__cell { border-bottom: 0; }
}
.kpibar__v {
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper-2);
}
.kpibar__v small { font-size: 0.55em; letter-spacing: 0.02em; margin-left: 2px; }
.kpibar__k {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.55);
}

/* ---------- 9. 截图框 ---------- */
.shot {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 10px;
}
.shot::before,
.shot::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--ink);
}
.shot::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.shot::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.shot img { width: 100%; border: 1px solid var(--line); }
.shot__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 4px 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.shot__cap b { color: var(--ink); font-weight: 500; }

.hero-shot { margin-top: clamp(26px, 3.5vw, 44px); }

/* ---------- 10. 现状：三张失效卡 ---------- */
.failgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
@media (min-width: 820px) { .failgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.failcard {
  background: var(--paper-2);
  padding: 24px 22px 26px;
  position: relative;
}
.failcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.failcard__n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.failcard__x {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}
.failcard h3 { font-size: 19px; letter-spacing: -0.01em; }
.failcard p { margin-top: 9px; font-size: 14px; line-height: 1.8; color: var(--muted); }

.quote {
  margin-top: clamp(34px, 4vw, 56px);
  border-left: 3px solid var(--orange);
  padding: 6px 0 6px clamp(18px, 3vw, 34px);
}
.quote p {
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.028em;
  font-stretch: 108%;
  max-width: 26ch;
}
.quote span { color: var(--orange-text); }
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 11. 五步闭环 ---------- */
.loop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
@media (min-width: 720px) { .loop { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.loop__step {
  background: var(--paper);
  padding: 22px 18px 24px;
  position: relative;
}
.loop__step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line-strong);
  transition: background 0.2s;
}
.loop__step:hover::before { background: var(--orange); }
.loop__n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--orange-text);
}
.loop__t {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.loop__e {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.loop__d { margin-top: 12px; font-size: 13px; line-height: 1.75; color: var(--muted); }

/* 是 / 不是 边界 */
.boundary {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 780px) { .boundary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.boundary > div { background: var(--paper-2); padding: 20px 22px 22px; }
.boundary h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.boundary h3::before {
  content: "";
  width: 14px; height: 14px;
  border: 1px solid currentColor;
  display: inline-block;
}
.boundary--yes h3 { color: var(--green); }
.boundary--yes h3::before { background: var(--green); border-color: var(--green); }
.boundary--no h3 { color: var(--red); }
.boundary--no h3::before {
  background:
    linear-gradient(45deg, transparent 46%, var(--red) 46%, var(--red) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--red) 46%, var(--red) 54%, transparent 54%);
  border-color: var(--red);
}
.boundary p { font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.boundary strong { color: var(--ink); font-weight: 600; }

/* ---------- 12. 三个不妥协 ---------- */
.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: rgba(246, 243, 236, 0.16);
  border: 1px solid rgba(246, 243, 236, 0.16);
}
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillar {
  background: var(--ink);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.6vw, 30px);
}
.pillar__n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--orange);
}
.pillar h3 {
  margin-top: 14px;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--paper-2);
}
.pillar__e {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.5);
}
.pillar p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 243, 236, 0.74);
}
.pillar ul { margin-top: 16px; }
.pillar li {
  position: relative;
  padding-left: 15px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 2;
  color: rgba(246, 243, 236, 0.6);
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.9em;
  width: 5px; height: 1px;
  background: var(--orange);
}

.standard {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(246, 243, 236, 0.55);
}
.standard b { color: var(--orange); font-weight: 500; }
.standard::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--orange);
}

/* ---------- 13. 能力切换器 ---------- */
.caps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (min-width: 980px) {
  .caps { grid-template-columns: 300px minmax(0, 1fr); gap: 34px; }
}

.caps__tabs {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: var(--line);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.caps__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 980px) {
  .caps__tabs {
    flex-direction: column;
    overflow: visible;
    border: 0;
    background: transparent;
    border-top: 1px solid var(--line-strong);
  }
}

.cap-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper-2);
  text-align: left;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
  flex: none;
}
@media (min-width: 980px) {
  .cap-tab {
    width: 100%;
    padding: 13px 14px;
    border-left: 2px solid transparent;
    border-bottom: 1px solid var(--line);
    background: transparent;
    white-space: normal;
  }
}
.cap-tab:hover { background: rgba(16, 18, 20, 0.045); }
.cap-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper-2);
  border-left-color: var(--orange);
}
.cap-tab__n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--orange-text);
}
.cap-tab[aria-selected="true"] .cap-tab__n { color: var(--orange); }
.cap-tab__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cap-tab__t { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.cap-tab__e {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cap-tab[aria-selected="true"] .cap-tab__e { color: rgba(246, 243, 236, 0.55); }
@media (max-width: 979px) {
  .cap-tab__e { display: none; }
}

.caps__panel { min-width: 0; }
.cap-panel[hidden] { display: none; }
.cap-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cap-panel__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap-panel__eyebrow b { color: var(--orange-text); font-weight: 500; letter-spacing: 0.1em; }
.cap-panel h3 {
  margin-top: 18px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}
.cap-panel h3 .hi { white-space: nowrap; }
.cap-panel__desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 58ch;
}
.cap-panel__points {
  margin-top: 20px;
  display: grid;
  gap: 9px;
}
.cap-panel__points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
}
.cap-panel__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 1px;
  background: var(--orange);
}
.cap-panel__apis {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--paper-2);
}
.chip b { color: var(--orange-text); font-weight: 500; }
.cap-panel .shot { margin-top: 24px; }

/* 交付章的终端替身 */
.cap-terminal {
  margin-top: 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  color: rgba(246, 243, 236, 0.82);
  overflow-x: auto;
}
.cap-terminal .p { color: var(--orange); }
.cap-terminal .c { color: rgba(246, 243, 236, 0.55); }
.cap-terminal .g { color: #6fbf9b; }

/* ---------- 14. 部署终端 ---------- */
.deploy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (min-width: 960px) { .deploy { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; } }

.term {
  border: 1px solid rgba(246, 243, 236, 0.2);
  background: #0b0d0e;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(246, 243, 236, 0.14);
  background: #131618;
}
.term__title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term__dots { display: flex; gap: 4px; flex: none; }
.term__dots i { width: 6px; height: 6px; background: rgba(246, 243, 236, 0.2); display: block; }
.term__dots i:first-child { background: var(--orange); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(246, 243, 236, 0.24);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.7);
  transition: color 0.16s, border-color 0.16s;
  flex: none;
}
.copy-btn:hover { color: var(--paper-2); border-color: rgba(246, 243, 236, 0.5); }
.copy-btn.is-done { color: var(--orange); border-color: var(--orange); }

.term__body {
  padding: 14px 16px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(246, 243, 236, 0.84);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.term__body pre { margin: 0; font-family: inherit; }
.term__body .p { color: var(--orange); }
.term__body .c { color: rgba(246, 243, 236, 0.58); }
.term__body .g { color: #6fbf9b; }
.term__body .o { color: rgba(246, 243, 236, 0.92); }
.term__body .cur {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--orange);
  vertical-align: -2px;
  animation: blink 1.4s steps(2, start) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.deploy__facts { margin-top: 24px; }
.deploy__facts li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(246, 243, 236, 0.12);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(246, 243, 236, 0.78);
}
.deploy__facts li:last-child { border-bottom: 0; }
.deploy__facts b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.58);
  padding-top: 3px;
}

/* ---------- 15. 技术栈表 ---------- */
.stack {
  border-top: 1px solid var(--line-strong);
}
.stack__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .stack__row {
    grid-template-columns: 110px minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 26px;
    align-items: baseline;
    padding: 20px 2px;
  }
}
.stack__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.stack__v { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.stack__why { font-size: 13.5px; line-height: 1.7; color: var(--muted); }

.specs {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) { .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.specs div { background: var(--paper-2); padding: 14px 16px; }
.specs dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.specs dd {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}

/* ---------- 16. 路线图 ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) { .roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .roadmap { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.rm {
  background: var(--paper-2);
  padding: 16px 13px 18px;
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
}
.rm::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line-strong);
}
.rm--done::before { background: var(--ink); }
.rm--next::before { background: var(--orange); }
.rm--next { background: rgba(255, 75, 18, 0.07); }
.rm__m {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.rm--done .rm__m { color: var(--ink); }
.rm--next .rm__m { color: var(--orange-text); }
.rm__t { margin-top: 9px; font-size: 13.5px; line-height: 1.55; font-weight: 600; }
.rm__d {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.rm--next .rm__d { color: var(--orange-text); }

/* ---------- 17. 开源 / 参与 ---------- */
.opensource {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}
@media (min-width: 940px) { .opensource { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

.license-box {
  border: 1px solid rgba(246, 243, 236, 0.2);
  padding: 22px 22px 24px;
  position: relative;
}
.license-box::before,
.license-box::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 0 solid var(--orange);
}
.license-box::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.license-box::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.license-box__t {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper-2);
}
.license-box p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(246, 243, 236, 0.68);
}

/* 企业微信二维码卡片（深色区内，白底保证可扫） */
#wecom { align-self: center; }   /* 整行垂直居中，避免与左栏高度差留白 */
/* 联系区：收窄右侧二维码栏，让二维码更靠近视觉中心、减少栏内留白（仅作用于 #contact） */
@media (min-width: 960px) {
  #contact .deploy { grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); }
}
.wecom-card {
  background: var(--paper-2);
  border: 1px solid rgba(246, 243, 236, 0.2);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  width: 100%;
  max-width: 300px;          /* 贴合二维码，避免在宽栏里被拉大留白 */
  margin-inline: auto;        /* 在右侧栏内水平居中 */
}
.wecom-card::before,
.wecom-card::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 0 solid var(--orange);
}
.wecom-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.wecom-card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.wecom-card img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
}
.wecom-card__cap {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--paper-2);
  text-align: center;
}
.wecom-card__sub {
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(246, 243, 236, 0.62);
  text-align: center;
  max-width: 32ch;
}

.steplist { counter-reset: s; }
.steplist li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246, 243, 236, 0.12);
}
.steplist li:last-child { border-bottom: 0; }
.steplist li::before {
  content: "0" counter(s);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 4px;
}
.steplist b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.steplist span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.on-dark .steplist b { color: var(--paper-2); }
.on-dark .steplist span { color: rgba(246, 243, 236, 0.6); }

/* ---------- 18. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line-strong);
  padding-block: 46px 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr)); gap: 40px; }
}
.footer__brand p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34ch;
}
.footer .footer__h {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer ul { display: grid; gap: 9px; }
.footer ul a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.16s;
}
.footer ul a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.footer__bottom .ver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__bottom .ver::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
}

/* ---------- 19. 文档 / 下载页面 ---------- */
.page-head {
  padding-block: clamp(40px, 6vw, 82px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line-strong);
}
.page-head h1 {
  margin-top: 18px;
  font-size: clamp(32px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.page-head .lede { margin-top: 18px; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb a:hover { color: var(--ink); }

.cardgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) { .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cardgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.doccard {
  background: var(--paper-2);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.16s;
}
.doccard:hover { background: var(--paper-3); }
.doccard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.doccard h3 { font-size: 17px; letter-spacing: -0.01em; }
.doccard p { font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.doccard__go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.doccard:hover .doccard__go { color: var(--orange); }

.note {
  border-left: 2px solid var(--orange);
  background: rgba(255, 75, 18, 0.055);
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}
.note b { color: var(--ink); font-weight: 600; }

.faq { border-top: 1px solid var(--line-strong); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 2px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--orange-text);
  flex: none;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__a {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 72ch;
}
.faq .faq__a code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(16, 18, 20, 0.06);
  padding: 1px 5px;
}

.reqgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) { .reqgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reqgrid div { background: var(--paper-2); padding: 16px 18px; }
.reqgrid dt { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.reqgrid dd { margin: 7px 0 0; font-size: 14px; font-weight: 600; }

/* ---------- 20. 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .led::before, .term__body .cur { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
