.page-home {
  --home-rail-w: 322px;
  --home-gap: clamp(16px, 2.4vw, 30px);
  --home-breath: clamp(40px, 7vw, 96px);
}

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

/* ---------- 框景首屏 ---------- */

.page-home .hero-frame {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(10px, 1.6vw, 20px) var(--pad-x) 0;
}

.page-home .hero-frame__window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-deep);
  isolation: isolate;
}

.page-home .hero-frame__window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  z-index: 4;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--c-line) 0 1px, transparent 1px 26px);
}

.page-home .hero-frame__window::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 8px;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, var(--c-line) 0 1px, transparent 1px 26px);
}

.page-home .hero-frame__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-frame__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.65) contrast(1.08);
}

.page-home .hero-frame__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(10, 16, 32, 0.62), rgba(10, 16, 32, 0.95)),
    repeating-linear-gradient(90deg, rgba(38, 52, 74, 0.4) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, rgba(38, 52, 74, 0.4) 0 1px, transparent 1px 64px);
}

.page-home .hero-frame__corner {
  position: absolute;
  z-index: 5;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  pointer-events: none;
}

.page-home .hero-frame__corner--tl { top: 6px; left: 8px; }
.page-home .hero-frame__corner--tr { top: 6px; right: 8px; text-align: right; }
.page-home .hero-frame__corner--bl { bottom: 4px; left: 8px; }
.page-home .hero-frame__corner--br { bottom: 4px; right: 8px; text-align: right; }

.page-home .hero-frame__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  padding: clamp(62px, 8vw, 96px) clamp(18px, 4vw, 58px) clamp(56px, 6.4vw, 80px) clamp(26px, 4.4vw, 64px);
}

.page-home .hero-frame__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-home .hero-frame__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}

.page-home .hero-frame__text {
  max-width: 54ch;
  margin: 0 0 26px;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.78;
  color: var(--c-muted);
}

.page-home .hero-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .hero-frame__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
}

.page-home .glance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--c-line-soft);
  border: 1px solid var(--c-line);
}

.page-home .glance__item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(5, 8, 15, 0.74);
  box-shadow: inset 2px 0 0 transparent;
  transition: box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .glance__item:hover {
  background: rgba(18, 27, 46, 0.92);
  box-shadow: inset 2px 0 0 var(--c-accent);
}

.page-home .glance__item--hot {
  background: rgba(240, 180, 65, 0.07);
  box-shadow: inset 2px 0 0 var(--c-amber);
}

.page-home .glance__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c-ink);
}

.page-home .glance__num {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  color: var(--c-amber);
}

.page-home .glance__unit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-muted);
}

.page-home .glance__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ---------- 赛程轨道 + 数据面板 ---------- */

.page-home .board {
  margin-top: clamp(38px, 6vw, 78px);
}

.page-home .board__inner {
  display: grid;
  gap: var(--home-gap);
}

.page-home .board__rail {
  padding-left: 14px;
  border-left: 1px solid var(--c-line);
}

.page-home .rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.page-home .rail-head__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-ink);
}

.page-home .rail-head__meta {
  font-size: 11px;
  color: var(--c-muted);
}

.page-home .rail-figure {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-black);
}

.page-home .rail-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.72;
}

.page-home .rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .rail-item__link {
  display: grid;
  gap: 3px;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--c-line);
  border-left: 2px solid var(--c-line);
  background: var(--c-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .rail-item__link:hover,
.page-home .rail-item__link:focus-visible {
  border-left-color: var(--c-accent);
  background: rgba(255, 106, 43, 0.08);
  transform: translateX(2px);
}

.page-home .rail-item__time {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-accent);
}

.page-home .rail-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}

.page-home .rail-item__meta {
  font-size: 12px;
  color: var(--c-muted);
}

.page-home .board__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
}

.page-home .board__panel::after {
  content: "";
  position: absolute;
  inset: 0 0 52% 52%;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(38, 52, 74, 0.6) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(180deg, rgba(38, 52, 74, 0.6) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 74%);
  mask-image: radial-gradient(circle at 100% 0, #000, transparent 74%);
}

.page-home .board__head,
.page-home .stats,
.page-home .board__body,
.page-home .field-row {
  position: relative;
  z-index: 1;
}

.page-home .board__head .tag {
  display: inline-block;
  margin-bottom: 12px;
}

.page-home .board__head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.7vw, 30px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.page-home .board__sub {
  margin: 0;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

.page-home .stats {
  display: grid;
  gap: 1px;
  margin: 20px 0 22px;
  border: 1px solid var(--c-line);
  background: var(--c-line-soft);
}

.page-home .stat {
  display: grid;
  gap: 5px;
  padding: 16px 16px 18px;
  background: var(--c-deep);
}

.page-home .stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1;
  color: var(--c-data);
}

.page-home .stat__label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-muted);
}

.page-home .board__body {
  display: grid;
  gap: 18px;
}

.page-home .board__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--c-muted);
}

.page-home .board__figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.page-home .board__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.82;
}

