.page-home {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

/* ============ 首屏拼贴 ============ */
.page-home .hm-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.page-home .hm-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  z-index: 0;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(147, 166, 192, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 166, 192, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.page-home .hm-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background:
    radial-gradient(680px 420px at 84% 4%, rgba(53, 224, 214, .18), transparent 68%),
    linear-gradient(180deg, rgba(10, 23, 48, .48) 0%, rgba(10, 23, 48, .58) 42%, rgba(10, 23, 48, .97) 100%);
  pointer-events: none;
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 2;
  padding: 32px 0 64px;
}

.page-home .hm-hero h1 {
  font-family: var(--font-cond);
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: .04em;
  margin: 20px 0 16px;
  max-width: 20ch;
  color: var(--paper);
}

.page-home .hm-hero__lede {
  max-width: 62ch;
  color: var(--paper);
  opacity: .9;
  margin: 0;
}

.page-home .hm-collage {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}

.page-home .hm-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(18, 35, 63, .9);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  text-decoration: none;
  color: inherit;
  transition: background-color .22s ease, transform .22s ease;
}

.page-home .hm-tile:hover,
.page-home .hm-tile:focus-visible {
  background: rgba(27, 58, 99, .94);
  transform: translateY(-2px);
}

.page-home .hm-tile--ver {
  border-left-color: var(--gold);
  background: linear-gradient(158deg, rgba(27, 58, 99, .96), rgba(18, 35, 63, .92));
  padding: 22px 20px;
}

.page-home .hm-tile__k {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
}

.page-home .hm-tile__num {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
  color: var(--gold-hi);
  letter-spacing: .02em;
}

.page-home .hm-tile--ver .hm-tile__num {
  font-size: clamp(34px, 5vw, 54px);
}

.page-home .hm-tile__d {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .hm-tile .state-tag {
  align-self: flex-start;
  margin-top: 4px;
}

/* ============ 版本对照 ============ */
.page-home .hm-band__layout {
  display: grid;
  gap: 26px;
  margin-top: 32px;
}

.page-home .hm-band__fig,
.page-home .hm-beat__fig,
.page-home .hm-device__fig {
  margin: 0;
}

.page-home .hm-band__fig img,
.page-home .hm-beat__fig img,
.page-home .hm-device__fig img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

.page-home .hm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .hm-tabs button.state-tag {
  font: inherit;
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-left-width: 3px;
}

.page-home .hm-tabs button.state-tag:hover {
  border-color: var(--line-strong);
  color: var(--gold-hi);
}

.page-home .hm-vers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(256px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .hm-ver {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

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

.page-home .hm-ver__no {
  font-size: 20px;
  letter-spacing: .06em;
  color: var(--gold-hi);
}

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

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

.page-home .hm-ver__list li {
  position: relative;
  padding-left: 15px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

.page-home .hm-ver__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

/* ============ 本周要点 ============ */
.page-home .hm-week__grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.page-home .hm-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  transition: transform .22s ease, background-color .22s ease;
}

.page-home .hm-note:hover,
.page-home .hm-note:focus-within {
  transform: translateY(-3px);
  background: var(--ink-3);
}

.page-home .hm-note__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .hm-note__cat {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .hm-note__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--paper);
}

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

.page-home .hm-note__more {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cyan);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .28s ease, opacity .28s ease;
}

.page-home .hm-note:hover .hm-note__more,
.page-home .hm-note:focus-within .hm-note__more {
  max-height: 8em;
  opacity: 1;
}

.page-home .hm-note__time {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

@media (hover: none) {
  .page-home .hm-note__more {
    max-height: 8em;
    opacity: 1;
  }
}

/* ============ 双更节奏 ============ */
.page-home .hm-beat__layout {
  display: grid;
  gap: 26px;
  margin-top: 32px;
}

.page-home .hm-beat__scale {
  padding: 20px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

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

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

.page-home .hm-beat__list li {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
}

.page-home .hm-beat__list li span:first-child {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}

/* ============ 换设备 ============ */
.page-home .hm-device__layout {
  display: grid;
  gap: 26px;
  margin-top: 32px;
}

.page-home .hm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hm-step {
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid var(--line);
}

.page-home .hm-step:last-child {
  border-bottom: 1px solid var(--line);
}

.page-home .hm-step__n {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-home .hm-step__title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--paper);
}

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

/* ============ 目录索引 ============ */
.page-home .hm-cat__grid {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.page-home .hm-cat__item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.page-home .hm-cat__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  color: var(--paper);
}

.page-home .hm-cat__item summary::-webkit-details-marker {
  display: none;
}

.page-home .hm-cat__item summary::after {
  content: "＋";
  flex: none;
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.page-home .hm-cat__item[open] summary::after {
  content: "－";
}

.page-home .hm-cat__count {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .hm-cat__body {
  padding: 0 18px 18px;
}

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

.page-home .hm-cat__body a {
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 214, .3);
}

.page-home .hm-cat__body a:hover,
.page-home .hm-cat__body a:focus-visible {
  color: var(--gold-hi);
  border-bottom-color: var(--gold-hi);
}

/* ============ 服务通道 ============ */
.page-home .hm-help__panel {
  display: grid;
  gap: 28px;
  padding: 28px 20px;
  background: linear-gradient(152deg, rgba(27, 58, 99, .94), rgba(18, 35, 63, .96));
  border: 1px solid var(--line-strong);
}

.page-home .hm-help__main h2 {
  margin: 12px 0 14px;
  font-family: var(--font-cond);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: .03em;
  color: var(--paper);
}

.page-home .hm-help__main p {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .hm-help__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

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

.page-home .hm-help__row {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-home .hm-help__k {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .hm-help__v {
  font-size: 15px;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.page-home .hm-help__copy {
  justify-self: start;
  margin-top: 6px;
}

/* ============ 响应式 ============ */
@media (min-width: 640px) {
  .page-home .hm-hero__inner {
    padding: 44px 0 76px;
  }

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

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

@media (min-width: 720px) {
  .page-home .hm-collage {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .hm-tile--ver {
    grid-row: 1 / span 3;
  }

  .page-home .hm-tile:not(.hm-tile--ver) {
    margin-left: 12px;
  }
}

@media (min-width: 920px) {
  .page-home .hm-band__layout {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
  }

  .page-home .hm-beat__layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .hm-device__layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .hm-help__panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    padding: 40px 36px;
  }
}

@media (min-width: 1040px) {
  .page-home .hm-week__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 1120px) {
  .page-home .hm-vers {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-tile,
  .page-home .hm-note,
  .page-home .hm-note__more {
    transition: none;
  }

  .page-home .hm-tile:hover,
  .page-home .hm-note:hover,
  .page-home .hm-note:focus-within {
    transform: none;
  }
}
