.page-home {
  --home-gap: clamp(16px, 2.6vw, 32px);
  --home-glass: rgba(30, 34, 40, .72);
  --home-body: rgba(255, 255, 255, .78);
  --home-muted: rgba(255, 255, 255, .62);
  background: var(--ink);
  color: var(--white);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-h) + 28px) 0 clamp(32px, 5vw, 60px);
  isolation: isolate;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(66% 52% at 84% 4%, rgba(255, 90, 31, .2), transparent 72%),
    radial-gradient(48% 42% at 4% 92%, rgba(201, 58, 18, .16), transparent 74%),
    repeating-linear-gradient(118deg, transparent 0 58px, rgba(124, 143, 163, .08) 58px 59px);
  pointer-events: none;
}

.page-home .home-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 clamp(18px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
}

.page-home .home-hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-size: clamp(34px, 7.6vw, 82px);
}

.page-home .home-hero__title-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: .26em;
  color: var(--fox);
  text-transform: uppercase;
}

.page-home .home-hero__title-mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: .04em .2em .1em;
  color: var(--ink);
}

.page-home .home-hero__title-mark::before {
  content: "";
  position: absolute;
  inset: 6% -.06em -4% -.06em;
  z-index: -1;
  background: linear-gradient(96deg, var(--fox) 0%, var(--ember) 100%);
  clip-path: polygon(0 12%, 100% 0, 97% 100%, 1% 91%);
}

.page-home .home-hero__title-plain {
  color: var(--cream);
}

.page-home .home-hero__lede {
  max-width: 44ch;
  margin: 24px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--home-body);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-hero__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.page-home .home-hero__frame {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11;
  background: var(--panel);
}

.page-home .home-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, rgba(18, 19, 22, 0) 38%, rgba(18, 19, 22, .86) 100%);
  pointer-events: none;
}

.page-home .home-hero__card {
  padding: 15px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--home-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}

.page-home .home-hero__card--c {
  grid-column: 1 / -1;
  border-left: 3px solid var(--fox);
}

.page-home .home-hero__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, .55);
}

.page-home .home-hero__card-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

.page-home .home-hero__card-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--signal);
}

.page-home .home-hero__card-value small {
  margin-left: 3px;
  font-size: .42em;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--cream);
}

.page-home .home-hero__card-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--home-body);
}

.page-home .home-hero__card-more {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--home-muted);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  list-style: none;
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.page-home .home-hero__stats .stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
}

.page-home .home-hero__stats .stat__value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
}

.page-home .home-hero__stats .stat__label {
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--slate);
}

/* ---------- 联赛专题 ---------- */
.page-home .home-leagues__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(24px, 3.4vw, 40px);
}

.page-home .home-leagues__visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

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

.page-home .home-leagues__visual figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--slate);
}

.page-home .home-leagues__panel .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .filter-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--signal);
  padding-right: 4px;
}

.page-home .home-leagues__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-league {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.page-home .home-league:hover,
.page-home .home-league:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 31, .5);
}

.page-home .home-league__count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ice);
}

.page-home .home-league__name {
  margin: 0;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
}

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

.page-home .home-league__link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--fox);
  text-decoration: none;
}

.page-home .home-league__link:hover {
  color: var(--signal);
}

/* ---------- 桌面端工具 ---------- */
.page-home .home-tools__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(24px, 3.4vw, 40px);
}

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

.page-home .home-tool {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.page-home .home-tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--fox), transparent 72%);
  opacity: .75;
}

.page-home .home-tool:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 255, 62, .36);
}

.page-home .home-tool__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--slate);
}

.page-home .home-tool__name {
  margin: 8px 0 0;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .home-tool p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--home-muted);
}

.page-home .home-tools__hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--signal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(216, 255, 62, .07);
  font-size: 13px;
  line-height: 1.7;
  color: var(--cream);
}

.page-home .home-tools__figure {
  margin: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

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

.page-home .home-tools__figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--slate);
}

/* ---------- 观赛与回看 ---------- */
.page-home .home-guide__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(24px, 3.4vw, 40px);
}

.page-home .home-guide__figure {
  margin: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.page-home .home-guide__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.page-home .home-guide__figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--slate);
}

.page-home .home-guide__topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-guide__topic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "idx name"
    "idx note";
  column-gap: 12px;
  row-gap: 3px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.page-home .home-guide__topic:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

.page-home .home-guide__topic-idx {
  grid-area: idx;
  align-self: start;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ember);
}

.page-home .home-guide__topic-name {
  grid-area: name;
  margin: 0;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: #241a13;
}

.page-home .home-guide__topic-note {
  grid-area: note;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #5a4839;
}

.page-home .home-guide__actions {
  margin-top: clamp(20px, 3vw, 28px);
}

/* ---------- 内容与更新 ---------- */
.page-home .home-notes__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(24px, 3.4vw, 40px);
}

.page-home .home-notes__types {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-note-type {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(124, 143, 163, .32);
}

.page-home .home-note-type:first-child {
  padding-top: 0;
}

.page-home .home-note-type__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--fox);
  padding-top: 4px;
}

.page-home .home-note-type h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--white);
}

.page-home .home-note-type p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--home-muted);
}

.page-home .home-notes__panel {
  align-self: start;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.page-home .home-notes__panel-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-notes__panel-row:first-child {
  padding-top: 0;
}

.page-home .home-notes__panel-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--signal);
}

.page-home .home-notes__panel-label {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--home-muted);
}

.page-home .home-notes__panel-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--fox);
  text-decoration: none;
}

.page-home .home-notes__panel-link:hover {
  color: var(--signal);
}

/* ---------- 收尾 CTA ---------- */
.page-home .home-cta {
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}

.page-home .home-cta__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 90, 31, .34);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(128deg, rgba(255, 90, 31, .16) 0%, rgba(30, 34, 40, .94) 46%, rgba(18, 19, 22, .96) 100%);
}

.page-home .home-cta__inner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 62, .16), transparent 68%);
  pointer-events: none;
}

.page-home .home-cta__title {
  margin: 14px 0 0;
  max-width: 22ch;
  font-family: var(--font-title);
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .home-cta__text {
  max-width: 52ch;
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--home-body);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .page-home .home-leagues__list,
  .page-home .home-tools__modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 940px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(28px, 3.4vw, 52px);
  }

  .page-home .home-leagues__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .home-leagues__visual {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .page-home .home-tools__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .home-tools__figure {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .page-home .home-guide__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .home-guide__figure {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .page-home .home-notes__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .home-notes__panel {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__title {
    font-size: clamp(64px, 6.4vw, 92px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__card,
  .page-home .home-league,
  .page-home .home-tool,
  .page-home .home-guide__topic {
    transition: none;
  }

  .page-home .home-hero__card:hover,
  .page-home .home-league:hover,
  .page-home .home-tool:hover,
  .page-home .home-guide__topic:hover {
    transform: none;
  }
}
