.page-home {
  background-color: var(--c-ink);
  color: var(--c-cream);
  overflow-x: hidden;
}

/* ---------- 页面上下文 ---------- */
.page-home .home-context {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-context-line {
  margin: 0;
  padding: var(--space-sm) 0;
  font-family: var(--font-mono);
  font-size: var(--fs-6);
  letter-spacing: var(--track-mono);
  color: var(--c-gray);
}

.page-home .home-context-sep {
  margin: 0 0.6em;
  color: var(--c-gold);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: var(--space-lg) 0 var(--space-xl);
  background:
    radial-gradient(115% 78% at 84% 16%, rgba(53, 224, 192, 0.1), transparent 62%),
    radial-gradient(88% 70% at 8% 90%, rgba(232, 180, 74, 0.08), transparent 60%),
    var(--c-ink);
}

.page-home .home-hero-inner {
  display: grid;
  gap: var(--space-lg);
}

.page-home .home-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 36rem;
}

.page-home .home-hero-copy .lede {
  max-width: 32rem;
  color: var(--c-pale);
}

.page-home .home-cat-entries {
  display: grid;
  border: 1px solid var(--line-soft);
  background: rgba(5, 14, 24, 0.6);
}

.page-home .home-cat-entry {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  grid-template-areas:
    "idx name count"
    "list list list";
  align-items: center;
  column-gap: var(--space-sm);
  padding: var(--space-sm);
  text-decoration: none;
  color: var(--c-cream);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 160ms ease, opacity 160ms ease;
}

.page-home .home-cat-entry:last-child {
  border-bottom: none;
}

.page-home .home-cat-entry:hover,
.page-home .home-cat-entry:focus-visible {
  background: rgba(53, 224, 192, 0.08);
}

.page-home .home-cat-entry:focus-visible {
  outline: 2px solid var(--c-coral);
  outline-offset: -2px;
}

.page-home .home-cat-entries:hover .home-cat-entry:not(:hover) {
  opacity: 0.45;
}

.page-home .home-cat-idx {
  grid-area: idx;
  font-size: var(--fs-6);
  color: var(--c-gray);
}

.page-home .home-cat-name {
  grid-area: name;
  font-size: var(--fs-4);
  font-weight: 700;
  letter-spacing: var(--track-display);
}

.page-home .home-cat-count {
  grid-area: count;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-6);
  color: var(--c-gold);
  white-space: nowrap;
}

.page-home .home-cat-list {
  grid-area: list;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--fs-6);
  letter-spacing: var(--track-body);
  color: var(--c-pale);
  transition: max-height 200ms ease, opacity 200ms ease, padding-top 200ms ease;
}

.page-home .home-cat-entry:hover .home-cat-list,
.page-home .home-cat-entry:focus-visible .home-cat-list {
  max-height: 3rem;
  opacity: 1;
  padding-top: 6px;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.page-home .home-hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-deep);
  border: 1px solid var(--line-mid);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

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

.page-home .home-chip-stack {
  position: absolute;
  right: 7%;
  bottom: 9%;
  display: grid;
  grid-template-areas: "stack";
  place-items: center;
  pointer-events: none;
}

.page-home .home-chip {
  grid-area: stack;
  width: 58px;
  height: 58px;
  box-shadow: inset 0 0 0 1px var(--c-pale);
  background: linear-gradient(145deg, rgba(18, 58, 50, 0.95), rgba(11, 27, 43, 0.95));
  clip-path: polygon(14% 0, 86% 0, 100% 14%, 100% 86%, 86% 100%, 14% 100%, 0 86%, 0 14%);
}

.page-home .home-chip--a {
  transform: translate(0, 0) rotate(-8deg);
}

.page-home .home-chip--b {
  transform: translate(22px, -18px) rotate(6deg);
  background: linear-gradient(145deg, rgba(232, 180, 74, 0.95), rgba(232, 180, 74, 0.5));
  box-shadow: inset 0 0 0 1px var(--c-gold);
}