.page-home .field-row {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .field-row li {
  padding: 5px 9px;
  border: 1px solid var(--c-data-soft);
  background: rgba(38, 224, 198, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--c-data);
}

.page-home .inline-link {
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.page-home .home-breath {
  height: var(--home-breath);
}

/* ---------- 费用卡片 ---------- */

.page-home .fees .fee-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.page-home .fee-card {
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .fee-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-accent-soft);
}

.page-home .fee-card[open] {
  transform: none;
  border-color: var(--c-amber);
}

.page-home .fee-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "tag toggle"
    "name toggle"
    "scope toggle";
  align-items: center;
  gap: 10px 14px;
  padding: 22px 20px;
  cursor: pointer;
  list-style: none;
}

.page-home .fee-card__summary::-webkit-details-marker {
  display: none;
}

.page-home .fee-card__summary::marker {
  content: "";
}

.page-home .fee-card__summary .tag {
  grid-area: tag;
  justify-self: start;
}

.page-home .fee-card__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

.page-home .fee-card__scope {
  grid-area: scope;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  color: var(--c-amber);
}

.page-home .fee-card__toggle {
  grid-area: toggle;
  position: relative;
  align-self: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--c-line);
  transition: border-color 0.18s var(--ease);
}

.page-home .fee-card__toggle::before,
.page-home .fee-card__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--c-muted);
  transition: transform 0.2s var(--ease), background 0.18s var(--ease);
}

.page-home .fee-card__toggle::before {
  width: 10px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.page-home .fee-card__toggle::after {
  width: 1px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.page-home .fee-card[open] .fee-card__toggle {
  border-color: var(--c-amber);
}

.page-home .fee-card[open] .fee-card__toggle::before {
  background: var(--c-amber);
}

.page-home .fee-card[open] .fee-card__toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.page-home .fee-card__body {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--c-line-soft);
}

.page-home .fee-card__body p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--c-muted);
}

.page-home .fee-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .fee-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink);
}

.page-home .fee-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--c-amber);
}

.page-home .fees__foot {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* ---------- 资料区 ---------- */

.page-home .resources .res-block {
  display: grid;
  gap: var(--home-gap);
  margin-top: 26px;
}

.page-home .res-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.page-home .res-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.7;
}

.page-home .res-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--c-line);
  background: var(--c-line);
}

.page-home .res-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px 20px 22px;
  background: var(--c-deep);
  border-top: 2px solid transparent;
}

.page-home .res-card--schedule { border-top-color: var(--c-accent); }
.page-home .res-card--stats { border-top-color: var(--c-data); }
.page-home .res-card--inj { border-top-color: var(--c-grass); }

.page-home .res-card .tag {
  justify-self: start;
}

.page-home .res-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

.page-home .res-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.74;
  color: var(--c-muted);
}

.page-home .res-card__link {
  justify-self: start;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-home .res-card__link::after {
  content: " →";
}

.page-home .res-card__link:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.page-home .res-card__link--soft {
  font-size: 11px;
  color: var(--c-grass-ink);
  border-color: rgba(76, 127, 99, 0.5);
}

.page-home .res-card__link--soft:hover {
  color: var(--c-grass-ink);
  border-color: var(--c-grass-ink);
}

/* ---------- 服务与联系 ---------- */

.page-home .support {
  margin-top: clamp(40px, 6vw, 86px);
  padding-bottom: clamp(36px, 5vw, 72px);
}

.page-home .support__inner {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 3.4vw, 46px);
  border: 1px solid var(--c-line);
  background-image: linear-gradient(120deg, rgba(18, 27, 46, 0.96), rgba(5, 8, 15, 0.96));
}

.page-home .support__text .tag {
  display: inline-block;
  margin-bottom: 14px;
}

.page-home .support__text h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.24;
  color: var(--c-ink);
}

.page-home .support__text p {
  margin: 0 0 18px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--c-muted);
}

.page-home .support__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--c-line);
  background: var(--c-line-soft);
}

.page-home .support__channel {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: var(--c-deep);
}

.page-home .support__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

.page-home .support__v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink);
  word-break: break-word;
}

.page-home .support__v.num {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
  .page-home .hero-frame__corner--bl,
  .page-home .hero-frame__corner--br {
    display: none;
  }

  .page-home .hero-frame__corner {
    font-size: 10px;
    padding: 10px 12px;
  }

  .page-home .board__rail {
    padding-left: 10px;
  }
}

@media (min-width: 560px) {
  .page-home .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .board__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 24px;
  }

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

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

@media (min-width: 900px) {
  .page-home .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .support__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .hero-frame__window {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-home .hero-frame__inner {
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
    align-items: center;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .page-home .board__inner {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-home .resources .res-block {
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 2.4fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .glance__item,
  .page-home .rail-item__link,
  .page-home .fee-card,
  .page-home .fee-card__toggle::before,
  .page-home .fee-card__toggle::after,
  .page-home .res-card__link,
  .page-home .inline-link {
    transition: none;
  }

  .page-home .rail-item__link:hover,
  .page-home .rail-item__link:focus-visible,
  .page-home .fee-card:hover {
    transform: none;
  }
}
