.page-home {
  --hm-ring: rgba(46, 255, 181, 0.12);
}

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

/* 页面上下文提示 */
.page-home .hm-context {
  padding-top: 18px;
}

.page-home .hm-context__line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--jb-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--jb-body);
}

.page-home .hm-context__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--jb-neon);
  box-shadow: 0 0 0 4px rgba(46, 255, 181, 0.14);
}

/* 通用排版件 */
.page-home .hm-h2 {
  margin: 10px 0 0;
  font-family: var(--jb-font-head);
  font-weight: 900;
  font-size: clamp(22px, 5.6vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--jb-white);
}

.page-home .hm-lede {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--jb-body);
  max-width: 44em;
}

.page-home .hm-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.page-home .hm-cta--neon {
  background: var(--jb-neon);
  color: #07130F;
}

.page-home .hm-cta--neon:hover {
  background: var(--jb-gold);
  transform: translateY(-2px);
}

.page-home .hm-cta--ghost {
  background: rgba(18, 46, 38, 0.6);
  border-color: var(--jb-line);
  color: var(--jb-white);
}

.page-home .hm-cta--ghost:hover {
  border-color: var(--jb-neon);
  color: var(--jb-neon);
}

/* 首屏 */
.page-home .hm-hero__inner {
  display: grid;
  gap: 26px;
  padding-top: 24px;
}

.page-home .hm-hero__title {
  margin: 12px 0 0;
  font-family: var(--jb-font-head);
  font-weight: 900;
  font-size: clamp(30px, 8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-stretch: condensed;
  color: var(--jb-white);
}

.page-home .hm-hero__lede {
  margin-top: 16px;
}

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

.page-home .hm-hero__meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-meter {
  padding: 14px 12px;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
  background: linear-gradient(180deg, rgba(18, 46, 38, 0.85), rgba(11, 31, 26, 0.85));
  min-width: 0;
}

.page-home .hm-meter__value {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: clamp(18px, 5vw, 28px);
  line-height: 1.05;
  color: var(--jb-gold);
}

.page-home .hm-meter__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--jb-body);
}

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

.page-home .hm-hero__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
}

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

.page-home .hm-board__cell {
  flex: 1 1 140px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px dashed var(--jb-line);
  border-radius: var(--jb-radius);
  background: rgba(7, 19, 15, 0.6);
}

.page-home .hm-board__num {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: 24px;
  line-height: 1;
  color: var(--jb-white);
}

.page-home .hm-board__cap {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--jb-body);
}

/* 章节预览 */
.page-home .hm-preview {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.page-home .hm-preview__item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--jb-line);
  border-left: 3px solid var(--jb-neon);
  border-radius: var(--jb-radius);
  background: linear-gradient(180deg, rgba(18, 46, 38, 0.9), rgba(11, 31, 26, 0.9));
  text-decoration: none;
  transition: transform 0.18s ease, border-left-color 0.18s ease, background 0.18s ease;
}

.page-home .hm-preview__item:hover {
  transform: translateY(-2px);
  border-left-color: var(--jb-gold);
}

.page-home .hm-preview__num {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--jb-neon);
}

.page-home .hm-preview__label {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jb-white);
}

.page-home .hm-preview__meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--jb-body);
}

/* 第二栏数据台 */
.page-home .hm-panel__head {
  margin-bottom: 4px;
}

.page-home .hm-panel__grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.page-home .hm-panel__side,
.page-home .hm-panel__main {
  min-width: 0;
}

.page-home .hm-timeline {
  padding: 18px 16px;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
  background: rgba(7, 19, 15, 0.72);
}

.page-home .hm-timeline__title {
  margin: 0 0 16px;
  font-family: var(--jb-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--jb-neon);
}

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

.page-home .hm-timeline__list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--jb-neon), rgba(46, 255, 181, 0));
}

.page-home .hm-timeline__item {
  position: relative;
  padding: 0 0 16px 22px;
}

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

.page-home .hm-timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--jb-ink);
  border: 2px solid var(--jb-neon);
}

.page-home .hm-timeline__time {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: 14px;
  color: var(--jb-gold);
}

.page-home .hm-timeline__text {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--jb-body);
}

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

.page-home .hm-crop img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
}

.page-home .hm-crop figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--jb-body);
  opacity: 0.8;
}

.page-home .hm-boardpanel {
  padding: 18px 16px;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
  background: linear-gradient(160deg, rgba(18, 46, 38, 0.95), rgba(11, 31, 26, 0.95));
}

.page-home .hm-radialwrap {
  display: grid;
  gap: 18px;
  align-items: center;
}

.page-home .hm-radial {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto;
}

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

.page-home .hm-legend__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.7;
  color: var(--jb-body);
}

.page-home .hm-legend__swatch {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 7px;
  border-radius: 2px;
}

.page-home .hm-legend__swatch--gold {
  background: var(--jb-gold);
}

.page-home .hm-legend__swatch--brick {
  background: var(--jb-brick);
}

.page-home .hm-legend__swatch--ring {
  background: transparent;
  border: 1px solid var(--jb-line);
  border-radius: 50%;
}

/* 维度筛选 */
.page-home .hm-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
}

