/* ================= 首页 page-home ================= */
.page-home {
  background: var(--night);
  color: var(--paper);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(28px, 6vw, 64px) 0 clamp(48px, 8vw, 88px);
  background:
    radial-gradient(120% 78% at 84% 8%, rgba(0, 227, 200, 0.14), transparent 62%),
    var(--night);
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 5vw, 52px);
  align-items: start;
}

.page-home .hero-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 7.4vw, 3.5rem);
  line-height: 1.14;
  color: var(--paper);
}

.page-home .hero-lead {
  margin: 0 0 26px;
  max-width: 48ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #B8C3BD;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .ph-fav {
  appearance: none;
  padding: 12px 20px;
  min-height: 46px;
  border: 2px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease;
}

.page-home .ph-fav:hover {
  transform: translateY(-2px);
  background: rgba(0, 227, 200, 0.12);
}

.page-home .ph-fav[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--night);
}

.page-home .ph-fav--paper {
  border-color: var(--cyan-deep);
  color: var(--cyan-deep);
}

.page-home .ph-fav--paper:hover {
  background: rgba(11, 122, 108, 0.1);
}

.page-home .ph-fav--paper[aria-pressed="true"] {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--paper);
}

.page-home .hero-visual {
  position: relative;
}

.page-home .hero-figure {
  margin: 0;
  border: 2px solid var(--rock-2);
  overflow: hidden;
}

.page-home .hero-figure img {
  display: block;
  width: 100%;
  height: clamp(270px, 58vw, 600px);
  object-fit: cover;
}

.page-home .panel {
  position: relative;
  z-index: 2;
  margin: -44px 16px 0;
  padding: 18px 18px 16px;
  background: #0E1413;
  border: 2px solid var(--cyan);
}

.page-home .panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.page-home .panel-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(168, 255, 62, 0.18);
}

.page-home .panel-title {
  color: var(--paper);
}

.page-home .panel-sync {
  margin-left: auto;
  color: var(--lime);
}

.page-home .panel-stats {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px;
}

.page-home .pstat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .pstat-label {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--mist);
}

.page-home .panel-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.62;
  color: var(--mist);
}

/* ---------- 区块通用 ---------- */
.page-home .sec {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0;
  border-top: 2px solid transparent;
}

.page-home .sec--night {
  background: var(--night);
  border-top-color: var(--rock-2);
}

.page-home .sec--rock {
  background: var(--rock);
  border-top-color: var(--night);
  color: var(--paper);
}

.page-home .sec--paper {
  background: var(--paper);
  border-top-color: var(--ink);
  color: var(--ink);
}

.page-home .sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-home .sec-rail {
  position: relative;
}

.page-home .sec-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.page-home .sec--paper .sec-num {
  color: var(--cyan-deep);
}

.page-home .sec-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.page-home .sec--rock .sec-kicker,
.page-home .sec--night .sec-kicker {
  color: var(--cyan);
}

.page-home .sec-body h2 {
  margin: 0 0 16px;
  max-width: 24ch;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 4.2vw, 2.35rem);
  line-height: 1.22;
}

.page-home .sec-text {
  margin: 0 0 24px;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.78;
}

.page-home .sec--rock .sec-text {
  color: #BAC5BF;
}

.page-home .sec--paper .sec-text {
  color: #39413E;
}

.page-home .sec-side figure {
  margin: 0;
  border: 2px solid var(--rock-2);
  background: #101614;
}

.page-home .sec--paper .sec-side figure {
  border-color: var(--ink);
  background: #E3DDCE;
}

.page-home .sec-side img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .sec-side figcaption {
  padding: 12px 14px;
  border-top: 2px solid var(--rock-2);
  font-size: 0.8rem;
  line-height: 1.62;
  color: var(--mist);
}

.page-home .sec--paper .sec-side figcaption {
  border-top-color: var(--ink);
  color: #4E5754;
}

/* ---------- 01 当季面板 ---------- */
.page-home .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .entry {
  padding: 16px 16px 14px;
  background: #101614;
  border: 2px solid var(--rock-2);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.page-home .entry:hover,
.page-home .entry:focus-within {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .entry-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .entry-title {
  margin: 8px 0 6px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--paper);
}

.page-home .entry-desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--mist);
}

.page-home .state-tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--night);
  background: var(--lime);
}

