.page-home {
  --home-cut-in: 900ms;
  position: relative;
  display: block;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ 首屏 ============ */
.page-home .hero {
  position: relative;
  padding: 26px 0 0;
  isolation: isolate;
}

.page-home .hero__cut {
  position: absolute;
  z-index: -1;
  left: -25%;
  right: -25%;
  top: -18%;
  height: 152%;
  background:
    radial-gradient(70% 60% at 18% 8%, rgba(255, 59, 92, 0.3), transparent 65%),
    radial-gradient(60% 55% at 88% 4%, rgba(255, 179, 71, 0.22), transparent 62%),
    linear-gradient(158deg, var(--ink-2) 0%, var(--felt) 48%, var(--ink) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 58% 96%, 0 78%);
  animation: home-cut-in var(--home-cut-in) cubic-bezier(0.22, 0.61, 0.36, 1) 1 both;
}

@keyframes home-cut-in {
  from {
    transform: translate(6%, 3%);
    opacity: 0.35;
  }
  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.page-home .hero__inner {
  display: grid;
  gap: 30px;
  padding: 6px 0 32px;
}

.page-home .hero__ctx {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-size: clamp(30px, 8vw, 60px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.page-home .hero__title::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin-top: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--amber));
}

.page-home .hero__lede {
  margin: 0;
  max-width: 42ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: #c8d1e5;
}

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

.page-home .entry {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "k t"
    "k d";
  column-gap: 14px;
  row-gap: 6px;
  padding: 16px 46px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(27, 37, 64, 0.72);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease,
    background 0.25s ease;
}

.page-home .entry:hover,
.page-home .entry:focus-visible {
  border-color: rgba(255, 179, 71, 0.55);
  background: rgba(27, 37, 64, 0.94);
  box-shadow: var(--glow-amber);
  transform: translateY(-2px);
}

.page-home .hero__entries > li:first-child .entry {
  border-color: rgba(255, 59, 92, 0.45);
  box-shadow: inset 3px 0 0 var(--red);
}

.page-home .entry::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 17px;
  transition: transform 0.25s ease;
}

.page-home .entry:hover::after,
.page-home .entry:focus-visible::after {
  transform: translate(3px, -50%);
}

.page-home .entry__k {
  grid-area: k;
  align-self: start;
  padding-top: 3px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-home .entry__t {
  grid-area: t;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .entry__d {
  grid-area: d;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

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

/* ============ 通用媒体 ============ */
.page-home .media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .media--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .board__media img,
.page-home .split__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ============ 章节索引条 ============ */
.page-home .rail {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .rail__inner {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .rail__inner::-webkit-scrollbar {
  display: none;
}

.page-home .rail__chip {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
}

/* ============ 章节骨架 ============ */
.page-home .section {
  padding: 54px 0;
}

.page-home .section-head {
  max-width: 66ch;
  margin-bottom: 32px;
}

.page-home .section-head__title {
  margin-top: 10px;
}

/* ============ 状态板 ============ */
.page-home .board {
  display: grid;
  gap: 20px;
}

.page-home .board__panel {
  padding: 20px;
}

.page-home .board__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0 0 18px;
}

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

.page-home .board__stat .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.page-home .board__stat .stat__label {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .board__disclosure {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.page-home .board__list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--steel);
}

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

/* ============ 玩法与回放 ============ */
.page-home .split {
  display: grid;
  gap: 26px;
}

.page-home .split__media {
  margin: 0;
  background: var(--felt);
}

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

.page-home .split__block h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .split__block p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: #c3cce0;
}

.page-home .split__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .split__facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.page-home .split__facts .mono {
  flex: 0 0 52px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--teal);
  padding-top: 3px;
}

.page-home .split__cta {
  justify-self: start;
}

/* ============ 排查路径 ============ */
.page-home .paths {
  display: grid;
  gap: 20px;
}

.page-home .path {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px 20px;
}

.page-home .path__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.page-home .path:nth-child(2) .path__k {
  color: var(--teal);
}

.page-home .path__t {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .path__d {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #c3cce0;
}

.page-home .path__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .path__steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.page-home .path__steps .mono {
  flex: 0 0 auto;
  padding-top: 4px;
  font-size: 12.5px;
  color: var(--amber);
}

.page-home .path .btn {
  justify-self: start;
  margin-top: 4px;
}

.page-home .trouble__note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 179, 71, 0.06);
  font-size: 14.5px;
  line-height: 1.8;
  color: #c8d1e5;
}

/* ============ 联系值守 ============ */
.page-home .contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(11, 16, 32, 0.96) 0%,
    rgba(19, 26, 46, 0.86) 55%,
    rgba(11, 16, 32, 0.72) 100%
  );
}

.page-home .contact__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.page-home .contact__title {
  margin: 10px 0 14px;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.28;
}

.page-home .contact__lede {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: #c8d1e5;
}

.page-home .contact__card {
  padding: 20px;
  background: rgba(19, 26, 46, 0.88);
}

.page-home .contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ============ 更新笔记 ============ */
.page-home .notes {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .notes__item {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .notes__item .chip {
  justify-self: start;
}

.page-home .notes__t {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .notes__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .notes__link:hover,
.page-home .notes__link:focus-visible {
  color: var(--amber);
  border-bottom-color: rgba(255, 179, 71, 0.6);
}

.page-home .notes__d {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--steel);
}

.page-home .notes__more {
  justify-self: start;
}

/* ============ 收尾时间轴 ============ */
.page-home .outro {
  padding: 56px 0 76px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.page-home .outro__inner {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.page-home .outro .reel {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: min(100%, 720px);
  height: 44px;
  padding: 0 2px;
}

.page-home .outro .reel__tick {
  display: block;
  flex: 1 1 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(47, 217, 179, 0.16));
  opacity: 0.26;
  transition: opacity 0.4s ease;
}

.page-home .outro .reel__tick:nth-child(3n) {
  height: 58%;
}

.page-home .outro .reel__tick:nth-child(3n + 1) {
  height: 92%;
}

.page-home .outro .reel__tick:nth-child(3n + 2) {
  height: 74%;
}

.page-home .outro .reel__tick.is-lit {
  opacity: 1;
}

.page-home .outro__line {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.page-home .outro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============ 响应式 ============ */
@media (min-width: 560px) {
  .page-home .board__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .notes__item {
    grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: baseline;
    gap: 24px;
  }
}

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

@media (min-width: 900px) {
  .page-home .hero {
    padding-top: 34px;
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: end;
    gap: 56px;
    padding: 24px 0 48px;
  }

  .page-home .section {
    padding: 84px 0;
  }

  .page-home .section-head {
    margin-bottom: 40px;
  }
}

@media (min-width: 980px) {
  .page-home .board {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px;
    align-items: start;
  }

  .page-home .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
    align-items: center;
  }

  .page-home .contact__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
    padding-top: 84px;
    padding-bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__cut {
    animation: none;
  }

  .page-home .entry,
  .page-home .entry::after,
  .page-home .notes__link,
  .page-home .outro .reel__tick {
    transition: none;
  }
}
