.page-home {
  --home-cut: 16px;
  --home-grid: rgba(126, 151, 188, 0.13);
  --home-shadow: 0 24px 60px rgba(4, 12, 24, 0.45);
  background: var(--ink-1);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home * {
  box-sizing: border-box;
}

.page-home .section {
  padding: 56px 0;
  position: relative;
}

.page-home h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 10px 0 16px;
  color: var(--paper);
}

.page-home h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--paper);
}

.page-home p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(237, 245, 250, 0.82);
}

.page-home .coord {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin: 0;
}

.page-home .lede {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(237, 245, 250, 0.9);
}

.page-home a {
  color: var(--cyan);
}

.page-home .media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink-0);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
}

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

.page-home .media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(4, 12, 24, 0) 0%, rgba(4, 12, 24, 0.86) 100%);
}

/* 页面上下文条 */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-context__note {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin: 0 0 12px;
}

/* 首屏 */
.page-home .hero {
  position: relative;
  padding: 32px 0 56px;
  background-image:
    repeating-linear-gradient(90deg, var(--home-grid) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, var(--home-grid) 0 1px, transparent 1px 96px);
  background-position: 0 0;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 23, 41, 0) 42%, rgba(8, 23, 41, 0.92) 100%);
  pointer-events: none;
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .hero__rail .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0;
}

.page-home .hero__timeline {
  position: relative;
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 0 18px;
}

.page-home .hero__timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--cyan) 46%, rgba(126, 151, 188, 0.28) 100%);
}

.page-home .hero__node {
  position: relative;
  padding-bottom: 18px;
  display: grid;
  gap: 2px;
}

.page-home .hero__node::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--mist);
  transform: rotate(45deg);
}

.page-home .hero__node--amber::before {
  background: var(--amber);
}

.page-home .hero__node--cyan::before {
  background: var(--cyan);
}

.page-home .hero__node-ver {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .hero__node--cyan .hero__node-ver {
  color: var(--cyan);
}

.page-home .hero__node--amber .hero__node-ver {
  color: var(--amber);
}

.page-home .hero__node-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(237, 245, 250, 0.92);
  line-height: 1.5;
}

.page-home .hero__node-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.page-home .hero__main .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin: 0 0 14px;
}

.page-home .hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--paper);
  text-wrap: balance;
}

.page-home .hero__lede {
  max-width: 40ch;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 34px;
}

.page-home .hero__preview {
  aspect-ratio: 16 / 10;
  box-shadow: var(--home-shadow);
}

.page-home .hero__preview-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  color: var(--ink-0);
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* 三条主线 */
.page-home .lanes {
  background: var(--ink-0);
  border-top: 1px solid var(--line);
}

.page-home .lanes__head {
  max-width: 62ch;
  margin-bottom: 32px;
}

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

.page-home .tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-home .tabbar__btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .tabbar__btn:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.page-home .tabbar__btn[aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-0);
}

.page-home .tabbar__btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.page-home [role="tabpanel"][hidden] {
  display: none;
}

.page-home .lane-panel {
  background: var(--ink-2);
  padding: 24px 20px;
  border-left: 2px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
}

.page-home .lane-panel h3 {
  font-size: 20px;
}

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

.page-home .lane-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(237, 245, 250, 0.78);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .lane-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .lane-list__key {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
  min-width: 5.5em;
}

.page-home .lanes__media {
  aspect-ratio: 4 / 3;
}

/* 公告与旧版本 */
.page-home .logbrief {
  border-top: 1px solid var(--line);
}

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

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

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

.page-home .logbrief__filters li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(237, 245, 250, 0.76);
}

.page-home .logbrief__details {
  display: grid;
  gap: 8px;
  margin: 24px 0 18px;
  border-top: 1px solid var(--line);
}

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

.page-home .logbrief__details summary {
  cursor: pointer;
  padding: 14px 2px 14px 22px;
  position: relative;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--paper);
  list-style: none;
}

.page-home .logbrief__details summary::-webkit-details-marker {
  display: none;
}

.page-home .logbrief__details summary::before {
  content: "+";
  position: absolute;
  left: 2px;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
}

.page-home .logbrief__details details[open] summary::before {
  content: "–";
  color: var(--amber);
}

.page-home .logbrief__details details p {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 14.5px;
  color: rgba(237, 245, 250, 0.74);
}

.page-home .logbrief__note {
  font-size: 13.5px;
  color: var(--warm);
  border-left: 2px solid var(--amber);
  padding-left: 12px;
  margin-bottom: 22px;
}

