.page-home {
  --home-hair: 1px solid var(--line-700);
  --home-radius: var(--radius-md);
  display: block;
}

/* ---------- 框景首屏 ---------- */
.page-home .home-hero {
  position: relative;
  margin: 16px 14px 0;
  padding: 30px 20px 26px;
  border: var(--home-hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #0d2340 0%, #061020 74%);
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 32, 0.42) 0%, rgba(6, 16, 32, 0.95) 76%);
}

.page-home .hero-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  border: 1px solid var(--mint-400);
  opacity: 0.85;
  pointer-events: none;
}

.page-home .hero-corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.page-home .hero-corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.page-home .hero-corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.page-home .hero-corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  max-width: 62rem;
}

.page-home .home-hero__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-400);
}

.page-home .home-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 7.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--slate-100);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--slate-400);
}

.page-home .home-hero__stamp {
  position: relative;
  z-index: 2;
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--slate-400);
}

/* ---------- 首屏分段切换 ---------- */
.page-home .home-tabs {
  margin-top: 2px;
}

.page-home .home-tabs__bar {
  display: flex;
  gap: 6px;
  border-bottom: var(--home-hair);
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-tabs__bar::-webkit-scrollbar {
  display: none;
}

.page-home .home-tabs__bar .segmented__btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--slate-400);
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.page-home .home-tabs__bar .segmented__btn[aria-selected="true"] {
  color: var(--mint-400);
  border-bottom-color: var(--mint-400);
}

.page-home .home-tabs__bar .segmented__btn:focus-visible {
  outline: 2px solid var(--mint-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.page-home .home-tabs .segmented__panel {
  display: grid;
  gap: 12px;
  padding: 18px 16px;
  border: var(--home-hair);
  border-radius: var(--home-radius);
  background: rgba(18, 41, 74, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .home-tabs .segmented__panel[hidden] {
  display: none;
}

.page-home .home-tabs__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--slate-100);
}

.page-home .home-tabs .segmented__panel > p {
  margin: 0;
  max-width: 46em;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--slate-400);
}

.page-home .home-tabs .btn {
  justify-self: start;
}

/* ---------- 主体容器 ---------- */
.page-home .home-body {
  padding-top: 24px;
  padding-bottom: 24px;
}

.page-home .home-flow > .section {
  padding: 34px 0;
  border-top: var(--home-hair);
}

.page-home .home-flow > .section:first-child {
  border-top: 0;
  padding-top: 6px;
}

.page-home .home-rail {
  margin-bottom: 10px;
}

.page-home .home-rail__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.page-home .home-rail .anchor-rail__list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-rail .anchor-rail__list::-webkit-scrollbar {
  display: none;
}

.page-home .home-rail .anchor-rail__link {
  display: inline-block;
  white-space: nowrap;
  padding: 6px 12px;
  border: var(--home-hair);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--slate-400);
  text-decoration: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .home-rail .anchor-rail__link:hover,
.page-home .home-rail .anchor-rail__link:focus-visible,
.page-home .home-rail .anchor-rail__link[aria-current="true"] {
  color: var(--mint-400);
  border-color: var(--mint-400);
  outline: none;
}

/* ---------- 区块通用 ---------- */
.page-home .section__head {
  margin-bottom: 22px;
}

.page-home .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.page-home .section h2 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--slate-100);
}

.page-home .lede {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--slate-400);
}

.page-home .media-frame {
  margin: 0;
  overflow: hidden;
  border: var(--home-hair);
  border-radius: var(--home-radius);
  background: var(--ink-800);
}

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

/* ---------- 场景速览 ---------- */
.page-home .scene-figure {
  margin-bottom: 20px;
}

.page-home .scene-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .scene-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  align-items: start;
  padding: 18px 0;
  border-top: var(--home-hair);
}

.page-home .scene-item:last-child {
  border-bottom: var(--home-hair);
}

.page-home .scene-item__num {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-500);
}

.page-home .scene-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--slate-100);
}

.page-home .scene-item p {
  margin: 0 0 10px;
  max-width: 40em;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--slate-400);
}

.page-home .scene-item a {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--brand-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 168, 255, 0.42);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .scene-item a:hover,
.page-home .scene-item a:focus-visible {
  color: var(--mint-400);
  border-bottom-color: var(--mint-400);
  outline: none;
}

/* ---------- 四步定位 ---------- */
.page-home .locate-grid {
  display: grid;
  gap: 26px;
}

.page-home .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  align-items: start;
  padding: 16px 0;
  border-top: var(--home-hair);
}

.page-home .step-item:last-child {
  border-bottom: var(--home-hair);
}

