.page-home {
  --hm-line: rgba(27, 35, 40, 0.14);
  --hm-cut: 22px;
  --hm-gap: clamp(12px, 2vw, 20px);
  --hm-radius: 14px;
  --hm-soft-white: #FFF9EC;
  color: var(--sg-ink);
}

.page-home .hm-shell {
  padding-bottom: clamp(32px, 5vw, 64px);
}

.page-home .hm-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--hm-line);
}

.page-home .hm-context__note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sg-charcoal);
}

.page-home .hm-context__note .sg-mono {
  color: var(--sg-ember);
  font-weight: 700;
}

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

.page-home .hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  padding: clamp(24px, 4vw, 52px) 0 clamp(26px, 4vw, 56px);
}

.page-home .hm-hero__kicker {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--sg-ember);
  font-weight: 700;
}

.page-home .hm-hero__title {
  margin: 0;
  font-family: var(--sg-font-head);
  font-size: clamp(36px, 7vw, 78px);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--sg-ink);
}

.page-home .hm-hero__lede {
  margin: clamp(14px, 2vw, 20px) 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--sg-charcoal);
}

.page-home .hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 2.6vw, 26px);
}

.page-home .hm-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-hero__stats dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sg-charcoal);
}

.page-home .hm-hero__stats dd {
  margin: 6px 0 0;
  font-family: var(--sg-font-mono);
  font-size: clamp(19px, 2.8vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sg-ink);
}

/* ---------- 拼贴 ---------- */

.page-home .hm-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.page-home .hm-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  background: var(--hm-soft-white);
  color: var(--sg-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.28s var(--sg-ease), box-shadow 0.28s var(--sg-ease);
}

.page-home .hm-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sg-shadow-lift);
}

.page-home .hm-tile:focus-visible {
  outline: 3px solid var(--sg-ember);
  outline-offset: -6px;
}

.page-home .hm-tile__num {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  opacity: 0.75;
}

.page-home .hm-tile__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .hm-tile__desc {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.84;
}

.page-home .hm-tile--img {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: var(--sg-gold);
}

.page-home .hm-tile--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-home .hm-tile__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(27, 35, 40, 0.82);
  color: var(--sg-on-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-home .hm-tile--batch {
  background: linear-gradient(150deg, var(--sg-gold-soft), var(--sg-gold) 64%);
  border-color: transparent;
  color: var(--sg-ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

.page-home .hm-tile--batch .hm-tile__num {
  color: var(--sg-ember);
  opacity: 1;
}

.page-home .hm-tile--search {
  background: var(--sg-ink);
  border-color: transparent;
  color: var(--sg-on-dark);
}

.page-home .hm-tile--search .hm-tile__num {
  color: var(--sg-gold-soft);
  opacity: 1;
}

.page-home .hm-tile--open {
  grid-column: 1 / -1;
  background: var(--hm-soft-white);
  border-color: var(--sg-ember);
}

.page-home .hm-tile--open .hm-tile__num {
  color: var(--sg-ember);
  opacity: 1;
}

/* ---------- 长卷骨架 ---------- */

.page-home .hm-long {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding-top: clamp(8px, 2vw, 24px);
}

.page-home .hm-rail__title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sg-charcoal);
}

.page-home .hm-rail__spy {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-left: 0;
}

.page-home .hm-rail__spy .sg-spy__link {
  display: block;
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: var(--hm-soft-white);
  font-size: 13px;
  line-height: 1.3;
  color: var(--sg-charcoal);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease), background 0.2s var(--sg-ease);
}

.page-home .hm-rail__spy .sg-spy__link:hover,
.page-home .hm-rail__spy .sg-spy__link:focus-visible {
  color: var(--sg-ember);
  border-color: var(--sg-ember);
}

.page-home .hm-rail__spy .sg-spy__link[aria-current="true"] {
  background: var(--sg-ember);
  border-color: var(--sg-ember);
  color: var(--sg-on-dark);
}

/* ---------- 章节 ---------- */

.page-home .hm-sec {
  padding: clamp(24px, 3.6vw, 42px) 0;
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-sec:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-home .hm-head .sg-section-head__num {
  color: var(--sg-ember);
  letter-spacing: 0.18em;
}

.page-home .hm-head .sg-section-head__title {
  font-size: clamp(23px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.page-home .hm-head .sg-section-head__note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sg-charcoal);
}

/* ---------- 三条线索 ---------- */

.page-home .hm-threads {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  margin-top: clamp(16px, 2.6vw, 26px);
}

.page-home .hm-thread {
  position: relative;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--hm-line);
  border-radius: 4px var(--hm-radius) var(--hm-radius) var(--hm-radius);
  background: var(--hm-soft-white);
}

.page-home .hm-thread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--sg-gold);
}

.page-home .hm-thread h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .hm-thread p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--sg-charcoal);
}

/* ---------- 图片 ---------- */

.page-home .hm-shot {
  margin: clamp(18px, 2.6vw, 28px) 0 0;
}

.page-home .hm-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  object-fit: cover;
}

.page-home .hm-shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sg-charcoal);
}

.page-home .hm-more {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
}

/* ---------- 检索 ---------- */

.page-home .hm-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(16px, 2.6vw, 24px);
  align-items: center;
}

.page-home .hm-search-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--sg-charcoal);
}

.page-home .hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-chip {
  padding: 6px 13px;
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: var(--hm-soft-white);
  font-size: 13px;
  line-height: 1.4;
  color: var(--sg-ink);
}

