.page-home {
  --home-line: rgba(21, 25, 28, 0.14);
  position: relative;
  overflow: hidden;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

.page-home::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 24px;
  width: 1px;
  height: 86%;
  background: linear-gradient(180deg, rgba(242, 101, 34, 0), rgba(242, 101, 34, 0.4) 14%, rgba(242, 101, 34, 0.26) 74%, rgba(242, 101, 34, 0));
  transform: rotate(9deg);
  transform-origin: top center;
  pointer-events: none;
  z-index: 0;
}

.page-home .hp-crumbs {
  position: relative;
  z-index: 1;
  padding-top: 14px;
}

.page-home .hero {
  position: relative;
  z-index: 1;
  padding: 14px 0 6px;
}

/* ---------- 首屏框景 ---------- */
.page-home .hero-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--deep);
  isolation: isolate;
}

.page-home .hero-frame::before,
.page-home .hero-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 3;
  border: 2px solid var(--orange);
  pointer-events: none;
}

.page-home .hero-frame::before {
  top: 56px;
  left: 16px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .hero-frame::after {
  right: 16px;
  bottom: 16px;
  border-left: 0;
  border-top: 0;
}

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

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

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(251, 250, 247, 0.07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(251, 250, 247, 0.07) 0 1px, transparent 1px 72px),
    linear-gradient(155deg, rgba(18, 58, 77, 0.94) 0%, rgba(18, 58, 77, 0.72) 48%, rgba(21, 25, 28, 0.92) 100%);
}

.page-home .hero-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--rock);
}

.page-home .hero-bar-note {
  display: inline-flex;
  align-items: center;
  color: var(--jialing);
}

.page-home .hero-bar-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jialing);
  margin-right: 7px;
}

.page-home .hero-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 36px 20px 34px;
  max-width: 660px;
}

.page-home .hero-kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border: 1px solid rgba(251, 217, 198, 0.45);
  border-radius: var(--radius-chip);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange-veil);
}

.page-home .hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .hero-lede {
  margin: 0 0 26px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(251, 250, 247, 0.86);
}

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

.page-home .hero-arrow {
  display: inline-block;
  margin-left: 6px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.page-home .hero-actions a:hover .hero-arrow,
.page-home .hero-actions a:focus-visible .hero-arrow {
  opacity: 1;
  transform: none;
}

/* ---------- 通用章节标题 ---------- */
.page-home .hp-section {
  position: relative;
  z-index: 1;
  padding: 44px 0;
}

.page-home .hp-section--last {
  padding-bottom: 56px;
}

.page-home .sec-head {
  margin-bottom: 24px;
}

.page-home .sec-index {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--haze);
}

.page-home .sec-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.page-home .sec-sub {
  margin: 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rock);
}

.page-home .link-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 56, 10, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.18s ease-out, color 0.18s ease-out;
}

.page-home .link-more:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- 三步动线 ---------- */
.page-home .guide-grid {
  display: grid;
  gap: 24px;
}

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

.page-home .step-card {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-panel);
  transition: transform 0.18s ease-out, border-color 0.18s ease-out;
}

.page-home .step-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.page-home .step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--orange-deep);
}

.page-home .step-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .step-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rock);
}

.page-home .step-warn {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 2px solid var(--gold);
  font-size: 14px;
  line-height: 1.7;
  color: var(--rock);
}

.page-home .guide-aside {
  padding: 16px;
  background: rgba(251, 250, 247, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.page-home .guide-aside img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-home .guide-aside p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rock);
}

/* ---------- 更新点 ---------- */
.page-home .update-grid {
  display: grid;
  gap: 24px;
}

.page-home .update-media {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist-2);
  line-height: 0;
}

.page-home .update-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .version-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  background: var(--orange-veil);
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .state-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-home .state-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 122, 140, 0.28);
  background: rgba(31, 122, 140, 0.07);
}

.page-home .state-pip {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--jialing);
}

.page-home .state-row--wait {
  border-color: rgba(201, 138, 22, 0.42);
  background: rgba(201, 138, 22, 0.1);
}

.page-home .state-row--wait .state-pip {
  background: var(--gold);
}

.page-home .state-row--pending {
  border-color: rgba(242, 101, 34, 0.34);
  background: rgba(242, 101, 34, 0.08);
}

