.page-home {
  --hm-cut: 28px;
  --hm-panel: rgba(15, 42, 34, 0.72);
  background:
    radial-gradient(1100px 520px at 10% -8%, rgba(23, 74, 58, 0.55), transparent 64%),
    radial-gradient(760px 420px at 94% 3%, rgba(180, 85, 47, 0.2), transparent 68%),
    var(--carbon);
  color: var(--ink);
  overflow-x: hidden;
}

.page-home .container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.page-home .section {
  padding: clamp(2.75rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .section__head {
  max-width: 62ch;
}

.page-home .section__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  line-height: 1.18;
  margin: 0.6rem 0 0;
}

.page-home .section__note {
  margin: 0.85rem 0 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.8;
}

/* ================= HERO ================= */
.page-home .hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4.25rem) 0 clamp(2.5rem, 7vw, 4.75rem);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(244, 241, 234, 0.045) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(244, 241, 234, 0.032) 0 1px, transparent 1px 92px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal) 45%, transparent);
  opacity: 0.55;
}

.page-home .hero__grid {
  position: relative;
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: grid;
  gap: 2.25rem;
}

.page-home .hero__copy .lead {
  margin: 1.1rem 0 0;
  max-width: 54ch;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.85;
  opacity: 0.9;
}

.page-home .hero__copy .btn-row {
  margin-top: 1.6rem;
}

.page-home .hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.page-home .hero__fact dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.page-home .hero__fact dd {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
}

.page-home .hero__stage {
  display: grid;
  gap: 1.25rem;
}

.page-home .hero__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 96.5% 100%, 0 100%);
  background: linear-gradient(155deg, var(--green-900), var(--slate));
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  filter: saturate(0.86) contrast(1.06);
}

.page-home .hero__visual .media__caption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .hero__rail {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 320px);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .hero__rail > li {
  scroll-snap-align: start;
}

.page-home .hero__card {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--cyan);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-home .hero__card:hover,
.page-home .hero__card:focus-visible {
  background: var(--glass-strong);
  border-left-color: var(--signal);
  transform: translateX(3px);
}

.page-home .hero__card-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.page-home .hero__card-meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .hero__card-more {
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-2);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.page-home .hero__card:hover .hero__card-more,
.page-home .hero__card:focus-visible .hero__card-more {
  opacity: 1;
}

/* ================= ROUND ================= */
.page-home .round__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.25rem;
}

.page-home .round__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.page-home .round__item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

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

.page-home .round__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
}

.page-home .round__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.35;
}

.page-home .round__text {
  margin: 0.6rem 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 58ch;
}

.page-home .round__main .btn-row {
  margin-top: 1.5rem;
}

.page-home .round__aside {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.page-home .round__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 4% 100%);
  background: linear-gradient(150deg, var(--green-700), var(--slate));
}

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

.page-home .round__figure .media__caption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .round__aside .data-list {
  border-top: 1px solid var(--line);
}

/* ================= TEAMS ================= */
.page-home .teams__layout {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.page-home .teams__aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.page-home .teams__figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  background: linear-gradient(165deg, var(--green-900), var(--carbon));
}

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

.page-home .teams__hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ink-2);
  border-left: 2px solid var(--earth);
  padding-left: 0.85rem;
}

.page-home .teams__body {
  min-width: 0;
}

.page-home .teams__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .teams__btn {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.95rem;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.page-home .teams__btn:hover,
.page-home .teams__btn:focus-visible {
  color: var(--ink);
  border-color: var(--cyan);
}

.page-home .teams__btn[aria-pressed="true"] {
  color: var(--carbon);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .teams__count {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.page-home .teams__count .mono {
  color: var(--signal);
  font-size: 0.95rem;
}

.page-home .teams__list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-home .teams__link {
  display: grid;
  gap: 0.4rem;
  height: 100%;
  padding: 1.05rem 1.1rem;
  background: var(--hm-panel);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-home .teams__link:hover,
.page-home .teams__link:focus-visible {
  background: var(--green-700);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .teams__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.page-home .teams__desc {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ink-2);
}

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

/* ================= VERSION ================= */
.page-home .version__grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.page-home .version__card {
  position: relative;
  display: block;
  padding: 1.35rem 1.2rem 1.5rem;
  background: linear-gradient(180deg, rgba(23, 74, 58, 0.62), rgba(15, 42, 34, 0.9));
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .version__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0.22);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.page-home .version__card:hover,
.page-home .version__card:focus-visible {
  border-color: var(--line);
  transform: translateY(-3px);
}

.page-home .version__card:hover::before,
.page-home .version__card:focus-visible::before {
  transform: scaleX(1);
}

.page-home .version__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .version__name {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
}

.page-home .version__text {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ================= VENUES ================= */
.page-home .venues__grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.page-home .venues__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.page-home .venues__item {
  padding-left: 1rem;
  border-left: 2px solid var(--earth);
}

.page-home .venues__name {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.page-home .venues__text {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.page-home .venues__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(150deg, var(--slate), var(--green-900));
}

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

.page-home .venues__figure .media__caption {
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--earth);
}

.page-home .venues .btn-row {
  margin-top: 1.75rem;
}

/* ================= COLLAB ================= */
.page-home .collab__inner {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(150deg, rgba(15, 42, 34, 0.92), rgba(29, 42, 51, 0.85));
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--signal);
}

.page-home .collab__title {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.22;
}

.page-home .collab__text {
  margin: 0.9rem 0 0;
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-2);
}

.page-home .collab__copy .btn-row {
  margin-top: 1.5rem;
}

.page-home .collab__panel {
  align-self: start;
  padding: 1.25rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--line);
}

.page-home .collab__panel-title {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.page-home .collab__panel-value {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cyan);
}

.page-home .collab__panel-note {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.page-home .collab__points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.55rem;
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .collab__points li::before {
  content: "—";
  color: var(--signal);
  margin-right: 0.5rem;
}

/* ================= 响应式 ================= */
@media (min-width: 720px) {
  .page-home .hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .page-home .venues__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 2.25rem;
  }

  .page-home .collab__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 2.25rem;
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: start;
    gap: 3rem;
  }

  .page-home .hero__rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    max-height: 336px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.4rem;
    padding-bottom: 0;
  }

  .page-home .round__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 2.75rem;
  }

  .page-home .teams__layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.62fr);
    align-items: start;
    gap: 2.5rem;
  }
}

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

@media (max-width: 480px) {
  .page-home .hero__visual {
    clip-path: none;
  }

  .page-home .round__figure,
  .page-home .venues__figure,
  .page-home .teams__figure {
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__card,
  .page-home .teams__link,
  .page-home .version__card,
  .page-home .version__card::before,
  .page-home .hero__card-more {
    transition: none;
  }
}
