/* ==========================================================
   首页 · 易游年度版本体系
   作用域：.page-home
   ========================================================== */

.page-home {
  --home-rail-w: 108px;
  --home-art-op: 0.45;
  --home-ink-on-dark: rgba(255, 255, 255, 0.78);
  --home-ink-dim: rgba(255, 255, 255, 0.46);
}

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

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.75rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 6.5rem);
}

.page-home .home-hero__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 820px);
  height: 100%;
  margin: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--home-art-op);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.page-home .home-hero__art-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

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

.page-home .home-hero__title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.8vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0.75rem 0 0;
  max-width: 15ch;
}

.page-home .home-hero__lede {
  margin: 1.35rem 0 0;
  max-width: 48ch;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--home-ink-on-dark);
}

.page-home .home-hero__stamp {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 1.15rem 1.4rem 1.25rem;
  border-left: 2px solid var(--orange-500);
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 32rem;
}

.page-home .home-hero__stamp-label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  color: var(--cyan-400);
}

.page-home .home-hero__stamp-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--orange-500);
}

.page-home .home-hero__stamp-meta {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--home-ink-dim);
}

.page-home .home-hero__actions {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}

.page-home .home-hero__brief {
  align-self: end;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-on-dark);
}

.page-home .home-hero__brief-item {
  border-bottom: 1px solid var(--line-on-dark);
  padding: 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.page-home .home-hero__brief-label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--cyan-400);
}

.page-home .home-hero__brief-value {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* ---------- 02 版本时间轴 ---------- */

.page-home .home-timeline__figure {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2rem, 5vw, 3.25rem);
}

.page-home .home-timeline__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.page-home .home-timeline__rail {
  align-self: start;
}

.page-home .home-timeline__rail-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.page-home .home-timeline__rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.page-home .home-timeline__rail-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 0.3rem 0.5rem;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-timeline__rail-link:hover {
  color: var(--navy-800);
  border-bottom-color: var(--cyan-400);
}

.page-home .home-timeline__rail-link:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

.page-home .home-timeline__rail-link[data-active],
.page-home .home-timeline__rail-link[aria-current="true"] {
  color: var(--orange-500);
  font-weight: 700;
  border-bottom-color: var(--orange-500);
}

.page-home .home-timeline__nodes {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.page-home .home-timeline__node {
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color var(--dur) var(--ease);
}

.page-home .home-timeline__node:hover {
  background: var(--hover-tint);
}

.page-home .home-timeline__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem 1rem;
  padding: 1.05rem 0.75rem;
}

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

.page-home .home-timeline__summary:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: -2px;
}

.page-home .home-timeline__year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  transition: color var(--dur) var(--ease);
}

.page-home .home-timeline__node[open] .home-timeline__year {
  color: var(--orange-500);
}

.page-home .home-timeline__head {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
}

.page-home .home-timeline__cue {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-timeline__node[open] .home-timeline__cue {
  transform: rotate(45deg);
  color: var(--orange-500);
}

.page-home .home-timeline__body {
  padding: 0 0.75rem 1.3rem;
}

.page-home .home-timeline__body p {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 03 查询入口 ---------- */

.page-home .home-entries__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .home-entries__figure {
  margin: 0;
}

.page-home .home-entries__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
}

.page-home .home-entry {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-500);
  transition: width var(--dur) var(--ease);
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-within {
  transform: translateY(-2px);
  border-color: var(--navy-700);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.1);
}

.page-home .home-entry:hover::before,
.page-home .home-entry:focus-within::before {
  width: 100%;
}

.page-home .home-entry__link {
  display: block;
  height: 100%;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  text-decoration: none;
  color: inherit;
}

.page-home .home-entry__link:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: -2px;
}

.page-home .home-entry__index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan-500);
}

.page-home .home-entry__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-800);
}

.page-home .home-entry__text {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-entry__hint {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-muted);
  transition: max-height 0.24s var(--ease), opacity 0.24s var(--ease), margin-top 0.24s var(--ease);
}

.page-home .home-entry:hover .home-entry__hint,
.page-home .home-entry:focus-within .home-entry__hint {
  max-height: 9rem;
  opacity: 1;
  margin-top: 0.75rem;
}

@media (hover: none) {
  .page-home .home-entry__hint {
    max-height: none;
    opacity: 1;
    margin-top: 0.75rem;
  }
}

/* ---------- 04 覆盖规模 ---------- */

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

.page-home .home-scale__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-scale__metric {
  background: var(--white);
  padding: clamp(0.9rem, 2vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
}

.page-home .home-scale__metric .metric__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

.page-home .home-scale__metric .metric__label {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.page-home .home-scale__note {
  display: block;
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--cyan-500);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-muted);
}

.page-home .home-scale__figure {
  margin: 0;
}

/* ---------- 05 下一步 ---------- */

.page-home .home-outro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}

.page-home .home-outro__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 20ch;
}

.page-home .home-outro__text {
  margin: 1.15rem 0 0;
  max-width: 50ch;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--home-ink-on-dark);
}

.page-home .home-outro__actions {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .home-outro__contact {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-on-dark-strong);
}

.page-home .home-outro__contact-label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  color: var(--cyan-400);
}

.page-home .home-outro__contact-value {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  word-break: break-word;
}

.page-home .home-outro__contact-note {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--home-ink-dim);
}

/* ---------- 末端刻度带 ---------- */

.page-home .home-range {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-on-dark);
}

.page-home .home-range__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.page-home .home-range__label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--cyan-400);
  white-space: nowrap;
}

.page-home .home-range__ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
}

.page-home .home-range__ticks .rule-scale__tick {
  position: relative;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--home-ink-dim);
}

.page-home .home-range__ticks .rule-scale__tick::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0.35rem;
  background: currentColor;
}

.page-home .home-range__ticks .rule-scale__tick--active {
  color: var(--orange-500);
  font-weight: 700;
}

/* ---------- 中屏 ---------- */

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

/* ---------- 桌面 ---------- */

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
    align-items: end;
  }

  .page-home .home-timeline__layout {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

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

  .page-home .home-timeline__rail-list {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .page-home .home-timeline__rail-link {
    border-bottom: 0;
    border-left: 2px solid transparent;
    padding: 0.28rem 0 0.28rem 0.6rem;
  }

  .page-home .home-timeline__rail-link:hover {
    border-left-color: var(--cyan-400);
    border-bottom-color: transparent;
  }

  .page-home .home-timeline__rail-link[data-active],
  .page-home .home-timeline__rail-link[aria-current="true"] {
    border-left-color: var(--orange-500);
    border-bottom-color: transparent;
  }

  .page-home .home-outro__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }
}

@media (min-width: 960px) {
  .page-home .home-entries__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
  }

  .page-home .home-scale__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 899px) {
  .page-home .home-hero__art {
    width: 100%;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  }

  .page-home .home-hero__title {
    max-width: none;
  }
}

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

  .page-home .home-timeline__summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
  }

  .page-home .home-timeline__cue {
    grid-column: 2 / 3;
    justify-self: end;
  }
}
