.page-home {
  --rail-w: 232px;
  position: relative;
  padding: 0 0 56px;
  overflow-x: clip;
}

.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}

.page-home > * {
  position: relative;
  z-index: 1;
}

.page-home .link-inline {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.page-home .link-inline:hover,
.page-home .link-inline:focus-visible {
  color: var(--paper-50);
}

/* ---------- 面包屑 ---------- */
.page-home__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: calc(var(--header-h) + 16px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist-400);
}

.page-home__crumbs [aria-current="page"] {
  color: var(--cyan-200);
}

/* ---------- 首屏框景 ---------- */
.page-home__hero {
  margin-top: 12px;
}

.hero-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-950);
  padding: 26px 18px 30px;
}

.hero-frame__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-frame__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 19, 33, 0.5) 0%, rgba(6, 19, 33, 0.88) 58%, rgba(6, 19, 33, 0.97) 100%);
}

.hero-frame__inner {
  display: grid;
  gap: 26px;
}

.hero-copy .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan-200);
  margin: 0 0 12px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--paper-50);
}

.hero-copy .lede {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-copy);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--mist-400);
}

/* ---------- 主比分焦点 ---------- */
.score-card {
  position: relative;
  background: linear-gradient(160deg, var(--ink-800) 0%, rgba(14, 36, 64, 0.72) 100%);
  border: 1px solid var(--ink-600);
  border-left: 3px solid var(--hot);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-panel);
}

.score-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.score-card__stage {
  font-size: 13px;
  color: var(--mist-400);
  letter-spacing: 0.02em;
}

.score-card__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 52px;
  line-height: 1;
  color: var(--paper-50);
}

.score-card__sep {
  color: var(--hot);
  font-size: 40px;
}

.score-card__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--mist-400);
}

.score-card__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.score-card__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--ink-600);
  border-radius: 8px;
  font-size: 13px;
  color: var(--body-copy);
}

.score-card__list b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--cyan-200);
}

.score-card__drawer {
  margin-top: 4px;
}

.score-card__drawer .drawer__summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
}

.score-card__drawer .drawer__body p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist-400);
}

/* ---------- 主体骨架 ---------- */
.page-home__body .grid--rail {
  display: block;
}

.ph-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 4;
  margin-bottom: 14px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, var(--ink-950) 78%, rgba(6, 19, 33, 0));
}

.ph-rail__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist-400);
}

.ph-rail nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ph-rail nav::-webkit-scrollbar {
  display: none;
}

.ph-rail .rail__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--ink-600);
  border-radius: 999px;
  font-size: 13px;
  color: var(--mist-400);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ph-rail .rail__item .rail__code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-600);
}

.ph-rail .rail__item:hover,
.ph-rail .rail__item:focus-visible {
  border-color: var(--accent);
  color: var(--paper-50);
}

.ph-rail .rail__item[aria-current="true"] {
  border-color: var(--accent);
  color: var(--paper-50);
  background: rgba(44, 230, 210, 0.09);
}

.ph-rail .rail__item[aria-current="true"] .rail__code {
  color: var(--accent);
}

/* ---------- 堆叠章节 ---------- */
.ph-sec {
  position: relative;
  padding: 26px 0 30px;
  border-top: 1px solid var(--ink-600);
}

.ph-sec__num {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.ph-sec__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--paper-50);
}

.ph-sec__lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-copy);
  max-width: 62ch;
}

/* ---------- 三层路径 ---------- */
.path-grid {
  display: grid;
  gap: 22px;
}

.path-tier {
  position: relative;
  margin-top: -1px;
  padding: 13px 14px 14px;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.path-tier:first-child {
  margin-top: 0;
}

.path-tier:hover,
.path-tier:focus-within {
  border-color: var(--accent);
  transform: translateX(4px);
  outline: none;
}

.path-tier:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.path-tier__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.path-tier__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-600);
}

.path-tier:hover .path-tier__code,
.path-tier:focus-within .path-tier__code {
  color: var(--accent);
}

.path-tier__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--paper-50);
}

.path-tier__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--mist-400);
}

.path-tier__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s var(--ease), margin-top 0.28s var(--ease);
}

.path-tier:hover .path-tier__list,
.path-tier:focus-within .path-tier__list,
.path-tier--open .path-tier__list {
  max-height: 360px;
  margin-top: 12px;
}

.path-tier__list li {
  padding: 7px 10px;
  margin-bottom: 6px;
  border-left: 2px solid var(--ink-600);
  font-size: 13px;
  line-height: 1.6;
  color: var(--body-copy);
}

.path-tier--open .path-tier__list li {
  border-left-color: var(--hot);
}

.path-demo__foot {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist-400);
}

.path-figure {
  margin: 0;
}

/* ---------- 版本对照 ---------- */
.pace-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.pace-row {
  padding: 14px 14px 16px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.pace-row--now {
  border-color: var(--hot);
}

.pace-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
}

.pace-row__label {
  font-size: 13px;
  color: var(--mist-400);
}

.pace-row__val {
  margin-left: auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  line-height: 1;
  color: var(--paper-50);
}

.pace-row__val em {
  font-style: normal;
  font-size: 13px;
  color: var(--mist-400);
  margin-left: 3px;
}

