/* =========================================================
   首页 · 入口 / 版本 / 数据 / 公告 / 支持
   ========================================================= */

.page-home {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

.page-home .home-pulse,
.page-home .home-desk,
.page-home .home-wire,
.page-home .home-cross,
.page-home .home-help {
  scroll-margin-top: calc(var(--header-h) + 72px);
}

/* ---------- 分屏首屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(760px 380px at 84% -8%, rgba(56, 225, 208, 0.13), transparent 62%),
    radial-gradient(620px 340px at 4% 2%, rgba(138, 107, 255, 0.11), transparent 60%);
  background-repeat: no-repeat;
}

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

.page-home .home-hero__title {
  margin: 18px 0 20px;
  font-family: var(--font-sans);
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--text);
}

.page-home .home-hero__lede {
  max-width: 60ch;
  color: var(--muted);
}

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

.page-home .home-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 22, 38, 0.75);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .home-hero__chip .sb-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}

.page-home .home-hero__chip--live {
  color: var(--cyan);
  border-color: rgba(56, 225, 208, 0.42);
  background: var(--cyan-12);
}

.page-home .home-hero__chip--live .sb-chip__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-12);
}

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

.page-home .home-hero__visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .home-hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

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

.page-home .home-hero__grid-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 42, 62, 0.75) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 62, 0.75) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.page-home .home-hero__ticks {
  padding: 14px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.page-home .home-hero__ticks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.page-home .home-hero__ticks-now {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.page-home .home-ticks {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-ticks__axis {
  stroke: var(--line);
  stroke-width: 2;
}

.page-home .home-ticks__item line {
  stroke: var(--faint);
  stroke-width: 1.5;
  transition: stroke var(--dur) var(--ease);
}

.page-home .home-ticks__item circle {
  fill: var(--bg);
  stroke: var(--faint);
  stroke-width: 1.5;
  transition: stroke var(--dur) var(--ease), fill var(--dur) var(--ease);
}

.page-home .home-ticks__item text {
  fill: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: fill var(--dur) var(--ease);
}

.page-home .home-ticks__item.is-current line {
  stroke: var(--cyan);
  stroke-width: 2;
}

.page-home .home-ticks__item.is-current circle {
  fill: var(--cyan);
  stroke: var(--cyan);
}

.page-home .home-ticks__item.is-current text {
  fill: var(--cyan);
  font-weight: 700;
}

.page-home .home-ticks__item:hover line,
.page-home .home-ticks__item:hover circle {
  stroke: var(--cyan);
}

.page-home .home-ticks__item:hover text {
  fill: var(--cyan);
}

/* ---------- 章节跳转条 ---------- */

.page-home .home-jump {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  background: rgba(6, 11, 23, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.page-home .home-jump__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.page-home .home-jump__inner::-webkit-scrollbar {
  display: none;
}

.page-home .home-jump__link {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-home .home-jump__link:hover,
.page-home .home-jump__link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-12);
  outline: none;
}

/* ---------- 版本脉冲时间轴 ---------- */

.page-home .home-pulse__head {
  margin-bottom: 34px;
}

.page-home .home-pulse__intro {
  max-width: 66ch;
  color: var(--muted);
}

.page-home .home-pulse__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-pulse__list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--line) 24%, var(--line) 76%, rgba(30, 42, 62, 0) 100%);
}

.page-home .home-pulse__item,
.page-home .home-pulse__break {
  position: relative;
  padding-left: 42px;
}

.page-home .home-pulse__item + .home-pulse__item,
.page-home .home-pulse__break + .home-pulse__item {
  margin-top: 20px;
}

.page-home .home-pulse__node {
  position: absolute;
  left: 0;
  top: 8px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
}

.page-home .home-pulse__node > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition: background-color var(--dur) var(--ease);
}

.page-home .home-pulse__item.is-live .home-pulse__node {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-12);
}

.page-home .home-pulse__item.is-live .home-pulse__node > span {
  background: var(--cyan);
}

.page-home .home-pulse__card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.page-home .home-pulse__item:hover .home-pulse__card,
.page-home .home-pulse__item:focus-within .home-pulse__card {
  border-color: rgba(56, 225, 208, 0.55);
  background: var(--raised);
  transform: translateY(-2px);
}

