.page-home {
  --home-rule: 1px solid var(--stone-mid);
  --home-rule-soft: 1px solid var(--stone-light);
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: break-word;
}

/* ---------- 上下文条 ---------- */
.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: clamp(16px, 3vw, 26px);
  padding-bottom: clamp(10px, 2vw, 16px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--stone-deep);
}
.page-home .home-context__k {
  color: var(--flame);
}
.page-home .home-context__sep {
  color: var(--stone-mid);
}

/* ---------- 框景首屏 ---------- */
.page-home .hero {
  padding-bottom: clamp(28px, 5vw, 56px);
}
.page-home .hero__frame {
  position: relative;
  padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 52px) clamp(26px, 5vw, 60px);
  border: var(--home-rule-soft);
  background: var(--paper);
}
.page-home .frame-tick {
  position: absolute;
  width: 24px;
  height: 24px;
  border-style: solid;
  border-width: 0;
  border-color: var(--stone-deep);
  pointer-events: none;
}
.page-home .frame-tick--tl {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.page-home .frame-tick--tr {
  top: -1px;
  right: -1px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.page-home .frame-tick--bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}
.page-home .frame-tick--br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  min-width: 0;
}
.page-home .hero__title {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 8.4vw, 4.1rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-home .hero__title span {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.page-home .hero__lede {
  margin: clamp(16px, 3vw, 26px) 0 0;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--stone-deep);
}
.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3.4vw, 34px);
}
.page-home .hero__note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone-mid);
}
.page-home .hero__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 11;
  background: var(--stone-light);
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08);
}

/* ---------- 砖石分隔带 ---------- */
.page-home .brick-band {
  position: relative;
  margin: 0;
  height: clamp(120px, 18vw, 220px);
  overflow: hidden;
  background: var(--stone-light);
}
.page-home .brick-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.1);
}
.page-home .brick-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flame);
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- 数据索引 ---------- */
.page-home .board {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px);
  background: var(--pine);
  color: var(--paper);
}
.page-home .board .eyebrow {
  color: var(--flame-light);
}
.page-home .board__title {
  margin: 0.4rem 0 0;
  font-size: clamp(1.7rem, 5.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--paper-bright);
}
.page-home .board__intro {
  max-width: 34em;
  margin: 0.8rem 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--stone-light);
}

.page-home .board__switch {
  position: relative;
  margin-top: clamp(24px, 4vw, 40px);
}
.page-home .board-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-home .board-tabs {
  display: inline-flex;
  border: var(--home-rule);
}
.page-home .board-tabs > label {
  padding: 0.55rem 1.1rem;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--paper);
  border-right: var(--home-rule);
  cursor: pointer;
  transition: background var(--step) var(--ease), color var(--step) var(--ease);
}
.page-home .board-tabs > label:last-child {
  border-right: 0;
}
.page-home .board-tabs > label:hover {
  background: rgba(255, 255, 255, 0.08);
}
.page-home .board-radio:nth-of-type(1):checked ~ .board-tabs > label:nth-child(1),
.page-home .board-radio:nth-of-type(2):checked ~ .board-tabs > label:nth-child(2),
.page-home .board-radio:nth-of-type(3):checked ~ .board-tabs > label:nth-child(3) {
  background: var(--flame);
  color: var(--paper-bright);
  border-color: var(--flame);
}
.page-home .board-radio:nth-of-type(1):focus-visible ~ .board-tabs > label:nth-child(1),
.page-home .board-radio:nth-of-type(2):focus-visible ~ .board-tabs > label:nth-child(2),
.page-home .board-radio:nth-of-type(3):focus-visible ~ .board-tabs > label:nth-child(3) {
  outline: 2px solid var(--flame-light);
  outline-offset: 2px;
}

.page-home .board-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(14px, 3vw, 32px);
  margin-top: clamp(20px, 3vw, 30px);
}
.page-home .board-radio:nth-of-type(1):checked ~ .board-panels > .board-panel:nth-child(1),
.page-home .board-radio:nth-of-type(2):checked ~ .board-panels > .board-panel:nth-child(2),
.page-home .board-radio:nth-of-type(3):checked ~ .board-panels > .board-panel:nth-child(3) {
  display: grid;
  animation: board-wipe 180ms var(--ease) both;
}
@keyframes board-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.page-home .reading {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 0 1.1rem;
  border-top: 1px solid rgba(215, 211, 199, 0.45);
  min-width: 0;
}
.page-home .reading__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--flame-light);
}
.page-home .reading__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1;
  font-weight: 500;
  color: var(--paper-bright);
}
.page-home .reading__label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--stone-light);
}
.page-home .board__note {
  margin: clamp(14px, 2.4vw, 22px) 0 0;
  padding-top: 0.9rem;
  border-top: var(--home-rule);
  font-size: 13px;
  color: var(--stone-light);
}

