/* ========== 首页 · 新章入口 专属样式 ========== */
.page-home {
  --home-purple-a: rgba(122, 77, 255, .14);
  --home-cyan-a: rgba(0, 225, 241, .08);
  --home-orange-a: rgba(255, 107, 61, .12);
  font-family: var(--font-body);
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home .section-kicker,
.page-home .step-num,
.page-home .stat-num,
.page-home .version-tag,
.page-home .obs-code {
  font-family: var(--font-display);
}

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

/* ---------- 首屏 Hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(122, 77, 255, .20), transparent 48%),
    radial-gradient(ellipse at 12% 88%, rgba(0, 225, 241, .10), transparent 40%),
    var(--bg-deep);
}

.page-home .hero-frame {
  position: relative;
  display: block;
  border: 1px solid var(--line-cyan);
  border-radius: calc(var(--radius-lg) + 8px);
  padding: 18px;
  background: linear-gradient(165deg, rgba(18, 45, 71, .75), rgba(10, 23, 39, .92));
  box-shadow: 0 24px 60px rgba(3, 10, 20, .5);
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(0, 225, 241, .18);
  border-radius: 24px;
  pointer-events: none;
}

.page-home .hero-side {
  display: none;
}

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

.page-home .hero-copy {
  position: relative;
  z-index: 1;
}

.page-home .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--cyan);
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(0, 225, 241, .06);
  margin-bottom: 18px;
}

.page-home .home-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.page-home .hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.12;
  color: var(--text-light);
  text-shadow: 0 0 26px rgba(122, 77, 255, .35);
}

.page-home .hero-lead {
  color: var(--text-dim);
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 26px;
}

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

.page-home .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .trust-key {
  font-size: .78rem;
  color: var(--text-dim);
  border: 1px solid rgba(168, 188, 207, .2);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(18, 45, 71, .5);
}

.page-home .trust-key:nth-child(1) {
  color: var(--green);
  border-color: rgba(43, 213, 118, .35);
}

.page-home .trust-key:nth-child(2) {
  color: #b9a2ff;
  border-color: rgba(122, 77, 255, .4);
}

.page-home .trust-key:nth-child(3) {
  color: var(--cyan);
  border-color: rgba(0, 225, 241, .35);
}

.page-home .hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 225, 241, .3);
  box-shadow: 0 0 40px rgba(122, 77, 255, .22);
}

.page-home .hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.page-home .stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(18, 45, 71, .55);
  border: 1px solid var(--line-soft);
}

.page-home .stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
  letter-spacing: .04em;
}

.page-home .stat-label {
  font-size: .82rem;
  color: var(--text-dim);
}

/* ---------- 三步直达 ---------- */
.page-home .home-steps {
  position: relative;
  padding: 64px 0;
}

.page-home .section-head {
  margin-bottom: 28px;
}

.page-home .section-head.align-left {
  text-align: left;
}

.page-home .steps-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.page-home .steps-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .step-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .step-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 77, 255, .22), transparent 70%);
  pointer-events: none;
}

.page-home .step-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  -webkit-text-stroke: 1px rgba(0, 225, 241, .5);
  margin-bottom: 10px;
}

.page-home .step-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text-light);
}

.page-home .step-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.7;
}

.page-home .step-connector {
  display: none;
}

.page-home .steps-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}

.page-home .steps-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 9 / 7;
}

/* ---------- 开服观测站 ---------- */
.page-home .home-observatory {
  position: relative;
  padding: 64px 0;
  background:
    radial-gradient(ellipse at 10% 30%, rgba(122, 77, 255, .10), transparent 50%),
    var(--bg-deep);
}

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

.page-home .obs-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border-top: 2px solid var(--line-cyan);
  display: flex;
  flex-direction: column;
}

.page-home .obs-card:nth-child(2) {
  border-top-color: var(--purple);
}

.page-home .obs-card:nth-child(3) {
  border-top-color: var(--orange);
}

.page-home .obs-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.page-home .obs-code {
  font-size: .78rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}

.page-home .obs-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  color: var(--text-light);
}

.page-home .obs-desc {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.7;
}

.page-home .obs-details {
  margin-top: auto;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(10, 23, 39, .5);
}

.page-home .obs-details summary {
  cursor: pointer;
  padding: 10px 0;
  color: var(--text-light);
  font-size: .86rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.page-home .obs-details summary::before {
  content: "+";
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
}

.page-home .obs-details[open] summary::before {
  content: "–";
}

.page-home .obs-details p {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: .84rem;
  line-height: 1.6;
}

.page-home .obs-card .link-more {
  color: var(--cyan);
  text-decoration: none;
  font-size: .88rem;
}

/* ---------- 大陆版MG焕新版特性 ---------- */
.page-home .home-features {
  padding: 64px 0;
  background: linear-gradient(180deg, transparent, rgba(18, 45, 71, .4));
}

.page-home .feature-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-home .feature-media {
  position: relative;
}

.page-home .feature-media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-cyan);
}

.page-home .feature-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .feature-glow {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 61, .18), transparent 70%);
  z-index: -1;
}

