/* ================= 首页 · page-home ================= */

.page-home {
  --hm-glass: rgba(27, 34, 51, 0.6);
  --hm-line: rgba(0, 229, 255, 0.2);
  --hm-soft: rgba(154, 167, 199, 0.16);

  position: relative;
  overflow-x: clip;
  background-color: var(--ink);
  color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.03) 0 1px, transparent 1px 5px),
    radial-gradient(125% 70% at 88% -8%, rgba(124, 77, 255, 0.3), transparent 58%),
    radial-gradient(110% 62% at -12% 104%, rgba(0, 229, 255, 0.15), transparent 62%);
  background-repeat: repeat, no-repeat, no-repeat;
}

.page-home .shell {
  position: relative;
  z-index: 2;
}

.page-home h2,
.page-home h3 {
  font-weight: 800;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumbs {
  padding-top: 16px;
}

.page-home .breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-home .breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  margin-right: 10px;
  color: var(--steel);
  opacity: 0.7;
}

.page-home .breadcrumbs__link {
  color: var(--steel);
  text-decoration: none;
}

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

.page-home .breadcrumbs__current {
  color: var(--cyan);
}

/* ---------- 首屏 ---------- */
.hm-hero {
  position: relative;
  isolation: isolate;
  margin-top: 14px;
  padding: clamp(38px, 7vh, 78px) 0 clamp(46px, 9vh, 92px);
  border-bottom: 1px solid var(--hm-line);
  overflow: hidden;
}

.hm-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hm-hero__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 42%;
  opacity: 0.24;
  filter: saturate(0.55) contrast(1.15);
}

.hm-hero__rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hm-hero__rays line {
  stroke: var(--cyan);
  stroke-width: 1;
  stroke-opacity: 0.34;
  stroke-dasharray: 4 12;
  animation: hm-ray 14s linear infinite;
}

.hm-hero__rays line:nth-child(2n) {
  stroke: var(--violet);
  stroke-opacity: 0.4;
}

@keyframes hm-ray {
  to {
    stroke-dashoffset: -320;
  }
}

.hm-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 6vw, 56px);
}

.hm-hero__title {
  margin: 18px 0 0;
  font-size: clamp(40px, 9vw, 92px);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 900;
  font-style: italic;
  color: var(--paper);
}

.hm-hero__lede {
  margin: 24px 0 0;
  max-width: 32em;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.75;
  color: var(--steel);
}

.hm-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hm-hero__deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hm-slab {
  position: relative;
  margin: 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--hm-line);
  background: linear-gradient(155deg, rgba(27, 34, 51, 0.86), rgba(10, 14, 23, 0.74));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hm-slab::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 38px;
  height: 2px;
  background: linear-gradient(270deg, var(--cyan), transparent);
  pointer-events: none;
}

.hm-slab:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.14);
}

.hm-slab--list::after {
  background: linear-gradient(270deg, var(--violet), transparent);
}

.hm-slab--list:hover {
  border-color: rgba(124, 77, 255, 0.55);
  box-shadow: 0 12px 30px rgba(124, 77, 255, 0.22);
}

.hm-slab__tag {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.hm-slab--list .hm-slab__tag {
  color: var(--violet);
}

.hm-slab__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--paper);
}

.hm-slab__mono {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.hm-slab__mono.is-synced {
  color: var(--mint);
}

.hm-slab--shot {
  padding: 0;
  overflow: hidden;
  border-color: rgba(124, 77, 255, 0.3);
}

.hm-slab--shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08);
}

/* ---------- 数据体量带 ---------- */
.hm-pulse {
  position: relative;
  padding: clamp(54px, 9vw, 104px) 0;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.9), rgba(10, 14, 23, 0.96));
  border-bottom: 1px solid var(--hm-line);
}

.hm-pulse__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hm-soft);
}

.hm-pulse__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.025em;
  color: var(--paper);
}

.hm-pulse__note {
  margin: 0;
  max-width: 32em;
  font-size: 14px;
  line-height: 1.72;
  color: var(--steel);
}

.hm-pulse__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(28px, 4vw, 42px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--hm-soft);
  border: 1px solid var(--hm-soft);
}

.hm-pulse__cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.4vw, 26px);
  background: var(--ink);
}

.hm-pulse__num {
  font-size: clamp(36px, 6.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 1px rgba(0, 229, 255, 0.6), 0 0 24px rgba(0, 229, 255, 0.24);
}

.hm-pulse__key {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--steel);
}

/* ---------- 四条查询路径 ---------- */
.hm-modules {
  position: relative;
  padding: clamp(60px, 10vw, 124px) 0;
}

.hm-modules__head {
  max-width: 44em;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.hm-modules__title {
  margin: 14px 0 0;
  font-size: clamp(27px, 4.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.hm-modules__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
}

.hm-mod {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--hm-soft);
  background: linear-gradient(160deg, rgba(27, 34, 51, 0.6), rgba(10, 14, 23, 0.88));
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hm-mod:hover,
.hm-mod:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 16px 36px rgba(0, 229, 255, 0.16);
  outline: none;
}

.hm-mod:nth-child(2n):hover,
.hm-mod:nth-child(2n):focus-visible {
  border-color: var(--violet);
  box-shadow: 0 16px 36px rgba(124, 77, 255, 0.22);
}

.hm-mod:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hm-mod__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--lava);
}

.hm-mod:nth-child(2n) .hm-mod__idx {
  color: var(--violet);
}

.hm-mod__q {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.hm-mod__a {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--steel);
}

