.page-home {
  --home-hero-min-h: 100vh;
  --home-panel-pad: clamp(20px, 4vw, 48px);
  --home-grid-line: rgba(212, 175, 55, 0.18);
}

/* ===== Hero 首屏 ===== */
.page-home .hero {
  position: relative;
  min-height: var(--home-hero-min-h);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 32px) 0 48px;
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: 22%;
  right: 6%;
  width: 12px;
  height: 12px;
  background: var(--color-neon-purple);
  z-index: 3;
  box-shadow: 0 0 24px rgba(138, 43, 226, 0.55);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
  z-index: 3;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 58, 0.25) 0%, rgba(11, 27, 58, 0.72) 62%, #0B1B3A 100%);
}

.page-home .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

.page-home .hero-orbit {
  position: absolute;
  right: -140px;
  bottom: -100px;
  width: 380px;
  height: 380px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .breadcrumb {
  margin-bottom: 28px;
  color: var(--color-text-secondary);
}

.page-home .breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.page-home .breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-border-strong);
}

.page-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 16px;
}

.page-home .hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.page-home .hero h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  margin: 0 0 20px;
  max-width: 780px;
  text-wrap: balance;
}

.page-home .hero-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 0 32px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-home .hero-actions .btn {
  padding: 14px 26px;
  font-size: 1rem;
}

.page-home .hero-cta {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.page-home .hero-cta:hover,
.page-home .hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* ===== 快速索引导航 ===== */
.page-home .quick-index-section {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.page-home .quick-index {
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .quick-index-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.page-home .quick-index-item:last-child {
  border-bottom: none;
}

.page-home .quick-index-item:hover,
.page-home .quick-index-item:focus-visible {
  background: var(--color-bg-card);
  border-color: var(--color-border-strong);
}

.page-home .quick-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.page-home .quick-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ===== 游戏资料库概览 ===== */
.page-home .library-section {
  position: relative;
  padding: 56px 0 64px;
}

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

.page-home .library-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-home .library-stats {
  display: flex;
  gap: 16px;
}

.page-home .stat-item {
  flex: 1;
  padding: 18px 16px;
  background: var(--color-bg-card);
  border-left: 2px solid var(--color-gold);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-gold-light);
  display: block;
  line-height: 1.2;
}

.page-home .stat-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  display: block;
  margin-top: 4px;
}

.page-home .library-content .index-label,
.page-home .help-content .index-label,
.page-home .news-section .index-label,
.page-home .promise-content .index-label {
  display: inline-block;
  margin-bottom: 10px;
}

.page-home .library-content h2,
.page-home .help-content h2,
.page-home .news-section h2,
.page-home .promise-content h2 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 18px;
}

.page-home .library-content p,
.page-home .help-content p,
.page-home .promise-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

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

.page-home .category-item {
  background: var(--color-bg-card);
  border: 1px solid transparent;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.page-home .category-item:hover,
.page-home .category-item:focus-within {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.page-home .category-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.88rem;
}

.page-home .category-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-neon-purple);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.page-home .library-meta {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

/* ===== 图片框通用 ===== */
.page-home .img-frame {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.page-home .img-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-top: 1px solid var(--color-gold);
  border-left: 1px solid var(--color-gold);
  z-index: 2;
}

.page-home .img-frame::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-bottom: 1px solid var(--color-gold);
  border-right: 1px solid var(--color-gold);
  z-index: 2;
}

.page-home .img-frame-index {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-gold-light);
  z-index: 2;
  letter-spacing: 0.1em;
}

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

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

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

.page-home .promise-img img {
  aspect-ratio: 8 / 5;
}

/* ===== 帮助文档区 ===== */
.page-home .help-section {
  position: relative;
  padding: 56px 0 64px;
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 70%);
}

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

.page-home .help-points {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .help-points li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-primary);
  font-size: 0.92rem;
}

.page-home .help-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  background: var(--color-neon-purple);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.page-home .help-cta {
  margin-bottom: 16px;
}

.page-home .help-contact-note {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.page-home .help-contact-note a {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== 最近动态区 ===== */
.page-home .news-section {
  padding: 64px 0;
}

.page-home .news-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  border-top: 1px solid var(--color-border);
}

.page-home .news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.page-home .news-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 8px;
  white-space: nowrap;
}

.page-home .news-title {
  flex: 1 1 auto;
  min-width: 200px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: color var(--transition-base);
}

.page-home .news-title:hover,
.page-home .news-title:focus-visible {
  color: var(--color-gold-light);
}

.page-home .news-meta {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  width: 100%;
  padding-left: 2px;
}

.page-home .news-footer {
  margin-top: 28px;
}

/* ===== 品牌承诺区 ===== */
.page-home .promise-section {
  padding: 64px 0 72px;
  border-top: 1px solid var(--color-border);
}

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

.page-home .promise-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

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

/* ===== 返回顶部 ===== */
.page-home .back-top-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 48px;
}

.page-home .back-top-wrap .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ===== 平板及以上 ===== */
@media (min-width: 768px) {
  .page-home .quick-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .quick-index-item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .page-home .quick-index-item:nth-child(3) {
    border-bottom: none;
  }

  .page-home .library-stats {
    gap: 20px;
  }

  .page-home .help-points {
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
  }

  .page-home .news-meta {
    width: auto;
    flex: 0 0 auto;
  }

  .page-home .hero-orbit {
    width: 480px;
    height: 480px;
    right: -100px;
    bottom: -120px;
  }
}

/* ===== 桌面 ===== */
@media (min-width: 1024px) {
  .page-home .hero {
    padding-bottom: 64px;
  }

  .page-home .hero-orbit {
    right: -60px;
    bottom: -140px;
  }

  .page-home .quick-index {
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
  }

  .page-home .quick-index-item {
    border-right: 1px solid var(--color-border);
    border-bottom: none;
    padding: 28px 24px;
  }

  .page-home .quick-index-item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .page-home .quick-index-item:last-child {
    border-right: none;
  }

  .page-home .library-section {
    padding: 72px 0 80px;
  }

  .page-home .library-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }

  .page-home .help-section {
    padding: 72px 0 80px;
  }

  .page-home .help-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }

  .page-home .help-visual {
    order: 2;
  }

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

  .page-home .news-list {
    margin-top: 40px;
  }

  .page-home .promise-section {
    padding: 80px 0 88px;
  }

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

  .page-home .promise-content p {
    font-size: 1.05rem;
  }
}