.pace-bar {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: rgba(27, 58, 94, 0.55);
  overflow: hidden;
}

.pace-bar__fill {
  display: block;
  height: 100%;
  border-radius: 6px;
}

.pace-bar__fill--old {
  width: 100%;
  background: linear-gradient(90deg, #16304f 0%, #2c5182 100%);
}

.pace-bar__fill--new {
  width: 42%;
  background: var(--grad-key);
}

.pace-ticks {
  margin-top: 16px;
}

.pace-compare__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist-400);
}

.pace-figure {
  margin: 0;
}

/* ---------- 信任短句 ---------- */
.trust-block {
  margin-top: 26px;
  padding: 18px 16px;
  border: 1px solid var(--ink-600);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(14, 36, 64, 0.6);
}

.trust-block__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--paper-50);
  max-width: 60ch;
}

.trust-ticks {
  margin: 0;
}

/* ---------- 状态标记 ---------- */
.status-grid {
  display: grid;
  gap: 14px;
}

.status-card {
  padding: 16px;
  border: 1px solid var(--ink-600);
  border-top: 3px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.status-card--live {
  border-top-color: var(--cyan-400);
}

.status-card--hot {
  border-top-color: var(--orange-500);
}

.status-card--done {
  border-top-color: var(--paper-50);
}

.status-card__swatch {
  width: 34px;
  height: 6px;
  border-radius: 3px;
  margin: 0 0 12px;
}

.status-card--live .status-card__swatch {
  background: var(--cyan-400);
}

.status-card--hot .status-card__swatch {
  background: var(--orange-500);
}

.status-card--done .status-card__swatch {
  background: var(--paper-50);
}

.status-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--paper-50);
}

.status-card p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--body-copy);
}

.status-note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--ink-600);
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist-400);
}

/* ---------- 网络与适配 ---------- */
.net-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-950);
}

.net-panel__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.net-panel__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 19, 33, 0.72) 0%, rgba(6, 19, 33, 0.94) 70%);
}

.net-panel__inner {
  padding: 22px 16px 24px;
}

.net-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.net-stats .stat {
  padding: 12px 12px 14px;
  border: 1px solid var(--ink-600);
  border-radius: 8px;
  background: rgba(14, 36, 64, 0.72);
}

.net-stats .stat__value {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  line-height: 1;
  color: var(--hot);
}

.net-stats .stat__value em {
  font-style: normal;
  font-size: 14px;
  margin-left: 2px;
}

.net-stats .stat__label {
  margin: 0;
  font-size: 12px;
  color: var(--mist-400);
  letter-spacing: 0.02em;
}

.check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--body-copy);
}

.check-item__head b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  color: var(--cyan-200);
}

.check-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-400), rgba(44, 230, 210, 0.15));
}

.check-bar--a { width: 40%; }
.check-bar--b { width: 28%; }
.check-bar--c { width: 19%; }
.check-bar--d { width: 14%; }

.net-panel__foot {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--mist-400);
}

/* ---------- 提问入口 ---------- */
.ask-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.ask-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-800);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ask-card:hover,
.ask-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.ask-card .card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--paper-50);
}

.ask-card .card__meta {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--body-copy);
}

.ask-card .card__foot {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--hot);
}

.ask-note {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist-400);
}

.cta-band {
  display: grid;
  gap: 16px;
  padding: 20px 18px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(44, 230, 210, 0.14) 0%, rgba(255, 122, 46, 0.16) 100%);
}

.cta-band__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper-50);
}

.cta-band .btn {
  justify-self: start;
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 700px) {
  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-frame {
    padding: 36px 32px 40px;
  }

  .ph-sec__title {
    font-size: 26px;
  }

  .status-grid,
  .ask-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid,
  .pace-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .net-panel__inner {
    padding: 30px 28px 32px;
  }

  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .cta-band .btn {
    justify-self: end;
  }
}

@media (min-width: 1000px) {
  .page-home__body .grid--rail {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .ph-rail {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    margin-bottom: 0;
    padding: 0 0 0 0;
    background: none;
  }

  .ph-rail nav {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
  }

  .ph-rail .rail__item {
    width: 100%;
    justify-content: flex-start;
    padding: 9px 12px;
    border: none;
    border-left: 2px solid var(--ink-600);
    border-radius: 0;
    background: none;
  }

  .ph-rail .rail__item:hover,
  .ph-rail .rail__item:focus-visible {
    border-left-color: var(--accent);
    background: rgba(44, 230, 210, 0.06);
  }

  .ph-rail .rail__item[aria-current="true"] {
    border-left-color: var(--accent);
    background: rgba(44, 230, 210, 0.09);
  }

  .ph-sec {
    padding: 34px 0 38px 72px;
  }

  .ph-sec__num {
    position: absolute;
    left: 0;
    top: 40px;
    margin: 0;
    font-size: 15px;
  }

  .hero-frame {
    padding: 48px 44px 52px;
  }

  .hero-frame__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .page-home .bleed-right {
    margin-right: calc(var(--bleed) * -1);
  }

  .status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ask-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
  }
}

@media (min-width: 1180px) {
  .ph-sec {
    padding-left: 88px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    animation: none !important;
  }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</｜｜DSML｜｜ calls>