.page-home .hm-chip {
  font: inherit;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--jb-line);
  background: rgba(18, 46, 38, 0.8);
  color: var(--jb-body);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.page-home .hm-chip:hover {
  color: var(--jb-white);
  border-color: var(--jb-neon);
}

.page-home .hm-chip[aria-pressed="true"] {
  background: var(--jb-neon);
  border-color: var(--jb-neon);
  color: #07130F;
  font-weight: 700;
}

.page-home .hm-dims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.page-home .hm-dim {
  padding: 14px 15px;
  border: 1px solid var(--jb-line);
  border-left: 3px solid var(--jb-gold);
  border-radius: var(--jb-radius);
  background: rgba(7, 19, 15, 0.62);
}

.page-home .hm-dim__tag {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--jb-gold);
}

.page-home .hm-dim__title {
  margin: 9px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jb-white);
}

.page-home .hm-dim__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--jb-body);
}

/* 关注列表横向卡片 */
.page-home .hm-watch {
  margin-top: 20px;
}

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

.page-home .hm-watch__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--jb-white);
}

.page-home .hm-watch__hint {
  font-family: var(--jb-font-mono);
  font-size: 12px;
  color: var(--jb-neon);
}

.page-home .hm-watch__rail {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 4px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.page-home .hm-watch__card {
  flex: 0 0 80%;
  max-width: 268px;
  scroll-snap-align: start;
  padding: 14px 15px;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
  background: linear-gradient(180deg, rgba(18, 46, 38, 0.95), rgba(7, 19, 15, 0.95));
  box-shadow: 6px 6px 0 -2px rgba(30, 74, 60, 0.55);
}

.page-home .hm-watch__num {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--jb-neon);
}

.page-home .hm-watch__cardtitle {
  margin: 9px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jb-white);
}

.page-home .hm-watch__cardtext {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--jb-body);
}

/* 周末连着看 */
.page-home .hm-weekend__grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

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

.page-home .hm-weekend__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.page-home .hm-wstat {
  padding: 13px 14px;
  border: 1px dashed var(--jb-line);
  border-radius: var(--jb-radius);
  background: rgba(7, 19, 15, 0.55);
}

.page-home .hm-wstat__v {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: 24px;
  line-height: 1;
  color: var(--jb-gold);
}

.page-home .hm-wstat__k {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--jb-body);
}

.page-home .hm-weekend__action {
  margin-top: 22px;
}

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

.page-home .hm-weekend__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
}

/* 苹果收藏入口 */
.page-home .hm-safari__grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

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

.page-home .hm-safari__figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
}

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

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

.page-home .hm-checklist__item {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--jb-body);
}

.page-home .hm-checklist__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--jb-neon);
}

.page-home .hm-safari__action {
  margin-top: 24px;
}

/* 四步上手 */
.page-home .hm-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-home .hm-step {
  padding-top: 14px;
  border-top: 2px solid var(--jb-neon);
}

.page-home .hm-step__num {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: 26px;
  line-height: 1;
  color: var(--jb-neon);
}

.page-home .hm-step__title {
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jb-white);
}

.page-home .hm-step__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--jb-body);
}

/* 数字与收束 */
.page-home .hm-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.page-home .hm-number {
  padding: 16px 15px;
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius);
  background: rgba(18, 46, 38, 0.72);
}

.page-home .hm-number__v {
  display: block;
  font-family: var(--jb-font-mono);
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1;
  color: var(--jb-white);
}

.page-home .hm-number__k {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--jb-body);
}

.page-home .hm-closing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.page-home .hm-close-card {
  padding: 16px 18px;
  border-left: 3px solid var(--jb-gold);
  border-radius: var(--jb-radius);
  background: rgba(7, 19, 15, 0.72);
}

.page-home .hm-close-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--jb-body);
}

.page-home .hm-close-card strong {
  color: var(--jb-white);
}

.page-home .hm-closing__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--jb-neon);
  text-decoration: none;
  border-bottom: 1px solid var(--jb-line);
  padding-bottom: 2px;
}

.page-home .hm-closing__link:hover {
  color: var(--jb-gold);
  border-bottom-color: var(--jb-gold);
}

/* 数值脉冲 */
.page-home .hm-pulse {
  animation: hm-pulse 1.1s ease-out 1;
}

@keyframes hm-pulse {
  0% { text-shadow: 0 0 0 rgba(255, 217, 122, 0); }
  30% { text-shadow: 0 0 18px rgba(255, 217, 122, 0.85); }
  100% { text-shadow: 0 0 0 rgba(255, 217, 122, 0); }
}

/* 平板 */
@media (min-width: 720px) {
  .page-home .hm-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .hm-legend {
    gap: 12px;
  }

  .page-home .hm-watch__card {
    flex: 0 0 248px;
  }

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

/* 桌面 */
@media (min-width: 960px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: start;
    padding-top: 34px;
  }

  .page-home .hm-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
  }

  .page-home .hm-panel__grid {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 28px;
  }

  .page-home .hm-weekend__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 34px;
  }

  .page-home .hm-safari__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 34px;
  }

  .page-home .hm-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
