.page-home {
  --ph-gap: 14px;
  --ph-grid: 16px;
}

.page-home .home-context {
  padding-top: 26px;
}

/* ============ 首屏拼贴 ============ */
.page-home .hero-collage {
  position: relative;
  padding-block: 14px 10px;
  overflow: hidden;
}

.page-home .hero-collage::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 560px;
  height: 560px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 215, 154, 0.22), transparent 62%),
    radial-gradient(circle at 32% 68%, rgba(240, 160, 60, 0.16), transparent 58%);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--ph-gap);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "media"
    "stats"
    "season"
    "profile";
}

.page-home .hero-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(152deg, var(--panel) 0%, #10293f 56%, #0d2334 100%);
}

.page-home .hero-head .eyebrow {
  margin: 0;
}

.page-home .hero-head h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
}

.page-home .hero-kicker {
  display: block;
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-home .hero-main {
  display: block;
  font-size: clamp(2.25rem, 7.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-home .hero-lede {
  margin: 0;
  max-width: 46ch;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* 首屏数据摘要块 */
.page-home .hero-stats {
  grid-area: stats;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.page-home .hstat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

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

.page-home .hstat-num {
  flex: 0 0 auto;
  min-width: 3.8ch;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}

.page-home .hstat-label {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--mist);
}

/* 首屏更新节点块 */
.page-home .hero-season {
  grid-area: season;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(240, 160, 60, 0.42);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(240, 160, 60, 0.2), rgba(255, 215, 154, 0.05) 62%),
    var(--ink);
}

.page-home .hs-label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .hs-round {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--white);
}

.page-home .hs-round .num {
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  line-height: 1;
  font-weight: 600;
}

.page-home .hs-round small {
  font-size: 0.95rem;
  color: var(--mist);
}

.page-home .hs-note {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .hs-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.page-home .hs-link:hover,
.page-home .hs-link:focus-visible {
  border-bottom-color: var(--gold);
}

/* 首屏图片块 */
.page-home .hero-media,
.page-home .hero-profile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--plate);
}

.page-home .hero-media {
  grid-area: media;
  aspect-ratio: 16 / 10;
}

.page-home .hero-profile {
  grid-area: profile;
  aspect-ratio: 4 / 3;
}

.page-home .hero-media img,
.page-home .hero-profile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ 赛季轮次轨道 ============ */
.page-home .srail {
  padding-block: 46px 8px;
}

.page-home .srail-head {
  max-width: 62ch;
  margin-bottom: 28px;
}

.page-home .srail-head h2 {
  margin: 8px 0 12px;
  color: var(--white);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-home .srail-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .srail-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.page-home .srail-track {
  position: relative;
  display: flex;
  gap: 10px;
  min-width: max-content;
  margin: 0;
  padding: 0 18px 6px;
  list-style: none;
}

.page-home .srail-track::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 7px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(240, 160, 60, 0.55), var(--line-strong));
}

.page-home .srail-node {
  position: relative;
  flex: 0 0 auto;
  width: 176px;
  padding-top: 28px;
}

.page-home .srail-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--plate);
  border: 1px solid var(--line-strong);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.page-home .srail-node--current::before {
  background: var(--gold);
  border-color: var(--gold);
}

.page-home .srail-node:hover::before,
.page-home .srail-node:focus-within::before {
  background: var(--gold);
  border-color: var(--gold);
}

.page-home .srail-link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline-offset: 6px;
}

.page-home .srail-year {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .srail-season {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.page-home .srail-desc {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .srail-tip {
  display: block;
  margin-top: 10px;
  padding-left: 9px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--mist);
  border-left: 2px solid var(--gold-deep);
}

/* ============ 四条数据线 ============ */
.page-home .fieldlines {
  position: relative;
  padding-block: 52px;
  overflow: hidden;
}

.page-home .fieldlines-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
}

.page-home .fieldlines .wrap {
  position: relative;
  z-index: 1;
}

.page-home .fields-head {
  max-width: 60ch;
  margin-bottom: 26px;
}

.page-home .fields-head h2 {
  margin: 8px 0 12px;
  color: var(--white);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-home .fields-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .line-grid {
  display: grid;
  gap: var(--ph-grid);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .line-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 48, 74, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .line-card:hover,
.page-home .line-card:focus-within {
  border-color: rgba(240, 160, 60, 0.62);
  transform: translateY(-3px);
}

.page-home .line-index {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .line-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .line-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .line-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .line-fields li {
  padding: 5px 11px;
  font-size: 0.78rem;
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.page-home .line-meta {
  margin: 0;
  padding-top: 10px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--mist);
  border-top: 1px dashed var(--line);
}

.page-home .line-link {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 0.88rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.page-home .line-link:hover,
.page-home .line-link:focus-visible {
  border-bottom-color: var(--gold);
}

/* ============ 档案量级 ============ */
.page-home .archive-scale {
  padding-block: 52px;
}

.page-home .scale-aside {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--panel);
}

.page-home .scale-aside h2 {
  margin: 8px 0 14px;
  color: var(--white);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.page-home .scale-aside p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .scale-aside .note {
  margin-bottom: 0;
}

.page-home .scale-main {
  display: grid;
  gap: var(--ph-grid);
}

.page-home .scale-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .scale-grid .stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(44, 59, 73, 0.5);
}

.page-home .scale-grid .stat-value {
  display: block;
  margin: 6px 0 4px;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 600;
  color: var(--white);
}

.page-home .scale-grid .stat-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--mist);
}

.page-home .table-scroll {
  margin-top: 4px;
}

/* ============ 核对路径 ============ */
.page-home .review-path {
  padding-block: 52px;
}

.page-home .review-head {
  max-width: 62ch;
  margin-bottom: 26px;
}

.page-home .review-head h2 {
  margin: 8px 0 12px;
  color: var(--white);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-home .review-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .review-steps {
  margin-top: 8px;
}

.page-home .path-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.page-home .path-link:hover,
.page-home .path-link:focus-visible {
  border-bottom-color: var(--gold);
}

/* ============ 更新节点 ============ */
.page-home .update-node {
  padding-block: 52px 64px;
}

.page-home .update-card {
  position: relative;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(18, 48, 74, 0.92), rgba(10, 26, 42, 0.96));
  overflow: hidden;
}

.page-home .update-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}

.page-home .update-copy h2 {
  margin: 8px 0 14px;
  color: var(--white);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.page-home .update-copy p {
  margin: 0 0 14px;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .update-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.page-home .update-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

.page-home .update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .update-media {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--plate);
}

.page-home .update-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ 窄屏微调 ============ */
@media (max-width: 479px) {
  .page-home .srail-node {
    width: 158px;
  }

  .page-home .hero-media,
  .page-home .hero-profile,
  .page-home .update-media {
    border-radius: var(--r-md);
  }
}

/* ============ 桌面端栅格 ============ */
@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "head head head head media media"
      "head head head head media media"
      "stats stats season season profile profile";
    gap: var(--ph-grid);
  }

  .page-home .hero-media,
  .page-home .hero-profile {
    aspect-ratio: auto;
    min-height: 220px;
  }

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

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

  .page-home .scale-aside {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  }

  .page-home .update-card {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .update-media {
    max-height: none;
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
  }
}

@media (min-width: 900px) and (hover: hover) {
  .page-home .srail-tip {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.22s ease;
  }

  .page-home .srail-node:hover .srail-tip,
  .page-home .srail-node:focus-within .srail-tip {
    max-height: 120px;
    opacity: 1;
  }
}
