.page-home {
  --home-card-gap: 14px;
  --home-node-w: 232px;
  --home-entry-line: rgba(215, 220, 227, 0.16);
}

/* ---------- 首屏分栏信息板 ---------- */
.page-home .home-hero {
  padding-top: clamp(30px, 5vw, 58px);
  padding-bottom: clamp(38px, 6vw, 68px);
}

.page-home .home-board {
  display: grid;
  gap: 30px;
}

@media (min-width: 1000px) {
  .page-home .home-board {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }
}

.page-home .home-board__left {
  min-width: 0;
}

.page-home .home-hero .eyebrow,
.page-home .home-hero .lede {
  color: var(--silver);
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 12px 0 16px;
  max-width: 18ch;
}

.page-home .home-searcher {
  margin-top: 22px;
}

.page-home .home-searcher .searcher__inner:focus-within {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.page-home .home-searcher .searcher__hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

/* 高频入口列表 */
.page-home .entry-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--home-entry-line);
}

.page-home .entry {
  border-bottom: 1px solid var(--home-entry-line);
}

.page-home .entry__link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 11px 6px 11px 2px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.page-home .entry__link:hover,
.page-home .entry__link:focus-visible {
  background-color: rgba(255, 90, 31, 0.09);
  padding-left: 8px;
}

.page-home .entry__idx {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .entry__body {
  min-width: 0;
}

.page-home .entry__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .entry__desc {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dim);
}

.page-home .entry__go {
  font-family: var(--font-mono);
  color: var(--orange);
  opacity: 0.45;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-home .entry__link:hover .entry__go {
  opacity: 1;
  transform: translateX(3px);
}

.page-home .home-quicknote {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 40ch;
}

/* 右侧速览卡组 */
.page-home .home-cards {
  display: grid;
  gap: var(--home-card-gap);
  min-width: 0;
}

.page-home .home-cards__visual {
  margin: 0;
}

.page-home .qcard {
  position: relative;
  padding: 20px 18px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .qcard:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.page-home .qcard__tag {
  position: absolute;
  top: -11px;
  right: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  white-space: nowrap;
}

.page-home .qcard__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.page-home .qcard__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
}

.page-home .qcard__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.page-home .qcard__more:hover,
.page-home .qcard__more:focus-visible {
  border-bottom-color: var(--cyan);
}

@media (min-width: 1000px) {
  .page-home .home-cards {
    margin-top: 6px;
  }

  .page-home .qcard--2 {
    margin-left: 20px;
  }

  .page-home .qcard--3 {
    margin-left: 40px;
  }
}

/* ---------- 节点状态带 ---------- */
.page-home .home-nodes {
  position: relative;
  background: var(--ink-3);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(34px, 5vw, 56px);
  padding-bottom: clamp(34px, 5vw, 56px);
  overflow: hidden;
}

.page-home .home-nodes .section__head {
  margin-bottom: 22px;
}

.page-home .home-nodes .section__head p {
  color: var(--silver);
}

.page-home .home-nodes__rail {
  position: relative;
}

.page-home .home-nodes__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .home-nodes__track {
  position: relative;
  gap: 0;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.page-home .node {
  flex: 0 0 auto;
  width: var(--home-node-w);
  padding: 14px 18px 16px;
  border-left: 1px solid var(--line-dark);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(215, 220, 227, 0.06) 0 1px,
    transparent 1px 24px
  );
}

.page-home .node:last-child {
  border-right: 1px solid var(--line-dark);
}

.page-home .node__region {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--paper);
}

.page-home .node__count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--dim);
}

.page-home .node__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .node__state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .node__log {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim);
}

