.page-home {
  --home-pad: clamp(56px, 8vw, 104px);
  display: block;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home section[id] {
  scroll-margin-top: 148px;
}

.page-home a:focus-visible,
.page-home button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.page-home .section {
  padding: var(--home-pad) 0;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 10px 0 0;
}

.page-home .section-note {
  color: var(--mist);
  font-size: 15px;
  line-height: 1.95;
  margin: 16px 0 0;
  max-width: 48ch;
}

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

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(46px, 7.5vw, 92px) 0 clamp(52px, 7vw, 88px);
  background:
    radial-gradient(115% 88% at 84% 14%, rgba(200, 16, 46, 0.42), transparent 58%),
    radial-gradient(72% 62% at 8% 92%, rgba(14, 124, 107, 0.24), transparent 62%),
    var(--ink-deep);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, var(--ink-deep) 30%, rgba(15, 15, 18, 0.78) 58%, rgba(15, 15, 18, 0.34) 100%);
}

.page-home .hero__inner {
  display: grid;
  gap: clamp(34px, 5vw, 56px);
  align-items: center;
}

.page-home .hero__lead {
  max-width: 34ch;
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 92px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.page-home .hero__title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--red) 0%, var(--gold) 52%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero__lede {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--mist);
  max-width: 36ch;
}

.page-home .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}

.page-home .hero__facts div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.page-home .hero__facts dt {
  font-size: 13px;
  color: var(--mist);
}

.page-home .hero__facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.page-home .hero__pick-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--mist);
  margin: 0 0 22px;
  padding-left: 2px;
}

.page-home .chips-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
}

.page-home .chips-nav > li:last-child {
  grid-column: 1 / -1;
}

.page-home .chip-link {
  --tilt: 0deg;
  position: relative;
  width: min(232px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--bone);
  background:
    radial-gradient(circle at 32% 26%, rgba(242, 193, 78, 0.3), transparent 56%),
    radial-gradient(circle at 72% 80%, rgba(200, 16, 46, 0.55), transparent 62%),
    var(--graphite);
  border: 2px solid var(--hair-strong);
  box-shadow: inset 0 0 0 9px rgba(15, 15, 18, 0.55), var(--shadow-card);
  transform: rotate(var(--tilt));
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.page-home .chips-nav > li:nth-child(1) .chip-link { --tilt: -5deg; }
.page-home .chips-nav > li:nth-child(2) .chip-link { --tilt: 3deg; }
.page-home .chips-nav > li:nth-child(3) .chip-link { --tilt: -2deg; }

@media (hover: hover) {
  .page-home .chip-link:hover {
    transform: rotate(8deg) translateY(-6px) scale(1.03);
    border-color: var(--gold);
    box-shadow: inset 0 0 0 9px rgba(15, 15, 18, 0.42), 0 22px 48px -24px rgba(200, 16, 46, 0.9);
  }
}

.page-home .chip-link__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .chip-link__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-home .chip-link__desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
  max-width: 13ch;
}

/* ---------- 斜切分隔 ---------- */

.page-home .slash-band {
  height: 66px;
  background: linear-gradient(90deg, var(--red-deep) 0%, var(--red) 48%, rgba(242, 193, 78, 0.7) 100%);
  clip-path: polygon(0 36%, 100% 0, 100% 64%, 0 100%);
  opacity: 0.55;
}

/* ---------- 三步上手 ---------- */

.page-home .steps__figure {
  margin: clamp(28px, 4vw, 42px) 0 0;
}

.page-home .steps__figure .figure__frame img {
  border-radius: var(--r-md);
}

.page-home .steps__list {
  list-style: none;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .step {
  position: relative;
  background: var(--graphite);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 28px 24px 28px;
  overflow: hidden;
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.page-home .step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 4px;
  background: var(--red);
  border-radius: 0 0 4px 0;
}

@media (hover: hover) {
  .page-home .step:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-card);
  }
}

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .step__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0 0;
}

.page-home .step p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

/* ---------- 内容目录 ---------- */

.page-home .catalog {
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.9), rgba(26, 26, 26, 0.2) 70%);
}

.page-home .catalog__grid {
  display: grid;
  gap: clamp(30px, 4.4vw, 56px);
  align-items: start;
}

.page-home .catalog__figure {
  margin: 0;
}

.page-home .catalog__figure .figure__frame img {
  border-radius: var(--r-lg);
}

.page-home .cat-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-strong);
  background: rgba(42, 42, 48, 0.72);
  color: var(--bone);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

@media (hover: hover) {
  .page-home .cat-chip:hover {
    background: var(--red);
    border-color: var(--gold);
    color: var(--gold-soft);
    transform: translateY(-3px);
  }
}

.page-home .catalog__aside {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--hair-strong);
}

.page-home .catalog__aside p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--mist);
}

/* ---------- 入门与时长 ---------- */

