.page-home {
  --archive-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  background: var(--blue);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-issues .container,
.page-home .home-categories .container,
.page-home .home-desktop .container,
.page-home .home-archive .container {
  padding-left: 20px;
  padding-right: 20px;
}

/* ============ 首屏 ============ */
.page-home .home-hero {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  padding: 40px 0 28px;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: 0;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 26, 47, 0.9) 0%, rgba(43, 30, 75, 0.94) 100%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 20px 20px;
}

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

.page-home .home-hero__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  color: var(--gold);
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  margin-bottom: 16px;
}

.page-home .home-hero__text h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  color: var(--moon);
  margin: 0 0 14px;
  max-width: 12em;
}

.page-home .home-hero__lead {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.5;
  color: var(--light-gold);
  margin: 0 0 16px;
}

.page-home .home-hero__desc {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--mist);
  max-width: 44em;
}

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

.page-home .home-hero__card {
  position: relative;
  background: rgba(242, 240, 232, 0.08);
  border: 1px solid rgba(212, 180, 74, 0.38);
  padding: 20px 22px;
}

.page-home .home-hero__card--issue {
  background: linear-gradient(135deg, rgba(10, 26, 47, 0.82), rgba(43, 30, 75, 0.78));
  border-color: var(--gold);
}

.page-home .home-hero__card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  color: var(--mist);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-home .home-hero__card--issue .home-hero__issue {
  display: block;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-home .home-hero__card-sub {
  display: block;
  font-size: var(--text-sm);
  color: var(--mist);
  line-height: 1.5;
}

.page-home .home-hero__card--update .home-hero__card-text {
  margin: 0 0 10px;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--moon);
}

.page-home .home-hero__card-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 180, 74, 0.4);
  padding-bottom: 2px;
}

.page-home .home-hero__card-link:hover {
  color: var(--light-gold);
}

.page-home .home-chapters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(143, 166, 191, 0.18);
  border-bottom: 1px solid rgba(143, 166, 191, 0.18);
}

.page-home .home-chapters__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--mist);
  letter-spacing: 0.2em;
  margin-right: 6px;
}

.page-home .home-chapters__link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--mist);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.page-home .home-chapters__link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-home .home-hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
}

.page-home .home-hero__scroll-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
}

/* ============ 期号筛选 ============ */
.page-home .home-issues {
  background: var(--moon);
  padding: 64px 0;
}

.page-home .home-issues__head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.page-home .home-issues__head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-home .home-issues__head .section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--ink);
  margin: 0;
}

.page-home .home-issues__head .section-subtitle {
  color: var(--mist);
  font-size: var(--text-base);
  line-height: 1.8;
  max-width: 54em;
  margin: 0;
}

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

.page-home .home-issues__board {
  min-width: 0;
}

.page-home .home-issues__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--star-line);
  background: #fff;
  margin-bottom: 16px;
}

.page-home .home-issues__toolbar-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--mist);
  letter-spacing: 0.1em;
}

.page-home .home-issues__toolbar-count {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--wine);
  margin-left: auto;
}

.page-home .home-issues__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.page-home .home-issues__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(51, 58, 69, 0.15);
}

.page-home .home-issues__issue {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  background: rgba(212, 180, 74, 0.24);
  border-left: 3px solid var(--gold);
  padding: 3px 8px;
  justify-self: start;
}

.page-home .home-issues__game {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--wine);
  border: 1px solid rgba(122, 30, 60, 0.35);
  padding: 2px 8px;
  justify-self: start;
}

.page-home .home-issues__code {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.5;
}

.page-home .home-issues__note {
  font-size: var(--text-sm);
  color: var(--mist);
  line-height: 1.5;
}

.page-home .home-issues__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.page-home .home-issues__more-link {
  font-size: var(--text-sm);
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
}

.page-home .home-issues__figure {
  margin: 0;
  border: 1px solid var(--star-line);
  padding: 12px;
  background: #fff;
}

.page-home .home-issues__figure img {
  display: block;
}

/* ============ 分类精简 ============ */
.page-home .home-categories {
  background: linear-gradient(160deg, var(--indigo) 0%, var(--blue) 70%);
  padding: 64px 0;
}

.page-home .home-categories__head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.page-home .home-categories__head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-home .home-categories__head .section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--moon);
  margin: 0;
}

.page-home .home-categories__head .section-subtitle {
  color: var(--mist);
  line-height: 1.8;
  margin: 0;
}

.page-home .home-categories__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.page-home .home-categories__old,
.page-home .home-categories__new {
  border: 1px solid rgba(143, 166, 191, 0.3);
  padding: 20px 22px;
  background: rgba(10, 26, 47, 0.3);
}

.page-home .home-categories__type-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--light-gold);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(143, 166, 191, 0.3);
}