.page-home .state-row--pending .state-pip {
  background: var(--orange);
}

.page-home .state-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .state-note {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--rock);
}

.page-home .update-foot {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rock);
}

/* ---------- 人群入口 ---------- */
.page-home .crowd-head {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.page-home .crowd-ambient {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}

.page-home .crowd-ambient img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.page-home .crowd-block {
  display: grid;
  gap: 16px;
}

.page-home .crowd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .crowd-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .crowd-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 14px 16px 16px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-card);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.page-home .crowd-card:hover,
.page-home .crowd-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow-panel);
}

.page-home .crowd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .crowd-name {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-chip);
  border: 1px solid rgba(31, 122, 140, 0.3);
  background: rgba(31, 122, 140, 0.12);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.page-home .crowd-item:nth-child(3n) .crowd-name {
  border-color: rgba(242, 101, 34, 0.3);
  background: var(--orange-veil);
  color: var(--orange-deep);
}

.page-home .crowd-item:nth-child(1) .crowd-name,
.page-home .crowd-item:nth-child(5) .crowd-name,
.page-home .crowd-item:nth-child(8) .crowd-name {
  font-size: 15px;
  padding: 6px 18px;
}

.page-home .crowd-arrow {
  flex: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.page-home .crowd-card:hover .crowd-arrow,
.page-home .crowd-card:focus-visible .crowd-arrow {
  opacity: 1;
  transform: none;
}

.page-home .crowd-note {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rock);
}

.page-home .crowd-empty {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--jialing);
  font-size: 14px;
  color: var(--rock);
}

.page-home .crowd-item[data-filtered="out"],
.page-home .crowd-item[hidden] {
  display: none;
}

/* ---------- 栏目目录 ---------- */
.page-home .cat-grid {
  display: grid;
  gap: 16px;
}

.page-home .cat-card {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--paper);
  clip-path: polygon(0 12px, 100% 0, 100% calc(100% - 12px), 0 100%);
  transition: transform 0.18s ease-out;
}

.page-home .cat-card:hover {
  transform: translateY(-4px);
}

.page-home .cat-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--haze);
}

.page-home .cat-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .cat-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

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

.page-home .cat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--jialing);
}

.page-home .cat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--home-line);
}

.page-home .cat-foot p {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rock);
}

/* ---------- 收尾提示条 ---------- */
.page-home .closing-bar {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px 20px 24px;
  border: 1px solid rgba(242, 101, 34, 0.34);
  border-radius: var(--radius-panel);
  background: var(--paper);
}

.page-home .closing-bar::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 24px);
}

.page-home .closing-bar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .closing-bar p {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rock);
}

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

.page-home .closing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--rock);
}

.page-home .closing-meta a {
  color: var(--jialing);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 122, 140, 0.4);
}

.page-home .closing-meta a:hover {
  color: var(--orange-deep);
  border-color: rgba(168, 56, 10, 0.5);
}

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

  .page-home .hero-body {
    padding: 44px 32px 40px;
  }

  .page-home .hero h1 {
    font-size: 40px;
  }
}

@media (min-width: 900px) {
  .page-home .hp-section {
    padding: 64px 0;
  }

  .page-home .hero-frame {
    min-height: 580px;
  }

  .page-home .hero-body {
    padding: 56px 48px 52px;
  }

  .page-home .hero h1 {
    font-size: 52px;
  }

  .page-home .sec-head h2 {
    font-size: 30px;
  }

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

  .page-home .step-card:nth-child(2) {
    margin-left: 40px;
  }

  .page-home .step-card:nth-child(3) {
    margin-left: 80px;
  }

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

  .page-home .crowd-head {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: start;
  }

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

  .page-home .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }

  .page-home .cat-card:nth-child(2) {
    margin-top: 22px;
  }

  .page-home .cat-card:nth-child(3) {
    margin-top: 44px;
  }

  .page-home .closing-bar {
    padding: 32px 34px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .step-card,
  .page-home .crowd-card,
  .page-home .crowd-arrow,
  .page-home .cat-card,
  .page-home .hero-arrow,
  .page-home .link-more {
    transition: none;
  }

  .page-home .step-card:hover,
  .page-home .crowd-card:hover,
  .page-home .cat-card:hover {
    transform: none;
  }
}