.page-home .step-index {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--brand-500);
}

.page-home .step-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--slate-100);
}

.page-home .step-item p {
  margin: 0;
  max-width: 38em;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--slate-400);
}

/* ---------- 版本日志 ---------- */
.page-home .journal {
  position: relative;
  padding-left: 22px;
}

.page-home .journal::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-500) 0%, rgba(22, 115, 255, 0.14) 100%);
}

.page-home .journal-group {
  position: relative;
  margin-bottom: 8px;
}

.page-home .journal-group::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 11px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--mint-400);
}

.page-home .journal-group > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 6px 0 12px;
  list-style: none;
  cursor: pointer;
}

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

.page-home .journal-group > summary::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--mint-400);
}

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

.page-home .journal-group > summary:focus-visible {
  outline: 2px solid var(--mint-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.page-home .journal-date {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  color: var(--slate-100);
}

.page-home .journal-count {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  color: var(--slate-400);
}

.page-home .journal-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.page-home .journal-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(30, 58, 92, 0.9);
}

.page-home .journal-list li:last-child {
  border-bottom: 0;
}

.page-home .journal-v {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  color: var(--slate-400);
}

.page-home .journal-t {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  color: var(--slate-400);
}

.page-home .journal-t[data-type="fix"] { color: var(--mint-400); }
.page-home .journal-t[data-type="new"] { color: var(--brand-300); }
.page-home .journal-t[data-type="known"] { color: var(--amber-400); }

.page-home .journal-d {
  grid-column: 1 / -1;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--slate-100);
}

.page-home .journal-more {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
}

.page-home .journal-more .link-quiet {
  color: var(--brand-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 168, 255, 0.42);
}

.page-home .journal-more .link-quiet:hover,
.page-home .journal-more .link-quiet:focus-visible {
  color: var(--mint-400);
  border-bottom-color: var(--mint-400);
}

.page-home .journal-texture {
  margin-top: 22px;
  opacity: 0.72;
}

/* ---------- 内容规模 ---------- */
.page-home .scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: var(--home-radius);
  background: var(--line-700);
  overflow: hidden;
}

.page-home .scale-cell {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 14px;
  background: rgba(18, 41, 74, 0.62);
}

.page-home .scale-cell dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  color: var(--slate-400);
}

.page-home .scale-cell dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--fs-14);
  color: var(--slate-100);
}

.page-home .scale-num {
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mint-400);
}

.page-home .scale-rhythm {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  line-height: 1.9;
  color: var(--slate-400);
}

/* ---------- 记录提交 ---------- */
.page-home .field-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.page-home .field-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 6px 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: var(--home-hair);
}

.page-home .field-list li:first-child {
  border-top: var(--home-hair);
}

.page-home .field-no {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--mint-400);
}

.page-home .field-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--slate-100);
}

.page-home .field-desc {
  display: block;
  max-width: 42em;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--slate-400);
}

.page-home .notice--warn {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 154, 60, 0.08);
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--slate-100);
}

.page-home .submit-action {
  margin: 0;
}

/* ---------- 收束 ---------- */
.page-home .home-meta {
  margin: 0;
  padding: 22px 0 40px;
  border-top: var(--home-hair);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  line-height: 1.9;
  color: var(--slate-400);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .scale-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-hero {
    margin: 20px 24px 0;
    padding: 44px 40px 32px;
    min-height: 70vh;
  }

  .page-home .home-body {
    padding-top: 32px;
  }
}

@media (min-width: 760px) {
  .page-home .journal-list li {
    grid-template-columns: 6rem 5.5rem minmax(0, 1fr);
    align-items: baseline;
  }

  .page-home .journal-d {
    grid-column: auto;
  }
}

@media (min-width: 920px) {
  .page-home .locate-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 34px;
  }

  .page-home .locate-figure {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

@media (min-width: 1024px) {
  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    margin-bottom: 0;
  }

  .page-home .home-rail .anchor-rail__list {
    flex-direction: column;
    overflow: visible;
  }

  .page-home .home-rail .anchor-rail__link {
    display: block;
    border-radius: var(--radius-sm);
    border-color: transparent;
    border-left: 2px solid rgba(30, 58, 92, 0.9);
  }

  .page-home .home-rail .anchor-rail__link:hover,
  .page-home .home-rail .anchor-rail__link:focus-visible,
  .page-home .home-rail .anchor-rail__link[aria-current="true"] {
    border-left-color: var(--mint-400);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-tabs__bar .segmented__btn,
  .page-home .home-rail .anchor-rail__link,
  .page-home .scene-item a {
    transition: none;
  }
}
