.page-home {
  --home-panel: rgba(7, 19, 31, 0.72);
  --home-panel-border: rgba(200, 255, 61, 0.22);
  --home-soft: rgba(247, 251, 244, 0.08);
  --home-shadow: 0 24px 60px rgba(7, 19, 31, 0.35);
  --home-pad: clamp(2.8rem, 6vw, 5.5rem);
  background: var(--paper);
  color: var(--ink-text);
}

.page-home img {
  max-width: 100%;
  display: block;
}

.page-home .page-context {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
}

.page-home .page-context span:last-child {
  color: var(--lime);
}

/* 首屏 */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
  background: var(--ink);
  color: var(--score);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% 18% 26%;
  background: linear-gradient(135deg, rgba(31, 138, 91, 0.88), rgba(11, 59, 46, 0.35) 58%, transparent 78%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 76%);
  z-index: 0;
  pointer-events: none;
}

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

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.12);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 31, 0.35), rgba(7, 19, 31, 0.96));
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.page-home .hero h1 {
  margin: 0.75rem 0 0;
  max-width: 15em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--score);
}

.page-home .hero__lede {
  max-width: 34em;
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--on-dark-mid);
}

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

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--dark-line);
}

.page-home .hero__stats dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--on-dark-weak);
}

.page-home .hero__stats dd {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1;
  color: var(--lime);
}

/* 球队库与刻度轴 */
.page-home .board {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.page-home .rail {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.page-home .rail__label {
  flex: 0 0 auto;
  align-self: center;
  padding-right: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--on-dark-weak);
  writing-mode: horizontal-tb;
}

.page-home .rail__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: var(--on-dark-mid);
  font-size: 0.78rem;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-home .rail__item .num {
  font-size: 0.66rem;
  color: var(--lime);
}

.page-home .rail__item:hover,
.page-home .rail__item:focus-visible,
.page-home .rail__item.is-active {
  border-color: var(--lime-line);
  background: rgba(200, 255, 61, 0.08);
  color: var(--score);
}

.page-home .board__panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--home-panel-border);
  border-radius: var(--radius);
  background: var(--home-panel);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(10px);
}

.page-home .board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.page-home .board__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--score);
}

.page-home .board__head p {
  max-width: 26em;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--on-dark-weak);
}

.page-home .chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.7rem 0 0.5rem;
  scrollbar-width: thin;
}

.page-home .chip {
  flex: 0 0 auto;
  padding: 0.34rem 0.78rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: var(--on-dark-mid);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .chip:hover,
.page-home .chip:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

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

.page-home .team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.7rem;
  padding: 0.7rem 0.1rem;
  border-bottom: 1px solid var(--dark-line);
}

.page-home .team-row__code {
  grid-row: span 2;
  align-self: center;
  font-size: 0.72rem;
  color: var(--lime);
}

.page-home .team-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.page-home .team-row__main strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--score);
}

.page-home .team-row__main span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-weak);
}

.page-home .team-row .tag {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.2rem;
}

.page-home .board__media {
  margin: 0.9rem 0 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  max-height: 220px;
}

.page-home .board__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

/* 章节骨架 */
.page-home .chapter {
  position: relative;
  padding: var(--home-pad) 0;
}

.page-home .chapter__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
  padding-top: 1.1rem;
  border-top: 3px solid var(--lime);
}

.page-home .chapter__num {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.85;
  color: var(--lime);
}

.page-home .chapter__title .eyebrow {
  margin: 0;
  color: var(--lime);
}

.page-home .chapter__title h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.page-home .chapter__lede {
  max-width: 62ch;
  margin: -0.8rem 0 1.8rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(16, 35, 28, 0.78);
}

.page-home .chapter--dark {
  background: var(--ink);
  color: var(--score);
}

.page-home .chapter--green {
  background: linear-gradient(155deg, var(--green-deep) 0%, var(--green-mid) 100%);
  color: var(--score);
}

.page-home .chapter--ink {
  background: var(--ink);
  color: var(--score);
}

.page-home .chapter--paper {
  background: var(--paper);
  color: var(--ink-text);
}

.page-home .chapter--paper .chapter__head {
  border-top-color: var(--green-mid);
}

.page-home .chapter--paper .chapter__num {
  color: var(--green-mid);
}

.page-home .chapter--paper .chapter__title .eyebrow {
  color: var(--green-deep);
}

.page-home .chapter--green .chapter__head,
.page-home .chapter--dark .chapter__head,
.page-home .chapter--ink .chapter__head {
  border-top-color: var(--lime);
}

.page-home .chapter__grid {
  display: grid;
  gap: 1.6rem;
}

.page-home .chapter__text p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--on-dark-mid);
}

.page-home .chapter__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.page-home .chapter__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.82);
}

.page-home .chapter__media .media-frame__caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--on-dark-weak);
  background: rgba(7, 19, 31, 0.55);
}

.page-home .bullet-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
}

.page-home .bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--on-dark-mid);
}

.page-home .bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--lime);
  transform: rotate(45deg);
}

.page-home .mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
}

.page-home .mini-card {
  padding: 0.8rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  background: var(--home-soft);
}

.page-home .mini-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-home .mini-card p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--on-dark-weak);
}

/* 版本对比 */
.page-home .dim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.page-home .dim-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem;
  border: 1px solid rgba(16, 35, 28, 0.12);
  border-top: 3px solid var(--green-mid);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(7, 19, 31, 0.06);
}

.page-home .dim-card:nth-child(4) {
  border-top-color: var(--orange);
}

