.page-home {
  --home-cut: 16px;
  --home-line: rgba(227, 233, 241, 0.9);
  background: var(--cloud);
  color: var(--ink);
}

.page-home a {
  color: inherit;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--storm);
  color: var(--cloud);
  padding: 48px 0 56px;
}

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

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

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, var(--deep) 6%, rgba(14, 34, 68, 0.88) 44%, rgba(27, 58, 107, 0.42) 100%);
}

.page-home .home-trace {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .home-trace path {
  fill: none;
  stroke: var(--bolt);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  opacity: 0.55;
  animation: home-trace-draw 2.8s var(--ease) forwards;
}

@keyframes home-trace-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.page-home .home-hero__inner {
  display: grid;
  gap: 0;
}

.page-home .home-hero__eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--clay);
  text-transform: uppercase;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cloud);
  max-width: 12ch;
}

.page-home .home-hero__lede {
  margin: 22px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(244, 247, 251, 0.86);
}

.page-home .home-search {
  margin-top: 30px;
  max-width: 520px;
  display: grid;
  gap: 8px;
}

.page-home .home-search__label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.page-home .home-search__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(227, 233, 241, 0.36);
  background: rgba(14, 34, 68, 0.62);
  color: var(--cloud);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.4;
  border-radius: 0;
  appearance: none;
}

.page-home .home-search__input::placeholder {
  color: rgba(244, 247, 251, 0.5);
}

.page-home .home-search__input:focus-visible {
  outline: 2px solid var(--bolt);
  outline-offset: 2px;
  border-color: var(--bolt);
}

.page-home .home-search__status {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-home .home-status {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.page-home .home-status li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244, 247, 251, 0.9);
}

/* ---------- 章节跳转条 ---------- */
.page-home .home-jump {
  position: sticky;
  top: var(--header-h);
  z-index: 6;
  background: var(--cloud);
  border-bottom: 1px solid var(--mist);
}

.page-home .home-jump__inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

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

.page-home .home-jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 13px;
  color: var(--storm);
  border: 1px solid var(--mist);
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-jump a .u-mono {
  font-size: 11px;
  color: var(--slate);
}

.page-home .home-jump a:hover,
.page-home .home-jump a:focus-visible {
  border-color: var(--bolt);
  color: var(--bolt);
}

.page-home .home-jump a:focus-visible {
  outline: 2px solid var(--bolt);
  outline-offset: 2px;
}

/* ---------- 区块节奏 ---------- */
.page-home .home-band {
  padding: 64px 0;
  scroll-margin-top: 96px;
}

.page-home .home-band--cloud {
  background: var(--cloud);
}

.page-home .home-band--linen {
  background: var(--linen);
}

.page-home .home-band--deep {
  background: var(--deep);
  color: var(--cloud);
}

/* ---------- 章节头 ---------- */
.page-home .home-head {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  padding-top: 8px;
}

.page-home .home-head .chapter-no {
  font-family: var(--f-mono);
  font-size: clamp(56px, 12vw, 120px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--slate);
  letter-spacing: -0.03em;
}

.page-home .home-head__kicker {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.page-home .home-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.page-home .home-head__lede {
  margin: 4px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
}

.page-home .home-head--invert .home-head__kicker {
  color: var(--clay);
}

.page-home .home-head--invert .chapter-no {
  -webkit-text-stroke: 1.5px rgba(255, 180, 138, 0.7);
}

.page-home .home-head--invert h2 {
  color: var(--cloud);
}

/* ---------- 装饰带 ---------- */
.page-home .home-strip {
  margin: 0 0 24px;
  display: block;
}

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

/* ---------- 索引矩阵 ---------- */
.page-home .home-league-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-league {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px 14px;
  background: #ffffff;
  border: 1px solid var(--mist);
  text-decoration: none;
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-league:nth-child(even) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
}

.page-home .home-league:hover,
.page-home .home-league:focus-visible {
  background: var(--storm);
  border-color: var(--storm);
  color: var(--cloud);
  transform: translateY(-3px);
}

.page-home .home-league:focus-visible {
  outline: 2px solid var(--bolt);
  outline-offset: 3px;
}

.page-home .home-league__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .home-league__num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.page-home .home-league:hover .home-league__num,
.page-home .home-league:focus-visible .home-league__num {
  color: var(--clay);
}

.page-home .home-league__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-home .home-league__meta {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.page-home .home-league:hover .home-league__meta,
.page-home .home-league:focus-visible .home-league__meta {
  color: rgba(244, 247, 251, 0.8);
}

.page-home .home-league .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* ---------- 新版变化 ---------- */
.page-home .home-shifts {
  display: grid;
  gap: 28px;
}

.page-home .home-shift-list {
  display: grid;
  gap: 0;
}

.page-home .home-shift {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(227, 233, 241, 1);
}

.page-home .home-shift:last-child {
  border-bottom: 1px solid rgba(227, 233, 241, 1);
}

.page-home .home-shift__no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bolt);
  padding-top: 5px;
}

.page-home .home-shift h3 {
  margin: 0 0 6px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
}

.page-home .home-shift p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

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

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

