.page-home {
  --home-pad: clamp(20px, 3.4vw, 56px);
  --home-gap: clamp(28px, 4.4vw, 72px);
  --home-shift: 14%;
}

/* ---------- 首屏框景 ---------- */
.page-home .home-hero {
  padding: clamp(12px, 2vw, 28px) 0 clamp(32px, 5vw, 76px);
}

.page-home .home-hero__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: min(780px, 84vh);
  border: 1px solid var(--gold-line);
  border-top: 3px solid var(--gold);
  background: var(--ink-800);
  box-shadow: var(--shadow-brut-strong);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(0.9) contrast(1.06);
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 84% at 84% 10%, rgba(224, 33, 138, 0.3), transparent 62%),
    linear-gradient(180deg, rgba(11, 10, 15, 0.42) 0%, rgba(11, 10, 15, 0.86) 58%, rgba(11, 10, 15, 0.97) 100%);
}

.page-home .home-hero__body {
  position: relative;
  z-index: 2;
  padding: var(--home-pad);
  max-width: 48rem;
}

.page-home .home-hero__title {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-hero__accent {
  display: block;
  color: var(--gold);
}

.page-home .home-hero__lead {
  margin: 0 0 28px;
  color: var(--mist);
  max-width: 38em;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-hero__facts {
  position: absolute;
  top: var(--home-pad);
  right: var(--home-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  text-align: right;
  border: 1px solid var(--gold-line-soft);
  background: rgba(11, 10, 15, 0.62);
  backdrop-filter: blur(2px);
}

.page-home .home-fact {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
}

.page-home .home-fact__num {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.page-home .home-fact__label {
  font-size: 0.82rem;
  color: var(--mist);
  letter-spacing: 0.02em;
}

/* ---------- 索引总览 ---------- */
.page-home .home-index {
  padding: var(--home-gap) 0;
}

.page-home .home-index__cats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--gold-line-soft);
  border: 1px solid var(--gold-line-soft);
}

.page-home .home-index__cat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 16px;
  background: var(--ink-900);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--paper);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-index__cat .mono {
  font-size: 12px;
  color: var(--gold);
}

.page-home .home-index__cat:hover {
  background: var(--ink-700);
}

.page-home .home-index__filters {
  margin-top: 32px;
}

.page-home .home-index__hint {
  margin: 14px 0 0;
  max-width: 38em;
  color: var(--mist);
  line-height: 1.85;
}

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

.page-home .home-index__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-home .home-stats {
  list-style: none;
  margin: var(--home-gap) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--gold-line-soft);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line-soft);
}

.page-home .home-stat {
  padding: 20px 18px;
  background: var(--ink-900);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-stat__num {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--neon);
  line-height: 1;
}

.page-home .home-stat__label {
  font-size: 0.86rem;
  color: var(--mist);
}

/* ---------- 工具与版本 ---------- */
.page-home .home-tools {
  padding: var(--home-gap) 0;
}

.page-home .home-tools__inner {
  margin-left: auto;
  max-width: 100%;
  border-left: 2px solid var(--neon);
  padding-left: clamp(18px, 2.6vw, 40px);
}

.page-home .home-tools__layout {
  margin-top: 34px;
  display: grid;
  gap: var(--home-gap);
}

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

.page-home .home-tools__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--gold-line-soft);
  box-shadow: var(--shadow-brut);
}

.page-home .home-tools__caption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--mist);
}

.page-home .home-tools__cards {
  display: grid;
  gap: 16px;
}

.page-home .tool-card {
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border-left: 3px solid transparent;
}

.page-home .tool-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--neon);
  box-shadow: var(--shadow-brut-strong);
}

.page-home .tool-card .card__meta {
  color: var(--peacock);
}

/* ---------- 使用记录 ---------- */
.page-home .home-record {
  padding: var(--home-gap) 0;
}

.page-home .home-record__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.page-home .home-record__anchor {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--gold-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-record__anchor:hover {
  background: var(--gold);
  color: var(--ink-900);
}

.page-home .home-record__line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  border-left: 1px solid var(--gold-line);
}

.page-home .record-step {
  position: relative;
  padding: 0 20px 0 26px;
}

.page-home .record-step__dot {
  position: absolute;
  left: -13px;
  top: 2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
  background: var(--ink-900);
  color: var(--gold);
  font-size: 11px;
}

.page-home .record-step__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--paper);
}

.page-home .record-step p {
  margin: 0;
  color: var(--mist);
  line-height: 1.85;
  max-width: 38em;
}

.page-home .home-record__link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 更新节奏 ---------- */
.page-home .home-rhythm {
  padding: var(--home-gap) 0;
}

.page-home .home-rhythm__figure {
  margin: 32px 0 0;
}

.page-home .home-rhythm__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--gold-line-soft);
}

.page-home .home-rhythm__caption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--mist);
}

.page-home .home-rhythm__grid {
  margin-top: 30px;
}

.page-home .rhythm-card {
  height: 100%;
  padding: 24px 22px;
  background: var(--ink-800);
  border: 1px solid var(--gold-line-soft);
  border-top: 2px solid var(--gold);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .rhythm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-brut);
}

.page-home .rhythm-card__kicker {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 12px;
}

.page-home .rhythm-card__title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
}

.page-home .rhythm-card p:last-child {
  margin: 0;
  color: var(--mist);
  line-height: 1.85;
}

/* ---------- 联系 ---------- */
.page-home .home-contact {
  padding: clamp(20px, 3vw, 48px) 0 var(--home-gap);
}

.page-home .home-contact__panel {
  display: grid;
  gap: var(--home-gap);
  padding: clamp(24px, 3.6vw, 52px);
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(110% 130% at 8% 0%, rgba(224, 33, 138, 0.16), transparent 58%),
    var(--ink-800);
}

.page-home .home-contact__title {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-contact__lead p.prose {
  margin: 0 0 26px;
  color: var(--mist);
}

.page-home .home-contact__link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--gold-line-soft);
  border: 1px solid var(--gold-line-soft);
  align-self: start;
}

.page-home .contact-item {
  background: var(--ink-900);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .contact-item__k {
  font-size: 11px;
  color: var(--peacock);
}

.page-home .contact-item__v {
  color: var(--paper);
  font-size: 0.98rem;
  text-decoration: none;
  word-break: break-word;
}

.page-home a.contact-item__v:hover {
  color: var(--gold);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .home-index__cats {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .home-tools__cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__frame {
    min-height: min(820px, 86vh);
  }

  .page-home .home-tools__inner {
    max-width: 86%;
  }

  .page-home .home-tools__layout {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }

  .page-home .home-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-contact__panel {
    grid-template-columns: 6fr 5fr;
  }

  .page-home .home-record__line {
    gap: 26px;
  }
}

@media (max-width: 959px) {
  .page-home .home-hero__facts {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px 26px;
    margin: var(--home-pad) var(--home-pad) 0;
    padding: 16px 18px;
    text-align: left;
  }

  .page-home .home-fact {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-home .home-tools__inner {
    border-left: 0;
    padding-left: 0;
    border-top: 2px solid var(--neon);
    padding-top: 22px;
  }

  .page-home .home-hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tool-card,
  .page-home .rhythm-card,
  .page-home .home-record__anchor,
  .page-home .home-index__cat {
    transition: none;
  }

  .page-home .tool-card:hover,
  .page-home .rhythm-card:hover {
    transform: none;
  }
}
