/* ==========================================================================
   AGENG 官网 · 主样式
   有序：基础 → 排版 → 通用组件 → 导航/页脚 → 首页 → 案例库 → 案例详情 → 表单
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

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

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; z-index: 999; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

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

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

.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }

/* 刻度线：全站章节的统一开头，代替渐变装饰 */
.rule {
  height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 9px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 7px;
  margin-bottom: 20px;
}
.rule--short { width: 132px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  color: var(--text-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; flex: none;
  background: var(--accent);
}

.display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 18ch;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.45; }

.lede {
  font-size: 16px;
  color: var(--text-2);
  max-width: 62ch;
  margin-top: 16px;
}
.body-2 { color: var(--text-2); max-width: 68ch; }
.muted { color: var(--text-2); }
.hint { color: var(--text-3); font-size: var(--fs-sm); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 数据读数：琥珀，等宽，列对齐 */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--data);
  letter-spacing: -.01em;
}
.num-unit {
  font-family: var(--font-mono);
  font-size: .42em;
  color: var(--text-3);
  margin-left: .35em;
  letter-spacing: 0;
}

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .h2 { max-width: 24ch; }
.section-head .lede { margin-top: 12px; }

/* ---------------------------------------------------------------- 通用组件 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { border-color: var(--line-3); background: var(--bg-hover); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.btn--primary:hover { background: #2f6bea; border-color: #2f6bea; }

.btn--sm { padding: 8px 14px; font-size: var(--fs-sm); }
.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.arrow::after { content: "→"; font-family: var(--font-mono); }

/* 卡片：4px 圆角 + 细边框 + 左上角直角切线 */
.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; left: -1px; top: -1px;
  width: 10px; height: 10px;
  border-left: 1px solid var(--line-3);
  border-top: 1px solid var(--line-3);
}
.card:hover { border-color: var(--line-2); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-2);
  white-space: nowrap;
}
.tag--accent { color: var(--accent); border-color: var(--accent-line); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.note {
  border-left: 2px solid var(--line-2);
  padding: 8px 0 8px 14px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

/* 入场动效：一次性，极简 */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
/* 脚本被禁用时不隐藏内容 */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

input[type="range"] { accent-color: var(--accent); }

/* ---------------------------------------------------------------- 导航 */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.is-stuck {
  background: rgba(12, 15, 18, .88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 16px; height: 16px; flex: none;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.brand__name {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
}

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 14px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-hover); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 1px; background: var(--accent); margin-top: 5px;
}
.nav__cta { margin-left: 10px; }

.nav__burger {
  display: none; margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; width: 16px; height: 1px; background: var(--text);
  position: relative;
}
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--text);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }

.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter);
}
.drawer.is-open { display: flex; }
.drawer__top { display: flex; align-items: center; height: 40px; margin-bottom: 32px; }
.drawer__close {
  margin-left: auto; width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: transparent; cursor: pointer; color: var(--text); font-size: 18px; line-height: 1;
}
.drawer__link {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 20px;
}
.drawer__foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ---------------------------------------------------------------- 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg-inset);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer__list li { margin-bottom: 9px; font-size: var(--fs-sm); color: var(--text-2); }
.footer__list a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-family: var(--font-mono);
}
.footer__bottom a:hover { color: var(--text-2); }

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------------------------------------------------------- 首页 Hero */
.hero { padding: clamp(112px, 16vw, 168px) 0 clamp(56px, 8vw, 88px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--data); }

.hero__lede {
  margin-top: 22px;
  font-size: 16px;
  color: var(--text-2);
  max-width: 46ch;
}

