.page-home {
  --home-body: #C7D5E4;
  --home-shadow-a: rgba(140, 100, 32, 0.22);
  --home-shadow-b: rgba(3, 8, 18, 0.72);
  --home-panel-grad: linear-gradient(160deg, rgba(29, 59, 92, 0.42) 0%, rgba(8, 20, 38, 0) 62%);
  background: var(--ink);
  color: var(--cloud);
  overflow-x: clip;
}

.page-home h2,
.page-home h3,
.page-home p,
.page-home ul,
.page-home ol,
.page-home dl,
.page-home dd,
.page-home figure,
.page-home figcaption {
  margin: 0;
}

.page-home ul,
.page-home ol {
  padding: 0;
  list-style: none;
}

.page-home .hero__actions,
.page-home .next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 顶部上下文条 ---------- */
.page-home .home-context {
  background: linear-gradient(90deg, rgba(216, 160, 61, 0.1) 0%, rgba(8, 20, 38, 0) 58%);
  border-bottom: 1px solid var(--line);
}

.page-home .home-context__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 28px;
  padding-block: 12px;
}

.page-home .home-context__path {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .home-context__pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: home-pulse 2.6s var(--ease) infinite;
}

.page-home .home-context__meta {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.02em;
}

/* ---------- 侧边浮动索引 ---------- */
.page-home .home-rail {
  display: none;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 104px);
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.2rem, 7.2vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.page-home .hero__title strong {
  font-weight: 800;
  color: var(--gold);
}

.page-home .hero__lead {
  max-width: 36em;
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--home-body);
}

.page-home .hero__actions {
  margin-top: 30px;
}

.page-home .hero__facts {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-home .hero__fact dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.page-home .hero__fact dd {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.01em;
}

/* 首屏视觉 */
.page-home .hero__visual {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 12px 12px 0 -1px var(--home-shadow-a), 0 34px 70px -44px var(--home-shadow-b);
}

.page-home .pitch__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.page-home .hero__caption {
  padding: 12px 4px 2px;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.6;
}

.page-home .pitch__trails .trail {
  stroke-width: 2.5;
  stroke-dasharray: 10 9;
  transition: stroke-opacity 0.28s var(--ease), stroke-width 0.28s var(--ease);
  animation: home-flow 10s linear infinite;
}

.page-home .trail--gold {
  stroke: var(--gold);
}

.page-home .trail--green {
  stroke: var(--green);
  animation-duration: 13s;
  animation-direction: reverse;
}

.page-home .trail--sky {
  stroke: var(--sky);
  animation-duration: 16s;
}

.page-home .pitch__trails:hover .trail {
  stroke-opacity: 0.4;
}

.page-home .pitch__trails .trail:hover {
  stroke-opacity: 1;
  stroke-width: 4.5;
}

.page-home .pitch__nodes circle {
  fill: var(--orange);
  animation: home-node 3.2s ease-in-out infinite;
}

.page-home .pitch__nodes circle:nth-child(2) {
  animation-delay: 0.5s;
}

.page-home .pitch__nodes circle:nth-child(3) {
  animation-delay: 1s;
}

.page-home .pitch__nodes circle:nth-child(4) {
  animation-delay: 1.5s;
}

/* ---------- 赛后复盘三条路径 ---------- */
.page-home .replay {
  padding-block: clamp(52px, 7vw, 104px);
  border-top: 1px solid var(--line);
}

.page-home .section-head {
  max-width: 46rem;
}

.page-home .replay__grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(32px, 4vw, 52px);
}

.page-home .replay__card {
  padding: clamp(22px, 2.8vw, 32px);
  background-image: var(--home-panel-grad);
}

.page-home .replay__step {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .replay__card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  line-height: 1.3;
}

.page-home .replay__card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-body);
}

.page-home .replay__list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.page-home .replay__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.page-home .replay__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.page-home .replay__figure {
  margin-top: clamp(34px, 5vw, 68px);
}

.page-home .replay__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 主场地图 ---------- */
.page-home .map {
  padding-block: clamp(52px, 7vw, 104px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 35, 63, 0.5) 0%, rgba(8, 20, 38, 0) 70%);
}