.page-home .home-pulse__card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-home .home-pulse__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.45;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.page-home .home-pulse__item:hover .home-pulse__count,
.page-home .home-pulse__item:focus-within .home-pulse__count {
  color: var(--amber);
  opacity: 1;
}

.page-home .home-pulse__title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .home-pulse__meta {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

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

.page-home .home-pulse__figure {
  max-width: 360px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}

.page-home .home-pulse__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
}

.page-home .home-pulse__cap {
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 当季数据速览 ---------- */

.page-home .home-desk__head {
  margin-bottom: 26px;
}

.page-home .home-desk__intro {
  max-width: 66ch;
  color: var(--muted);
}

.page-home .home-desk__band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 16px;
}

.page-home .home-desk__band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.82;
}

.page-home .home-desk__band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(96deg, rgba(6, 11, 23, 0.88) 0%, rgba(6, 11, 23, 0.12) 56%, rgba(58, 34, 12, 0.5) 100%);
}

.page-home .home-desk__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.page-home .home-desk__stat {
  background: var(--panel);
  padding: 20px 18px 18px;
  transition: background-color var(--dur) var(--ease);
}

.page-home .home-desk__stat:hover,
.page-home .home-desk__stat:focus-within {
  background: var(--raised);
}

.page-home .home-desk__stat-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .home-desk__stat-value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-desk__stat:hover .home-desk__stat-value,
.page-home .home-desk__stat:focus-within .home-desk__stat-value {
  color: var(--amber);
  transform: scale(1.06);
}

.page-home .home-desk__stat-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-home .home-desk__stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

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

/* ---------- 公告流 ---------- */

.page-home .home-wire__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-wire__all {
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease);
}

.page-home .home-wire__all:hover,
.page-home .home-wire__all:focus-visible {
  background-size: 100% 1px;
  outline: none;
}

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

.page-home .home-wire__link {
  display: block;
  height: 100%;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(30, 42, 62, 0.5);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-home .home-wire__link:hover,
.page-home .home-wire__link:focus-visible {
  border-color: rgba(56, 225, 208, 0.6);
  background: var(--raised);
  transform: translateY(-3px);
  box-shadow: 6px 7px 0 rgba(56, 225, 208, 0.16);
  outline: none;
}

.page-home .home-wire__title {
  margin: 14px 0 10px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .home-wire__item--lead .home-wire__title {
  font-size: clamp(20px, 4.6vw, 26px);
}

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

.page-home .home-wire__go {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  transition: color var(--dur) var(--ease);
}

.page-home .home-wire__link:hover .home-wire__go,
.page-home .home-wire__link:focus-visible .home-wire__go {
  color: var(--cyan);
}

/* ---------- 跨设备续看 ---------- */

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

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

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

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

.page-home .home-cross__figure .sb-media__cap {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 人工支持 ---------- */

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

.page-home .home-help__main {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(140deg, rgba(138, 107, 255, 0.14), rgba(138, 107, 255, 0) 58%),
    var(--panel);
}

.page-home .home-help__main .sb-text {
  color: var(--muted);
  max-width: 60ch;
}

.page-home .home-help__side {
  display: grid;
  gap: 16px;
}

.page-home .home-help__cell {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 4px;
  background: var(--raised);
}

.page-home .home-help__cell-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.page-home .home-help__cell-value {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text);
}

.page-home .home-help__cell-note {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

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

@media (min-width: 768px) {
  .page-home .home-hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 62px;
  }

  .page-home .home-desk__band img {
    aspect-ratio: 21 / 9;
  }

  .page-home .home-desk__stat {
    padding: 24px 22px 22px;
  }

  .page-home .home-help__main {
    padding: 34px 32px;
  }
}

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

  .page-home .home-wire__item--lead {
    grid-column: 1 / -1;
  }

  .page-home .home-cross__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
  }

  .page-home .home-help__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 20px;
  }

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

@media (min-width: 960px) {
  .page-home .home-hero {
    padding-top: calc(var(--header-h) + 78px);
    padding-bottom: 78px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .home-hero__visual {
    gap: 16px;
  }

  .page-home .home-pulse__card {
    padding: 24px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .page-home .home-wire__link:hover {
    transform: none;
  }
}
</main>
