.page-home {
  --home-gap: clamp(14px, 2vw, 22px);
  --home-pad-y: clamp(44px, 7vw, 92px);
  display: block;
  padding-bottom: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(120% 80% at 84% -12%, rgba(255, 106, 26, .14), transparent 58%),
    radial-gradient(90% 70% at 6% 4%, rgba(53, 224, 208, .1), transparent 62%),
    var(--arena);
  color: var(--ink);
}

.page-home .section {
  padding: var(--home-pad-y) 0;
}

/* ---------- 首屏 ---------- */
.page-home .hero-home {
  padding: clamp(20px, 4vw, 48px) 0 clamp(34px, 6vw, 72px);
}

.page-home .hero-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.page-home .hero-home__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 18px;
}

.page-home .hero-home__meta-text {
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--mist);
}

.page-home .hero-home__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 8.6vw, 82px);
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

.page-home .hero-home__title::after {
  content: "";
  display: block;
  width: clamp(58px, 12vw, 104px);
  height: 6px;
  margin-top: 18px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--orange), rgba(255, 106, 26, 0));
}

.page-home .hero-home__lede {
  margin: 0 0 22px;
  max-width: 52ch;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.8;
  color: rgba(242, 245, 247, .82);
}

.page-home .hero-home__picker {
  margin-bottom: 20px;
  padding: 14px 16px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(14, 22, 38, .72);
}

.page-home .hero-home__picker .squad-picker__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .hero-home__picker .squad-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.page-home .squad-chip {
  min-height: 44px;
  padding: 0 16px;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .squad-chip.is-active,
.page-home .squad-chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--arena);
}

.page-home .squad-chip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .hero-home__entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-home .entry-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: baseline;
  min-height: 44px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.page-home .entry-link:hover,
.page-home .entry-link:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 106, 26, .1);
  transform: translateY(-2px);
}

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

.page-home .entry-link__kicker {
  grid-row: span 2;
  align-self: start;
  padding-top: 2px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .entry-link__title {
  font-size: 15px;
  font-weight: 700;
}

.page-home .entry-link__note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
}

.page-home .hero-home__visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 340px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--stand);
}

.page-home .hero-home__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.85) contrast(1.05);
}

.page-home .hero-home__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 11, 20, .28) 0%, rgba(7, 11, 20, .12) 44%, rgba(7, 11, 20, .92) 100%);
}

.page-home .hero-home__arc {
  position: absolute;
  right: -8%;
  bottom: 27%;
  z-index: 2;
  width: 72%;
  height: auto;
  pointer-events: none;
}

.page-home .scoreboard {
  position: absolute;
  inset: auto 12px 12px 12px;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-home .scoreboard__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(147, 164, 186, .22);
  background: rgba(7, 11, 20, .76);
}

.page-home .scoreboard__num {
  font-family: var(--font-num);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
}

.page-home .scoreboard__cell:nth-child(2) .scoreboard__num {
  color: var(--orange);
}

.page-home .scoreboard__label {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mist);
}

/* ---------- 赛事日历 ---------- */
.page-home .cal__figure {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 30px);
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.page-home .cal__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .cal__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 42px 16px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(242, 245, 247, .92);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0), rgba(7, 11, 20, .92));
}

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

.page-home .cal__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(222px, 82%);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .cal__rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .cal__rail::-webkit-scrollbar-thumb {
  border-radius: var(--pill);
  background: rgba(147, 164, 186, .32);
}

.page-home .round-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(24, 35, 53, .86), rgba(14, 22, 38, .94));
  scroll-snap-align: start;
  transition: border-color .18s var(--ease), opacity .18s var(--ease), transform .18s var(--ease);
}

.page-home .round-card::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: var(--pill);
  background: rgba(147, 164, 186, .3);
}

.page-home .round-card.is-current {
  border-color: rgba(255, 106, 26, .45);
}

.page-home .round-card.is-current::before {
  background: var(--orange);
}

