.page-home {
  display: block;
  background-color: var(--ht-cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(26, 26, 46, 0.045) 1px, transparent 0);
  background-size: 8px 8px;
  color: var(--ht-ink);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  overflow-x: clip;
}

/* ---------------- 封面首屏 ---------------- */
.home-cover {
  padding-block: clamp(1rem, 3vw, 1.75rem) clamp(2.5rem, 6vw, 4.5rem);
}

.home-cover .ht-breadcrumb {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.home-cover__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: end;
}

.home-cover__main {
  min-width: 0;
}

.home-cover__title {
  margin: .75rem 0 0;
  color: var(--ht-ink);
}

.home-cover__lead {
  margin-top: clamp(1rem, 3vw, 1.5rem);
  max-width: 34ch;
  color: var(--ht-graphite);
}

.home-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.home-cover__figure {
  margin: 0;
  min-width: 0;
}

.home-cover__figure .ht-figure__frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--ht-ink);
  box-shadow: 4px 4px 0 var(--ht-ink);
  background-color: var(--ht-mist);
}

.home-cover__figure .ht-figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cover__index {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ht-ink);
}

.home-cover__index-item {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(26, 26, 46, 0.16);
  font-size: .9375rem;
  min-width: 0;
}

.home-cover__index-num {
  flex: none;
  font-family: var(--ht-mono-stack);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--ht-blue);
}

.home-cover__index-item a {
  color: var(--ht-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ht-ease), border-color 180ms var(--ht-ease);
}

.home-cover__index-item a:hover {
  color: var(--ht-blue-deep);
  border-bottom-color: var(--ht-blue-deep);
}

.home-cover__index-item a:focus-visible {
  outline: 3px solid var(--ht-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------------- 覆盖数据条 ---------------- */
.home-stats {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  border-top: 1px solid var(--ht-ink);
}

.home-stats__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 2.75rem);
  margin-top: clamp(1.75rem, 5vw, 2.75rem);
}

.home-stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  min-width: 0;
}

.home-stat {
  min-width: 0;
  padding: 1.1rem 0 1.25rem;
  border-top: 2px solid var(--ht-ink);
}

.home-stat__label {
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--ht-graphite);
}

.home-stat__value {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin: .4rem 0 0;
  font-family: var(--ht-mono-stack);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ht-blue);
}

.home-stat__unit {
  font-family: var(--ht-font);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ht-graphite);
}

.home-stat__note {
  margin: .55rem 0 0;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ht-graphite);
  max-width: 30ch;
}

.home-stats__figure {
  margin: 0;
  min-width: 0;
}

.home-stats__figure .ht-figure__frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--ht-ink);
  background-color: var(--ht-mist);
}

.home-stats__figure .ht-figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 版本折叠面板 */
.home-version {
  margin-top: clamp(1.75rem, 5vw, 2.75rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--ht-blue-line);
}

.home-version__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  list-style: none;
}

.home-version__summary::-webkit-details-marker {
  display: none;
}

.home-version__summary:focus-visible {
  outline: 3px solid var(--ht-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.home-version__hint {
  font-size: .8125rem;
  letter-spacing: .1em;
  color: var(--ht-graphite);
}

.home-version__hint::after {
  content: " ↓";
  font-family: var(--ht-mono-stack);
  color: var(--ht-blue);
}

.home-version[open] .home-version__hint::after {
  content: " ↑";
}

.home-version__list {
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .5rem;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--ht-graphite);
}

/* ---------------- 项目索引区 ---------------- */
.home-projects {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  border-top: 1px solid var(--ht-ink);
}

.home-projects__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(1.75rem, 5vw, 2.75rem);
}

.home-project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background-color: var(--ht-mist);
  border: 1px solid var(--ht-ink);
  box-shadow: 2px 2px 0 var(--ht-ink);
  transition: transform 180ms var(--ht-ease), box-shadow 180ms var(--ht-ease);
}

.home-project:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ht-ink);
}

.home-project:has(:focus-visible) {
  outline: 3px solid var(--ht-orange);
  outline-offset: 3px;
}

.home-project__tag {
  align-self: flex-start;
  margin: 0;
}

.home-project__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.home-project__title a {
  color: var(--ht-ink);
  text-decoration: none;
  transition: color 180ms var(--ht-ease);
}

.home-project__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-project__title a:hover {
  color: var(--ht-blue-deep);
}

.home-project__desc {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--ht-graphite);
}

/* ---------------- 双端分工 ---------------- */
.home-dual {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  border-top: 1px solid var(--ht-ink);
}

.home-dual__figure,
.home-dual__sync {
  margin: clamp(1.75rem, 5vw, 2.5rem) 0 0;
  min-width: 0;
}