.hero__meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.hero__meta span::before { content: "·"; margin-right: 8px; color: var(--line-3); }
.hero__meta span:first-child::before { content: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* 运行读数面板 */
.console {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.console__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.console__bar i {
  width: 7px; height: 7px; background: var(--line-2); flex: none;
}
.console__bar b { font-weight: 400; margin-left: auto; }
.console__rows { padding: 6px 0; }
.console__row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.console__row:last-child { border-bottom: 0; }
.console__row span:nth-child(2) { color: var(--text-2); flex: 1; }
.console__row span:last-child { color: var(--data); }
.console__dot {
  width: 6px; height: 6px; background: var(--ok); flex: none;
  border-radius: 50%;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.console__foot {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 数字看板 */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-bottom: 14px;
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--data);
}
.stat__value .num-unit { font-size: .34em; }
.stat__base {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-3);
}
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- 能力矩阵 */
.matrix {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}
.matrix table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.matrix th, .matrix td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  font-size: var(--fs-sm);
}
.matrix th:last-child, .matrix td:last-child { border-right: 0; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-2);
  background: var(--bg-inset);
  white-space: nowrap;
}
.matrix tbody th {
  font-weight: 400;
  color: var(--text);
  background: var(--bg-inset);
  white-space: nowrap;
}
.matrix__cell {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  cursor: pointer;
}
.matrix__cell:hover { text-decoration: underline; }
.matrix__none { color: var(--text-3); font-family: var(--font-mono); font-size: var(--fs-xs); }

/* ---------------------------------------------------------------- 案例卡片 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.case-card { display: flex; flex-direction: column; overflow: hidden; }
.case-card:hover { transform: translateY(-2px); }
.case-card__cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.case-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.case-card__title { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 12px 0 8px; }
.case-card__summary { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 18px; }
.case-card__badges {
  margin-top: auto;
  display: flex;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.case-card__badge { flex: 1; min-width: 0; padding-right: 12px; }
.case-card__badge + .case-card__badge { padding-left: 12px; border-left: 1px solid var(--line); }
.case-card__badge b {
  display: block;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--data);
  letter-spacing: -.01em;
}
.case-card__badge b .num-unit { font-size: 11px; }
.case-card__badge small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
}

/* ---------------------------------------------------------------- 交付流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 20px 28px;
  position: relative;
}
.step__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.step__name { font-size: var(--fs-body); font-weight: 600; margin-bottom: 8px; }
.step__desc { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.6; }
.step__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 14px;
  display: block;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 标签云 */
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud .tag { padding: 6px 12px; }

/* ---------------------------------------------------------------- CTA 横幅 */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-inset);
}
.band__inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
  padding: clamp(40px, 6vw, 64px) 0;
}
.band__text { max-width: 46ch; }

/* ---------------------------------------------------------------- 案例库 */
.page-head { padding: clamp(104px, 14vw, 140px) 0 clamp(32px, 5vw, 48px); }

.filters {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  gap: 16px;
}
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  min-width: 56px;
}
.chip {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.chip__n { opacity: .7; margin-left: 6px; }

.search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-inset);
  padding: 0 14px;
  min-width: 240px;
}
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 11px 0; font-size: var(--fs-sm);
}
.search input::placeholder { color: var(--text-3); }
.search__count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  white-space: nowrap;
}

.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 24px 0;
}
.results-bar__n {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.results-bar__n b { color: var(--data); font-weight: 500; }
.results-bar__sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
select {
  background: var(--bg-inset);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.applied { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.applied__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--accent-soft);
  cursor: pointer;
}
.applied__item span { color: var(--text-2); }

.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: clamp(40px, 7vw, 72px) 24px;
  text-align: center;
}
.empty__title { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 10px; }
.empty__hint { color: var(--text-2); font-size: var(--fs-sm); }

mark { background: var(--data-soft); color: var(--data); padding: 0 2px; }

/* ---------------------------------------------------------------- 案例详情 */
.detail-head { padding: clamp(104px, 14vw, 140px) 0 0; }

.crumb {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.crumb a:hover { color: var(--text-2); }
.crumb span::before { content: "/"; margin-right: 8px; color: var(--line-2); }

.detail-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 22ch;
  margin: 14px 0 14px;
}
.detail-lede { font-size: 17px; color: var(--text-2); max-width: 54ch; }

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 36px;
  overflow: hidden;
}
.badge { padding: 22px 20px; border-right: 1px solid var(--line); }
.badge:last-child { border-right: 0; }
.badge__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-bottom: 12px;
}
.badge__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1;
  color: var(--data);
  letter-spacing: -.02em;
}
.badge__value .num-unit { font-size: .38em; }
@media (max-width: 620px) {
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badge:nth-child(2n) { border-right: 0; }
  .badge:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: clamp(20px, 3vw, 32px);
}

