.page-home {
  --home-cut: 16px;
  --home-glow: rgba(139, 92, 246, 0.28);
  --home-green: rgba(0, 255, 136, 0.25);
  --home-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.04), transparent 40%), var(--c-space);
  background: var(--c-space);
}

.page-home .page-section {
  padding: 64px 0;
}

.page-home .section-heading {
  margin-bottom: 32px;
}

.page-home .text-arrow {
  display: inline-block;
  margin-top: 16px;
  color: var(--c-purple-soft);
  text-decoration: none;
  font-weight: 500;
}

.page-home .text-arrow:hover,
.page-home .text-arrow:focus-visible {
  color: var(--c-green);
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

/* ===== 首屏框景 ===== */
.page-home .hero-framed {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) 16px 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 24%, var(--home-glow), transparent 58%),
    radial-gradient(ellipse at 82% 74%, var(--home-green), transparent 52%),
    var(--c-space);
}

.page-home .hero-framed__window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  padding: 28px 20px;
  border: 2px solid var(--c-purple);
  outline: 1px solid var(--c-border);
  outline-offset: 7px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 42%),
    rgba(10, 17, 40, 0.86);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.page-home .hero-framed__window:hover {
  border-color: var(--c-purple-soft);
  box-shadow: 0 0 54px rgba(139, 92, 246, 0.3), var(--shadow);
}

.page-home .hero-framed__window:focus-within {
  outline-color: var(--c-green);
}

.page-home .hero-framed__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  opacity: 0.5;
}

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

.page-home .hero-framed__mesh {
  position: absolute;
  right: -80px;
  bottom: -80px;
  z-index: 0;
  width: 280px;
  height: 280px;
  opacity: 0.9;
  pointer-events: none;
}

.page-home .hero-framed__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  display: block;
  pointer-events: none;
  z-index: 3;
}

.page-home .hero-framed__corner--tl {
  top: -2px;
  left: -2px;
  border-top: 4px solid var(--c-green);
  border-left: 4px solid var(--c-green);
}

.page-home .hero-framed__corner--tr {
  top: -2px;
  right: -2px;
  border-top: 4px solid var(--c-green);
  border-right: 4px solid var(--c-green);
}

.page-home .hero-framed__corner--bl {
  bottom: -2px;
  left: -2px;
  border-bottom: 4px solid var(--c-green);
  border-left: 4px solid var(--c-green);
}

.page-home .hero-framed__corner--br {
  bottom: -2px;
  right: -2px;
  border-bottom: 4px solid var(--c-green);
  border-right: 4px solid var(--c-green);
}

.page-home .hero-framed__ctx {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-mist);
  margin-bottom: 16px;
}

.page-home .hero-framed__ctx i {
  font-style: normal;
  color: var(--c-purple);
}

.page-home .hero-framed__ctx span:last-child {
  color: var(--c-white);
}

.page-home .hero-framed__body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  margin-top: 20px;
}

.page-home .hero-framed__story {
  min-width: 0;
}

.page-home .hero-framed__story h1 {
  margin: 14px 0 16px;
  font-family: var(--f-heading);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--c-white);
  text-shadow: 0 0 42px rgba(139, 92, 246, 0.5), 0 0 120px rgba(0, 255, 136, 0.18);
}

.page-home .hero-framed__desc {
  margin: 0 0 22px;
  color: var(--c-mist);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .hero-framed__desc strong {
  color: var(--c-white);
  font-weight: 600;
}

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

.page-home .hero-framed__index {
  min-width: 0;
  padding-top: 4px;
}

.page-home .index-list {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-border);
}

.page-home .index-list li {
  border-bottom: 1px solid var(--c-border);
}

.page-home .index-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  color: var(--c-white);
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}

.page-home .index-list a:hover,
.page-home .index-list a:focus-visible {
  color: var(--c-green);
  padding-left: 10px;
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

.page-home .index-list__num {
  font-family: var(--f-heading);
  font-size: 12px;
  color: var(--c-purple-soft);
  letter-spacing: 0.08em;
}

.page-home .hero-framed__preview {
  margin-top: 8px;
}

.page-home .hero-framed__preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--c-border);
}

.page-home .hero-framed__note {
  position: absolute;
  left: 4px;
  bottom: 28px;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-mist);
}

/* ===== 核心亮点 ===== */
.page-home .highlights {
  background: var(--c-space);
  border-top: 1px solid var(--c-border);
}

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

.page-home .highlight-card {
  position: relative;
  padding: 24px 22px;
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.page-home .highlight-card:hover,
.page-home .highlight-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--c-purple);
  background: #162448;
}