.page-home .home-chip--c {
  transform: translate(-14px, -30px) rotate(-2deg);
  background: linear-gradient(145deg, rgba(53, 224, 192, 0.85), rgba(53, 224, 192, 0.35));
  box-shadow: inset 0 0 0 1px var(--c-neon);
}

/* ---------- 通用区块骨架 ---------- */
.page-home .home-section {
  padding: var(--space-xl) 0;
}

.page-home .home-head {
  max-width: 44rem;
  margin-bottom: var(--space-lg);
}

.page-home .home-head .section-title {
  margin: var(--space-xs) 0 var(--space-sm);
}

.page-home .home-lede {
  margin: 0;
  max-width: 46ch;
  font-size: var(--fs-5);
  line-height: var(--lh-body);
  color: var(--c-pale);
}

.page-home .home-inline-link {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-inline-link:hover,
.page-home .home-inline-link:focus-visible {
  color: var(--c-coral);
}

/* ---------- 玩法分布 ---------- */
.page-home .home-distribution {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 58, 50, 0.42) 52%, transparent 100%);
}

.page-home .home-bars {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name count"
    "track track"
    "note note";
  gap: var(--space-xs) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line-soft);
  transition: background-color 160ms ease;
}

.page-home .home-bar-row:hover {
  background: rgba(168, 216, 208, 0.04);
}

.page-home .home-bar-name {
  grid-area: name;
  margin: 0;
  font-size: var(--fs-4);
  font-weight: 700;
  letter-spacing: var(--track-display);
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}

.page-home .home-bar-track {
  grid-area: track;
  height: 14px;
  margin-top: var(--space-xs);
  background: rgba(168, 216, 208, 0.09);
}

.page-home .home-bar-fill {
  height: 100%;
  width: 100%;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  background: linear-gradient(90deg, rgba(232, 180, 74, 0.25), var(--c-gold));
  transition: width 200ms ease;
}

.page-home .home-bar-fill--neon {
  width: 68%;
  background: linear-gradient(90deg, rgba(53, 224, 192, 0.22), var(--c-neon));
}

.page-home .home-bar-fill--coral {
  width: 41%;
  background: linear-gradient(90deg, rgba(255, 107, 74, 0.2), var(--c-coral));
}

.page-home .home-bar-count {
  grid-area: count;
  margin: 0;
  justify-self: end;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1;
  color: var(--c-gold);
}

.page-home .home-bar-row--neon .home-bar-count {
  color: var(--c-neon);
}

.page-home .home-bar-row--coral .home-bar-count {
  color: var(--c-coral);
}

.page-home .home-bar-note {
  grid-area: note;
  margin: var(--space-xs) 0 0;
  max-width: 64ch;
  font-size: var(--fs-6);
  line-height: var(--lh-body);
  color: var(--c-pale);
}

.page-home .home-dist-media {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

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

.page-home .home-dist-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-home .home-dist-figure figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-6);
  line-height: 1.7;
  color: var(--c-gray);
}

/* ---------- 周期与归档 ---------- */
.page-home .home-cycle {
  background: var(--c-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-cycle-inner {
  display: grid;
  gap: var(--space-lg);
}

.page-home .home-cycle-item {
  margin-top: var(--space-md);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--line-gold);
}

.page-home .home-cycle-item--velvet {
  border-left-color: var(--c-neon);
}

.page-home .home-cycle-item p {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-5);
  line-height: var(--lh-body);
  color: var(--c-pale);
}

.page-home .home-cycle-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-6);
  letter-spacing: var(--track-mono);
  color: var(--c-gold);
}

.page-home .home-cycle-item--velvet .home-cycle-tag {
  color: var(--c-neon);
}

.page-home .home-cycle-foot {
  margin-top: var(--space-md);
  font-size: var(--fs-6);
  line-height: var(--lh-body);
  color: var(--c-pale);
}

.page-home .home-cycle-foot .mono {
  color: var(--c-gold);
}

