/* ===== 首页 · 每晚一局 ===== */
.page-home {
  --home-cut: 16px;
  background: var(--ink);
  color: var(--mist);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 0 56px;
  background: var(--ink);
  border-bottom: 1px solid var(--graphite);
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 38%;
  opacity: 0.5;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.45) 0%, rgba(10, 12, 16, 0.86) 58%, var(--ink) 100%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 168px;
  height: 168px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.82), rgba(255, 138, 61, 0) 74%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  height: 94px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(41, 224, 200, 0) 0%, rgba(41, 224, 200, 0.32) 100%);
  clip-path: polygon(24% 100%, 100% 0, 100% 100%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-home .hero-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .hero-context .mono {
  color: var(--cyan);
  font-size: 12px;
}

.page-home .hero-sep {
  color: var(--graphite);
}

.page-home .hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 8.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-home .hero h1 .hl {
  display: inline-block;
  color: var(--cyan);
  text-shadow: var(--glow-cyan-strong);
}

.page-home .hero-lede {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--graphite);
  font-size: 13.5px;
  color: var(--muted);
}

.page-home .hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .hero-facts .mono {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.01em;
}

.page-home .hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* 入口卡片 */
.page-home .hero-card {
  position: relative;
  padding: 26px 22px 22px;
  background: linear-gradient(158deg, var(--slate) 0%, var(--slate-2) 100%);
  border: 1px solid var(--graphite);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .hero-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  background: var(--ink);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.page-home .hero-card:hover,
.page-home .hero-card:focus-within {
  transform: scale(1.02);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.page-home .hero-card-title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .hero-card-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .hero-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--glow-amber);
}

.page-home .hero-card-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .hero-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--graphite);
  background: var(--slate-2);
  overflow: hidden;
}

.page-home .hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .hero-shot figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(10, 12, 16, 0.86);
  border-top: 1px solid var(--graphite);
  border-right: 1px solid var(--graphite);
}

/* ---------- 章节通用 ---------- */
.page-home .section-head {
  max-width: 640px;
}

.page-home .section-sub {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 夜间动线 ---------- */
.page-home .motion-band {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 40px 0 44px;
  background: var(--slate-2);
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}

.page-home .motion-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .motion-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(96deg, rgba(10, 12, 16, 0.94) 0%, rgba(10, 12, 16, 0.5) 52%, rgba(10, 12, 16, 0.94) 100%);
}

.page-home .motion-band-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-home .motion-link {
  display: none;
  width: 100%;
  height: 24px;
  margin-bottom: 12px;
}

.page-home .motion-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.page-home .motion-step {
  position: relative;
  padding: 20px 20px 22px;
  background: rgba(18, 22, 28, 0.86);
  border: 1px solid var(--graphite);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .motion-step:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.page-home .motion-num {
  display: inline-block;
  margin-bottom: 14px;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--orange);
  border: 1px solid rgba(255, 138, 61, 0.5);
}

.page-home .motion-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--mist);
}

.page-home .motion-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 面板 Bento ---------- */
.page-home .panel-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 34px;
}

.page-home .panel-bento .card {
  padding: 24px 22px 26px;
  background: var(--slate);
  border: 1px solid var(--graphite);
}

.page-home .panel-bento .card--focus {
  background: linear-gradient(150deg, var(--slate) 0%, rgba(41, 224, 200, 0.08) 100%);
  border-color: rgba(41, 224, 200, 0.34);
}

.page-home .panel-bento .card-title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--mist);
}

.page-home .panel-bento .card--focus .card-title {
  font-size: clamp(23px, 3.4vw, 30px);
}

.page-home .panel-bento .card-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .panel-bento .card-num {
  display: inline-block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--graphite);
  width: 100%;
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ---------- 双端分工 ---------- */
.page-home .split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 34px;
}

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

.page-home .split-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .split-main .tabs {
  padding: 22px 20px 24px;
  background: var(--slate);
  border: 1px solid var(--graphite);
}

.page-home .split-panel-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--mist);
}

.page-home .split-panel-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .pick-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--graphite);
}

.page-home .pick-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .pick-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ---------- 收藏引导 ---------- */
.page-home .keep {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .keep-title {
  margin: 12px 0 16px;
  font-family: var(--font-head);
  font-size: clamp(26px, 5.6vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-home .keep-copy p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .keep-copy kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber);
  background: var(--ink);
  border: 1px solid var(--graphite);
}

.page-home .keep-index {
  padding: 22px 20px 10px;
  background: var(--slate-2);
  border: 1px solid var(--graphite);
}

.page-home .keep-index-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .link-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 3px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--graphite);
}

.page-home .link-item:last-child {
  border-bottom: 1px solid var(--graphite);
}

.page-home .link-item .mono {
  grid-row: span 2;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.page-home .link-item a {
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.page-home .link-item a:hover,
.page-home .link-item a:focus-visible {
  color: var(--cyan);
}

.page-home .link-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .motion-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .motion-link {
    display: block;
  }

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

  .page-home .panel-bento .bento-cell--focus {
    grid-column: span 7;
  }

  .page-home .panel-bento .bento-cell--side {
    grid-column: span 5;
  }

  .page-home .panel-bento .bento-cell--half {
    grid-column: span 6;
  }
}

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

  .page-home .hero-inner {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
  }

  .page-home .hero-side {
    gap: 18px;
  }

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

  .page-home .keep {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .motion-band {
    padding: 52px 0 56px;
  }
}

@media (min-width: 1200px) {
  .page-home .hero h1 {
    font-size: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-card,
  .page-home .motion-step,
  .page-home .link-item a {
    transition: none;
  }

  .page-home .hero-card:hover,
  .page-home .hero-card:focus-within {
    transform: none;
  }
}
