.page-home {
  position: relative;
  display: block;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    repeating-linear-gradient(to right, rgba(46, 58, 53, .55) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(46, 58, 53, .55) 0 1px, transparent 1px 72px);
}

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

.page-home .page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(3rem, 7vw, 5rem);
}

.page-home__main {
  min-width: 0;
}

/* ---------- 侧轨 ---------- */
.page-home .rail {
  align-self: start;
  min-width: 0;
}

.page-home .rail__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-home .rail__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: .85rem;
}

.page-home .rail__link {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding: .45rem .7rem .45rem .6rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.5;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.page-home .rail__link:hover {
  color: var(--ink);
  background-color: rgba(46, 58, 53, .45);
}

.page-home .rail__link.is-current {
  color: var(--accent);
  border-left-color: var(--accent);
  background-color: rgba(28, 38, 34, .7);
}

.page-home .rail__index {
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--muted);
}

.page-home .rail__link.is-current .rail__index {
  color: var(--accent);
}

.page-home .rail__note {
  margin: 1rem 0 0;
  padding-left: .7rem;
  border-left: 1px solid var(--grid);
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 顶部上下文条 ---------- */
.page-home .topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
  padding-bottom: .8rem;
  margin-bottom: 1.1rem;
  border-bottom: var(--line);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .topline__mark {
  color: var(--ink);
}

.page-home .topline__sep {
  color: var(--grid);
}

.page-home .topline__ver {
  margin-left: auto;
  color: var(--accent);
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grid);
  background-color: var(--rail);
  min-height: clamp(400px, 58vh, 600px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(150deg, rgba(11, 15, 14, .35) 0%, rgba(11, 15, 14, .93) 68%),
    radial-gradient(120% 90% at 86% 6%, rgba(47, 107, 255, .2), transparent 58%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .hero__corner {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  opacity: .85;
}

.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 .hero__title {
  margin: .6rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 18ch;
}

.page-home .hero__lede {
  max-width: 58ch;
  color: var(--ink);
  opacity: .82;
  font-size: clamp(.95rem, 1.6vw, 1.0625rem);
  margin: 0;
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 660px;
  background-color: var(--grid);
  border: 1px solid var(--grid);
}

.page-home .hero__stat {
  background-color: rgba(18, 26, 23, .92);
  padding: .85rem 1rem;
  display: grid;
  gap: .2rem;
}

.page-home .hero__stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.1;
  color: var(--accent);
  display: block;
}

.page-home .hero__stat-label {
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 章节骨架 ---------- */
.page-home .chapter {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.page-home .chapter__head {
  display: grid;
  gap: .55rem;
  border-top: var(--line);
  padding-top: 1.15rem;
  margin-bottom: 1.75rem;
}

.page-home .chapter__index {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--accent);
}

.page-home .chapter__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  color: var(--ink);
}

.page-home .chapter__lede {
  margin: 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: .9688rem;
}

.page-home .chapter__foot {
  margin: 1.75rem 0 0;
}

.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--accent);
}

.page-home .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9063rem;
  color: var(--data);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.page-home .link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform .18s ease;
}

.page-home .link-arrow:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.page-home .link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- 速览面板 ---------- */
.page-home .brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background-color: var(--grid);
  border: 1px solid var(--grid);
}

.page-home .brief__main {
  background-color: var(--bg);
  padding: clamp(1.1rem, 3vw, 1.9rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-content: start;
}

.page-home .brief__aside {
  background-color: var(--panel);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.page-home .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1.25rem 1rem;
}

.page-home .stat {
  display: grid;
  gap: .3rem;
  border-top: 2px solid var(--grid);
  padding-top: .7rem;
}

.page-home .stat--accent {
  border-top-color: var(--accent);
}

.page-home .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}

.page-home .stat--accent .stat__value {
  color: var(--accent);
}

.page-home .stat__label {
  font-size: .7813rem;
  letter-spacing: .04em;
  color: var(--muted);
}

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

.page-home .brief__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border: 1px solid var(--grid);
}

