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

.page-home {
  --hm-cut: 26px;
  --hm-cut-sm: 14px;
  --hm-gap: clamp(18px, 2.6vw, 32px);
  --hm-block: clamp(56px, 8vw, 108px);
  --hm-h2: clamp(25px, 4vw, 42px);
  position: relative;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 620px at 4% -6%, var(--glow-a), transparent 62%),
    radial-gradient(880px 520px at 98% 8%, var(--glow-b), transparent 66%);
  overflow-x: hidden;
}

.page-home .hm-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--hm-h2);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--white);
}

.page-home .hm-crumb {
  margin-bottom: clamp(16px, 2.2vw, 26px);
}

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

.page-home .hm-stage {
  position: relative;
  padding-top: clamp(22px, 4vw, 48px);
  padding-bottom: clamp(44px, 6.5vw, 88px);
}

.page-home .hm-stage::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
  opacity: 0.32;
  pointer-events: none;
}

.page-home .hm-stage::after {
  content: "";
  position: absolute;
  top: clamp(48px, 9vw, 104px);
  right: -10%;
  width: clamp(170px, 26vw, 360px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice));
  transform: rotate(-24deg);
  transform-origin: right center;
  opacity: 0.45;
  pointer-events: none;
}

.page-home .hm-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 52px);
}

.page-home .hm-stage__eyebrow {
  margin: 0 0 14px;
  color: var(--ice);
}

.page-home .hm-stage__title {
  margin: 0;
  max-width: 16em;
}

.page-home .hm-stage__lede {
  margin: clamp(14px, 2vw, 22px) 0 0;
  max-width: 40em;
  color: var(--text);
}

.page-home .hm-stage__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  margin-top: clamp(24px, 3.4vw, 38px);
}

.page-home .hm-stage__fig {
  margin: 0;
  position: relative;
}

.page-home .hm-stage__fig img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

/* 栏目入口 */

.page-home .hm-entry {
  counter-reset: hmEntry;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

.page-home .hm-entry__item {
  position: relative;
  display: block;
  padding: 15px 18px 17px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(150deg, rgba(16, 26, 38, 0.96), rgba(16, 26, 38, 0.52));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.page-home .hm-entry__item::before {
  counter-increment: hmEntry;
  content: "0" counter(hmEntry);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.page-home .hm-entry__item:hover,
.page-home .hm-entry__item:focus-visible {
  background: linear-gradient(150deg, rgba(22, 50, 59, 0.95), rgba(16, 26, 38, 0.7));
  border-color: rgba(127, 211, 232, 0.5);
  transform: translateX(3px);
}

.page-home .hm-entry__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-home .hm-entry__desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* 近三轮速览 */

.page-home .hm-rounds {
  position: relative;
  margin-top: clamp(22px, 3.2vw, 34px);
  padding: clamp(18px, 2.6vw, 26px);
  background: linear-gradient(155deg, rgba(22, 50, 59, 0.72), rgba(16, 26, 38, 0.92));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

.page-home .hm-rounds__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.page-home .hm-rounds__cap {
  margin: 0;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ice);
}

.page-home .hm-rounds__hint {
  margin: 0;
  color: var(--steel);
}

.page-home .hm-rounds__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.page-home .hm-rounds__tab {
  padding: 7px 14px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: color 0.24s var(--ease), background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .hm-rounds__tab:hover {
  color: var(--white);
  border-color: rgba(127, 211, 232, 0.55);
}

.page-home #hm-r1:checked ~ .hm-rounds__tabs [for="hm-r1"],
.page-home #hm-r2:checked ~ .hm-rounds__tabs [for="hm-r2"],
.page-home #hm-r3:checked ~ .hm-rounds__tabs [for="hm-r3"] {
  color: var(--ink);
  background-color: var(--lime);
  border-color: var(--lime);
}

.page-home #hm-r1:focus-visible ~ .hm-rounds__tabs [for="hm-r1"],
.page-home #hm-r2:focus-visible ~ .hm-rounds__tabs [for="hm-r2"],
.page-home #hm-r3:focus-visible ~ .hm-rounds__tabs [for="hm-r3"] {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.page-home .hm-rounds__panel {
  display: none;
}

.page-home #hm-r1:checked ~ .hm-rounds__panels .hm-rounds__panel:nth-child(1),
.page-home #hm-r2:checked ~ .hm-rounds__panels .hm-rounds__panel:nth-child(2),
.page-home #hm-r3:checked ~ .hm-rounds__panels .hm-rounds__panel:nth-child(3) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  animation: hmFade 0.32s var(--ease) both;
}

@keyframes hmFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .hm-rounds__big {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .hm-rounds__num {
  font-size: clamp(46px, 8vw, 76px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-home .hm-rounds__unit {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

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

.page-home .hm-rounds__stat {
  padding: 10px 12px;
  background: rgba(11, 15, 22, 0.6);
  border-left: 2px solid var(--ice);
}

.page-home .hm-rounds__stat dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.page-home .hm-rounds__stat dd {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--white);
}

.page-home .hm-rounds__foot {
  margin: 16px 0 0;
}

.page-home .hm-rounds__link {
  display: inline-block;
  font-size: 13px;
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 211, 232, 0.45);
  padding-bottom: 2px;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .hm-rounds__link:hover,
.page-home .hm-rounds__link:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

/* 右侧留白区 */

.page-home .hm-stage__aside {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.page-home .hm-stage__vtag {
  margin: 0;
  padding-top: 4px;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--steel);
}

.page-home .hm-stage__panel {
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ice);
  background: linear-gradient(180deg, rgba(16, 26, 38, 0.86), rgba(11, 15, 22, 0.6));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut-sm)), calc(100% - var(--hm-cut-sm)) 100%, 0 100%);
}

