/* ===== 首页 page-home 专属样式 ===== */
.page-home {
  --home-gap: 28px;
  --home-frame-pad: 24px;
  --home-hero-min: 640px;
  color: var(--white);
  background: var(--navy);
  overflow-x: clip;
}

.page-home .section {
  padding: 64px 0;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--home-hero-min);
  padding: 44px 0 28px;
  isolation: isolate;
  background: var(--navy-deep);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(7, 24, 48, 0.78) 0%, rgba(10, 30, 60, 0.82) 62%, var(--navy) 100%),
    radial-gradient(circle at 78% 28%, rgba(255, 215, 0, 0.1), transparent 42%);
}

.page-home .home-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 面包屑 */
.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.page-home .breadcrumb__link {
  color: var(--gold);
  text-decoration: none;
}

.page-home .breadcrumb__link:hover {
  text-decoration: underline;
}

.page-home .breadcrumb__sep {
  color: rgba(255, 215, 0, 0.5);
}

/* 框景容器 */
.page-home .frame.home-hero__frame {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(18, 42, 74, 0.92), rgba(7, 24, 48, 0.84));
  box-shadow: 0 24px 80px rgba(2, 8, 18, 0.5);
  overflow: hidden;
}

.page-home .home-hero__frame::before,
.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--gold);
  border-radius: 8px;
  opacity: 0.45;
  z-index: 2;
  pointer-events: none;
}

.page-home .home-hero__frame::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .home-hero__frame::after {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}

/* 刻度尺 */
.page-home .home-hero__scale {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 18px;
  width: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 215, 0, 0.2);
  z-index: 2;
}

.page-home .home-hero__scale::before,
.page-home .home-hero__scale::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 8px;
  height: 1px;
  background: rgba(255, 215, 0, 0.6);
}

.page-home .home-hero__scale::before {
  top: 0;
}

.page-home .home-hero__scale::after {
  bottom: 0;
}

.page-home .home-hero__scale-item {
  position: relative;
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 215, 0, 0.7);
  letter-spacing: 0.08em;
}

.page-home .home-hero__scale-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 7px;
  height: 1px;
  background: rgba(255, 215, 0, 0.3);
}

/* 首帧内容 */
.page-home .home-hero__content {
  padding: 30px 20px 26px;
  position: relative;
  z-index: 1;
}

.page-home .home-hero__tag {
  display: inline-flex;
  margin-bottom: 16px;
}

.page-home .home-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(7, 24, 48, 0.7);
}

.page-home .home-hero__lede {
  margin: 0 0 24px;
  color: var(--dim);
  max-width: 46em;
  line-height: 1.78;
}

.page-home .home-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.page-home .home-hero__btn {
  box-sizing: border-box;
}

.page-home .home-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-hero__fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.page-home .home-hero__fact dt {
  font-size: 13px;
  color: var(--dim);
  order: 2;
}

.page-home .home-hero__fact dd {
  margin: 0;
  order: 1;
  white-space: nowrap;
}

.page-home .home-hero__facts .stat--gold {
  font-family: var(--font-data);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
}

.page-home .home-hero__icp {
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* 首帧媒体 */
.page-home .home-hero__visual {
  position: relative;
  min-height: 200px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .home-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 24, 48, 0.45), transparent 52%);
}

.page-home .home-hero__visualtag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--white);
  background: rgba(10, 30, 60, 0.72);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
}

/* 首屏页内导航 */
.page-home .home-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero__navlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 24, 48, 0.5);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s;
}

.page-home .home-hero__navlink:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: var(--glow-gold);
}

.page-home .home-hero__navnum {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

/* ---------- 章节体系 ---------- */
.page-home .chapter {
  margin-bottom: 40px;
}

.page-home .chapter__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-home .chapter__num {
  font-family: var(--font-headline);
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.55);
  letter-spacing: 0.02em;
}