.page-home .home-timeline-label {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-6);
  letter-spacing: var(--track-mono);
  color: var(--c-gray);
}

.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-mid);
}

.page-home .home-timeline-node {
  position: relative;
  margin-left: -1px;
  padding: 0 0 var(--space-md) var(--space-md);
  border-left: 2px solid transparent;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.page-home .home-timeline-node:last-child {
  padding-bottom: 0;
}

.page-home .home-timeline-node::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--c-gold);
  transform: rotate(45deg);
}

.page-home .home-timeline-node:hover {
  border-left-color: var(--c-coral);
  background: rgba(53, 224, 192, 0.06);
}

.page-home .home-timeline-idx {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-6);
  letter-spacing: var(--track-mono);
  color: var(--c-gold);
}

.page-home .home-timeline-title {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--c-cream);
}

.page-home .home-timeline-desc {
  margin: 6px 0 0;
  font-size: var(--fs-6);
  line-height: 1.75;
  color: var(--c-pale);
}

/* ---------- 档案字段 ---------- */
.page-home .home-field-list {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-field-row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  grid-template-areas:
    "idx name"
    "idx desc";
  gap: 0 var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line-soft);
  transition: background-color 160ms ease;
}

.page-home .home-field-row:hover {
  background: rgba(232, 180, 74, 0.07);
}

.page-home .home-field-idx {
  grid-area: idx;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-6);
  color: var(--c-gold);
  padding-top: 0.35em;
}

.page-home .home-field-name {
  grid-area: name;
  font-size: var(--fs-5);
  font-weight: 700;
  letter-spacing: var(--track-body);
  color: var(--c-cream);
}

.page-home .home-field-desc {
  grid-area: desc;
  margin: 6px 0 0;
  font-size: var(--fs-6);
  line-height: 1.75;
  color: var(--c-pale);
}

.page-home .home-fields-foot {
  margin: var(--space-lg) 0 0;
  max-width: 62ch;
  font-size: var(--fs-5);
  line-height: var(--lh-body);
  color: var(--c-pale);
}

/* ---------- 客服通道 ---------- */
.page-home .home-support {
  background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-velvet) 100%);
}

.page-home .home-support-inner {
  display: grid;
  gap: var(--space-lg);
}

.page-home .home-fork-svg {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.page-home .home-support-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
  border-top: 1px solid var(--line-gold);
  background: rgba(5, 14, 24, 0.45);
}

.page-home .home-stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--c-gold);
}

.page-home .home-stat-label {
  font-size: var(--fs-6);
  line-height: 1.6;
  color: var(--c-pale);
}

.page-home .home-channel-list {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.page-home .home-channel {
  padding: var(--space-md);
  background: rgba(5, 14, 24, 0.72);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform 160ms ease, border-color 160ms ease;
}

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

.page-home .home-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.page-home .home-channel-people {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-6);
  color: var(--c-gray);
}

.page-home .home-channel-title {
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-4);
  font-weight: 700;
  letter-spacing: var(--track-body);
  color: var(--c-cream);
}

.page-home .home-channel-desc {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-6);
  line-height: 1.8;
  color: var(--c-pale);
}

.page-home .home-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ---------- 客户端 ---------- */
.page-home .home-app {
  background: var(--c-deep);
}

.page-home .home-app-inner {
  display: grid;
  gap: var(--space-lg);
}

.page-home .home-app-modules {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-app-module {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  grid-template-areas:
    "idx name"
    "idx desc";
  gap: 0 var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-app-module-idx {
  grid-area: idx;
  font-family: var(--font-mono);
  font-size: var(--fs-6);
  color: var(--c-neon);
}

.page-home .home-app-module-name {
  grid-area: name;
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--c-cream);
}

.page-home .home-app-module-desc {
  grid-area: desc;
  margin-top: 4px;
  font-size: var(--fs-6);
  line-height: 1.7;
  color: var(--c-pale);
}

.page-home .home-app-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0 0;
}