.page-home .highlight-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-home .highlight-card__num {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-purple-soft);
  letter-spacing: 0.08em;
}

.page-home .highlight-card h3 {
  margin: 0 0 8px;
  font-family: var(--f-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
}

.page-home .highlight-card p {
  margin: 0;
  color: var(--c-mist);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 版本号与更新日志 ===== */
.page-home .version-update {
  background:
    linear-gradient(120deg, rgba(139, 92, 246, 0.1), transparent 42%),
    var(--c-space);
  border-block: 1px solid var(--c-border);
}

.page-home .version-update__split {
  display: grid;
  gap: 32px;
}

.page-home .version-update__lead {
  min-width: 0;
}

.page-home .version-update__lead h2 {
  margin: 12px 0 14px;
  font-family: var(--f-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-white);
}

.page-home .version-update__lead p {
  color: var(--c-mist);
  line-height: 1.75;
}

.page-home .version-update__panel {
  min-width: 0;
}

.page-home .version-card {
  display: block;
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-green);
  padding: 24px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color var(--ease), transform var(--ease);
}

.page-home .version-card:hover,
.page-home .version-card:focus-visible {
  border-left-color: var(--c-purple-soft);
  transform: translateY(-3px);
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

.page-home .version-card__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.page-home .version-card__number {
  display: block;
  margin: 8px 0 12px;
  font-family: var(--f-heading);
  font-size: 44px;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.1;
}

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

.page-home .version-card__list li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--c-mist);
  font-size: 14px;
}

.page-home .version-card__list li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--c-green);
  font-weight: 700;
}

/* ===== 电子游戏使用指南 · 新版客户端 ===== */
.page-home .guide-client {
  background: var(--c-space);
}

.page-home .guide-client::before {
  content: "";
  display: block;
  height: 36px;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-purple) 72%, transparent 72.5%);
}

.page-home .guide-client__split {
  display: grid;
  gap: 32px;
}

.page-home .guide-client__content {
  min-width: 0;
}

.page-home .guide-client__content h2 {
  margin: 12px 0 14px;
  font-family: var(--f-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-white);
}

.page-home .guide-client__content p {
  color: var(--c-mist);
  line-height: 1.75;
}

.page-home .guide-client__content p strong {
  color: var(--c-white);
}

.page-home .guide-client__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.page-home .guide-client__aside {
  min-width: 0;
}

.page-home .guide-client__module {
  background: var(--c-nebula);
  border: 1px dashed var(--c-border);
  padding: 20px 22px;
}

.page-home .guide-client__module-label {
  display: block;
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-purple-soft);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.page-home .guide-client__module ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .guide-client__module li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-mist);
  font-size: 14px;
}

.page-home .guide-client__module li::after {
  content: "→";
  color: var(--c-green);
}

/* ===== 服务范围适配清单 ===== */
.page-home .adaptation {
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.08), transparent 36%),
    var(--c-nebula);
  border-block: 1px solid var(--c-border);
}

.page-home .adaptation__intro {
  max-width: 640px;
  color: var(--c-mist);
  line-height: 1.7;
}

.page-home .adaptation__grid {
  display: grid;
  gap: 28px;
  margin-top: 30px;
}

.page-home .adaptation__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .stat-block {
  padding: 18px 14px;
  border: 1px solid var(--c-border);
  background: rgba(10, 17, 40, 0.5);
  text-align: center;
}

.page-home .stat-block__num {
  display: block;
  font-family: var(--f-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--c-purple-soft);
}

.page-home .stat-block__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--c-mist);
}

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

.page-home .adaptation__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--c-border);
}

.page-home .adaptation__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

/* ===== 联系与导出 ===== */
.page-home .contact-export {
  background: var(--c-space);
}

.page-home .contact-export__split {
  display: grid;
  gap: 32px;
}

.page-home .contact-export__content {
  min-width: 0;
}

.page-home .contact-export__content h2 {
  margin: 12px 0 14px;
  font-family: var(--f-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-white);
}

.page-home .contact-export__content p {
  color: var(--c-mist);
  line-height: 1.75;
}

.page-home .contact-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.page-home .contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-white);
  font-size: 15px;
}

.page-home .contact-list span {
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .contact-export__visual {
  min-width: 0;
}

.page-home .contact-export__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-home .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .page-home .hero-framed__body {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .version-update__split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .guide-client__split {
    grid-template-columns: 1fr 0.8fr;
    gap: 48px;
    align-items: center;
    overflow: hidden;
  }

  .page-home .contact-export__split {
    grid-template-columns: 1.1fr 0.7fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .adaptation__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-home .highlights__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