/* ---------- 两条路径 ---------- */
.page-home .home-paths {
  display: grid;
  gap: 14px;
}

.page-home .home-path {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 22px 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .home-path--dark {
  background: var(--storm);
  color: var(--cloud);
}

.page-home .home-path--light {
  background: #ffffff;
  border: 1px solid var(--mist);
  color: var(--ink);
}

.page-home .home-path__time {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bolt);
}

.page-home .home-path--dark .home-path__time {
  color: var(--clay);
}

.page-home .home-path h3 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
}

.page-home .home-path p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.page-home .home-path--dark p {
  color: rgba(244, 247, 251, 0.86);
}

.page-home .home-path .btn {
  justify-self: start;
  margin-top: 6px;
  font-size: 14px;
}

/* ---------- 家庭观赛 ---------- */
.page-home .home-family {
  display: grid;
  gap: 22px;
}

.page-home .home-family__figure {
  margin: 0;
  order: 2;
}

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

.page-home .home-family__groups {
  order: 1;
  display: grid;
  gap: 16px;
}

.page-home .home-group {
  border-left: 3px solid var(--bolt);
  padding: 4px 0 4px 14px;
}

.page-home .home-group h3 {
  margin: 0 0 6px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
}

.page-home .home-group p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.page-home .home-family__more {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--slate);
}

.page-home .home-link {
  color: var(--storm);
  text-decoration: none;
  border-bottom: 1px solid var(--bolt);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-link:hover,
.page-home .home-link:focus-visible {
  color: var(--bolt);
  border-color: var(--storm);
}

.page-home .home-link:focus-visible {
  outline: 2px solid var(--bolt);
  outline-offset: 3px;
}

.page-home .home-family__more .home-link {
  white-space: nowrap;
}

/* ---------- 数据条 ---------- */
.page-home .home-stats {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid rgba(227, 233, 241, 0.24);
}

.page-home .home-stat {
  padding: 18px 0;
  border-bottom: 1px solid rgba(227, 233, 241, 0.16);
}

.page-home .home-stat__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.page-home .home-stat__value {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cloud);
}

.page-home .home-tail {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.page-home .home-tail .home-link {
  color: var(--cloud);
  font-size: 14px;
  border-bottom-color: var(--clay);
}

.page-home .home-tail .home-link:hover,
.page-home .home-tail .home-link:focus-visible {
  color: var(--clay);
}

/* ---------- 中屏 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 72px 0 88px;
  }

  .page-home .home-band {
    padding: 88px 0;
  }

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

  .page-home .home-league {
    padding: 18px 16px 16px;
  }

  .page-home .home-head {
    padding-left: 0;
  }

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

  .page-home .home-stat {
    padding: 22px 18px 22px 0;
    border-bottom: 1px solid rgba(227, 233, 241, 0.16);
    border-right: 1px solid rgba(227, 233, 241, 0.16);
  }

  .page-home .home-stat:nth-child(3n + 1) {
    padding-left: 0;
  }
}

/* ---------- 宽屏 ---------- */
@media (min-width: 1080px) {
  .page-home .home-hero {
    padding: 96px 0 112px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: 4%;
    align-items: end;
  }

  .page-home .home-hero__eyebrow,
  .page-home .home-hero__title,
  .page-home .home-hero__lede {
    grid-column: 1;
  }

  .page-home .home-search {
    grid-column: 1;
    max-width: 100%;
  }

  .page-home .home-status {
    grid-column: 2;
    grid-row: 1 / span 4;
    flex-direction: column;
    align-self: end;
    justify-self: end;
    align-items: flex-start;
    margin-top: 0;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    gap: 14px;
  }

  .page-home .home-band {
    padding: 104px 0;
  }

  .page-home .home-band--cloud {
    padding-top: 112px;
  }

  .page-home .home-band--deep {
    padding-bottom: 128px;
  }

  .page-home .home-head {
    display: grid;
    grid-template-columns: 160px minmax(0, 8fr) minmax(0, 3fr);
    align-items: start;
    column-gap: 8px;
    margin-bottom: 40px;
  }

  .page-home .home-head .chapter-no {
    grid-column: 1;
    grid-row: 1 / span 3;
    font-size: clamp(72px, 9vw, 132px);
  }

  .page-home .home-head__kicker,
  .page-home .home-head h2 {
    grid-column: 2;
  }

  .page-home .home-head__lede {
    grid-column: 2;
    max-width: 58ch;
  }

  .page-home .home-league-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .home-league {
    padding: 20px 18px 18px;
  }

  .page-home .home-shifts {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 42px;
    align-items: start;
  }

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

  .page-home .home-path {
    padding: 34px 30px 30px;
  }

  .page-home .home-family {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 42px;
    align-items: start;
  }

  .page-home .home-family__figure {
    order: 1;
  }

  .page-home .home-family__groups {
    order: 2;
  }

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

  .page-home .home-stat {
    padding: 24px 20px 24px 0;
    border-bottom: 0;
  }

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

  .page-home .home-tail {
    margin-top: 36px;
    gap: 12px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-trace path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .page-home .home-league,
  .page-home .home-jump a {
    transition: none;
  }

  .page-home .home-league:hover {
    transform: none;
  }
}
