.page-home {
  --home-cyan-line: rgba(40, 240, 200, .34);
  --home-glow: rgba(40, 240, 200, .16);
  --home-warm: rgba(255, 90, 42, .12);
  display: block;
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--ho-line);
  background:
    radial-gradient(112% 84% at 84% 4%, var(--home-glow), transparent 62%),
    radial-gradient(84% 72% at 2% 98%, var(--home-warm), transparent 62%),
    var(--ho-ink);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ho-grid-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--ho-grid-faint) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(76% 72% at 48% 42%, #000 28%, transparent 100%);
  mask-image: radial-gradient(76% 72% at 48% 42%, #000 28%, transparent 100%);
}

.page-home .home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-home .home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 42%;
  opacity: .3;
  filter: saturate(.72) contrast(1.06);
}

.page-home .home-hero-inner {
  position: relative;
  display: grid;
  gap: clamp(34px, 5vw, 54px);
  padding-block: clamp(46px, 7vw, 88px) clamp(52px, 7vw, 96px);
}

.page-home .home-context {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 12px;
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius);
  background: rgba(12, 42, 32, .74);
  font-family: var(--ho-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ho-muted);
}

.page-home .home-context-sep {
  color: var(--ho-cyan);
}

.page-home .home-hero h1 {
  margin: 0 0 20px;
  font-family: var(--ho-font-head);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.09;
  letter-spacing: -.02em;
  color: var(--ho-text);
}

.page-home .home-accent {
  background: linear-gradient(102deg, var(--ho-cyan) 0%, var(--ho-cyan-soft) 52%, var(--ho-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-hero-lede {
  max-width: 56ch;
  margin: 0 0 26px;
  color: var(--ho-muted);
}

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

/* 首屏常用栏 */
.page-home .home-quick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius);
  background: var(--ho-line);
  overflow: hidden;
}

.page-home .home-quick-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  padding: 15px 16px;
  background: rgba(12, 42, 32, .88);
  text-decoration: none;
  color: var(--ho-text);
  transition: background .2s ease, box-shadow .2s ease;
}

.page-home .home-quick-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--ho-cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .22s ease;
}

.page-home .home-quick-item:hover::before,
.page-home .home-quick-item:focus-visible::before {
  transform: scaleY(1);
}

.page-home .home-quick-item:hover,
.page-home .home-quick-item:focus-visible {
  background: rgba(20, 74, 55, .92);
  box-shadow: inset 0 0 0 1px var(--home-cyan-line);
  outline: none;
}

.page-home .home-quick-index {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ho-cyan);
}

.page-home .home-quick-label {
  font-family: var(--ho-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}

.page-home .home-quick-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ho-muted);
}

/* 动态比分条 */
.page-home .home-score {
  position: relative;
  padding: 22px 20px 18px;
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius);
  background:
    linear-gradient(180deg, rgba(12, 42, 32, .96), rgba(7, 26, 20, .9));
  overflow: hidden;
}

.page-home .home-score::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ho-cyan) 0%, var(--ho-score) 58%, transparent 100%);
}

.page-home .home-score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-score-title {
  margin: 0;
  font-family: var(--ho-font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--ho-text);
}

.page-home .home-score-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ho-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ho-score);
}

.page-home .home-score-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ho-score);
  box-shadow: 0 0 0 3px rgba(255, 90, 42, .18);
}

.page-home .home-score-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ho-muted);
}

.page-home .home-score-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.page-home .home-score-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-left: 2px solid var(--ho-turf);
  border-radius: var(--ho-radius);
  background: rgba(7, 26, 20, .68);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.page-home .home-score-row:hover {
  background: rgba(20, 74, 55, .6);
  border-left-color: var(--ho-cyan);
  transform: translateX(3px);
}

.page-home .home-score-league {
  font-family: var(--ho-font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--ho-text);
}

.page-home .home-score-meta {
  font-family: var(--ho-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ho-muted);
}

.page-home .home-score-pill {
  padding: 3px 8px;
  border: 1px solid rgba(40, 240, 200, .3);
  border-radius: var(--ho-radius);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ho-cyan);
  white-space: nowrap;
}