.page-home .hm-stage__note {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.page-home .hm-spark {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.page-home .hm-spark__line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .hm-spark__dots circle {
  fill: var(--ink);
  stroke: var(--ice);
  stroke-width: 1.6;
}

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

.page-home .hm-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line-soft);
}

.page-home .hm-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .hm-fact__k {
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .hm-fact__v {
  font-size: 15px;
  color: var(--white);
}

.page-home .hm-fact__v .ui-num {
  font-size: 22px;
  font-weight: 700;
}

/* ---------- 通勤速览条 ---------- */

.page-home .hm-commute {
  padding-block: 0 var(--hm-block);
}

.page-home .hm-commute__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(22px, 3.4vw, 40px);
  background: linear-gradient(122deg, rgba(16, 26, 38, 0.96) 34%, rgba(22, 50, 59, 0.6));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
}

.page-home .hm-commute__p {
  margin: 12px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.page-home .hm-commute__fig {
  margin: 0;
}

.page-home .hm-commute__fig img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut-sm)), calc(100% - var(--hm-cut-sm)) 100%, 0 100%);
}

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

.page-home .hm-stat {
  padding: 14px 16px;
  border-left: 2px solid var(--lime);
  background: rgba(11, 15, 22, 0.55);
}

.page-home .hm-stat__top {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .hm-stat__num {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-home .hm-stat__unit {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .hm-stat__txt {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- 栏目卡片带 ---------- */

.page-home .hm-desk {
  padding-block: 0 var(--hm-block);
}

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

.page-home .hm-desk__hint {
  margin: 10px 0 0;
  color: var(--steel);
}

.page-home .hm-desk__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(258px, 84%);
  gap: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-color: var(--ice) transparent;
}

.page-home .hm-desk__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(160deg, rgba(16, 26, 38, 0.96), rgba(11, 15, 22, 0.82));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .hm-desk__card:hover {
  border-color: rgba(127, 211, 232, 0.5);
  transform: translateY(-3px);
}

.page-home .hm-desk__tag {
  align-self: flex-start;
  letter-spacing: 0.14em;
}

.page-home .hm-desk__ct {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--white);
}

.page-home .hm-desk__cd {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: var(--text);
}

.page-home .hm-desk__meta {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  color: var(--steel);
}

.page-home .hm-desk__link {
  align-self: flex-start;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 41, 0.5);
  padding-bottom: 2px;
}

.page-home .hm-desk__link:hover,
.page-home .hm-desk__link:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

.page-home .hm-desk__band {
  position: relative;
  margin: clamp(22px, 3vw, 34px) 0 0;
}

.page-home .hm-desk__band img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

.page-home .hm-desk__band figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 收藏与直达 ---------- */

.page-home .hm-save {
  padding-block: 0 var(--hm-block);
}

.page-home .hm-save__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 46px);
  align-items: center;
}

.page-home .hm-save__p {
  margin: 14px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.82;
  color: var(--text);
}

.page-home .hm-save__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.6vw, 28px);
}

.page-home .hm-save__btn,
.page-home .hm-save__btn2 {
  text-decoration: none;
}

.page-home .hm-save__tip {
  margin: 16px 0 0;
  color: var(--steel);
}

.page-home .hm-save__fig {
  margin: 0;
}

.page-home .hm-save__fig img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

/* ---------- 更新底气 ---------- */

.page-home .hm-trust__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.page-home .hm-trust__lead {
  margin: 0;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

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

.page-home .hm-trust__card {
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(16, 26, 38, 0.72);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ice);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--hm-cut-sm) 100%, 0 calc(100% - var(--hm-cut-sm)));
}

.page-home .hm-trust__idx {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--lime);
}

.page-home .hm-trust__ct {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.page-home .hm-trust__cd {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: var(--text);
}

.page-home .hm-trust__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}

.page-home .hm-trust__note {
  margin: 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.82;
  color: var(--text-dim);
}

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

.page-home .hm-tlink {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 211, 232, 0.4);
  padding-bottom: 2px;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .hm-tlink:hover,
.page-home .hm-tlink:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

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

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

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

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

@media (min-width: 640px) {
  .page-home .hm-stage__body {
    grid-template-columns: minmax(150px, 208px) minmax(0, 1fr);
    align-items: start;
  }

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

  .page-home .hm-stage__fig img {
    aspect-ratio: 5 / 6;
  }

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

  .page-home .hm-commute__text {
    grid-column: 1 / -1;
  }

  .page-home .hm-commute__stats {
    grid-column: 1 / -1;
  }
}

@media (min-width: 860px) {
  .page-home .hm-save__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  }

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

@media (min-width: 960px) {
  .page-home .hm-stage__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(32px, 4.6vw, 68px);
  }

  .page-home .hm-stage__panel {
    padding-top: clamp(22px, 2.6vw, 30px);
  }

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

  .page-home .hm-trust__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .page-home .hm-commute__band {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }
}

@media (min-width: 1080px) {
  .page-home .hm-desk__rail {
    grid-auto-columns: minmax(0, 1fr);
    overflow-x: visible;
    padding-bottom: 0;
  }
}

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