.page-home {
  --page-grid-line: rgba(192, 192, 192, 0.12);
  --page-grid-strong: rgba(192, 192, 192, 0.24);
  --page-neon-soft: rgba(57, 255, 20, 0.12);
  --page-neon-glow: rgba(57, 255, 20, 0.26);
  background: var(--color-deep);
  color: var(--color-paper);
}

/* ============ 01 章节预览 ============ */

.page-home__hero {
  position: relative;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(56px, 9vw, 112px);
  background:
    linear-gradient(var(--page-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}

.page-home__hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(135deg, transparent 47%, var(--page-grid-strong) 48%, transparent 50%, transparent 74%, var(--page-grid-strong) 75%, transparent 76%);
  pointer-events: none;
  opacity: 0.5;
}

.page-home__hero .breadcrumb {
  margin-bottom: 32px;
}

.page-home__hero .hero-title {
  margin: 14px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--color-paper);
}

.page-home__hero .hero-title__sep {
  color: var(--color-neon);
  font-family: var(--font-data);
  font-weight: 400;
  padding: 0 6px;
}

.page-home__hero .hero-lead {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-silver);
}

.page-home__hero .hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 40px;
}

.page-home__hero .hero-layout__main {
  min-width: 0;
}

.page-home__hero .hero-layout__side {
  min-width: 0;
}

.page-home__hero .hero-visual {
  margin: 0;
}

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

.page-home__hero .hero-quad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 42px;
}

.page-home__hero .quad-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 20px 18px;
  background: rgba(31, 58, 95, 0.6);
  border: 1px solid var(--page-grid-strong);
  border-left: 3px solid var(--color-neon);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  text-decoration: none;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-home__hero .quad-card:nth-child(1) {
  border-left-color: var(--color-teal);
}

.page-home__hero .quad-card:nth-child(2) {
  border-left-color: var(--color-wine);
}

.page-home__hero .quad-card:nth-child(3) {
  border-left-color: var(--color-indigo);
}

.page-home__hero .quad-card:nth-child(4) {
  border-left-color: var(--color-neon);
}

.page-home__hero .quad-card:hover,
.page-home__hero .quad-card:focus-visible {
  background: var(--page-neon-soft);
  border-color: var(--color-neon);
  transform: translateY(-2px);
}

.page-home__hero .quad-card__code {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--color-neon);
}

.page-home__hero .quad-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-paper);
}

.page-home__hero .quad-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-silver);
}

.page-home__hero .quad-card__action {
  margin-top: 4px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--color-paper);
  opacity: 0.78;
  transition: opacity 0.22s var(--ease);
}

.page-home__hero .quad-card:hover .quad-card__action,
.page-home__hero .quad-card:focus-visible .quad-card__action {
  opacity: 1;
}

/* ============ 02 核心数据看板 ============ */

.page-home__dashboard {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0;
  background:
    linear-gradient(180deg, rgba(15, 76, 92, 0.18), rgba(31, 58, 95, 0.55)),
    linear-gradient(var(--page-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid-line) 1px, transparent 1px);
  background-size:
    auto,
    56px 56px,
    56px 56px;
}

.page-home__dashboard .dashboard-lead {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-silver);
}

.page-home__dashboard .dashboard-layout {
  display: grid;
  gap: 32px;
  margin-top: 44px;
}

.page-home__dashboard .dashboard-visual {
  margin: 0;
  align-self: center;
}

.page-home__dashboard .dashboard-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home__dashboard .dashboard-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home__dashboard .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 24px 22px;
  min-height: 120px;
  background: rgba(10, 31, 60, 0.92);
}

.page-home__dashboard .stat-card .data-num {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
  color: var(--color-neon);
}

.page-home__dashboard .stat-card__label {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-silver);
}

.page-home__dashboard .dashboard-note {
  margin-top: 26px;
  text-align: right;
  font-size: 14px;
  color: var(--color-neon);
}

/* ============ 03 使用流程概览 ============ */

.page-home__flow {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0;
  background: var(--color-deep);
}

.page-home__flow .flow-lead {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-silver);
}

.page-home__flow .flow-steps {
  display: grid;
  gap: 20px;
  margin-top: 42px;
}

.page-home__flow .flow-step {
  padding: 28px 24px;
}

.page-home__flow .cut-panel--teal {
  background: rgba(15, 76, 92, 0.6);
}