.page-home .figure {
  display: grid;
  gap: .6rem;
}

.page-home .figure__cap {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--muted);
  padding-left: .7rem;
  border-left: 1px solid var(--grid);
}

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

.page-home .spark-list__item {
  position: relative;
  padding-left: 1.1rem;
  font-size: .8438rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .spark-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 1px;
  background-color: var(--accent);
}

/* ---------- 折叠面板 ---------- */
.page-home .accordion {
  border-top: var(--line);
}

.page-home .accordion__item {
  border-bottom: var(--line);
}

.page-home .accordion__trigger {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .95rem 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .9375rem;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease;
}

.page-home .accordion__trigger:hover {
  color: var(--accent);
}

.page-home .accordion__index {
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--muted);
  flex: none;
}

.page-home .accordion__label {
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .accordion__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.page-home .accordion__icon::before,
.page-home .accordion__icon::after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  transition: transform .2s ease, opacity .2s ease;
}

.page-home .accordion__icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 1.5px;
}

.page-home .accordion__icon::after {
  top: 0;
  left: 6px;
  width: 1.5px;
  height: 14px;
}

.page-home .accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-home .accordion__panel {
  padding: 0 0 1.05rem 1.6rem;
}

.page-home .accordion__panel p {
  margin: 0;
  max-width: 62ch;
  font-size: .9063rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 版本轨道 ---------- */
.page-home .vtrack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.page-home .vtrack__item {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.5rem;
  border-left: 1px solid var(--grid);
}

.page-home .vtrack__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 1.6rem;
  width: 7px;
  height: 7px;
  background-color: var(--grid);
}

.page-home .vtrack__item--current::before {
  background-color: var(--accent);
}

.page-home .vtrack__ver {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .3rem;
}

.page-home .vtrack__name {
  margin: 0 0 .35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.page-home .vtrack__text {
  margin: 0;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}

.page-home .chip {
  display: inline-flex;
  align-items: center;
  padding: .1rem .42rem;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
}

.page-home .chip--warn {
  border-color: var(--warn);
  color: var(--warn);
}

.page-home .chip--xs {
  font-size: .5625rem;
}

.page-home .media-figure {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}

.page-home .media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border: 1px solid var(--grid);
  opacity: .9;
}

.page-home .media-figure--wide img {
  aspect-ratio: 16 / 9;
}

.page-home .tag {
  display: inline-flex;
  align-items: center;
  padding: .16rem .5rem;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
}

.page-home .tag--data {
  border-color: rgba(47, 107, 255, .55);
  color: var(--data);
}

.page-home .tag--accent {
  border-color: rgba(182, 255, 60, .55);
  color: var(--accent);
}

.page-home .tag--warn {
  border-color: rgba(255, 122, 47, .5);
  color: var(--warn);
}

/* ---------- 赛季时间线 ---------- */
.page-home .season {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: var(--line);
}

.page-home .season__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem;
  padding: 1.15rem 0;
  border-bottom: var(--line);
}

.page-home .season__range {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--accent);
}

.page-home .season__title {
  margin: 0 0 .3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .season__text {
  margin: 0;
  font-size: .9063rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 入口卡 ---------- */
.page-home .card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background-color: var(--grid);
  border: 1px solid var(--grid);
  margin-top: 1.5rem;
}

.page-home .card {
  background-color: var(--panel);
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  display: grid;
  gap: .75rem;
  align-content: start;
  transition: background-color .2s ease;
}

.page-home .entry-card:hover {
  background-color: #202c27;
}

.page-home .card__index {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--muted);
  border-bottom: 1px solid var(--grid);
  padding-bottom: .5rem;
  display: inline-block;
}

.page-home .card__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .card__text {
  margin: 0;
  font-size: .9063rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .entry-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.page-home .card__meta {
  margin-top: .15rem;
}

/* ---------- 目录索引 ---------- */
.page-home .directory {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--line);
}

.page-home .directory__item {
  border-bottom: var(--line);
}

