.page-home {
  background: var(--ink-900);
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(47, 243, 214, .08) 0%, rgba(6, 17, 15, 0) 62%),
    linear-gradient(180deg, rgba(12, 31, 27, .7) 0%, rgba(6, 17, 15, 0) 70%);
}

.page-home .hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-home .hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 7.4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--white);
  margin: 14px 0 18px;
}

.page-home .hero__copy .lede {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .hero__quick dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-dim);
  line-height: 1.5;
}

.page-home .hero__quick dd {
  margin: 7px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -.01em;
}

/* 右侧图表面板 */
.page-home .hero__visual {
  position: relative;
  display: grid;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, rgba(12, 31, 27, .96) 0%, rgba(6, 17, 15, .99) 100%);
}

.page-home .hero__visual > * {
  grid-area: 1 / 1;
}

.page-home .hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
  filter: saturate(.6) brightness(.8);
}

.page-home .hero__chart {
  align-self: center;
  padding: 30px 18px 10px;
  overflow-x: auto;
}

.page-home .dist-chart {
  display: block;
  width: 100%;
  min-width: 420px;
  height: auto;
}

.page-home .dist-chart__grid line {
  stroke: rgba(147, 168, 163, .16);
  stroke-width: 1;
}

.page-home .dist-chart__bars rect {
  fill: rgba(47, 243, 214, .18);
  stroke: rgba(47, 243, 214, .78);
  stroke-width: 1;
  opacity: 0;
  animation: home-fade-up .5s var(--ease) forwards;
}

.page-home .dist-chart__bars rect:nth-child(1) { animation-delay: .10s; }
.page-home .dist-chart__bars rect:nth-child(2) { animation-delay: .18s; }
.page-home .dist-chart__bars rect:nth-child(3) { animation-delay: .26s; }
.page-home .dist-chart__bars rect:nth-child(4) { animation-delay: .34s; }
.page-home .dist-chart__bars rect:nth-child(5) { animation-delay: .42s; }
.page-home .dist-chart__bars rect:nth-child(6) { animation-delay: .50s; }

.page-home .dist-chart__line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: home-draw 1.2s .45s var(--ease) forwards;
}

.page-home .dist-chart__dots circle {
  fill: var(--ink-900);
  stroke: var(--orange);
  stroke-width: 2;
}

.page-home .dist-chart__axis text {
  fill: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
}

.page-home .dist-chart__tick .hit {
  fill: transparent;
}

.page-home .dist-chart__tip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease);
}

.page-home .dist-chart__tick:hover .dist-chart__tip,
.page-home .dist-chart__tick:focus-within .dist-chart__tip {
  opacity: 1;
}

.page-home .dist-chart__tip rect {
  fill: rgba(6, 17, 15, .94);
  stroke: rgba(47, 243, 214, .4);
  stroke-width: 1;
}

.page-home .dist-chart__tip text {
  fill: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.page-home .dist-chart__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .dist-chart__caption span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .dist-chart__caption i {
  display: block;
  width: 18px;
  height: 10px;
  border-radius: 1px;
}

.page-home .dist-chart__caption .k-bar {
  background: rgba(47, 243, 214, .22);
  border: 1px solid rgba(47, 243, 214, .8);
}

.page-home .dist-chart__caption .k-line {
  height: 3px;
  background: var(--orange);
}

.page-home .dist-chart__caption-note {
  color: var(--mist);
  font-size: 12px;
}

@keyframes home-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes home-fade-up {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .dist-chart__bars rect,
  .page-home .dist-chart__line {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* ---------- 主体骨架 ---------- */
.page-home .home-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 8px;
  padding-bottom: 72px;
}

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

.page-home .section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.page-home .section:first-child {
  border-top: 0;
}

.page-home .section__head {
  max-width: 660px;
  margin-bottom: 32px;
}

.page-home .section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--white);
  margin: 12px 0 0;
}

/* ---------- Bento 规模板 ---------- */
.page-home .scale-bento {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-home .bento-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .07;
  pointer-events: none;
  z-index: -1;
}

.page-home .metric {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .metric:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.page-home .metric__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 9vw, 68px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--white);
  margin: 0;
}

.page-home .metric__num--accent { color: var(--cyan); }
.page-home .metric__num--signal { color: var(--orange); }