.page-home__flow .cut-panel--wine {
  background: rgba(123, 30, 59, 0.56);
}

.page-home__flow .cut-panel--indigo {
  background: rgba(61, 44, 110, 0.58);
}

.page-home__flow .flow-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--color-neon);
  font-family: var(--font-data);
  font-size: 16px;
  color: var(--color-neon);
}

.page-home__flow .flow-step h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
  color: var(--color-paper);
}

.page-home__flow .flow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-silver);
}

.page-home__flow .flow-footer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px dashed var(--page-grid-strong);
}

.page-home__flow .flow-visual {
  margin: 0;
}

.page-home__flow .flow-visual img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: cover;
}

.page-home__flow .flow-newbie {
  max-width: 460px;
}

.page-home__flow .flow-newbie .text-data {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-neon);
}

.page-home__flow .flow-newbie h3 {
  margin: 8px 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-paper);
}

.page-home__flow .flow-newbie p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-silver);
}

/* ============ 04 最新数据动态 ============ */

.page-home__updates {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0;
  background:
    linear-gradient(var(--page-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid-line) 1px, transparent 1px),
    var(--color-navy);
  background-size:
    56px 56px,
    56px 56px,
    auto;
}

.page-home__updates .updates-layout {
  display: grid;
  gap: 32px;
  margin-top: 42px;
}

.page-home__updates .updates-sync {
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  background: rgba(10, 31, 60, 0.88);
}

.page-home__updates .updates-sync__code {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-neon);
}

.page-home__updates .updates-sync__time {
  font-family: var(--font-data);
  font-size: 32px;
  line-height: 1;
  color: var(--color-paper);
}

.page-home__updates .updates-sync__sep {
  font-family: var(--font-data);
  font-size: 24px;
  color: var(--color-neon);
}

.page-home__updates .updates-sync p {
  width: 100%;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-silver);
}

.page-home__updates .updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--page-grid-strong);
}

.page-home__updates .updates-list__item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--page-grid-strong);
  transition: background-color 0.2s var(--ease);
}

.page-home__updates .updates-list__item:hover {
  background: rgba(57, 255, 20, 0.05);
}

.page-home__updates .updates-list__index {
  flex: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-neon);
}

.page-home__updates .updates-list__body {
  min-width: 0;
}

.page-home__updates .updates-list__body strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-paper);
}

.page-home__updates .updates-list__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-silver);
}

.page-home__updates .updates-more {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-paper);
}

/* ============ 05 赛场坐标宣言 ============ */

.page-home__manifesto {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.page-home__manifesto .manifesto-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-home__manifesto .manifesto-bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home__manifesto::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    linear-gradient(180deg, var(--color-navy) 0%, rgba(10, 31, 60, 0.55) 30%, rgba(10, 31, 60, 0.55) 72%, var(--color-navy) 100%);
}

.page-home__manifesto .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: clamp(80px, 12vw, 140px);
  text-align: center;
}

.page-home__manifesto .index-label {
  justify-content: center;
}

.page-home__manifesto h2 {
  margin: 18px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  color: var(--color-paper);
  text-shadow: 0 0 24px rgba(57, 255, 20, 0.35);
}

.page-home__manifesto .manifesto-box__text {
  max-width: 620px;
  margin: 20px auto 30px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-silver);
}

.page-home__manifesto .btn {
  margin-top: 6px;
}

/* ============ 桌面与中等视口 ============ */

@media (min-width: 768px) {
  .page-home__hero {
    padding-top: calc(var(--header-h) + 72px);
  }

  .page-home__hero .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr);
    gap: 48px;
    align-items: start;
  }

  .page-home__hero .hero-layout__side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-home__hero .hero-quad {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .page-home__dashboard .dashboard-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
  }

  .page-home__dashboard .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .page-home__flow .flow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-home__flow .flow-step {
    min-height: 240px;
  }

  .page-home__flow .flow-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .page-home__flow .flow-visual {
    flex: 0 0 340px;
  }

  .page-home__updates .updates-layout {
    grid-template-columns: minmax(240px, 3fr) minmax(0, 7fr);
    gap: 44px;
    align-items: start;
  }

  .page-home__updates .updates-sync {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (min-width: 1024px) {
  .page-home__hero .hero-title {
    font-size: 52px;
  }
}