.page-home .map__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-home .map__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .map__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.2;
}

.page-home .map__title strong {
  font-weight: 800;
  color: var(--gold);
}

.page-home .map__copy p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--home-body);
}

.page-home .map__stats {
  display: grid;
  gap: 1px;
  margin: 28px 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.page-home .map__stat {
  padding: 16px 18px;
  background: var(--panel);
}

.page-home .map__stat dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.page-home .map__stat dd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green);
}

/* ---------- 桌面端 V4 ---------- */
.page-home .desktop {
  padding-block: clamp(52px, 7vw, 104px);
}

.page-home .desktop__panel {
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
  padding: clamp(24px, 3.2vw, 44px);
  align-items: center;
}

.page-home .desktop__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.2;
}

.page-home .desktop__title strong {
  font-weight: 800;
  color: var(--gold-bright);
}

.page-home .desktop__copy p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--home-body);
}

.page-home .desktop__copy .btn {
  margin-top: 26px;
}

.page-home .desktop__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .desktop__feedback {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  margin-top: 20px;
  padding: clamp(22px, 3vw, 36px);
}

.page-home .desktop__feedback-copy h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
}

.page-home .desktop__feedback-copy p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-body);
}

.page-home .desktop__feedback-copy .btn {
  margin-top: 22px;
}

.page-home .desktop__cats {
  display: grid;
  gap: 12px;
}

.page-home .desktop__cats li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.page-home .desktop__cats li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---------- 帮助文档 ---------- */
.page-home .docs {
  padding-block: clamp(52px, 7vw, 104px);
  border-top: 1px solid var(--line);
}

.page-home .docs__grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  margin-top: clamp(30px, 4vw, 48px);
}

.page-home .docs__index {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.page-home .docs__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--panel);
  transition: background-color 0.25s var(--ease);
}

.page-home .docs__item:hover {
  background: #14304F;
}

.page-home .docs__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 4px;
}

.page-home .docs__item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.35;
}

.page-home .docs__item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey);
}

.page-home .docs__side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-home .docs__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .docs__cta {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-home .docs__cta p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--home-body);
}

.page-home .docs__cta .btn {
  margin-top: 20px;
}

/* ---------- 结尾入口 ---------- */
.page-home .next {
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 35, 63, 0) 0%, rgba(16, 35, 63, 0.8) 100%);
}

.page-home .next__inner {
  display: grid;
  gap: 22px;
}

.page-home .next__lead {
  max-width: 42em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--home-body);
}

.page-home .next__links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cloud);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .next__links a:hover,
.page-home .next__links a:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

/* ---------- 动效 ---------- */
@keyframes home-flow {
  to {
    stroke-dashoffset: -190;
  }
}

@keyframes home-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 163, 107, 0.65);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(111, 163, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 163, 107, 0);
  }
}

@keyframes home-node {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .pitch__trails .trail,
  .page-home .pitch__nodes circle,
  .page-home .home-context__pulse {
    animation: none;
  }

  .page-home .next__links a:hover,
  .page-home .next__links a:focus-visible {
    transform: none;
  }
}

/* ---------- 断点：小屏两列 ---------- */
@media (min-width: 600px) {
  .page-home .hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

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

/* ---------- 断点：平板 ---------- */
@media (min-width: 780px) {
  .page-home .desktop__feedback {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
  }

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

/* ---------- 断点：桌面 ---------- */
@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
  }

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

  .page-home .replay__card:nth-child(2) {
    margin-top: 44px;
  }

  .page-home .replay__card:nth-child(3) {
    margin-top: 88px;
  }

  .page-home .replay__figure {
    width: min(720px, 66%);
    margin-left: auto;
  }

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

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

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

@media (min-width: 980px) {
  .page-home .map__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

/* ---------- 断点：宽屏浮动索引 ---------- */
@media (min-width: 1320px) {
  .page-home .home-rail {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .page-home .home-rail__link {
    display: inline-block;
    padding: 7px 12px;
    border-right: 2px solid transparent;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
  }

  .page-home .home-rail__link:hover,
  .page-home .home-rail__link:focus-visible {
    color: var(--gold-bright);
    border-right-color: var(--gold);
  }
}