/* 首次访问路线 */
.page-home .firstrun {
  background: var(--ink-0);
  border-top: 1px solid var(--line);
}

.page-home .firstrun__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 30px;
  align-items: end;
}

.page-home .firstrun__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin: 0;
  max-width: 32ch;
}

.page-home .firstrun__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .firstrun__step {
  background: var(--ink-1);
  padding: 22px 20px 24px;
  position: relative;
}

.page-home .firstrun__step::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 1px;
  background: var(--cyan);
  transform: rotate(-38deg);
  transform-origin: right bottom;
}

.page-home .firstrun__num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.page-home .firstrun__step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.page-home .firstrun__step p {
  font-size: 14.5px;
  margin: 0;
  color: rgba(237, 245, 250, 0.76);
}

.page-home .firstrun__media {
  margin-top: 30px;
  aspect-ratio: 2 / 1;
}

.page-home .firstrun__more {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(237, 245, 250, 0.72);
}

.page-home .firstrun__more a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 双通道 */
.page-home .channels {
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink-1) 62%);
  border-top: 1px solid var(--line);
}

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

.page-home .channels__intro .btn {
  margin-top: 8px;
}

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

.page-home .channels__card {
  background: rgba(4, 12, 24, 0.6);
  border: 1px solid var(--line-strong);
  padding: 22px 20px;
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
}

.page-home .channels__card--cyan {
  border-top: 2px solid var(--cyan);
}

.page-home .channels__card--amber {
  border-top: 2px solid var(--amber);
}

.page-home .channels__card-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  color: var(--mist);
}

.page-home .channels__card--cyan .channels__card-key {
  color: var(--cyan);
}

.page-home .channels__card--amber .channels__card-key {
  color: var(--amber);
}

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

.page-home .channels__card li {
  font-size: 14px;
  color: rgba(237, 245, 250, 0.76);
  padding-left: 14px;
  position: relative;
}

.page-home .channels__card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--mist);
  transform: rotate(45deg);
}

/* 适合谁 */
.page-home .who {
  border-top: 1px solid var(--line);
}

.page-home .who__head {
  max-width: 40ch;
  margin-bottom: 26px;
}

.page-home .who__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.page-home .who__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.page-home .who__idx {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
  padding-top: 4px;
}

.page-home .who__body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.page-home .who__body p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(237, 245, 250, 0.76);
}

.page-home .who__link {
  grid-column: 2;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 224, 206, 0.45);
  padding-bottom: 2px;
}

.page-home .who__more {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(237, 245, 250, 0.72);
}

.page-home .who__more a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 行动收束 */
.page-home .cta {
  background: var(--sand);
  color: var(--ink-1);
}

.page-home .cta__inner {
  display: grid;
  gap: 24px;
}

.page-home .cta .coord {
  color: var(--teal-deep);
}

.page-home .cta h2 {
  color: var(--ink-1);
}

.page-home .cta p {
  color: rgba(8, 23, 41, 0.82);
  max-width: 52ch;
}

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

.page-home .cta__actions .btn--ghost {
  --btn-bd: var(--ink-1);
  --btn-fg: var(--ink-1);
  color: var(--ink-1);
  border-color: var(--ink-1);
}

.page-home .cta__links {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  border-top: 1px solid rgba(8, 23, 41, 0.24);
}

.page-home .cta__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 110, 114, 0.4);
  padding-bottom: 2px;
}

.page-home .cta__links a:hover {
  color: var(--ink-1);
}

@media (min-width: 768px) {
  .page-home .section {
    padding: 80px 0;
  }

  .page-home .hero {
    padding: 44px 0 76px;
  }

  .page-home .firstrun__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .channels__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .firstrun__head {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .page-home .who__item {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 26px 0;
  }

  .page-home .who__link {
    grid-column: 3;
    justify-self: end;
  }

  .page-home .cta__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 28px 40px;
  }

  .page-home .cta__links {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .page-home .section {
    padding: 96px 0;
  }

  .page-home .hero__grid {
    grid-template-columns: minmax(210px, 3fr) 9fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .hero__rail {
    padding-top: 8px;
  }

  .page-home .lanes__layout {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: start;
  }

  .page-home .lanes__media {
    aspect-ratio: 4 / 5;
    margin-top: 8px;
  }

  .page-home .logbrief__grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .logbrief__media {
    aspect-ratio: 3 / 4;
  }

  .page-home .firstrun__steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .channels__grid {
    grid-template-columns: 4fr 7fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .lane-panel {
    padding: 30px 28px;
  }
}

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