.page-home {
  --hm-r: 18px;
  --hm-pad: clamp(16px, 2.6vw, 26px);
  --hm-gap: clamp(20px, 3.2vw, 36px);
  --hm-title: var(--sb-blue);
  background: var(--sb-warm);
  color: var(--sb-ink);
  font-family: var(--sb-font-sans);
  overflow-x: hidden;
}

.page-home .sb-container {
  width: 100%;
  max-width: var(--sb-w);
  margin: 0 auto;
  padding-left: var(--sb-shell);
  padding-right: var(--sb-shell);
}

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

.page-home .hm-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 5vw, 68px) 0 clamp(40px, 6vw, 84px);
  overflow: hidden;
}

.page-home .hm-hero__shape {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -14%;
  width: min(720px, 84%);
  height: min(500px, 72%);
  background: var(--sb-blue);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .07;
  pointer-events: none;
}

.page-home .hm-hero__shape--b {
  top: auto;
  right: auto;
  bottom: -20%;
  left: -18%;
  width: min(520px, 66%);
  height: min(320px, 44%);
  background: var(--sb-clay);
  clip-path: polygon(0 0, 100% 24%, 74% 100%, 0 100%);
  opacity: .14;
}

.page-home .hm-hero__inner {
  display: grid;
  gap: var(--hm-gap);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "stage"
    "rail"
    "board";
}

.page-home .hm-hero__stage { grid-area: stage; }
.page-home .hm-hero__rail { grid-area: rail; }
.page-home .hm-hero__board { grid-area: board; }

.page-home .hm-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--sb-stone);
}

.page-home .hm-crumb .sb-breadcrumb__sep { color: var(--sb-clay); }

.page-home .hm-title {
  margin: 0 0 18px;
  font-size: clamp(29px, 6.2vw, 54px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--hm-title);
  text-wrap: balance;
}

.page-home .hm-title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, rgba(242, 98, 42, .3) 60%);
}

.page-home .hm-lead {
  max-width: 46ch;
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--sb-ink);
}

.page-home .hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.page-home .hm-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--sb-line);
  list-style: none;
}

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

.page-home .hm-fact__num {
  font-family: var(--sb-font-num);
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--sb-blue);
}

.page-home .hm-fact__lab {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--sb-stone);
}

/* 时间轴 */

.page-home .hm-tl {
  background: var(--sb-paper);
  border: 1px solid var(--sb-line);
  border-radius: var(--hm-r);
  padding: 16px;
}

.page-home .hm-tl__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.page-home .hm-tl__kicker {
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--sb-stone);
}

.page-home .hm-tl__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-tl__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-left: 3px solid var(--sb-line-strong);
  border-radius: 0 8px 8px 0;
  background: var(--sb-warm);
}

.page-home .hm-tl__item.is-current {
  border-left-color: var(--sb-orange);
  background: #fff;
}

.page-home .hm-tl__time {
  flex: none;
  padding-top: 2px;
  font-size: 12px;
  color: var(--sb-stone);
}

.page-home .hm-tl__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.page-home .hm-tl__label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sb-blue);
}

.page-home .hm-tl__scale {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 14px;
  color: var(--sb-stone);
}

.page-home .hm-tl__hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sb-stone);
}

/* 首屏积分榜浮岛 */

.page-home .hm-board {
  position: relative;
  display: flex;
  min-height: 340px;
  border-radius: var(--hm-r);
  overflow: hidden;
  background: var(--sb-night);
}

.page-home .hm-board__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.page-home .hm-board__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: 22px 20px 20px;
  color: var(--sb-warm);
  background: linear-gradient(180deg, rgba(11, 23, 41, .1) 0%, rgba(11, 23, 41, .84) 44%, rgba(11, 23, 41, .96) 100%);
}

.page-home .hm-board__kicker {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--sb-amber);
}

.page-home .hm-board__num {
  margin: 8px 0 4px;
  font-family: var(--sb-font-num);
  font-size: clamp(62px, 13vw, 92px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.02em;
}

.page-home .hm-board__cap {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 237, 226, .84);
}

.page-home .hm-board__btn {
  align-self: flex-start;
  margin-top: 18px;
}

/* ---------- 通用章节 ---------- */

.page-home .hm-block {
  padding: clamp(44px, 6.5vw, 92px) 0;
}

.page-home .hm-block--paper { background: var(--sb-paper); }

.page-home .sb-band { margin-bottom: clamp(18px, 3vw, 30px); }

.page-home .hm-h2 {
  margin: 8px 0 16px;
  font-size: clamp(23px, 4.4vw, 38px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--sb-blue);
  text-wrap: balance;
}

.page-home .hm-p {
  max-width: 60ch;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--sb-ink);
}

.page-home .hm-head { max-width: 66ch; margin-bottom: clamp(20px, 3vw, 32px); }

.page-home .hm-head__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--sb-stone);
}

.page-home .hm-after { margin: clamp(20px, 3vw, 30px) 0 0; }

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

.page-home .hm-split__text { min-width: 0; }
.page-home .hm-split__side { min-width: 0; }

/* 列表 */

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

.page-home .hm-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 13px 15px;
  background: var(--sb-warm);
  border: 1px solid var(--sb-line);
  border-radius: 12px;
}

.page-home .hm-block--paper .hm-list__item { background: #fff; }

.page-home .hm-list__idx {
  padding-top: 3px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--sb-clay);
}

