.page-home {
  position: relative;
  overflow-x: clip;
}

/* ── 首屏 ───────────────────────────────────────── */
.page-home .hero-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.25rem 0 3rem;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(120% 85% at 10% -10%, rgba(201, 162, 39, 0.13), transparent 62%),
    linear-gradient(180deg, var(--ink-abyss) 0%, var(--ink-slate) 68%, var(--ink-abyss) 100%);
}

.page-home .hero-home__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  pointer-events: none;
}

.page-home .hero-home__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(168, 180, 190, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 180, 190, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(125% 95% at 18% 0%, #000 28%, transparent 76%);
  mask-image: radial-gradient(125% 95% at 18% 0%, #000 28%, transparent 76%);
}

.page-home .hero-home__inner {
  position: relative;
  z-index: 1;
}

.page-home .hero-home__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.35rem, 9.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--rice);
  max-width: 16ch;
}

.page-home .hero-home__title-sub {
  display: block;
  margin-top: 0.4em;
  font-size: 0.44em;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--gold-light);
}

.page-home .hero-home__lead {
  margin: 1.5rem 0 0;
  max-width: 44ch;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .hero-home__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.page-home .hero-home__status-item {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

/* 三个直达入口 */
.page-home .hero-entries {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.page-home .hero-entry {
  display: flex;
}

.page-home .hero-entry__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  text-decoration: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .hero-entry__link:hover,
.page-home .hero-entry__link:focus-visible {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.15), rgba(255, 255, 255, 0.02));
  transform: translateY(-2px);
}

.page-home .hero-entry__idx {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .hero-entry__name {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--rice);
}

.page-home .hero-entry__desc {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .hero-entry__go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

/* ── 主体：左索引 + 右主区 ───────────────────────── */
.page-home .home-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}

.page-home .home-col {
  min-width: 0;
}

.page-home .home-rail .rail__list {
  display: flex;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0 0 0.35rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-rail .rail__list::-webkit-scrollbar {
  display: none;
}

.page-home .home-rail .rail__list > li {
  flex: 0 0 auto;
}

.page-home .home-rail .rail__link {
  display: block;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.page-home .home-rail .rail__link:hover,
.page-home .home-rail .rail__link:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.page-home .home-rail .rail__meta {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-rail .rail__meta a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 1024px) {
  .page-home .home-body {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 3.25rem;
    padding-top: 3.5rem;
  }

  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .page-home .home-rail .rail__list {
    flex-direction: column;
    gap: 0.25rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .home-rail .rail__link {
    padding: 0.5rem 0 0.5rem 1rem;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    font-size: 0.9rem;
  }

  .page-home .home-rail .rail__link:hover,
  .page-home .home-rail .rail__link:focus-visible {
    border-left-color: var(--gold);
    background: transparent;
  }

  /* 索引悬停，右侧对应区块标题点亮 */
  .page-home .home-body:has(.rail__link[href="#sections"]:hover) #sections .section-head__title,
  .page-home .home-body:has(.rail__link[href="#data-center"]:hover) #data-center .section-head__title,
  .page-home .home-body:has(.rail__link[href="#service-area"]:hover) #service-area .section-head__title,
  .page-home .home-body:has(.rail__link[href="#updates"]:hover) #updates .section-head__title,
  .page-home .home-body:has(.rail__link[href="#contact"]:hover) #contact h2 {
    color: var(--gold-light);
    transition: color 160ms var(--ease);
  }
}

/* ── 板块总览 ───────────────────────────────────── */
.page-home .home-sections {
  margin-top: 0;
}

.page-home .home-cards {
  margin-top: 1.75rem;
  gap: 1rem;
  align-items: start;
}

.page-home .home-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .home-card:hover {
  border-color: var(--hairline);
  transform: translateY(-2px);
}

.page-home .home-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  padding: 1.35rem 1.35rem 1.15rem;
}

.page-home .home-card__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-light);
  text-decoration: none;
}

.page-home .home-card__link:hover,
.page-home .home-card__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.page-home .home-card__links .home-card__link {
  margin-top: 0;
  padding-top: 0;
}

.page-home .home-card__media {
  margin: 0;
  aspect-ratio: 3 / 2;
}

.page-home .home-card__media img,
.page-home .home-service__media img,
.page-home .home-archive__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-home .home-card--split {
    flex-direction: row;
    align-items: stretch;
  }

  .page-home .home-card--split .home-card__body {
    flex: 1 1 56%;
  }

  .page-home .home-card--split .home-card__media {
    flex: 1 1 44%;
    aspect-ratio: auto;
    min-height: 230px;
  }
}

/* ── 数据中心速览 ───────────────────────────────── */
.page-home .home-data {
  margin-top: 3.5rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, var(--rock-deep) 0%, var(--ink-slate) 60%, var(--ink-abyss) 100%);
}

.page-home .home-data__dims {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-home .home-data__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--hairline);
}

.page-home .home-data__stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.page-home .home-data__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.55rem, 5.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--gold-light);
}

.page-home .home-data__cta {
  margin-top: 1.6rem;
}

/* ── 服务区 ─────────────────────────────────────── */
.page-home .home-service {
  margin-top: 3.5rem;
}

.page-home .home-service__cards {
  margin-top: 1.75rem;
  gap: 1rem;
}

.page-home .home-service__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem;
  overflow: hidden;
}

.page-home .home-service__media {
  margin: 0.75rem 0 0;
  aspect-ratio: 3 / 2;
}

.page-home .home-service__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.page-home .home-archive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.5rem;
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius);
  background: var(--glass);
}

.page-home .home-archive__text-p {
  margin: 0.6rem 0 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-archive__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--rice);
}

.page-home .home-archive__media {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-home .home-archive {
    grid-template-columns: 1.5fr 0.85fr;
    gap: 2rem;
    padding: 1.75rem 2rem;
  }
}

/* ── 最近更新 ───────────────────────────────────── */
.page-home .home-updates {
  margin-top: 3.5rem;
}

.page-home .home-timeline {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--line);
}

.page-home .home-timeline__item {
  position: relative;
  padding: 0 0 1.5rem;
}

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

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
}

.page-home .home-timeline__when {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--celadon);
}

.page-home .home-timeline__item h3 {
  margin: 0.35rem 0 0.35rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--rice);
}

.page-home .home-timeline__item p {
  margin: 0;
  max-width: 58ch;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-updates__cta {
  margin-top: 1.75rem;
}

/* ── 咨询入口 ───────────────────────────────────── */
.page-home .home-contact {
  margin-top: 3.5rem;
}

.page-home .home-contact__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: 1.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(201, 162, 39, 0.1) 0%, transparent 52%),
    var(--ink-slate);
}

.page-home .home-contact__intro h2 {
  margin: 0.5rem 0 0.65rem;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.4rem, 4.6vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--rice);
}

.page-home .home-contact__intro p {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.page-home .home-contact__list {
  border-top: 1px solid var(--line);
}

.page-home .home-contact__list .datalist__val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--rice);
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .page-home .home-contact__panel {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.75rem;
    align-items: start;
    padding: 2rem 2.25rem;
  }

  .page-home .home-contact__list {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-entry__link,
  .page-home .home-card,
  .page-home .home-rail .rail__link {
    transition: none;
  }

  .page-home .hero-entry__link:hover,
  .page-home .hero-entry__link:focus-visible,
  .page-home .home-card:hover {
    transform: none;
  }
}
