.page-home {
  --home-card-gap: 18px;
  --home-frame-pad: 22px;
}

/* ---------- 首屏框景 ---------- */
.page-home .home-hero {
  padding-block: 22px 6px;
}

.page-home .home-hero__frame {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--paper);
  border-radius: var(--cut-lg);
  isolation: isolate;
}

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

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.17;
  filter: saturate(0.72);
  max-width: 100%;
}

.page-home .home-hero__contour {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6%;
  z-index: 1;
  width: 100%;
  height: auto;
  color: var(--terrace);
  opacity: 0.3;
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 26px;
  padding: 26px 18px 30px;
}

.page-home .home-hero__lead h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(27px, 7.4vw, 38px);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .home-hero__intro {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

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

.page-home .home-hero__hint {
  margin: 16px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--rock);
}

.page-home .home-hero__hint .num {
  color: var(--terrace);
  font-weight: 700;
}

/* 四类入口 */
.page-home .home-hero__gates {
  display: grid;
  gap: 12px;
}

.page-home .gate {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 15px 16px 15px 20px;
  background: var(--paper);
  border: 1px solid var(--ink-14);
  border-radius: var(--cut-md);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.page-home .gate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--gate-color, var(--coral));
}

.page-home .gate:nth-child(1) { --gate-color: var(--coral); }
.page-home .gate:nth-child(2) { --gate-color: var(--pulse); }
.page-home .gate:nth-child(3) { --gate-color: var(--terrace); }
.page-home .gate:nth-child(4) { --gate-color: var(--gold); }

.page-home .gate:nth-child(2) { margin-left: 8px; }
.page-home .gate:nth-child(4) { margin-left: 8px; }

.page-home .gate:hover,
.page-home .gate:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 8px 20px rgba(11, 21, 18, 0.08);
}

.page-home .gate__no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gate-color, var(--coral));
}

.page-home .gate__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .gate__text {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--rock);
}

/* ---------- 三步路径 ---------- */
.page-home .home-path__grid {
  display: grid;
  gap: 26px;
}

.page-home .path-track {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}

.page-home .path-track::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--moss) 0 9px,
    transparent 9px 16px
  );
}

.page-home .path-step {
  position: relative;
  padding-left: 38px;
}

.page-home .path-step::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .path-step__no {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .path-step h3 {
  margin: 5px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .path-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--rock);
}

.page-home .path-aside {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  background: var(--moss);
  border-radius: var(--cut-lg);
}

.page-home .path-aside .media-caption {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--deep);
}

.page-home .path-aside .btn {
  justify-self: start;
}

/* ---------- 三组内容 ---------- */
.page-home .home-shelf__grid {
  display: grid;
  gap: var(--home-card-gap);
}

.page-home .shelf-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 18px 20px;
  background: var(--paper);
  border: 1px solid var(--ink-14);
  border-radius: var(--cut-lg);
}

.page-home .shelf-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  background: var(--shelf-color, var(--terrace));
}

.page-home .shelf-card--lib { --shelf-color: var(--terrace); }
.page-home .shelf-card--time { --shelf-color: var(--coral); }
.page-home .shelf-card--guide { --shelf-color: var(--pulse); }

.page-home .shelf-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-home .tab-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: var(--rock);
}

.page-home .tab-panel .num {
  color: var(--terrace);
  font-weight: 700;
}

.page-home .time-band {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.page-home .time-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--moss);
  border-radius: 4px;
}

.page-home .time-row:nth-child(even) {
  background: rgba(215, 232, 223, 0.55);
}

.page-home .time-row__t {
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
}

.page-home .time-row__name {
  font-size: 13.5px;
  color: var(--ink);
}

.page-home .shelf-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--rock);
}

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

.page-home .guide-list li {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--rock);
  padding-left: 12px;
  border-left: 2px solid var(--moss);
}

.page-home .guide-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--deep);
}

.page-home .shelf-card .text-link {
  justify-self: start;
}

/* ---------- 企业窗口 ---------- */
.page-home .enterprise {
  display: grid;
  gap: 22px;
  padding: 26px 18px;
  background: var(--deep);
  border-radius: var(--cut-lg);
  color: var(--paper);
}

.page-home .enterprise .eyebrow {
  margin: 0 0 10px;
  color: var(--moss);
}

.page-home .enterprise .eyebrow::before {
  background: var(--coral);
}

.page-home .enterprise h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(21px, 5.6vw, 30px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .enterprise__body > p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(245, 247, 242, 0.82);
}

.page-home .enterprise__facts {
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.page-home .enterprise__facts li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--moss);
}

.page-home .enterprise__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
}

.page-home .enterprise__facts .num {
  color: var(--gold);
  font-weight: 700;
}

.page-home .enterprise .cluster {
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .enterprise .btn-ghost {
  color: var(--paper);
  border-color: rgba(245, 247, 242, 0.45);
}

.page-home .enterprise__figure {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .enterprise__figure .media-caption {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(215, 232, 223, 0.78);
}

/* ---------- 收束 ---------- */
.page-home .baseline {
  display: grid;
  gap: 26px;
}

.page-home .baseline__lead p {
  margin: 0 0 12px;
  max-width: 36em;
  font-size: 14.5px;
  line-height: 1.86;
  color: var(--rock);
}

.page-home .baseline__lead .text-link {
  margin-top: 6px;
  display: inline-block;
}

.page-home .baseline__timeline {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
  border-left: 2px solid var(--moss);
  display: grid;
  gap: 16px;
}

.page-home .baseline__timeline li {
  position: relative;
}

.page-home .baseline__timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--coral);
  border-radius: 50%;
}

.page-home .baseline__year {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--terrace);
}

.page-home .baseline__timeline p {
  margin: 3px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--rock);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .home-shelf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .shelf-card--guide {
    grid-column: 1 / -1;
  }
  .page-home .enterprise {
    padding: 34px 30px;
  }
  .page-home .baseline__timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    padding-left: 0;
    gap: 18px 22px;
  }
  .page-home .baseline__timeline li {
    padding-left: 18px;
    border-left: 2px solid var(--moss);
  }
  .page-home .baseline__timeline li::before {
    left: -6px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 34px;
    padding: 44px 40px 50px;
  }
  .page-home .home-hero__lead h1 {
    font-size: clamp(38px, 4.4vw, 58px);
  }
  .page-home .home-hero__intro {
    font-size: 16px;
  }
  .page-home .gate__title {
    font-size: 17px;
  }
  .page-home .home-path__grid {
    grid-template-columns: 1.55fr 1fr;
    gap: 32px;
  }
  .page-home .path-aside {
    padding: 20px;
    position: sticky;
    top: 120px;
  }
  .page-home .enterprise {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 30px;
  }
  .page-home .baseline {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .page-home .baseline__timeline {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .page-home .home-shelf__grid {
    grid-template-columns: 1.15fr 0.95fr 1fr;
    align-items: start;
  }
  .page-home .shelf-card--guide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gate {
    transition: none;
  }
  .page-home .gate:hover,
  .page-home .gate:focus-visible {
    transform: none;
  }
}
