.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 6px;
}

h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

section + section {
  margin-top: 36px;
}

/* 节点页头 */
.node-head {
  margin-bottom: 28px;
}

.node-head h1 {
  font-size: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.lead {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
  max-width: 820px;
}

/* 卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card,
.stage {
  display: block;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.stage:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card h3 {
  font-size: 16.5px;
}

.card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.card__kind {
  flex: none;
  font-size: 12px;
  color: var(--faint);
}

.card__children {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
}

.card__children li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__flags {
  margin-top: 10px;
}

/* 总览 */
.hero {
  padding: 8px 0 8px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 32px;
}

.hero__sub {
  margin-top: 8px;
  font-size: 17px;
  color: var(--muted);
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0;
  align-items: stretch;
}

.pipeline__col {
  display: flex;
  align-items: center;
}

.pipeline__arrow {
  flex: none;
  width: 36px;
  text-align: center;
  font-size: 22px;
  color: var(--faint);
}

.pipeline__stack {
  flex: 1;
  display: grid;
  gap: 12px;
  height: 100%;
  align-content: center;
}

.pipeline__stack.is-parallel {
  position: relative;
  padding: 22px 10px 10px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
}

.pipeline__label {
  position: absolute;
  top: 2px;
  left: 12px;
  font-size: 12px;
  color: var(--faint);
}

.stage__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.stage h3 {
  font-size: 18px;
}

.stage__summary {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage__children {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.stage__children li {
  font-size: 12.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.principles {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin-bottom: 12px;
}

.legend {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 14px;
  align-items: center;
  margin: 0;
  font-size: 14px;
}

.legend dd {
  margin: 0;
  color: var(--muted);
}

/* 叶子页 */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid;
}

.side + .side {
  margin-top: 0;
}

.side--agent {
  border-top-color: var(--agent);
}

.side--embodied {
  border-top-color: var(--embodied);
}

.side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.side__head h2 {
  margin: 0;
  font-size: 16px;
}

.side--agent .side__head h2 {
  color: var(--agent);
}

.side--embodied .side__head h2 {
  color: var(--embodied);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 32px;
  align-items: stretch;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.step:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.step.is-empty {
  visibility: hidden;
}

.step--up {
  justify-content: center;
  color: var(--muted);
}

.step--next {
  text-align: right;
}

.step__label {
  font-size: 12px;
  color: var(--faint);
}

.step__title {
  font-weight: 600;
}

/* 检查清单 */
.check-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.check-group + .check-group {
  margin-top: 18px;
}

.check-group h2 {
  display: grid;
  grid-template-columns: max-content minmax(120px, 260px);
  align-items: center;
  gap: 16px;
}

.check-group h2 .progress {
  margin: 0;
}

.check-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.check-table th {
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--faint);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.check-table td {
  padding: 8px;
  border-bottom: 1px solid var(--surface-2);
  vertical-align: middle;
}

.check-table tr:last-child td {
  border-bottom: 0;
}

.check-table {
  table-layout: fixed;
}

.check-table th:nth-child(1) {
  width: 26%;
}

.check-table th:nth-child(3),
.check-table th:nth-child(4) {
  width: 110px;
}

.ok {
  color: var(--ready);
  font-size: 13px;
}

/* 参考文献 */
.refs {
  list-style: none;
  display: grid;
  gap: 4px;
}

.refs li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}

.refs li:nth-child(odd) {
  background: var(--surface);
}

.refs li.is-focus {
  outline: 2px solid var(--accent);
  background: var(--accent-soft);
}

.refs__id {
  font-family: var(--mono);
  color: var(--faint);
}

.refs__used {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.refs__used a {
  margin-right: 10px;
}

@media (max-width: 1100px) {
  .pipeline {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pipeline__col {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline__arrow {
    width: auto;
    transform: rotate(90deg);
  }

  .compare,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step--up {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .check-table td:first-child,
  .check-table th:first-child {
    display: none;
  }
}