.page-home .arcade {
  background:
    radial-gradient(90% 60% at 6% 0%, rgba(200, 16, 46, 0.16), transparent 62%),
    var(--ink);
}

.page-home .arcade__grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 42px);
}

.page-home .arcade__badge {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(200, 16, 46, 0.18);
  border: 1px solid rgba(200, 16, 46, 0.5);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .arcade__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 800;
  margin: 16px 0 0;
}

.page-home .arcade__text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .arcade__series .btn {
  margin-top: 24px;
}

.page-home .stage-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .stage-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hair);
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .stage-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .arcade__time {
  background: linear-gradient(160deg, rgba(15, 15, 18, 0.94), rgba(42, 42, 48, 0.7));
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 34px);
}

.page-home .time-dial {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-home .time-dial__item {
  padding: 16px 14px 14px;
  border-radius: var(--r-md);
  background: rgba(15, 15, 18, 0.72);
  border: 1px solid var(--hair);
}

.page-home .time-dial__item::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 4px;
  margin-top: 12px;
  width: 26%;
  background: linear-gradient(90deg, var(--jade), var(--cyan));
}

.page-home .time-dial__item:nth-child(2)::after { width: 45%; }
.page-home .time-dial__item:nth-child(3)::after { width: 72%; }
.page-home .time-dial__item:nth-child(4)::after { width: 100%; }

.page-home .time-dial__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.page-home .time-dial__num--wide {
  font-size: 17px;
}

.page-home .time-dial__unit {
  font-size: 12px;
  color: var(--mist);
  margin-left: 4px;
}

.page-home .time-dial__item p {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 版本时间轴 ---------- */

.page-home .versions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-deep);
}

.page-home .versions__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
}

.page-home .versions__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .versions__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink-deep) 2%, rgba(15, 15, 18, 0.6) 44%, var(--ink-deep) 96%);
}

.page-home .timeline {
  list-style: none;
  margin: clamp(30px, 4.5vw, 46px) 0 0;
  padding: 0 0 0 32px;
  position: relative;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(242, 193, 78, 0.12));
}

.page-home .timeline__item {
  position: relative;
  padding-bottom: 34px;
}

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

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.12);
  transition: background 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

@media (hover: hover) {
  .page-home .timeline__item:hover::before {
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(242, 193, 78, 0.2);
  }
}

.page-home .timeline__ver {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .timeline__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 800;
  margin: 9px 0 0;
}

.page-home .timeline__hint {
  margin: 0;
  max-height: none;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
  transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease), margin-top 0.3s var(--ease);
}

.page-home .versions__more {
  margin: 34px 0 0;
}

/* ---------- 记录 ---------- */

.page-home .records {
  background: linear-gradient(180deg, var(--ink), rgba(42, 42, 48, 0.42));
}

.page-home .records__grid {
  display: grid;
  gap: clamp(30px, 4.4vw, 54px);
  align-items: start;
}

.page-home .records__text {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--mist);
  max-width: 36ch;
}

.page-home .records__lead .btn {
  margin-top: 26px;
}

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

.page-home .record-view {
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--jade);
}

.page-home .record-view h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.page-home .record-view p {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
}

/* ---------- 服务与联系 ---------- */

.page-home .service__row {
  display: grid;
  gap: 1px;
  margin-top: clamp(28px, 4vw, 42px);
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.page-home .service__cell {
  background: var(--graphite);
  padding: 28px 24px;
}

.page-home .service__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.page-home .service__value {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  word-break: break-word;
}

.page-home .service__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .service__more {
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .service__more a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 1px;
}

.page-home .service__more a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

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

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

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

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

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

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

  .page-home .chips-nav > li:last-child {
    grid-column: auto;
    transform: translateX(50%);
  }

  .page-home .catalog__grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  }

  .page-home .records__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

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

@media (min-width: 901px) {
  .page-home .timeline__hint {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
  }

  .page-home .timeline__item:hover .timeline__hint,
  .page-home .timeline__item:focus-within .timeline__hint {
    max-height: 140px;
    opacity: 1;
    margin-top: 10px;
  }
}

@media (max-width: 899px) {
  .page-home .timeline__hint {
    margin-top: 10px;
  }

  .page-home .chip-link__desc {
    font-size: 11.5px;
  }

  .page-home .chip-link {
    padding: 18px;
  }

  .page-home .chip-link__name {
    font-size: 16px;
  }

  .page-home section[id] {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 420px) {
  .page-home .chips-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .chips-nav > li:last-child {
    grid-column: auto;
  }

  .page-home .chip-link {
    width: min(200px, 100%);
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .chip-link,
  .page-home .cat-chip,
  .page-home .step,
  .page-home .timeline__hint,
  .page-home .timeline__item::before {
    transition: none;
  }

  .page-home .chip-link {
    transform: none;
  }
}