.page-home .directory__link {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: .25rem .85rem;
  padding: .95rem 0;
  text-decoration: none;
  transition: background-color .18s ease, padding-left .18s ease;
}

.page-home .directory__link:hover {
  background-color: rgba(28, 38, 34, .7);
  padding-left: .6rem;
}

.page-home .directory__num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  padding-top: .25rem;
}

.page-home .directory__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .directory__link:hover .directory__name {
  color: var(--accent);
}

.page-home .directory__desc {
  font-size: .8438rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .subscribe {
  margin-top: 1.75rem;
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  border: 1px solid var(--grid);
  background-image: linear-gradient(120deg, rgba(47, 107, 255, .16), rgba(182, 255, 60, .06));
  display: grid;
  gap: 1rem;
  align-items: center;
}

.page-home .subscribe__title {
  margin: 0 0 .35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}

.page-home .subscribe__text {
  margin: 0;
  font-size: .9063rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.35rem;
  border: 1px solid var(--accent);
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.page-home .btn--accent {
  background-color: var(--accent);
  color: #0B0F0E;
}

.page-home .btn--accent:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* ---------- 联系收尾 ---------- */
.page-home .contact-strip {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: var(--line);
}

.page-home .contact-strip .chapter__lede {
  margin-top: .55rem;
}

.page-home .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 1.5rem;
  background-color: var(--grid);
  border: 1px solid var(--grid);
}

.page-home .contact-cell {
  background-color: var(--bg);
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  display: grid;
  gap: .35rem;
  align-content: start;
}

.page-home .contact-cell__label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.page-home .contact-cell__value {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--accent);
  word-break: break-all;
}

.page-home .contact-cell__note {
  margin: .4rem 0 0;
  font-size: .8438rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.page-home .contact-strip__link {
  margin-top: 1.5rem;
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .season__item {
    grid-template-columns: 8.5rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.5rem;
  }

  .page-home .season__range {
    padding-top: .25rem;
  }

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

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

  .page-home .subscribe {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-home .vtrack {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border-top: 1px solid var(--grid);
    padding-top: 1.6rem;
    gap: 0;
  }

  .page-home .vtrack__item {
    border-left: 0;
    border-right: 1px solid var(--grid);
    padding: 0 1.1rem 0 0;
  }

  .page-home .vtrack__item:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .page-home .vtrack__item::before {
    left: 0;
    top: -1.95rem;
  }

  .page-home .vtrack__text {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .page-home .page-shell {
    grid-template-columns: 216px minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.75rem);
  }

  .page-home .rail {
    position: sticky;
    top: calc(var(--header-offset) + 1rem);
    max-height: calc(100vh - var(--header-offset) - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .page-home .brief {
    grid-template-columns: 7fr 5fr;
  }

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

@media (min-width: 1200px) {
  .page-home .hero {
    padding: clamp(2rem, 4vw, 3.5rem);
  }

  .page-home .media-figure img {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 1023px) {
  .page-home .rail {
    border-bottom: var(--line);
    padding-bottom: .6rem;
  }

  .page-home .rail__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .3rem;
    margin-top: .6rem;
    padding-bottom: .2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .page-home .rail__link {
    flex: none;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: .4rem .65rem;
    white-space: nowrap;
  }

  .page-home .rail__link.is-current {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
    background-color: transparent;
  }

  .page-home .rail__note {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-home .entry-card__tags {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .22s ease, transform .22s ease;
  }

  .page-home .entry-card:hover .entry-card__tags,
  .page-home .entry-card:focus-within .entry-card__tags {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .rail__link,
  .page-home .link-arrow,
  .page-home .link-arrow::after,
  .page-home .accordion__trigger,
  .page-home .accordion__icon::before,
  .page-home .accordion__icon::after,
  .page-home .card,
  .page-home .directory__link,
  .page-home .entry-card__tags,
  .page-home .btn {
    transition: none !important;
  }

  .page-home .entry-card__tags {
    opacity: 1 !important;
    transform: none !important;
  }
}
