.page-home {
  --accent: var(--amber);
  background: var(--ink-950);
  color: var(--silver-200);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.page-home .home-layout {
  display: grid;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

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

/* ---------- 左侧章节索引轨 ---------- */
.page-home .home-rail {
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink-700);
  min-width: 0;
}

.page-home .home-rail__label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--silver-500);
}

.page-home .home-rail__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  min-width: 0;
}

.page-home .home-rail__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  font-size: 0.78rem;
  color: var(--silver-500);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.page-home .home-rail__list a:hover,
.page-home .home-rail__list a:focus-visible {
  color: var(--silver-200);
  border-color: var(--accent);
  background: var(--ink-800);
}

.page-home .home-rail__list .mono {
  font-size: 0.68rem;
  color: var(--accent);
}

@media (min-width: 1000px) {
  .page-home .home-rail {
    position: sticky;
    top: 6.5rem;
    border-top: 0;
    border-left: 1px solid var(--ink-700);
    padding: 0.25rem 0 0.25rem 1rem;
  }

  .page-home .home-rail__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .home-rail__list a {
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    padding: 0.5rem 0;
    white-space: normal;
    background: transparent;
  }

  .page-home .home-rail__list a:hover,
  .page-home .home-rail__list a:focus-visible {
    background: transparent;
    border-bottom-color: var(--accent);
    color: #ffffff;
  }
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.6rem;
  font-size: 0.8rem;
  color: var(--silver-200);
  background: rgba(18, 33, 58, 0.74);
  border: 1px solid var(--ink-700);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  backdrop-filter: blur(6px);
}

.page-home .home-status strong {
  color: #ffffff;
  font-weight: 600;
}

.page-home .home-status__sep {
  width: 1px;
  height: 13px;
  background: var(--ink-700);
}

.page-home .home-hero__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
}

.page-home .home-hero h1 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.95rem, 5.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.page-home .home-hero__lede {
  margin: 1rem 0 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: var(--silver-200);
}

.page-home .home-preview {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-700);
}

.page-home .home-preview li {
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-preview a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.85rem 0.2rem;
  text-decoration: none;
  color: var(--silver-200);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    padding-left 0.18s var(--ease);
}

.page-home .home-preview a:hover,
.page-home .home-preview a:focus-visible {
  background: var(--ink-800);
  padding-left: 0.65rem;
  color: #ffffff;
}

.page-home .home-preview__no {
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.page-home .home-preview__txt {
  display: block;
  min-width: 0;
}

.page-home .home-preview__txt strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.page-home .home-preview__txt span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--silver-500);
}

.page-home .home-preview__go {
  font-size: 0.8rem;
  color: var(--silver-500);
}

.page-home .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-home .home-hero__media {
  position: relative;
  margin: 0;
  padding: 0 12px 12px 0;
  min-width: 0;
}

.page-home .home-hero__media::before {
  content: "";
  position: absolute;
  inset: 12px 0 0 12px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  opacity: 0.55;
  pointer-events: none;
}

.page-home .home-hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  object-fit: cover;
}

.page-home .home-cap {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--silver-500);
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--ink-700);
  min-width: 0;
}

.page-home .home-section:last-of-type {
  border-bottom: 0;
}

.page-home .home-head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-home .home-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.page-home .home-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.page-home .home-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-home .home-head p {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--silver-200);
}

.page-home .home-note {
  margin: 1.25rem 0 0;
  max-width: 68ch;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--silver-500);
}

.page-home .home-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 230, 214, 0.4);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.page-home .home-note a:hover,
.page-home .home-note a:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ---------- 变更摘要 ---------- */
.page-home .home-changes__band {
  position: relative;
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--ink-1000);
}

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

.page-home .home-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--ink-700);
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  overflow: hidden;
}

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

.page-home .home-meta > div {
  background: var(--ink-800);
  padding: 0.85rem 1rem;
  min-width: 0;
}

.page-home .home-meta dt {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--silver-500);
}

.page-home .home-meta dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--silver-200);
  word-break: break-word;
}