/* ---------- 垛口齿过渡 ---------- */
.page-home .crenel-edge {
  height: 22px;
  background-image: repeating-linear-gradient(
    to right,
    var(--pine) 0 20px,
    transparent 20px 40px
  );
  background-size: 100% 11px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

/* ---------- 四条主线 ---------- */
.page-home .rails {
  padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 74px);
  background: var(--paper);
}
.page-home .rails__title {
  margin: 0.4rem 0 clamp(22px, 4vw, 40px);
  font-size: clamp(1.55rem, 4.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.16;
}
.page-home .rails__grid {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
  min-width: 0;
}
.page-home .rail-card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper-bright);
  border: var(--home-rule-soft);
  transition: transform var(--step) var(--ease), border-color var(--step) var(--ease),
    box-shadow var(--step) var(--ease);
}
.page-home .rail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--flame);
  transition: width var(--step) var(--ease);
}
.page-home .rail-card:hover,
.page-home .rail-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 12px 26px rgba(22, 21, 15, 0.1);
}
.page-home .rail-card:hover::before,
.page-home .rail-card:focus-within::before {
  width: 56px;
}
.page-home .rail-card__idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--stone-mid);
}
.page-home .rail-card__title {
  margin: 0.55rem 0 0.6rem;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.page-home .rail-card__text {
  margin: 0 0 1rem;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--stone-deep);
}
.page-home .rail-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--flame);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--step) var(--ease);
}
.page-home .rail-card__link span {
  transition: transform var(--step) var(--ease);
}
.page-home .rail-card__link:hover,
.page-home .rail-card__link:focus-visible {
  border-bottom-color: var(--flame);
}
.page-home .rail-card__link:hover span {
  transform: translateX(4px);
}

/* ---------- 赛季 ---------- */
.page-home .season {
  padding: clamp(40px, 7vw, 84px) 0;
  background: var(--stone-light);
}
.page-home .season__title {
  margin: 0.4rem 0 clamp(22px, 4vw, 38px);
  font-size: clamp(1.5rem, 4.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.page-home .season__grid {
  display: grid;
  gap: clamp(20px, 3.4vw, 36px);
  min-width: 0;
}
.page-home .season__figure {
  margin: 0;
  background: var(--paper-bright);
  border: 1px solid var(--stone-mid);
}
.page-home .season__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}
.page-home .season__caption {
  padding: 0.7rem 0.9rem;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--stone-deep);
  border-top: 1px solid var(--stone-mid);
}

.page-home .reports {
  position: relative;
  min-width: 0;
}
.page-home .report-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-home .filters {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 0.9rem;
  border: 1px solid var(--stone-mid);
  background: var(--paper);
}
.page-home .filters > label {
  padding: 0.45rem 0.9rem;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--stone-deep);
  cursor: pointer;
  transition: background var(--step) var(--ease), color var(--step) var(--ease);
}
.page-home .filters > label:hover {
  background: var(--stone-light);
}
.page-home .report-radio:nth-of-type(1):checked ~ .filters > label:nth-child(1),
.page-home .report-radio:nth-of-type(2):checked ~ .filters > label:nth-child(2),
.page-home .report-radio:nth-of-type(3):checked ~ .filters > label:nth-child(3) {
  background: var(--ink);
  color: var(--paper-bright);
}
.page-home .report-radio:nth-of-type(1):focus-visible ~ .filters > label:nth-child(1),
.page-home .report-radio:nth-of-type(2):focus-visible ~ .filters > label:nth-child(2),
.page-home .report-radio:nth-of-type(3):focus-visible ~ .filters > label:nth-child(3) {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
}