.home-dual__figure .ht-figure__frame,
.home-dual__sync .ht-figure__frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ht-ink);
  background-color: var(--ht-mist);
}

.home-dual__sync .ht-figure__frame {
  aspect-ratio: 3 / 2;
}

.home-dual__figure .ht-figure__img,
.home-dual__sync .ht-figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-dual__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(1.25rem, 4vw, 2rem);
}

.home-dual__col {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
}

.home-dual__col--accent {
  border-left: 4px solid var(--ht-blue);
}

.home-dual__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .55rem;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--ht-graphite);
}

/* ---------------- 新手三步 ---------------- */
.home-steps {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  border-top: 1px solid var(--ht-ink);
}

.home-steps__list {
  list-style: none;
  margin: clamp(1.75rem, 5vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
}

.home-step {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background-color: var(--ht-mist);
  border: 1px solid var(--ht-ink);
  box-shadow: 2px 2px 0 var(--ht-ink);
  transition: transform 180ms var(--ht-ease), box-shadow 180ms var(--ht-ease);
}

.home-step:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ht-ink);
}

.home-step__num {
  display: block;
  font-family: var(--ht-mono-stack);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ht-blue);
  margin-bottom: .85rem;
}

.home-step__title {
  margin: 0 0 .6rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.home-step__desc {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--ht-graphite);
}

.home-steps__more,
.home-updates__more {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
}

/* ---------------- 近期动态 ---------------- */
.home-updates {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  border-top: 1px solid var(--ht-ink);
}

.home-updates__list {
  list-style: none;
  margin: clamp(1.75rem, 5vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.home-update {
  position: relative;
  min-width: 0;
  padding: 1.25rem 0 1.4rem 1.75rem;
  border-left: 2px solid var(--ht-blue-line);
}

.home-update::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.7rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--ht-teal);
  border: 3px solid var(--ht-cream);
  box-sizing: content-box;
}

.home-update__time {
  margin: 0 0 .5rem;
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--ht-blue);
}

.home-update__title {
  margin: 0 0 .55rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.home-update__desc {
  margin: 0;
  max-width: 62ch;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--ht-graphite);
}

/* ---------------- 咨询收束 ---------------- */
.home-cta {
  padding-block: clamp(2rem, 6vw, 4rem) 0;
}

.home-cta__inner {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  background-color: var(--ht-ink);
  color: var(--ht-cream);
  border: 1px solid var(--ht-ink);
  box-shadow: 6px 6px 0 var(--ht-orange);
  overflow: hidden;
}

.home-cta__inner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 92, 255, 0.55) 0%, rgba(10, 92, 255, 0) 70%);
  pointer-events: none;
}

.home-cta .ht-eyebrow,
.home-cta .ht-eyebrow__num {
  color: var(--ht-orange-soft);
}

.home-cta__title {
  margin: .5rem 0 0;
  color: var(--ht-cream);
  max-width: 22ch;
}

.home-cta__text {
  margin: clamp(0.85rem, 2.5vw, 1.15rem) 0 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.82);
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: clamp(1.25rem, 4vw, 1.85rem);
}

.home-cta__ghost {
  border-color: rgba(246, 241, 231, 0.5);
  color: var(--ht-cream);
}

.home-cta__ghost:hover {
  border-color: var(--ht-cream);
  color: var(--ht-cream);
  background-color: rgba(246, 241, 231, 0.1);
}

/* ---------------- 滚动渐显（渐进增强） ---------------- */
.ht-js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ht-ease), transform 520ms var(--ht-ease);
}

.ht-js .page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- 响应式 ---------------- */
@media (min-width: 700px) {
  .home-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .home-dual__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .home-cover__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .home-cover__index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  .home-cover__figure {
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 960px) {
  .home-stats__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .home-stats__figure {
    margin-top: .5rem;
  }
}

@media (min-width: 1024px) {
  .home-projects__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .home-project:nth-child(1) {
    grid-column: span 5;
  }

  .home-project:nth-child(2) {
    grid-column: span 7;
  }

  .home-project:nth-child(3) {
    grid-column: span 7;
  }

  .home-project:nth-child(4) {
    grid-column: span 5;
  }

  .home-project:nth-child(5) {
    grid-column: span 5;
  }

  .home-project:nth-child(6) {
    grid-column: span 7;
  }

  .home-updates__list {
    max-width: 76ch;
  }
}

@media (max-width: 480px) {
  .home-stats__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-cover__index-item {
    font-size: .875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-project,
  .page-home .home-step,
  .page-home [data-reveal] {
    transition: none !important;
    transform: none !important;
  }

  .ht-js .page-home [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