/* ---------- 02 标签墙 ---------- */
.page-home .tag-wall {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.page-home .tag-wall li:nth-child(2) .tag-pill {
  padding-right: 34px;
}

.page-home .tag-wall li:nth-child(5) .tag-pill {
  padding-right: 30px;
}

.page-home .tag-wall li:nth-child(7) .tag-pill {
  padding-right: 26px;
}

.page-home .tag-pill:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-deep);
  background: rgba(11, 122, 108, 0.09);
}

.page-home .tag-meta {
  list-style: none;
  margin: 0 0 26px;
  padding: 18px 0 0;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.page-home .tm-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--cyan-deep);
}

.page-home .tm-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: #4E5754;
}

/* ---------- 03 版本与资料 ---------- */
.page-home .ways {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .way {
  padding: 16px;
  background: #101614;
  border: 2px solid var(--rock-2);
}

.page-home .way-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--neon);
}

.page-home .way-title {
  margin: 8px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .way-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.66;
  color: var(--mist);
}

.page-home .track {
  list-style: none;
  margin: 0 0 28px;
  padding: 20px 0 0;
  border-top: 2px solid var(--rock-2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 14px;
}

.page-home .track li {
  position: relative;
  padding-left: 14px;
}

.page-home .track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 2px;
  height: 16px;
  background: var(--clay);
}

.page-home .track-ver {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .track-txt {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--mist);
}

/* ---------- 04 收藏与固定访问 ---------- */
.page-home .fav-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 0 0 26px;
}

.page-home .fav-stat {
  padding: 18px;
  border: 2px solid var(--ink);
}

.page-home .fs-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--cyan-deep);
}

.page-home .fav-stat p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: #4E5754;
}

.page-home .steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  max-width: 62ch;
  display: grid;
  gap: 12px;
}

.page-home .step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-left: 2px solid var(--clay);
  background: rgba(27, 33, 31, 0.05);
}

.page-home .step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--cyan-deep);
}

.page-home .step p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #39413E;
}

/* ---------- 05 品牌与团队 ---------- */
.page-home .facts {
  list-style: none;
  margin: 0 0 22px;
  padding: 22px 0 0;
  border-top: 2px solid var(--rock-2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}

.page-home .facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.page-home .fact-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--cyan);
}

.page-home .fact-txt {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .sec-foot {
  margin: 0 0 24px;
  max-width: 60ch;
  font-size: 0.92rem;
  line-height: 1.72;
  color: #BAC5BF;
}

/* ---------- 06 四条路径 ---------- */
.page-home .paths {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.page-home .path {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 18px;
  background: #0F1513;
  border: 2px solid var(--rock-2);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.page-home .path:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: #131B18;
}

.page-home .path-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .path-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
}

.page-home .path-desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.86rem;
  line-height: 1.66;
  color: var(--mist);
}

.page-home .path-go {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--lime);
}

/* ---------- 焦点可见性 ---------- */
.page-home .ph-fav:focus-visible,
.page-home .path:focus-visible,
.page-home .tag-pill:focus-visible,
.page-home .entry:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .sec--paper .ph-fav:focus-visible,
.page-home .sec--paper .tag-pill:focus-visible {
  outline-color: var(--cyan-deep);
}

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

@media (min-width: 680px) {
  .page-home .entry-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .sec-grid {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: clamp(20px, 3.5vw, 44px);
    align-items: start;
  }

  .page-home .sec-grid--split .sec-body,
  .page-home .sec-grid--split .sec-side {
    grid-column: 2;
  }

  .page-home .sec-grid--split .sec-side {
    margin-top: 8px;
  }

  .page-home .sec-rail::after {
    content: "";
    display: block;
    width: 2px;
    height: 88px;
    margin: 18px 0 0 6px;
    background: linear-gradient(180deg, var(--clay), rgba(176, 103, 63, 0));
    transform: rotate(12deg);
    transform-origin: top left;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  }

  .page-home .panel {
    margin: -56px 24px 0;
  }
}

@media (min-width: 1080px) {
  .page-home .sec-grid--split {
    grid-template-columns: 120px minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .page-home .sec-grid--split .sec-side {
    grid-column: 3;
    margin-top: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .entry,
  .page-home .tag-pill,
  .page-home .path,
  .page-home .ph-fav {
    transition: none;
  }

  .page-home .entry:hover,
  .page-home .tag-pill:hover,
  .page-home .path:hover,
  .page-home .ph-fav:hover {
    transform: none;
  }
}