.hm-mod__go {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.hm-mod:nth-child(2n) .hm-mod__go {
  color: var(--violet);
}

/* ---------- 双端同步与版本节奏 ---------- */
.hm-sync {
  position: relative;
  padding: clamp(54px, 9vw, 108px) 0;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.88), rgba(10, 14, 23, 0.62));
  border-top: 1px solid var(--hm-soft);
  border-bottom: 1px solid var(--hm-soft);
}

.hm-sync__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
}

.hm-sync h2 {
  margin: 14px 0 18px;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.hm-sync__text > p {
  margin: 0;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--steel);
}

.hm-sync__list {
  display: grid;
  gap: 15px;
  max-width: 36em;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.hm-sync__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--steel);
}

.hm-sync__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 2px;
  background: var(--cyan);
}

.hm-sync__list li:nth-child(2)::before {
  background: var(--lava);
}

.hm-sync__list li:nth-child(3)::before {
  background: var(--violet);
}

.hm-sync__list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hm-sync__fig {
  position: relative;
  margin: 0;
  border: 1px solid var(--hm-line);
  background: var(--ink-deep);
}

.hm-sync__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
}

.hm-sync__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.07) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---------- 赛区与项目覆盖 ---------- */
.hm-cover {
  padding: clamp(60px, 10vw, 122px) 0;
}

.hm-cover__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 52px);
}

.hm-cover h2 {
  margin: 14px 0 18px;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.hm-cover__lede,
.hm-cover__extra,
.hm-cover__partners {
  margin: 0;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.76;
  color: var(--steel);
}

.hm-cover__extra {
  margin-top: 22px;
}

.hm-cover__partners {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hm-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--lava);
}

.hm-cover__zones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hm-cover__zones li {
  padding: 8px 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid var(--hm-line);
  background: rgba(0, 229, 255, 0.06);
}

.hm-cover__zones li:nth-child(2n) {
  color: var(--violet);
  border-color: rgba(124, 77, 255, 0.34);
  background: rgba(124, 77, 255, 0.09);
}

.hm-cover__fig {
  margin: 0;
  border: 1px solid var(--hm-soft);
  overflow: hidden;
}

.hm-cover__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}

/* ---------- 近期对比结论 ---------- */
.hm-feed {
  padding: clamp(56px, 9vw, 116px) 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.4), rgba(6, 9, 17, 0.92));
  border-top: 1px solid var(--hm-soft);
}

.hm-feed__head {
  max-width: 40em;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.hm-feed h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.hm-feed__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hm-soft);
}

.hm-feed__item {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--hm-soft);
  transition: padding-left 0.3s ease;
}

.hm-feed__item:hover {
  padding-left: 12px;
}

.hm-feed__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--lava);
}

.hm-feed__item h3 {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.hm-feed__item p {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--steel);
}

.hm-feed__more {
  margin-top: clamp(26px, 4vw, 40px);
}

/* ---------- 行动区 ---------- */
.hm-start {
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 124px);
}

.hm-start__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 46px);
}

.hm-start h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--paper);
}

.hm-start__lead p {
  margin: 0;
  max-width: 30em;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--steel);
}

.hm-start__acts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hm-start__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--hm-soft);
  background: rgba(27, 34, 51, 0.52);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hm-start__card:hover,
.hm-start__card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.07);
}

.hm-start__card:nth-child(2):hover,
.hm-start__card:nth-child(2):focus-visible {
  border-color: var(--violet);
  background: rgba(124, 77, 255, 0.09);
}

.hm-start__card:nth-child(3):hover,
.hm-start__card:nth-child(3):focus-visible {
  border-color: var(--lava);
  background: rgba(255, 107, 53, 0.08);
}

.hm-start__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.hm-start__v {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.hm-start__foot {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--hm-soft);
  font-size: 14px;
  line-height: 1.74;
  color: var(--steel);
}

.hm-start__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
}

.hm-start__foot a:hover,
.hm-start__foot a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .hm-pulse__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hm-start__acts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .hm-feed__item {
    grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: baseline;
    gap: 0 26px;
  }

  .hm-feed__tag {
    grid-column: 1;
  }
}

@media (min-width: 900px) {
  .hm-modules__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hm-mod:nth-child(1) {
    grid-column: span 5;
  }

  .hm-mod:nth-child(2) {
    grid-column: span 7;
  }

  .hm-mod:nth-child(3) {
    grid-column: span 7;
  }

  .hm-mod:nth-child(4) {
    grid-column: span 5;
  }

  .hm-cover__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: clamp(30px, 4vw, 58px);
  }

  .hm-cover__fig {
    transform: rotate(-1.4deg);
  }

  .hm-start__inner {
    grid-template-columns: 4fr 8fr;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .hm-hero__inner {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: clamp(30px, 4vw, 62px);
  }

  .hm-hero__deck {
    padding-top: 8px;
  }

  .hm-slab--rank {
    transform: rotate(-1.2deg);
  }

  .hm-slab--list {
    transform: rotate(1.8deg) translateX(16px);
  }

  .hm-slab--shot {
    transform: rotate(-2deg) translateX(-8px);
  }

  .hm-slab--rank:hover,
  .hm-slab--list:hover {
    transform: rotate(0deg) translateY(-4px);
  }

  .hm-sync__inner {
    grid-template-columns: 6fr 6fr;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .hm-pulse__grid {
    grid-template-columns: 1fr;
  }

  .hm-hero__title {
    font-size: clamp(36px, 12vw, 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-hero__rays line {
    animation: none;
  }

  .page-home .hm-slab,
  .page-home .hm-mod,
  .page-home .hm-start__card,
  .page-home .hm-feed__item {
    transition: none;
  }

  .page-home .hm-slab--rank,
  .page-home .hm-slab--list,
  .page-home .hm-slab--shot,
  .page-home .hm-cover__fig {
    transform: none;
  }
}