.page-home .dim-card:nth-child(6) {
  border-top-color: var(--info);
}

.page-home .dim-card__num {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green-deep);
}

.page-home .dim-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--ink-text);
}

.page-home .dim-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(16, 35, 28, 0.76);
}

.page-home .compare-strip {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--green-deep), var(--green-mid));
  color: var(--score);
}

.page-home .compare-strip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--on-dark-mid);
}

.page-home .compare-strip__label {
  margin-bottom: 0.25rem !important;
  font-family: var(--font-mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime) !important;
}

.page-home .compare-strip .btn {
  align-self: flex-start;
}

/* 收藏与提醒 */
.page-home .save-grid {
  display: grid;
  gap: 1.6rem;
}

.page-home .save-path > p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--on-dark-mid);
}

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

.page-home .save-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(247, 251, 244, 0.16);
}

.page-home .save-step__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--lime-line);
  border-radius: 50%;
  font-size: 0.68rem;
  color: var(--lime);
}

.page-home .save-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--score);
}

.page-home .save-step p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--on-dark-weak);
}

.page-home .save-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}

.page-home .save-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

.page-home .alert-panel {
  margin-top: 1.8rem;
  padding: 1.2rem;
  border: 1px solid var(--lime-line);
  border-radius: var(--radius);
  background: rgba(7, 19, 31, 0.38);
}

.page-home .alert-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--score);
}

.page-home .alert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
  padding: 0;
  list-style: none;
}

.page-home .alert-tags li {
  padding: 0.3rem 0.72rem;
  border: 1px solid rgba(247, 251, 244, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--on-dark-mid);
}

.page-home .alert-panel p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--on-dark-mid);
}

/* 版本日志 */
.page-home .changelog-grid {
  display: grid;
  gap: 1.8rem;
}

.page-home .timeline {
  margin: 0 0 0 0.5rem;
  padding: 0 0 0 1.1rem;
  list-style: none;
  border-left: 2px solid var(--lime-line);
}

.page-home .timeline__item {
  position: relative;
  padding: 0.7rem 0 1rem;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -1.48rem;
  top: 1.05rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.12);
}

.page-home .timeline__ver {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.page-home .timeline h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--score);
}

.page-home .timeline p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--on-dark-weak);
}

.page-home .update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.page-home .update-card {
  padding: 0.95rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  background: var(--home-soft);
}

.page-home .update-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--lime);
}

.page-home .update-card p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--on-dark-mid);
}

/* 过渡图 */
.page-home .interlude {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.page-home .interlude img {
  width: 100%;
  height: clamp(200px, 32vw, 380px);
  object-fit: cover;
  filter: saturate(0.78);
}

/* 专题与帮助 */
.page-home .reading-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.page-home .topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 1px solid rgba(16, 35, 28, 0.14);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .topic-card:hover,
.page-home .topic-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green-mid);
}

.page-home .topic-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--green-deep);
}

.page-home .topic-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--ink-text);
}

.page-home .topic-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(16, 35, 28, 0.76);
}

.page-home .topic-card__link {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-mid);
}

.page-home .help-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.page-home .help-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--score);
}

.page-home .help-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.page-home .help-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--on-dark-mid);
}

.page-home .help-card a {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-home .help-card--accent {
  background: var(--orange);
  color: var(--ink);
}

.page-home .help-card--accent p {
  color: rgba(7, 19, 31, 0.82);
}

.page-home .help-card--accent a {
  color: var(--ink);
}

/* 中等屏幕 */
@media (min-width: 640px) {
  .page-home .dim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .page-home .help-card--accent {
    grid-column: 1 / -1;
  }
}

/* 桌面：对角错位与镜像栅格 */
@media (min-width: 960px) {
  .page-home .hero {
    padding: 3.5rem 0 4.2rem;
  }

  .page-home .hero::before {
    inset: -22% -8% 12% 38%;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 82%);
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.6rem;
    align-items: start;
  }

  .page-home .board {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
  }

  .page-home .rail {
    position: sticky;
    top: 6rem;
    flex-direction: column;
    gap: 0.25rem;
    overflow: visible;
    padding-bottom: 0;
    border-left: 1px solid var(--dark-line);
    padding-left: 0.35rem;
  }

  .page-home .rail__label {
    margin-bottom: 0.3rem;
    padding-left: 0.3rem;
    writing-mode: vertical-rl;
    letter-spacing: 0.28em;
  }

  .page-home .rail__item {
    position: relative;
    border: 0;
    border-radius: 0;
    padding: 0.45rem 0.4rem 0.45rem 0.85rem;
    background: transparent;
  }

  .page-home .rail__item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 2px;
    background: transparent;
  }

  .page-home .rail__item.is-active::before,
  .page-home .rail__item:hover::before,
  .page-home .rail__item:focus-visible::before {
    background: var(--lime);
  }

  .page-home .rail__item.is-active {
    background: transparent;
  }

  .page-home .board__panel {
    padding: 1.2rem;
  }

  .page-home .board__media {
    max-height: 230px;
  }

  .page-home .chapter__grid--media {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.2rem;
  }

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

  .page-home .compare-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.6rem;
  }

  .page-home .compare-strip__text {
    max-width: 64ch;
  }

  .page-home .compare-strip .btn {
    align-self: center;
    flex: 0 0 auto;
  }

  .page-home .save-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.2rem;
  }

  .page-home .changelog-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.4rem;
    align-items: start;
  }

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

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

  .page-home .help-card--accent {
    grid-column: auto;
  }
}
<<<END>>>