.page-home .metric__unit {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 8px;
  color: var(--text-dim);
}

.page-home .metric__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--paper);
  margin: 0;
}

.page-home .metric__note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- 服务清单 ---------- */
.page-home .service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.page-home .service {
  display: grid;
  gap: 10px;
  padding: 26px 22px;
  background: var(--ink-900);
  transition: background 160ms var(--ease);
}

.page-home .service:hover {
  background: var(--ink-800);
}

.page-home .service__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--cyan);
  margin: 0;
}

.page-home .service__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin: 0;
}

.page-home .service__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.page-home .service__meta {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
  margin: 0;
}

.page-home .service__link {
  justify-self: start;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 47, .45);
  padding-bottom: 2px;
  transition: border-color 160ms var(--ease);
}

.page-home .service__link:hover {
  border-color: var(--orange);
}

/* ---------- 时间线 ---------- */
.page-home .timeline-wrap {
  display: grid;
  gap: 28px;
}

.page-home .timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 22px 0 6px;
  list-style: none;
  overflow-x: auto;
  border-top: 2px solid var(--line");
  border-top: 2px solid var(--line-strong);
  scroll-snap-type: x proximity;
}

.page-home .timeline__item {
  position: relative;
  padding-top: 18px;
  scroll-snap-align: start;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

.page-home .timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-home .timeline__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin: 8px 0 8px;
}

.page-home .timeline__item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0;
}

.page-home .timeline-figure {
  margin: 0;
}

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

/* ---------- 谁在用 ---------- */
.page-home .user-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-home .user-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass);
  backdrop-filter: blur(6px);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

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

.page-home .user-card--media {
  background: var(--surface-1);
}

.page-home .user-card__img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: .82;
  margin-bottom: 4px;
}

.page-home .user-card__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--cyan);
  margin: 0;
}

.page-home .user-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--white);
  margin: 0;
}

.page-home .user-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.page-home .user-card__link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  justify-self: start;
}

.page-home .user-card__link:hover {
  text-decoration: underline;
}

/* ---------- 取数方式 ---------- */
.page-home .access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-home .access {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .access__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
  margin: 0;
}

.page-home .access__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin: 10px 0 10px;
}

.page-home .access p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.page-home .next-steps {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: 26px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(20, 48, 42, .7) 0%, rgba(6, 17, 15, .6) 100%);
}

.page-home .next-steps__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  margin: 0;
  max-width: 62ch;
}

.page-home .next-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .hero__quick dd {
    font-size: 22px;
  }

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

  .page-home .next-steps {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding: 64px 0 72px;
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: 52px;
  }

  .page-home .hero__visual {
    min-height: 380px;
  }

  .page-home .service {
    grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.5fr);
    grid-template-areas:
      "no title text"
      "no meta  link";
    gap: 10px 26px;
    align-items: start;
    padding: 28px 26px;
  }

  .page-home .service__no { grid-area: no; }
  .page-home .service__title { grid-area: title; }
  .page-home .service__text { grid-area: text; }
  .page-home .service__meta { grid-area: meta; }
  .page-home .service__link { grid-area: link; }

  .page-home .timeline-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, .58fr);
    align-items: start;
    gap: 40px;
  }

  .page-home .timeline {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-auto-columns: auto;
    overflow: visible;
    gap: 0;
    border-top: 0;
    border-left: 2px solid var(--line-strong);
    padding: 0 0 0 26px;
    scroll-snap-type: none;
  }

  .page-home .timeline__item {
    padding: 0 0 26px 0;
  }

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

  .page-home .timeline__item::before {
    top: 8px;
    left: -34px;
    width: 16px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-body {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 52px;
  }

  .page-home .data-index {
    position: sticky;
    top: 128px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .page-home .scale-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .scale-bento .bento__cell--s8 { grid-column: span 8; }
  .page-home .scale-bento .bento__cell--s4 { grid-column: span 4; }

  .page-home .user-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .user-bento .bento__cell--s6 { grid-column: span 6; }
}

@media (min-width: 1180px) {
  .page-home .hero__copy h1 {
    font-size: 54px;
  }
}

@media (max-width: 719px) {
  .page-home .hero__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hero__quick > div:last-child {
    grid-column: span 2;
  }

  .page-home .dist-chart__caption-note {
    flex-basis: 100%;
  }
}