.page-home .round-card.is-active {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.page-home .round-card.is-dimmed {
  opacity: .34;
}

.page-home .round-card.is-hidden {
  display: none;
}

.page-home .round-card__round {
  margin: 0;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-home .round-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .round-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .round-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding-top: 6px;
}

.page-home .round-card__tags .tag {
  padding: 2px 10px;
  font-size: 11.5px;
}

.page-home .cal__rank {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(53, 224, 208, .34);
  background: rgba(24, 35, 53, .58);
}

.page-home .cal__rank-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.page-home .cal__rank-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .rank-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .rank-points li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--mist);
}

.page-home .rank-points li:last-child {
  border-bottom: 0;
}

.page-home .rank-points .num {
  font-family: var(--font-num);
  color: var(--cyan);
}

.page-home .cal__rank .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- 两端分工 ---------- */
.page-home .ends__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .ends__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(24, 35, 53, .82), rgba(14, 22, 38, .94));
}

.page-home .ends__card--app {
  border-color: rgba(255, 106, 26, .4);
}

.page-home .ends__card--web {
  border-color: rgba(53, 224, 208, .36);
}

.page-home .ends__card > p {
  margin: 0;
}

.page-home .ends__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.4vw, 27px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.24;
}

.page-home .ends__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .fold {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.page-home .fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
}

.page-home .fold > summary::-webkit-details-marker {
  display: none;
}

.page-home .fold > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--pill);
  border: 1px solid currentColor;
  font-size: 14px;
  line-height: 1;
}

.page-home .fold[open] > summary::after {
  content: "−";
}

.page-home .fold > summary:hover,
.page-home .fold > summary:focus-visible {
  color: var(--ink);
}

.page-home .fold > summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .fold__list {
  display: grid;
  gap: 6px;
  margin: 8px 0 2px;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
}

/* ---------- 三步路径 ---------- */
.page-home .steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.page-home .steps__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.page-home .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
}

.page-home .step:first-child {
  padding-top: 4px;
  border-top: 0;
}

.page-home .step__num {
  font-family: var(--font-num);
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-home .step__title {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
}

.page-home .step__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .steps__foot {
  margin: 22px 0 0;
}

.page-home .steps__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
}

.page-home .steps__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .steps__figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--mist);
  background: rgba(14, 22, 38, .92);
  border-top: 1px solid var(--line);
}

/* ---------- 场馆 ---------- */
.page-home .venues__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 36px);
  align-items: center;
}

.page-home .venues__figure {
  order: -1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.page-home .venues__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .venues__text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(242, 245, 247, .82);
}

.page-home .venues__list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .venues__list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--field);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .venues__key {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 上海服务 ---------- */
.page-home .service__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  margin-top: 24px;
}

.page-home .service__card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(24, 35, 53, .55);
}

.page-home .service__card--muted {
  background: rgba(14, 22, 38, .74);
}

.page-home .service__card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.page-home .service__card p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .service__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .service__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

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

.page-home .service__key {
  min-width: 72px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .service__val {
  color: var(--ink);
  word-break: break-all;
}

.page-home .service__row .copy-btn {
  margin-left: auto;
  min-height: 36px;
}

.page-home .service__links {
  list-style: none;
  margin: 14px 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .service__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.page-home .service__links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .service__card .service__icp {
  margin: 0;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(147, 164, 186, .82);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .scoreboard {
    inset: auto 16px 16px 16px;
  }

  .page-home .scoreboard__cell {
    padding: 12px 14px;
  }
}

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

@media (min-width: 900px) {
  .page-home .venues__grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }

  .page-home .venues__figure {
    order: 0;
  }

  .page-home .service__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

@media (min-width: 940px) {
  .page-home .steps__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
}

@media (min-width: 960px) {
  .page-home .hero-home__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 3.4vw, 48px);
  }

  .page-home .hero-home__visual {
    aspect-ratio: 4 / 3.1;
    min-height: 420px;
  }
}

@media (min-width: 1000px) {
  .page-home .cal__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .page-home .cal__rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 2px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-link,
  .page-home .round-card,
  .page-home .squad-chip,
  .page-home .service__links a {
    transition: none;
  }

  .page-home .entry-link:hover,
  .page-home .round-card.is-active {
    transform: none;
  }
}
