.page-home {
  --home-line: rgba(169, 186, 198, 0.18);
  --home-line-strong: rgba(169, 186, 198, 0.36);
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 58%, var(--ink-950) 100%);
  color: var(--white-050);
  overflow-x: hidden;
}

/* ---------- 首屏目录墙 ---------- */
.home-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(40px, 6vw, 76px);
}

.home-wall__crumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate-600);
}

.home-scale {
  display: none;
}

.home-eyebrow,
.home-main .eyebrow {
  color: var(--amber-400);
  margin: 0 0 16px;
}

.home-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white-050);
  text-wrap: balance;
}

.home-lede {
  margin: 0 0 28px;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist-300);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 版本快照 ---------- */
.snap {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--glass);
  border: 1px solid var(--home-line);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.snap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 52px;
  height: 3px;
  background: var(--vermilion-500);
}

.snap__key {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-300);
}

.snap__num {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--amber-400);
}

.snap__label {
  margin: 10px 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white-050);
}

.snap__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.snap__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--home-line);
  font-size: 13px;
  color: var(--mist-300);
}

.snap__list b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--white-050);
}

.snap__figure {
  margin: 0 0 16px;
}

.snap__figure .figure__media {
  border: 1px solid var(--home-line);
  border-radius: 2px;
}

.snap__link {
  display: inline-block;
  font-size: 13px;
  color: var(--teal-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.snap__link:hover,
.snap__link:focus-visible {
  border-bottom-color: var(--teal-400);
}

/* ---------- 分类带 ---------- */
.band-section {
  padding-bottom: clamp(32px, 5vw, 56px);
}

.band-section .section-head {
  margin-bottom: 14px;
}

.band-note {
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist-300);
}

.band {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-600) transparent;
}

.band:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 4px;
}

.band::-webkit-scrollbar {
  height: 6px;
}

.band::-webkit-scrollbar-thumb {
  background: var(--slate-600);
  border-radius: 3px;
}

.band__track {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.band__link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(74vw, 238px);
  padding: 18px 18px 20px;
  background: var(--ink-800);
  border: 1px solid var(--home-line);
  border-left: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  color: var(--white-050);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.band__link:hover,
.band__link:focus-visible {
  border-left-color: var(--amber-400);
  border-color: var(--home-line-strong);
  border-left-color: var(--amber-400);
  background: #16293f;
}

.band__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber-400);
}

.band__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.band__meta {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--mist-300);
}

.band-figure {
  margin: 26px 0 0;
}

.band-figure .figure__media {
  border: 1px solid var(--home-line);
  border-radius: 2px;
}

/* ---------- 版本时间轴 ---------- */
.timeline-section {
  padding-bottom: clamp(44px, 6vw, 80px);
}

.timeline-section .section-head {
  margin-bottom: 26px;
}

.timeline__jump {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--teal-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.timeline__jump:hover,
.timeline__jump:focus-visible {
  border-bottom-color: var(--teal-400);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 28px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber-400) 0%, var(--home-line-strong) 46%, transparent 100%);
}

.tl {
  position: relative;
  padding-bottom: 26px;
}

.tl::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 9px;
  width: 14px;
  height: 1px;
  background: var(--home-line-strong);
}

.tl::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--mist-300);
}

.tl--now::after {
  background: var(--vermilion-500);
  border-color: var(--vermilion-500);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.22);
}

.tl--now::before {
  background: var(--vermilion-500);
}

.tl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.tl__ver {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--amber-400);
}

.tl--now .tl__ver {
  color: var(--vermilion-500);
}

.tl__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate-600);
}

.tl__desc {
  margin: 0;
  max-width: 64ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist-300);
}

.timeline__foot {
  margin: 8px 0 0;
  padding-left: 28px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate-600);
}

.timeline__more {
  color: var(--teal-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.timeline__more:hover,
.timeline__more:focus-visible {
  border-bottom-color: var(--teal-400);
}

/* ---------- 案例冷暖分区 ---------- */
.cases {
  background: var(--paper-100);
  color: var(--ink-950);
  padding: clamp(40px, 6vw, 84px) 0;
}

.cases__head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.cases__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #A2690B;
}

.cases__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}

.cases__note {
  margin: 0;
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-800);
}

.cases__figure {
  margin: 26px 0 30px;
}

.cases__figure .figure__media {
  border: 1px solid rgba(11, 22, 34, 0.14);
  border-radius: 2px;
}

.cases__figure .figure__caption {
  color: #4A5A69;
}

.cases__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.case {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: #FBF7EE;
  border: 1px solid rgba(11, 22, 34, 0.12);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink-950);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.case:hover,
.case:focus-visible {
  border-color: #B9832A;
  background: #FFFCF5;
}

.case__tag {
  justify-self: start;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #7A4E06;
  background: rgba(242, 181, 68, 0.28);
  border-radius: 2px;
}

.case__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}

.case__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-800);
}

.cases__foot {
  margin-top: 32px;
}

/* ---------- 平板帮助条 ---------- */
.help-strip {
  padding: clamp(40px, 6vw, 80px) 0;
}

.help-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.help-strip__body .eyebrow {
  color: var(--teal-400);
  margin: 0 0 14px;
}

.help-strip__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--white-050);
  text-wrap: balance;
}

.help-strip__text {
  margin: 0 0 24px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mist-300);
}

.help-strip__figure {
  margin: 0;
}

.help-strip__figure .figure__media {
  border: 1px solid var(--home-line);
  border-radius: 2px;
  background: var(--glass);
}

/* ---------- 联络条 ---------- */
.reach {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.reach__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--home-line-strong);
}

.reach__text {
  margin: 0;
  max-width: 64ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist-300);
}

.reach__mail {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--amber-400);
  word-break: break-all;
}

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

@media (min-width: 900px) {
  .help-strip__inner {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(32px, 5vw, 64px);
  }
}

@media (min-width: 960px) {
  .home-wall {
    grid-template-columns: 56px minmax(0, 1fr) 340px;
    column-gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }

  .home-scale {
    display: block;
    width: 100%;
    min-height: 380px;
    height: 100%;
    border-left: 1px solid var(--home-line);
    background-image: repeating-linear-gradient(
      to bottom,
      var(--home-line-strong) 0 1px,
      transparent 1px 24px
    );
    background-size: 14px 100%;
    background-repeat: no-repeat;
    position: relative;
  }

  .home-scale::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--amber-400);
  }

  .home-scale::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 14px;
    height: 1px;
    background: var(--home-line-strong);
  }
}

@media (min-width: 1000px) {
  .cases__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .case:nth-child(2),
  .case:nth-child(5) {
    margin-top: 28px;
  }

  .case:nth-child(3),
  .case:nth-child(6) {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .band__link,
  .case,
  .snap__link,
  .timeline__more,
  .timeline__jump {
    transition: none;
  }
}