.page-home .feature-content {
  position: relative;
}

.page-home .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(18, 45, 71, .45);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.page-home .feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 225, 241, .12);
  color: var(--cyan);
  font-size: 1rem;
}

.page-home .feature-list strong {
  display: block;
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 3px;
}

.page-home .feature-list p {
  margin: 0;
  color: var(--text-dim);
  font-size: .85rem;
  line-height: 1.6;
}

/* ---------- 版本资料库速查 ---------- */
.page-home .home-archive {
  padding: 64px 0;
}

.page-home .archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .archive-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.page-home .archive-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 8;
}

.page-home .archive-versions {
  background: var(--surface-glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.page-home .archive-versions h3,
.page-home .archive-search h3 {
  margin: 0 0 8px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.page-home .version-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .version-row:last-child {
  border-bottom: none;
}

.page-home .version-tag {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255, 107, 61, .1);
  border: 1px solid rgba(255, 107, 61, .35);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
}

.page-home .version-name {
  flex: 1;
  min-width: 120px;
  color: var(--text-light);
  font-size: .9rem;
}

.page-home .version-size {
  color: var(--text-dim);
  font-size: .8rem;
}

.page-home .archive-search {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 77, 255, .5);
  background: linear-gradient(150deg, rgba(122, 77, 255, .14), var(--surface-glass) 55%);
}

.page-home .archive-search p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.6;
}

.page-home .archive-help-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: .88rem;
}

/* ---------- 订阅提醒 ---------- */
.page-home .home-subscribe {
  position: relative;
  padding: 68px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 77, 255, .22), transparent 55%),
    var(--bg-deep);
}

.page-home .subscribe-panel {
  position: relative;
  text-align: center;
  padding: 48px 22px 36px;
  border-radius: 32px;
  border: 1px solid var(--line-cyan);
  background:
    linear-gradient(160deg, rgba(122, 77, 255, .16), rgba(10, 23, 39, .9) 52%),
    var(--surface-glass);
  box-shadow: 0 24px 60px rgba(3, 10, 20, .5);
  overflow: hidden;
}

.page-home .subscribe-rings {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(0, 225, 241, .24);
  box-shadow:
    0 0 0 26px rgba(0, 225, 241, .05),
    0 0 0 54px rgba(122, 77, 255, .06);
  pointer-events: none;
}

.page-home .subscribe-panel .section-kicker,
.page-home .subscribe-panel h2,
.page-home .subscribe-panel .btn,
.page-home .subscribe-lead,
.page-home .subscribe-steps,
.page-home .subscribe-note {
  position: relative;
  z-index: 1;
}

.page-home .subscribe-panel h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-light);
}

.page-home .subscribe-lead {
  max-width: 48ch;
  margin: 0 auto 24px;
  color: var(--text-dim);
  line-height: 1.8;
  font-size: .95rem;
}

.page-home .subscribe-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.page-home .sub-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 45, 71, .55);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 16px;
}

.page-home .sub-step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 61, .5);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
}

.page-home .sub-step p {
  margin: 0;
  color: var(--text-light);
  font-size: .86rem;
}

.page-home .subscribe-note {
  margin: 16px auto 0;
  color: var(--text-dim);
  font-size: .82rem;
  max-width: 46ch;
  line-height: 1.6;
}

.page-home .subscribe-note::before {
  content: "✦ ";
  color: var(--cyan);
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 64px 0 48px;
  }

  .page-home .hero-frame {
    padding: 24px;
  }

  .page-home .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .page-home .hero-stats {
    gap: 16px;
    margin-top: 30px;
  }

  .page-home .steps-layout {
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
  }

  .page-home .step-card {
    padding: 28px 26px;
  }

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

  .page-home .obs-card:last-child {
    grid-column: span 2;
  }

  .page-home .feature-layout {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .page-home .archive-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "image image"
      "versions search";
  }

  .page-home .archive-image {
    grid-area: image;
  }

  .page-home .archive-versions {
    grid-area: versions;
  }

  .page-home .archive-search {
    grid-area: search;
  }

  .page-home .subscribe-panel {
    padding: 56px 40px 44px;
  }

  .page-home .subscribe-steps {
    gap: 14px;
  }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 1200px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .hero-frame {
    display: flex;
    gap: 18px;
  }

  .page-home .hero-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    padding: 12px 14px;
    border-right: 1px solid rgba(0, 225, 241, .16);
    min-width: 142px;
  }

  .page-home .hero-grid {
    flex: 1;
    min-width: 0;
  }

  .page-home .side-link {
    color: var(--text-dim);
    font-size: .82rem;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 6px;
    display: block;
    letter-spacing: .04em;
    transition: color .3s var(--ease-out), background .3s var(--ease-out), transform .3s var(--ease-out);
  }

  .page-home .side-link:hover {
    color: var(--cyan);
    background: rgba(0, 225, 241, .08);
    transform: translateX(3px);
  }

  .page-home .side-link::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
    background: currentColor;
    vertical-align: 2px;
  }

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

  .page-home .obs-card:last-child {
    grid-column: auto;
  }
}