.page-home .home-details {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.page-home .home-details details {
  border: 1px solid var(--ink-700);
  border-left: 2px solid transparent;
  border-radius: var(--r);
  background: rgba(18, 33, 58, 0.5);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .home-details details[open] {
  border-left-color: var(--accent);
  background: var(--ink-800);
}

.page-home .home-details summary {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--silver-200);
  transition: color 0.18s var(--ease);
}

.page-home .home-details summary::-webkit-details-marker {
  display: none;
}

.page-home .home-details summary .mono {
  color: var(--accent);
  font-size: 0.78rem;
  flex: none;
}

.page-home .home-details summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  flex: none;
}

.page-home .home-details details[open] summary::after {
  content: "−";
}

.page-home .home-details summary:hover,
.page-home .home-details summary:focus-visible {
  color: #ffffff;
}

.page-home .home-details__body {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--silver-200);
}

/* ---------- 三条资料路径 ---------- */
.page-home .home-paths {
  display: grid;
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-path {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 0.6rem;
  border-top: 1px solid var(--ink-700);
  transition: background-color 0.18s var(--ease);
}

.page-home .home-path:hover {
  background: rgba(27, 45, 74, 0.36);
}

.page-home .home-path__idx {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-700);
}

.page-home .home-path__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.page-home .home-path__body p {
  margin: 0;
  max-width: 54ch;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--silver-200);
}

.page-home .home-path__go .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 820px) {
  .page-home .home-path {
    grid-template-columns: 108px minmax(0, 1fr) 168px;
    align-items: start;
    gap: 1.25rem;
    padding: 1.5rem 0.85rem;
  }

  .page-home .home-path:nth-child(2) {
    grid-template-columns: 168px minmax(0, 1fr) 168px;
  }

  .page-home .home-path:nth-child(3) {
    grid-template-columns: 134px minmax(0, 1fr) 168px;
  }

  .page-home .home-path__go {
    justify-self: end;
  }

  .page-home .home-path__go .btn {
    width: auto;
  }
}

/* ---------- 时间带 ---------- */
.page-home .home-timeline {
  background: var(--ink-1000);
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  padding: clamp(1rem, 3vw, 1.75rem);
}

.page-home .home-timeline__scroll {
  overflow-x: auto;
}

.page-home .home-timeline__scroll svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.page-home .tl-line {
  stroke: var(--ink-700);
  stroke-width: 2;
}

.page-home .tl-line--live {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  opacity: 0.85;
}

.page-home .tl-node circle {
  fill: var(--ink-950);
  stroke: var(--accent);
  stroke-width: 2;
}

.page-home .tl-node--now circle {
  fill: var(--accent);
  stroke: var(--accent);
}

.page-home .tl-year {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  fill: var(--silver-200);
}

.page-home .tl-node--now .tl-year {
  fill: var(--accent);
}

.page-home .tl-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  fill: #ffffff;
}

.page-home .tl-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--silver-500);
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.25rem;
  background: var(--ink-700);
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  overflow: hidden;
}

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

.page-home .home-stat {
  background: var(--ink-950);
  padding: 1rem 1.05rem;
  min-width: 0;
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.page-home .home-stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--silver-500);
}

/* ---------- 旧版资料对照 ---------- */
.page-home .home-archive {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 880px) {
  .page-home .home-archive {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.page-home .home-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--silver-200);
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--ink-700);
}

.page-home .home-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-steps b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.15rem;
}

.page-home .home-archive__media {
  margin: 0;
  min-width: 0;
}

.page-home .home-archive__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  object-fit: cover;
}

/* ---------- 服务与联系 ---------- */
.page-home .home-help {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 880px) {
  .page-home .home-help {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.page-home .home-help__media {
  margin: 0;
  min-width: 0;
}

.page-home .home-help__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  object-fit: cover;
}

.page-home .home-contact {
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--ink-700);
  border: 1px solid var(--ink-700);
  border-radius: var(--r);
  overflow: hidden;
}

.page-home .home-contact__row {
  background: var(--ink-800);
  padding: 0.85rem 1rem;
  min-width: 0;
}

.page-home .home-contact dt {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--silver-500);
}

.page-home .home-contact dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--silver-200);
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-rail__list a,
  .page-home .home-preview a,
  .page-home .home-path,
  .page-home .home-details details,
  .page-home .home-details summary,
  .page-home .home-note a {
    transition: none;
  }
}