.page-home .report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--stone-mid);
}
.page-home .report {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.3rem 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stone-mid);
}
.page-home .report-radio:nth-of-type(1):checked ~ .report-list > .report,
.page-home .report-radio:nth-of-type(2):checked ~ .report-list > .report.is-possession,
.page-home .report-radio:nth-of-type(3):checked ~ .report-list > .report.is-upset {
  display: grid;
  animation: board-wipe 160ms var(--ease) both;
}
.page-home .report__teams {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}
.page-home .report__score {
  display: inline-block;
  margin: 0 0.35rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--flame);
}
.page-home .report__meta {
  margin: 0.15rem 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--stone-deep);
}
.page-home .report .tag {
  align-self: start;
  white-space: nowrap;
}

.page-home .fixture-title {
  margin: clamp(28px, 5vw, 44px) 0 0.9rem;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.page-home .fixture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--stone-mid);
  border: 1px solid var(--stone-mid);
}
.page-home .fixture {
  padding: 0.85rem 1rem;
  background: var(--paper-bright);
}
.page-home .fixture__time {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--flame);
}
.page-home .fixture__teams {
  margin: 0.25rem 0 0.1rem;
  font-size: 15.5px;
  font-weight: 700;
}
.page-home .fixture__teams span {
  margin: 0 0.25rem;
  font-weight: 400;
  color: var(--stone-mid);
}
.page-home .fixture__round {
  margin: 0;
  font-size: 12.5px;
  color: var(--stone-deep);
}
.page-home .season__note {
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--flame);
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone-deep);
}

/* ---------- 客户端更新 ---------- */
.page-home .update {
  padding: clamp(42px, 7vw, 88px) 0;
  background: var(--paper-bright);
}
.page-home .update__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  min-width: 0;
}
.page-home .update__title {
  margin: 0.4rem 0 clamp(18px, 3vw, 28px);
  font-size: clamp(1.55rem, 4.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
.page-home .update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--home-rule-soft);
}
.page-home .update-list__item {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 0;
  border-bottom: var(--home-rule-soft);
}
.page-home .update-list__ver {
  justify-self: start;
  padding: 0.15rem 0.5rem;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.page-home .update-list__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--stone-deep);
}
.page-home .update__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 30px);
}
.page-home .update__figure {
  margin: 0;
  border: 1px solid var(--stone-mid);
  box-shadow: 10px 10px 0 var(--stone-light);
  background: var(--paper);
}
.page-home .update__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.1);
}
.page-home .update__caption {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--stone-mid);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--stone-deep);
}

/* ---------- 数据与联络 ---------- */
.page-home .trust {
  padding: clamp(42px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: var(--ink);
  color: var(--paper);
}
.page-home .trust .eyebrow {
  color: var(--sand);
}
.page-home .trust__title {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(1.55rem, 4.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.16;
  color: var(--paper-bright);
}
.page-home .trust__lede {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--stone-light);
}
.page-home .trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 26px);
  margin: clamp(24px, 4vw, 40px) 0;
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(215, 211, 199, 0.35);
}
.page-home .trust__stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.page-home .trust__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.05;
  color: var(--flame-light);
}
.page-home .trust__label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--stone-light);
}
.page-home .trust__contact {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(215, 211, 199, 0.4);
  background: rgba(255, 255, 255, 0.03);
}
.page-home .trust__contact-title {
  margin: 0 0 0.9rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper-bright);
}
.page-home .trust__contact-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.page-home .trust__contact-list li {
  display: grid;
  gap: 0.15rem;
}
.page-home .trust__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--sand);
}
.page-home .trust__v {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper-bright);
  overflow-wrap: anywhere;
}
.page-home .trust__foot {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone-light);
}
.page-home .trust__foot .link {
  color: var(--flame-light);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .board-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .fixture-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .trust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
  .page-home .hero__figure {
    aspect-ratio: 16 / 12;
  }
  .page-home .rails__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .rails__grid > .rail-card:nth-child(even) {
    margin-top: 2.4rem;
  }
  .page-home .season__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .page-home .update__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }
  .page-home .trust__contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 2rem;
  }
  .page-home .trust__contact-title {
    grid-column: 1 / -1;
    margin-bottom: 0.2rem;
  }
  .page-home .trust__contact-list {
    grid-column: 1;
    margin-bottom: 0;
  }
  .page-home .trust__cta {
    grid-column: 2;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .page-home .rail-card:hover,
  .page-home .rail-card:focus-within {
    transform: none;
  }
}