.page-home .home-app-spec-item {
  padding-top: var(--space-xs);
  border-top: 1px solid var(--line-gold);
}

.page-home .home-app-spec-item dt {
  font-size: var(--fs-6);
  color: var(--c-gray);
}

.page-home .home-app-spec-item dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-5);
  color: var(--c-gold);
}

.page-home .home-app-copy .btn {
  margin-top: var(--space-md);
}

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

.page-home .home-app-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--line-mid);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-home .home-app-figure figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-6);
  line-height: 1.7;
  color: var(--c-gray);
}

/* ---------- 品牌日志 ---------- */
.page-home .home-journal-list {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-journal-item {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color 160ms ease;
}

.page-home .home-journal-item:hover,
.page-home .home-journal-item:focus-visible {
  background: rgba(53, 224, 192, 0.06);
}

.page-home .home-journal-item:focus-visible {
  outline: 2px solid var(--c-coral);
  outline-offset: -2px;
}

.page-home .home-journal-title {
  margin: 0;
  font-size: var(--fs-4);
  font-weight: 700;
  letter-spacing: var(--track-body);
  color: var(--c-cream);
}

.page-home .home-journal-desc {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-6);
  line-height: 1.8;
  color: var(--c-pale);
}

.page-home .home-journal-time {
  font-family: var(--font-mono);
  font-size: var(--fs-6);
  color: var(--c-gray);
}

.page-home .home-journal-foot {
  margin-top: var(--space-lg);
}

/* ---------- 页尾收束 ---------- */
.page-home .home-closing {
  padding: var(--space-xl) 0;
  background:
    radial-gradient(90% 70% at 18% 20%, rgba(255, 107, 74, 0.12), transparent 60%),
    var(--c-deep);
  border-top: 1px solid var(--line-soft);
}

.page-home .home-closing-inner {
  max-width: 48rem;
}

.page-home .home-closing-text {
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-5);
  line-height: var(--lh-body);
  color: var(--c-pale);
}

.page-home .home-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .page-home .home-app-spec {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-chip {
    width: 72px;
    height: 72px;
  }
}

@media (min-width: 768px) {
  .page-home .home-bar-row {
    grid-template-columns: 11rem 1fr 5rem;
    grid-template-areas:
      "name track count"
      "note note note";
    column-gap: var(--space-md);
    align-items: center;
  }

  .page-home .home-dist-media {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .page-home .home-field-row {
    grid-template-columns: 3.5rem 13rem 1fr;
    grid-template-areas: "idx name desc";
    align-items: baseline;
    column-gap: var(--space-md);
  }

  .page-home .home-field-desc {
    margin-top: 0;
  }

  .page-home .home-journal-item {
    grid-template-columns: 8.5rem 1fr;
    grid-template-areas:
      "tag title"
      "tag desc"
      "tag time";
    column-gap: var(--space-md);
    row-gap: 6px;
    align-items: baseline;
  }

  .page-home .home-journal-item .tag {
    grid-area: tag;
    justify-self: start;
  }

  .page-home .home-journal-title {
    grid-area: title;
  }

  .page-home .home-journal-desc {
    grid-area: desc;
  }

  .page-home .home-journal-time {
    grid-area: time;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    padding: var(--space-xl) 0;
  }

  .page-home .home-hero-inner {
    grid-template-columns: 42fr 58fr;
    align-items: center;
    gap: var(--space-xl);
  }

  .page-home .home-hero-visual {
    aspect-ratio: 3 / 2;
  }

  .page-home .home-cycle-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .page-home .home-support-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: var(--space-xl);
  }

  .page-home .home-app-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--space-xl);
  }
}

@media (min-width: 1200px) {
  .page-home .home-chip {
    width: 84px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-cat-entry,
  .page-home .home-cat-list,
  .page-home .home-bar-row,
  .page-home .home-bar-fill,
  .page-home .home-timeline-node,
  .page-home .home-field-row,
  .page-home .home-channel,
  .page-home .home-journal-item {
    transition: none;
  }

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