.page-home .hm-chip--on {
  background: var(--sg-ember);
  border-color: var(--sg-ember);
  color: var(--sg-on-dark);
  font-weight: 700;
}

.page-home .hm-result-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-result-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--hm-line);
}

.page-home .hm-result-list__type {
  font-size: 14px;
  color: var(--sg-ink);
}

.page-home .hm-result-list__count {
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-jade);
}

.page-home .hm-search-copy .hm-more {
  margin-top: 18px;
}

/* ---------- 三步 ---------- */

.page-home .hm-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  margin: clamp(16px, 2.6vw, 26px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-step {
  padding: 20px 18px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  background: var(--hm-soft-white);
  transition: transform 0.28s var(--sg-ease), box-shadow 0.28s var(--sg-ease);
}

.page-home .hm-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--sg-shadow-lift);
}

.page-home .hm-step__num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--sg-gold);
}

.page-home .hm-step h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.page-home .hm-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--sg-charcoal);
}

.page-home .hm-step__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--sg-ember);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.page-home .hm-step__link:hover,
.page-home .hm-step__link:focus-visible {
  color: var(--sg-ink);
}

/* ---------- iOS 深色块 ---------- */

.page-home .hm-ios {
  padding: clamp(20px, 3.4vw, 42px);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(231, 162, 26, 0.3), transparent 62%),
    var(--sg-space);
  color: var(--sg-on-dark);
}

.page-home .hm-head--dark .sg-section-head__num {
  color: var(--sg-gold-soft);
}

.page-home .hm-head--dark .sg-section-head__title {
  color: var(--sg-on-dark);
}

.page-home .hm-head--dark .sg-section-head__note {
  color: rgba(247, 238, 219, 0.76);
}

.page-home .hm-ios__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(18px, 2.8vw, 26px);
  align-items: start;
}

.page-home .hm-shot--device img {
  border-color: rgba(247, 238, 219, 0.24);
  background: rgba(247, 238, 219, 0.06);
}

.page-home .hm-shot--device figcaption {
  color: rgba(247, 238, 219, 0.7);
}

.page-home .hm-config {
  display: grid;
  gap: 10px;
}

.page-home .hm-config__item {
  border: 1px solid var(--sg-line-dark);
  border-radius: 10px;
  background: rgba(247, 238, 219, 0.06);
}

.page-home .hm-config__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.page-home .hm-config__item summary::-webkit-details-marker {
  display: none;
}

.page-home .hm-config__item summary::after {
  content: "＋";
  flex: 0 0 auto;
  font-family: var(--sg-font-mono);
  color: var(--sg-gold-soft);
}

.page-home .hm-config__item[open] summary::after {
  content: "－";
}

.page-home .hm-config__item summary:focus-visible {
  outline: 3px solid var(--sg-gold);
  outline-offset: -4px;
  border-radius: 10px;
}

.page-home .hm-config__body {
  padding: 0 14px 14px;
  font-size: 14px;
  line-height: 1.78;
  color: rgba(247, 238, 219, 0.82);
}

.page-home .hm-config__body p {
  margin: 0;
}

.page-home .hm-config__body ul {
  margin: 0;
  padding-left: 18px;
}

.page-home .hm-config__body li + li {
  margin-top: 6px;
}

.page-home .hm-ios__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(18px, 2.6vw, 26px) 0 0;
}

/* ---------- 收尾 CTA ---------- */

.page-home .hm-cta {
  margin-top: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: 20px;
  background: linear-gradient(140deg, var(--sg-gold-soft), var(--sg-gold) 70%);
  color: var(--sg-ink);
}

.page-home .hm-cta h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page-home .hm-cta p {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(27, 35, 40, 0.86);
}

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

/* ---------- 断点 ---------- */

@media (min-width: 700px) {
  .page-home .hm-threads,
  .page-home .hm-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .page-home .hm-tile--batch {
    grid-column: 1 / 3;
  }

  .page-home .hm-tile--search {
    grid-column: 3 / 5;
  }

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

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

  .page-home .hm-collage {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 104px;
  }

  .page-home .hm-tile--img {
    grid-column: 3 / 7;
    grid-row: 1 / 4;
    aspect-ratio: auto;
  }

  .page-home .hm-tile--batch {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    min-height: 0;
  }

  .page-home .hm-tile--search {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
    min-height: 0;
  }

  .page-home .hm-tile--open {
    grid-column: 3 / 7;
    grid-row: 4 / 5;
    min-height: 0;
  }

  .page-home .hm-threads {
    grid-template-columns: 1.15fr 1fr 1fr;
  }

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

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

  .page-home .hm-ios__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 1040px) {
  .page-home .hm-long {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: clamp(24px, 3.2vw, 46px);
  }

  .page-home .hm-rail {
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .page-home .hm-rail__spy {
    flex-direction: column;
    gap: 0;
    overflow-x: visible;
    padding-bottom: 0;
    border-left: 2px solid var(--hm-line);
  }

  .page-home .hm-rail__spy .sg-spy__link {
    flex: 0 0 auto;
    margin-left: -2px;
    padding: 8px 0 8px 14px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    white-space: normal;
    font-size: 13px;
    line-height: 1.45;
  }

  .page-home .hm-rail__spy .sg-spy__link[aria-current="true"] {
    background: transparent;
    color: var(--sg-ember);
    border-left-color: var(--sg-ember);
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-tile,
  .page-home .hm-step,
  .page-home .hm-rail__spy .sg-spy__link {
    transition: none;
  }

  .page-home .hm-tile:hover,
  .page-home .hm-step:hover {
    transform: none;
  }
}
<<<END>>>