.pain { display: grid; gap: 0; }
.pain__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pain__item:last-child { border-bottom: 0; }
.pain__now { font-size: var(--fs-body); }
.pain__impact { color: var(--text-2); font-size: var(--fs-sm); }
.pain__impact::before {
  content: "→"; font-family: var(--font-mono); color: var(--accent); margin-right: 8px;
}
@media (max-width: 640px) {
  .pain__item { grid-template-columns: 1fr; gap: 6px; }
}

.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--text-2);
}
.flow__node {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
}
.flow__arrow { color: var(--line-3); }

.decisions { display: grid; gap: 12px; margin-top: 20px; }
.decisions li {
  padding-left: 20px; position: relative;
  color: var(--text-2); font-size: var(--fs-sm);
}
.decisions li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; background: var(--accent);
}

/* 画廊 */
.gallery__stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-inset);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__stage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery__cap {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  background: var(--bg-raised);
}
.gallery__cap b { color: var(--text-3); font-weight: 400; }

.hotspot {
  position: absolute;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 1px solid var(--data);
  background: rgba(240, 180, 41, .18);
  cursor: pointer;
  padding: 0;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hotspot::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 50%; background: var(--data);
}
.hotspot:hover { transform: scale(1.25); }
.hotspot[aria-expanded="true"] {
  background: var(--data);
  box-shadow: 0 0 0 5px rgba(240, 180, 41, .18);
}

.hotspot-readout {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--data);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 16px 18px;
  min-height: 96px;
}
.hotspot-readout__title { font-size: var(--fs-body); font-weight: 600; margin-bottom: 6px; }
.hotspot-readout__desc { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 10px; }
.hotspot-readout__value {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--data);
}
.hotspot-readout__value::before { content: "价值 / "; color: var(--text-3); }

.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex: none; width: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-inset);
  padding: 0; cursor: pointer; overflow: hidden;
}
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--accent); }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 8, 10, .94);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: 1200px; width: 100%; }
.lightbox__stage img { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); }
.lightbox__cap {
  margin-top: 12px; font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--text-2); display: flex; gap: 12px; align-items: center;
}
.lightbox__nav { display: flex; gap: 8px; margin-left: auto; }
.lightbox__btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: transparent; color: var(--text); cursor: pointer;
}
.lightbox__btn:hover { background: var(--bg-hover); }
.lightbox__close { position: absolute; top: 20px; right: 24px; }

/* 前后对比 */
.compare { user-select: none; }
.compare__stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-inset);
}
.compare__stage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.compare__after {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
}
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 1px; background: var(--accent);
}
.compare__line::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid var(--accent); border-radius: 50%;
  background: rgba(61, 123, 255, .18);
}
.compare__tag {
  position: absolute; top: 12px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px; border-radius: 2px;
  background: rgba(12, 15, 18, .8); border: 1px solid var(--line-2);
  color: var(--text-2);
}
.compare__tag--l { left: 12px; }
.compare__tag--r { right: 12px; }
.compare__range { width: 100%; margin-top: 14px; }

/* 功能清单 */
.modules { border-top: 1px solid var(--line); }
.module {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.module__name { font-size: var(--fs-body); font-weight: 600; }
.module__desc { font-size: var(--fs-sm); color: var(--text-2); }
.module__rule {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 8px;
}
@media (max-width: 640px) { .module { grid-template-columns: 1fr; gap: 8px; } }

/* 价值量化 */
.value-table { width: 100%; border-collapse: collapse; }
.value-table th, .value-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: var(--fs-sm);
  vertical-align: top;
}
.value-table thead th {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--text-3); font-weight: 400;
  border-bottom-color: var(--line-2);
}
.value-table td.v {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--data); white-space: nowrap;
}
.value-table td.b {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text-3); white-space: nowrap;
}
.value-table td.unit {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3);
}
.value-table td.period { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

.bars { display: grid; gap: 20px; }
.bar-row__head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px;
}
.bar-row__name { font-size: var(--fs-sm); }
.bar-row__period { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: auto; }
.bar-line { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.bar-line__tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); width: 48px; flex: none; }
.bar-line__track { flex: 1; height: 10px; background: var(--bg-inset); border: 1px solid var(--line); }
.bar-line__fill { height: 100%; background: var(--line-2); }
.bar-line__fill--after { background: var(--data); }
.bar-line__val { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2); width: 72px; text-align: right; flex: none; }