/* ---------- 大字摘要句 ---------- */
.page-home .home-pull {
  padding-top: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.page-home .home-pull__line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page-home .home-pull__line span {
  display: block;
  margin-left: clamp(24px, 8vw, 120px);
  color: var(--orange);
}

.page-home .home-pull__sub {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- 四宫格说明 ---------- */
.page-home .home-why .section__head {
  margin-bottom: 24px;
}

.page-home .why-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (min-width: 640px) {
  .page-home .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-home .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .why {
  padding: 20px 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  min-width: 0;
}

.page-home .why__idx {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--orange-deep);
}

.page-home .why__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px;
}

.page-home .why__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- 客户与场景 ---------- */
.page-home .home-scenes {
  background: var(--paper-2);
}

.page-home .home-scenes .section__head {
  margin-bottom: 22px;
}

.page-home .dist-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 28px;
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

@media (min-width: 700px) {
  .page-home .dist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .page-home .dist-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 20px;
  }
}

.page-home .dist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.page-home .dist__label {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
}

.page-home .dist__val {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
}

.page-home .dist__track {
  grid-column: 1 / -1;
  margin: 0;
  height: 3px;
  background: rgba(17, 19, 24, 0.1);
  overflow: hidden;
}

.page-home .dist__bar {
  display: block;
  height: 100%;
  background: var(--orange);
}

.page-home .dist:nth-child(1) .dist__bar { width: 34%; }
.page-home .dist:nth-child(2) .dist__bar { width: 22%; }
.page-home .dist:nth-child(3) .dist__bar { width: 17%; }
.page-home .dist:nth-child(4) .dist__bar { width: 15%; }
.page-home .dist:nth-child(5) .dist__bar { width: 12%; }

.page-home .scene-grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 900px) {
  .page-home .scene-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 34px;
    align-items: start;
  }
}

.page-home .scene-grid__visual {
  margin: 0;
}

.page-home .scene-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-home .scene {
  padding: 16px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--r);
}

.page-home .scene__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 7px;
}

.page-home .scene__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.page-home .scene__fit {
  display: inline-block;
  margin: 12px 0 0;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--orange-deep);
  border: 1px solid currentColor;
  border-radius: var(--r);
}

/* ---------- 最近更新索引 ---------- */
.page-home .home-updates {
  padding-bottom: clamp(0px, 2vw, 20px);
}

.page-home .home-updates .section__head {
  margin-bottom: 20px;
}

.page-home .home-updates .section__head p {
  color: var(--silver);
}

.page-home .update-list {
  border-top: 1px solid var(--line-dark);
}

.page-home .update {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 6px 14px 2px;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.16s ease, padding-left 0.16s ease;
}

.page-home .update:hover,
.page-home .update:focus-visible {
  background-color: rgba(34, 211, 238, 0.07);
  padding-left: 10px;
}

@media (min-width: 760px) {
  .page-home .update {
    grid-template-columns: 64px 88px minmax(0, 1fr) 20px;
    gap: 14px;
    padding: 15px 8px 15px 2px;
  }
}

.page-home .update__when,
.page-home .update__cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-home .update__when {
  color: var(--orange);
  font-weight: 700;
}

.page-home .update__cat {
  color: var(--cyan);
}

.page-home .update__title {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--paper);
}

.page-home .update__go {
  display: none;
  font-family: var(--font-mono);
  color: var(--orange);
  transition: transform 0.16s ease;
}

@media (min-width: 760px) {
  .page-home .update__go {
    display: block;
  }
}

.page-home .update:hover .update__go {
  transform: translateX(4px);
}

.page-home .home-closing {
  margin: clamp(28px, 5vw, 52px) 0 0;
  position: relative;
  border-top: 1px solid var(--line-dark);
}

.page-home .home-closing img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.5;
}

/* ---------- 窄屏收尾 ---------- */
@media (max-width: 480px) {
  .page-home .entry__link {
    grid-template-columns: 26px minmax(0, 1fr) 14px;
    gap: 9px;
  }

  .page-home .node {
    width: 200px;
    padding: 12px 14px 14px;
  }

  .page-home .qcard {
    padding: 18px 14px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry__link,
  .page-home .qcard,
  .page-home .update,
  .page-home .entry__go {
    transition: none;
  }

  .page-home .qcard:hover {
    transform: none;
  }
}