.page-home .home-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.page-home .home-categories__list li {
  font-size: var(--text-base);
  color: var(--moon);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.page-home .home-categories__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.page-home .home-categories__list li.is-merged {
  opacity: 0.42;
  text-decoration: line-through;
}

.page-home .home-categories__arrow {
  display: flex;
  justify-content: center;
  color: var(--gold);
  font-size: 32px;
  font-family: var(--font-mono);
  line-height: 1;
}

.page-home .home-categories__arrow span {
  display: inline-block;
}

@media (max-width: 767px) {
  .page-home .home-categories__arrow {
    transform: rotate(90deg);
  }
}

.page-home .home-categories__figure {
  margin: 24px 0;
  border: 1px solid rgba(143, 166, 191, 0.3);
}

.page-home .home-categories__figure img {
  display: block;
}

.page-home .home-categories__action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ============ 桌面适配 ============ */
.page-home .home-desktop {
  background: var(--moon);
  padding: 64px 0;
}

.page-home .home-desktop__panel {
  background: linear-gradient(135deg, #ffffff, var(--moon) 60%, var(--light-gold) 160%);
  border: 1px solid rgba(212, 180, 74, 0.5);
  padding: 28px 24px;
  display: grid;
  gap: 24px;
  position: relative;
}

.page-home .home-desktop__panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 42px;
  height: 42px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-home .home-desktop__text {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}

.page-home .home-desktop__text .section-index {
  grid-row: 1;
  grid-column: 1;
}

.page-home .home-desktop__text .section-title {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--ink);
  margin: 0;
}

.page-home .home-desktop__desc {
  grid-column: 1 / -1;
  color: var(--mist);
  line-height: 1.7;
  margin: 0;
  max-width: 56em;
}

.page-home .home-desktop__params {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .home-desktop__param {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid var(--star-line);
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
}

.page-home .home-desktop__param-index {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 700;
  border-left: 3px solid var(--gold);
  padding-left: 8px;
}

.page-home .home-desktop__param-key {
  font-size: var(--text-sm);
  color: var(--mist);
  line-height: 1.4;
}

.page-home .home-desktop__param-value {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

.page-home .home-desktop__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .home-desktop__faq-link {
  font-size: var(--text-sm);
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
}

/* ============ 版本档案 ============ */
.page-home .home-archive {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  padding: 56px 0;
}

.page-home .home-archive__figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.page-home .home-archive__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.page-home .home-archive__podium {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 26, 47, 0.92), rgba(43, 30, 75, 0.86));
  border: 1px solid rgba(212, 180, 74, 0.4);
  padding: 32px 24px;
  box-shadow: var(--archive-shadow);
}

.page-home .home-archive__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-home .home-archive__head .section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--moon);
}

.page-home .home-archive__desc {
  color: var(--mist);
  line-height: 1.8;
  margin: 0 0 24px;
  max-width: 46em;
}

.page-home .home-archive__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .home-archive__contact {
  font-size: var(--text-sm);
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
}

.page-home .home-archive__contact:hover,
.page-home .home-desktop__faq-link:hover,
.page-home .home-issues__more-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-home .btn {
  min-width: 128px;
  text-align: center;
}

/* ============ 中屏与桌面 ============ */
@media (min-width: 768px) {
  .page-home .home-issues__item {
    grid-template-columns: 110px 90px minmax(0, 1fr) minmax(180px, 0.8fr);
    align-items: center;
    gap: 16px;
  }

  .page-home .home-categories__compare {
    grid-template-columns: 1fr 56px 1fr;
    align-items: center;
  }

  .page-home .home-categories__list {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .home-archive {
    padding: 80px 0;
  }

  .page-home .home-archive__podium {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 48px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 56px 0 40px;
  }

  .page-home .home-hero::before {
    background: linear-gradient(115deg, rgba(10, 26, 47, 0.9) 52%, rgba(43, 30, 75, 0.95) 52.5%);
  }

  .page-home .home-hero__inner {
    padding-top: 72px;
    padding-bottom: 32px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: center;
  }

  .page-home .home-hero__text h1 {
    font-size: 48px;
    line-height: 1.2;
  }

  .page-home .home-hero__lead {
    font-size: 22px;
  }

  .page-home .home-hero__card--issue {
    transform: translateY(-10px);
  }

  .page-home .home-hero__card--update {
    transform: translateX(28px);
  }

  .page-home .home-issues {
    padding: 96px 0;
  }

  .page-home .home-issues__layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    align-items: start;
  }

  .page-home .home-categories {
    padding: 96px 0;
  }

  .page-home .home-desktop {
    padding: 96px 0;
  }

  .page-home .home-archive {
    padding: 120px 0;
  }

  .page-home .home-archive__podium {
    max-width: 780px;
    padding: 48px 64px;
    text-align: center;
  }

  .page-home .home-archive__head,
  .page-home .home-archive__actions {
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .page-home .home-issues .container,
  .page-home .home-categories .container,
  .page-home .home-desktop .container,
  .page-home .home-archive .container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-home .home-hero__inner {
    padding-left: 0;
    padding-right: 0;
  }
}