.stack { display: flex; flex-wrap: wrap; gap: 8px; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 表单 */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2);
}
.field > label span { color: var(--danger); margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field__error {
  font-size: var(--fs-xs); color: var(--danger); display: none;
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .field__error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-feedback {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  display: none;
}
.form-feedback.is-ok {
  display: block;
  border: 1px solid rgba(53, 192, 138, .4);
  background: rgba(53, 192, 138, .08);
  color: var(--ok);
}
.form-feedback.is-err {
  display: block;
  border: 1px solid rgba(229, 72, 77, .4);
  background: rgba(229, 72, 77, .08);
  color: var(--danger);
}

/* ---------------------------------------------------------------- 服务/关于 */
.plain-list { display: grid; gap: 14px; }
.plain-list li { padding-left: 20px; position: relative; color: var(--text-2); font-size: var(--fs-sm); }
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; background: var(--accent);
}

.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.mode { padding: 24px; }
.mode__name { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 10px; }
.mode__desc { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 16px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 18px 0; cursor: pointer; font-size: var(--fs-body);
  list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--text-3);
}
.faq details[open] summary::after { content: "−"; }
.faq__body { padding: 0 0 20px; color: var(--text-2); font-size: var(--fs-sm); max-width: 68ch; }

.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 20px; font-size: var(--fs-sm); }
.kv dt { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); }
.kv dd { margin: 0; color: var(--text-2); }

/* ==========================================================================
   系统架构图
   分层条 + 可点开的模块。刻意做成「图纸」而不是「流程图」：
   每层左侧标 L1–L4，层内模块等宽排列，靠边框亮灭表达选中。
   ========================================================================== */

.section--arch { background: var(--bg-inset); }

.arch { display: grid; gap: 14px; margin-top: 40px; }

.arch-layer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
}

.arch-layer__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent);
}
.arch-layer__idx {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  padding: 1px 6px;
  flex: none;
}
.arch-layer__name { font-size: var(--fs-body); font-weight: 600; }
.arch-layer__role {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-left: auto;
}

.arch-layer__nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
}

.arch-node {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  padding: 16px 18px;
  border: 0;
  border-left: 2px solid transparent;
  background: var(--bg-raised);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.arch-node:hover { background: var(--bg-hover); }
.arch-node[aria-expanded="true"] {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.arch-node__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.arch-node__desc {
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.55;
}

.arch-readout {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 18px 20px;
  min-height: 112px;
}
.arch-readout__title { font-size: var(--fs-body); font-weight: 600; margin-bottom: 6px; }
.arch-readout__layer {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: 12px;
}
.arch-readout__value { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.7; }

/* ==========================================================================
   设计思路思维导图
   目标 → 四类分支 → 条目。分支用左侧色条区分性质，
   不用连线，靠分组本身表达层级。
   ========================================================================== */

.mm { margin-top: 40px; }

.mm-goal {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-raised);
  margin-bottom: 22px;
}
.mm-goal__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  padding: 2px 8px;
  flex: none;
}
.mm-goal__text {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.mm-branch {
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 18px 20px 6px;
}
.mm-branch--danger { border-top-color: var(--danger); }
.mm-branch--data   { border-top-color: var(--data); }
.mm-branch--accent { border-top-color: var(--accent); }
.mm-branch--gray   { border-top-color: var(--line-3); }

.mm-branch__head {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.mm-list { display: grid; gap: 0; }
.mm-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.mm-item:last-child { border-bottom: 0; }
.mm-item__label {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.5;
}
.mm-item__label::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--text-3);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.mm-item__desc {
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.65;
  padding-left: 12px;
}

/* 设计要点：一句话 + 为什么 */
.dpoints {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dpoint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0;
  background: var(--bg-raised);
}
.dpoint__point {
  padding: 20px 22px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--line);
}
.dpoint__why {
  padding: 20px 22px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.75;
}
@media (max-width: 760px) {
  .dpoint { grid-template-columns: 1fr; }
  .dpoint__point { border-right: 0; border-bottom: 1px solid var(--line); }
  .arch-layer__role { margin-left: 0; width: 100%; }
}

/* 画廊：这张图在证明什么 */
.gallery__proves {
  display: none;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.gallery__proves:not(:empty) { display: flex; }
.gallery__proves-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--data);
  border: 1px solid rgba(240, 180, 41, .3);
  border-radius: 2px;
  padding: 1px 6px;
  flex: none;
}