.page-home .chapter__label {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .chapter__title {
  font-family: var(--font-headline);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  margin: 0;
  color: var(--white);
  width: 100%;
  letter-spacing: 0.01em;
}

.page-home .chapter__body {
  max-width: 720px;
  color: var(--dim);
  line-height: 1.78;
  margin: 0;
}

/* ---------- 01 多联赛覆盖 ---------- */
.page-home .home-leagues {
  background: var(--navy);
}

.page-home .home-leagues__chapter {
  max-width: 860px;
}

.page-home .home-leagues__tabs {
  margin-top: 8px;
}

.page-home .home-leagues__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.page-home .home-leagues__tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}

.page-home .home-leagues__tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-home .home-leagues__tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.page-home .home-leagues__panel {
  margin-bottom: 28px;
}

.page-home .home-leagues__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

.page-home .home-leagues__img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.page-home .home-leagues__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.page-home .home-leagues__name {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
}

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

.page-home .home-leagues__meta li {
  position: relative;
  padding-left: 20px;
  color: var(--dim);
  line-height: 1.6;
  font-size: 15px;
}

.page-home .home-leagues__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.page-home .home-leagues__link {
  margin-top: auto;
  box-sizing: border-box;
  text-decoration: none;
}

/* ---------- 02 历史数据归档 ---------- */
.page-home .home-archive {
  background: var(--navy-deep);
  border-block: 1px solid var(--line-soft);
}

.page-home .home-archive__layout {
  display: grid;
  gap: 28px;
}

.page-home .home-archive__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}

.page-home .home-archive__media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-home .home-archive__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 60, 0.4), transparent 45%);
}

.page-home .home-archive__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .home-archive__subhead {
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
}

.page-home .home-archive__desc {
  color: var(--dim);
  margin: 0;
  line-height: 1.78;
  max-width: 60em;
}

.page-home .home-archive__months {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-archive__month {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  transition: border-color 0.2s, color 0.2s;
}

.page-home .home-archive__month:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-home .home-archive__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-archive__trust > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.page-home .home-archive__trust dt {
  color: var(--dim);
  font-size: 12px;
  order: 2;
}

.page-home .home-archive__trust dd {
  margin: 0;
  order: 1;
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.page-home .home-archive__foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 4px;
}

.page-home .home-archive__note {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
  max-width: 54em;
}

.page-home .home-archive__cta {
  box-sizing: border-box;
  text-decoration: none;
}

/* ---------- 03 版本更新日志 ---------- */
.page-home .home-updates {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.page-home .home-updates__chapter {
  max-width: 760px;
}

.page-home .home-updates__list {
  display: grid;
  gap: 14px;
}

.page-home .home-updates__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(18, 42, 74, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.page-home .home-updates__item:hover {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: var(--glow-gold);
}

.page-home .home-updates__ver {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-home .home-updates__ver .stat {
  font-family: var(--font-data);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.page-home .home-updates__tag.pill {
  align-self: center;
}

.page-home .home-updates__body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.4;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--white);
}

.page-home .home-updates__body p {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.68;
}

.page-home .home-updates__more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-home .home-updates__more .btn {
  box-sizing: border-box;
  text-decoration: none;
}

/* ---------- 响应式增强 ---------- */
@media (min-width: 768px) {
  .page-home .home-hero {
    --home-hero-min: 720px;
    padding-top: 56px;
  }

  .page-home .home-hero__scale {
    display: flex;
  }

  .page-home .home-hero__frame {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .page-home .home-hero__content {
    padding: 36px 28px 30px 62px;
  }

  .page-home .home-hero__visual {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .page-home .home-hero__visual img {
    min-height: 100%;
  }

  .page-home .home-hero__facts {
    grid-template-columns: repeat(4, auto);
    gap: 24px 40px;
  }

  .page-home .home-leagues__grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    padding: 24px;
  }

  .page-home .home-leagues__img {
    max-height: 420px;
  }

  .page-home .home-archive__layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

  .page-home .home-archive__media img {
    height: 360px;
  }

  .page-home .home-updates__item {
    grid-template-columns: 140px 1fr;
  }
}

@media (min-width: 1024px) {
  .page-home .section {
    padding: 88px 0;
  }

  .page-home .home-leagues__tabs {
    margin-top: 16px;
  }

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