.page-home .home-score-pill--live {
  border-color: rgba(255, 90, 42, .42);
  color: var(--ho-score);
}

.page-home .home-score-foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ho-grid);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ho-muted);
}

.page-home .home-score-foot a {
  color: var(--ho-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 240, 200, .3);
}

.page-home .home-score-foot a:hover,
.page-home .home-score-foot a:focus-visible {
  color: var(--ho-cyan-soft);
  border-bottom-color: var(--ho-cyan-soft);
}

/* ---------- 章节骨架 ---------- */
.page-home .home-chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: start;
}

.page-home .home-chapter-num {
  position: relative;
  padding-top: 4px;
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ho-cyan);
}

.page-home .home-chapter-num::after {
  content: "";
  display: block;
  width: 1px;
  height: clamp(30px, 5vw, 50px);
  margin: 12px auto 0;
  background: linear-gradient(180deg, var(--ho-cyan), transparent);
}

.page-home .home-chapter-main > .ho-section-title {
  margin: 0 0 14px;
  max-width: 30ch;
}

.page-home .home-block-lede {
  max-width: 64ch;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ho-muted);
}

.page-home .home-block--rhythm {
  border-top: 1px solid var(--ho-grid);
  background: linear-gradient(180deg, rgba(12, 42, 32, .5), transparent 42%);
}

.page-home .home-block--version {
  border-top: 1px solid var(--ho-grid);
}

.page-home .home-block--support {
  border-top: 1px solid var(--ho-grid);
}

/* ---------- 01 工作台 ---------- */
.page-home .home-workbench-grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

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

.page-home .home-feature-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--ho-line);
  border-left: 2px solid var(--ho-turf);
  border-radius: var(--ho-radius);
  background: rgba(12, 42, 32, .6);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.page-home .home-feature-item:hover {
  border-left-color: var(--ho-cyan);
  background: rgba(20, 74, 55, .58);
  transform: translateY(-2px);
}

.page-home .home-feature-key {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ho-cyan);
  padding-top: 2px;
}

.page-home .home-feature-title {
  margin: 0 0 5px;
  font-family: var(--ho-font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ho-text);
}

.page-home .home-feature-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ho-muted);
}

.page-home .home-workbench-media,
.page-home .home-rhythm-media,
.page-home .home-download-media {
  position: relative;
  margin: 0;
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius);
  overflow: hidden;
  background: var(--ho-panel);
}

.page-home .home-workbench-media img,
.page-home .home-rhythm-media img,
.page-home .home-download-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-workbench-media img {
  aspect-ratio: 3 / 2;
  filter: saturate(.86) contrast(1.04);
}

.page-home .home-workbench-media::after,
.page-home .home-rhythm-media::after,
.page-home .home-download-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 26, 20, .78) 100%);
}

.page-home .home-workbench-media .ho-media-cap,
.page-home .home-rhythm-media .ho-media-cap,
.page-home .home-download-media .ho-media-cap {
  position: relative;
  z-index: 1;
}

/* ---------- 02 横向滚动 ---------- */
.page-home .home-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(252px, 76vw);
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 38px);
  padding: 4px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 240, 200, .34) rgba(40, 240, 200, .08);
}

.page-home .home-track::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-track::-webkit-scrollbar-track {
  background: rgba(40, 240, 200, .08);
  border-radius: 999px;
}

.page-home .home-track::-webkit-scrollbar-thumb {
  background: rgba(40, 240, 200, .34);
  border-radius: 999px;
}

.page-home .home-track-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 22px;
  border: 1px solid var(--ho-line);
  border-top: 2px solid var(--ho-turf);
  border-radius: var(--ho-radius);
  background: linear-gradient(180deg, rgba(12, 42, 32, .9), rgba(7, 26, 20, .82));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.page-home .home-track-card:hover,
.page-home .home-track-card:focus-within {
  transform: translateY(-5px);
  border-top-color: var(--ho-cyan);
  box-shadow: 0 22px 34px -26px rgba(0, 0, 0, .95);
}

.page-home .home-track-time {
  margin: 0;
  font-family: var(--ho-font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ho-amber);
}