.page-home .hm-list__title {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--sb-blue);
}

.page-home .hm-list__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sb-stone);
}

/* 图片 */

.page-home .sb-figure.hm-figure { margin: var(--hm-gap) 0 0; }
.page-home .sb-figure.hm-figure--flat { margin: 0; }

.page-home .sb-figure__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sb-blue);
}

.page-home .sb-figure__media.hm-ratio-7-4 { aspect-ratio: 7 / 4; }
.page-home .sb-figure__media.hm-ratio-3-2 { aspect-ratio: 3 / 2; }
.page-home .sb-figure__media.hm-ratio-1-1 { aspect-ratio: 1 / 1; }

.page-home .sb-figure__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .sb-figure__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--sb-stone);
}

/* 战报卡片 */

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

.page-home .hm-brief {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sb-line);
  border-radius: 14px;
}

.page-home .hm-brief--text,
.page-home .hm-brief--note {
  border-left: 3px solid var(--sb-clay);
}

.page-home .hm-brief--note { border-left-color: var(--sb-moss); }

.page-home .hm-brief__media { border-radius: 0; }

.page-home .hm-brief__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

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

.page-home .hm-brief__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  color: var(--sb-blue);
}

.page-home .hm-brief__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--sb-stone);
}

.page-home .hm-brief__meta {
  margin: auto 0 0;
  padding-top: 8px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--sb-moss);
}

/* 数据标签 */

.page-home .hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-chips li {
  padding: 6px 13px;
  border: 1px dashed var(--sb-line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--sb-blue);
}

/* 版本对照 */

.page-home .hm-compare {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 4px;
}

.page-home .hm-compare__col {
  padding: var(--hm-pad);
  border-radius: 16px;
}

.page-home .hm-compare__col--new {
  background: var(--sb-blue);
  color: var(--sb-warm);
}

.page-home .hm-compare__col--old {
  background: var(--sb-paper);
  border: 1px dashed var(--sb-line-strong);
}

.page-home .hm-compare__tag {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--sb-amber);
}

.page-home .hm-compare__col--old .hm-compare__tag { color: var(--sb-clay); }

.page-home .hm-compare__title {
  margin: 10px 0 16px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  line-height: 1.36;
  color: inherit;
}

.page-home .hm-compare__col--old .hm-compare__title { color: var(--sb-blue); }

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

.page-home .hm-entries li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(244, 237, 226, .1);
  font-size: 14px;
  color: var(--sb-warm);
}

.page-home .hm-entry-idx {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--sb-amber);
}

.page-home .hm-compare__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(244, 237, 226, .8);
}

.page-home .hm-compare__col--old .hm-compare__note { color: var(--sb-stone); }

.page-home .hm-compare__col--old .hm-compare__note + .hm-compare__note { margin-top: 10px; }

/* 小屏预览 */

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

.page-home .hm-phone {
  width: min(258px, 76vw);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--sb-line-strong);
  border-radius: 26px;
  background: var(--sb-night);
  box-shadow: 0 20px 44px -26px rgba(16, 35, 63, .55);
}

.page-home .hm-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 296px;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #16283F 0%, #0B1729 100%);
}

.page-home .hm-phone__line {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: rgba(244, 237, 226, .16);
}

.page-home .hm-phone__line--wide { width: 78%; }
.page-home .hm-phone__line--short { width: 44%; }

.page-home .hm-phone__bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.page-home .hm-phone__btn {
  padding: 9px 4px;
  border-radius: 8px;
  background: rgba(244, 237, 226, .12);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  color: var(--sb-warm);
}

.page-home .hm-phone__btn.is-current {
  background: var(--sb-orange);
  color: #fff;
  font-weight: 700;
}

/* 本地 */

.page-home .hm-local { background: var(--sb-warm); }

.page-home .hm-local__lead { max-width: 62ch; }

.page-home .hm-local__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 24px 0 26px;
}

.page-home .hm-local__stat {
  padding: 18px 16px;
  border-left: 3px solid var(--sb-orange);
  border-radius: 0 12px 12px 0;
  background: var(--sb-paper);
}

.page-home .hm-local__num {
  display: block;
  font-family: var(--sb-font-num);
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: var(--sb-blue);
}

.page-home .hm-local__lab {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sb-stone);
}

.page-home .hm-local__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 动效 */

.page-home [data-reveal] {
  transition: opacity .45s var(--sb-ease), transform .45s var(--sb-ease);
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    transition: none;
    transform: none !important;
  }
}

/* ---------- 桌面 ---------- */

@media (min-width: 760px) {
  .page-home .hm-compare { grid-template-columns: 1.25fr .75fr; }
  .page-home .hm-briefs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .hm-briefs .hm-brief { align-self: start; }
  .page-home .hm-brief--text { margin-top: 24px; }
  .page-home .hm-brief--note { margin-top: 48px; }
}

@media (min-width: 860px) {
  .page-home .hm-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
  }

  .page-home .hm-split--rev {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  .page-home .hm-mobile {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 228px) minmax(0, 1fr) minmax(0, 296px);
    grid-template-areas: "rail stage board";
    align-items: start;
  }

  .page-home .hm-hero__stage {
    padding-top: 4px;
  }

  .page-home .hm-board {
    min-height: 100%;
  }
}

@media (min-width: 1180px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 320px);
  }

  .page-home .hm-board { min-height: 440px; }
}