.page-home .home-track-title {
  margin: 0;
  font-family: var(--ho-font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ho-text);
}

.page-home .home-track-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ho-muted);
}

.page-home .home-rhythm-media img {
  aspect-ratio: 4 / 3;
}

/* ---------- 03 版本 ---------- */
.page-home .home-version-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius);
  background: var(--ho-line);
  overflow: hidden;
}

.page-home .home-version-item {
  position: relative;
  padding: 20px 20px 22px;
  background: rgba(12, 42, 32, .84);
  transition: background .2s ease;
}

.page-home .home-version-item:hover {
  background: rgba(20, 74, 55, .74);
}

.page-home .home-version-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 176, 32, .42);
  border-radius: var(--ho-radius);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ho-amber);
}

.page-home .home-version-title {
  margin: 0 0 6px;
  font-family: var(--ho-font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ho-text);
}

.page-home .home-version-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ho-muted);
}

/* ---------- 04 下载引导 ---------- */
.page-home .home-download-grid {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
}

.page-home .home-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ho-grid);
}

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

.page-home .home-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--home-cyan-line);
  border-radius: var(--ho-radius);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ho-cyan);
  background: rgba(40, 240, 200, .06);
}

.page-home .home-step-title {
  margin: 0 0 4px;
  font-family: var(--ho-font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ho-text);
}

.page-home .home-step-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ho-muted);
}

.page-home .home-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-download-media img {
  aspect-ratio: 4 / 5;
  object-position: 50% 30%;
}

/* ---------- 05 帮助与反馈 ---------- */
.page-home .home-support-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.page-home .home-support-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 52px 22px 20px;
  border: 1px solid var(--ho-line);
  border-left: 2px solid var(--ho-turf);
  border-radius: var(--ho-radius);
  background: rgba(12, 42, 32, .78);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.page-home .home-support-card:hover,
.page-home .home-support-card:focus-visible {
  border-left-color: var(--ho-cyan);
  background: rgba(20, 74, 55, .72);
  transform: translateY(-3px);
  outline: none;
}

.page-home .home-support-kicker {
  font-family: var(--ho-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ho-cyan);
}

.page-home .home-support-name {
  font-family: var(--ho-font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--ho-text);
}

.page-home .home-support-text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ho-muted);
}

.page-home .home-support-go {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-family: var(--ho-font-mono);
  font-size: 18px;
  color: var(--ho-cyan);
  transition: transform .2s ease;
}

.page-home .home-support-card:hover .home-support-go,
.page-home .home-support-card:focus-visible .home-support-go {
  transform: translate(4px, -50%);
}

.page-home .home-support-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ho-muted);
}

.page-home .home-support-note a {
  color: var(--ho-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 240, 200, .3);
}

.page-home .home-support-note a:hover,
.page-home .home-support-note a:focus-visible {
  color: var(--ho-cyan-soft);
  border-bottom-color: var(--ho-cyan-soft);
}

/* ---------- 键盘焦点 ---------- */
.page-home a:focus-visible {
  outline: 2px solid var(--ho-cyan);
  outline-offset: 3px;
  border-radius: var(--ho-radius);
}

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .page-home .home-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 760px) {
  .page-home .home-track {
    grid-auto-columns: minmax(288px, 31%);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: start;
  }

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

  .page-home .home-download-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .7fr);
    align-items: center;
  }

  .page-home .home-rhythm-media img {
    aspect-ratio: 16 / 9;
  }
}

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

  .page-home .home-quick-item {
    padding: 17px 18px;
  }
}

@media (max-width: 640px) {
  .page-home .home-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .page-home .home-chapter-num::after {
    width: 26px;
    height: 1px;
    margin: 10px 0 0;
    background: linear-gradient(90deg, var(--ho-cyan), transparent);
  }

  .page-home .home-hero-actions .ho-btn,
  .page-home .home-download-actions .ho-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .page-home .home-support-card {
    padding-right: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-quick-item,
  .page-home .home-score-row,
  .page-home .home-feature-item,
  .page-home .home-track-card,
  .page-home .home-support-card,
  .page-home .home-support-go {
    transition: none;
  }

  .page-home .home-track-card:hover {
    transform: none;
  }
}
