.page-home {
  --home-accent-glow: rgba(212, 175, 55, 0.15);
  --home-card-bg: rgba(17, 34, 64, 0.65);
  --home-border-glow: rgba(212, 175, 55, 0.25);
  --home-star-size: 3px;
  --home-orbit-speed: 24s;
  position: relative;
  width: 100%;
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto;
  padding: 0 var(--gap, 1.5rem) calc(var(--gap, 1.5rem) * 3);
  color: var(--text-primary, #E2E8F0);
  font-family: var(--font-body, 'Noto Sans SC', sans-serif);
}

/* 面包屑 */
.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #94A3B8);
  border-bottom: 1px solid var(--border, #1E3A5F);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-family: var(--font-mono, 'Fira Code', monospace);
}
.page-home .breadcrumb-current {
  opacity: 0.7;
}

/* 首屏分屏 */
.page-home .hero-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.page-home .hero-left {
  flex: 1 1 100%;
  z-index: 2;
}
.page-home .hero-label {
  display: inline-block;
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent, #D4AF37);
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent, #D4AF37);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.06);
}
.page-home .hero-headline {
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--text-primary, #E2E8F0) 0%, var(--accent, #D4AF37) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-home .hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary, #94A3B8);
  max-width: 32rem;
  margin: 0 0 1.5rem;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius, 6px);
  text-decoration: none;
  transition: var(--transition, 0.3s cubic-bezier(0.4,0,0.2,1));
  cursor: pointer;
  border: 1px solid transparent;
}
.page-home .btn-accent {
  background: var(--accent, #D4AF37);
  color: var(--primary, #0B1A3A);
  border-color: var(--accent, #D4AF37);
}
.page-home .btn-accent:hover {
  background: transparent;
  color: var(--accent, #D4AF37);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}
.page-home .btn-outline {
  background: transparent;
  color: var(--text-primary, #E2E8F0);
  border-color: var(--border, #1E3A5F);
}
.page-home .btn-outline:hover {
  border-color: var(--accent, #D4AF37);
  color: var(--accent, #D4AF37);
  background: rgba(212, 175, 55, 0.06);
}
.page-home .hero-right {
  flex: 1 1 100%;
  position: relative;
  min-height: 320px;
  border-radius: var(--radius, 6px);
  overflow: hidden;
}
.page-home .hero-bg {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius, 6px);
  display: block;
  position: relative;
  z-index: 0;
}

/* 星轨动画 */
.page-home .star-trail {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.page-home .orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: home-spin var(--home-orbit-speed) linear infinite;
}
.page-home .orbit-1 {
  width: 90%;
  height: 90%;
  border-color: rgba(212, 175, 55, 0.08);
  animation-duration: 32s;
  animation-direction: reverse;
}
.page-home .orbit-2 {
  width: 65%;
  height: 65%;
  border-color: rgba(212, 175, 55, 0.12);
  animation-duration: 22s;
  border-style: dashed;
}
.page-home .orbit-3 {
  width: 40%;
  height: 40%;
  border-color: rgba(212, 175, 55, 0.18);
  animation-duration: 14s;
  border-width: 2px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.05), inset 0 0 30px rgba(212, 175, 55, 0.03);
}
.page-home .orbit::before {
  content: '';
  position: absolute;
  width: var(--home-star-size);
  height: var(--home-star-size);
  background: var(--accent, #D4AF37);
  border-radius: 50%;
  top: -1.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}
.page-home .star-dot {
  position: absolute;
  width: var(--home-star-size);
  height: var(--home-star-size);
  background: var(--accent, #D4AF37);
  border-radius: 50%;
  animation: home-twinkle 3s ease-in-out infinite alternate;
}
.page-home .dot-1 { top: 12%; left: 20%; animation-delay: 0s; opacity: 0.6; }
.page-home .dot-2 { top: 30%; right: 15%; animation-delay: 1.2s; opacity: 0.8; width: 4px; height: 4px; }
.page-home .dot-3 { bottom: 20%; left: 30%; animation-delay: 0.6s; opacity: 0.5; }
.page-home .dot-4 { bottom: 35%; right: 25%; animation-delay: 2s; opacity: 0.7; }
.page-home .dot-5 { top: 55%; left: 10%; animation-delay: 0.3s; opacity: 0.4; width: 2px; height: 2px; }
.page-home .dot-6 { top: 15%; right: 35%; animation-delay: 1.8s; opacity: 0.9; width: 5px; height: 5px; box-shadow: 0 0 12px rgba(212,175,55,0.6); }

@keyframes home-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes home-twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* 编号章节 */
.page-home .section-numbered {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border, #1E3A5F);
  position: relative;
}
.page-home .section-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.page-home .section-number {
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent, #D4AF37);
  opacity: 0.35;
  letter-spacing: -0.03em;
}
.page-home .section-number-label {
  font-family: var(--font-mono, 'Fira Code', monospace);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent, #D4AF37);
  opacity: 0.6;
  transform: translateY(0.15rem);
}
.page-home .section-title {
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--text-primary, #E2E8F0);
  letter-spacing: 0.02em;
}
.page-home .section-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary, #94A3B8);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

/* 数据卡片轮播 */
.page-home .data-carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
}
.page-home .data-carousel::-webkit-scrollbar {
  display: none;
}
.page-home .data-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: var(--home-card-bg);
  border: 1px solid var(--border, #1E3A5F);
  border-radius: var(--radius, 6px);
  padding: 1.2rem 1rem 1rem;
  position: relative;
  transition: var(--transition, 0.3s cubic-bezier(0.4,0,0.2,1));
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.page-home .data-card:hover {
  border-color: var(--home-border-glow);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px var(--home-accent-glow);
  transform: translateY(-3px);
}
.page-home .card-icon {
  color: var(--accent, #D4AF37);
  opacity: 0.7;
  margin-bottom: 0.3rem;
}
.page-home .card-label {
  font-family: var(--font-mono, 'Fira Code', monospace);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary, #94A3B8);
}
.page-home .card-value {
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #E2E8F0);
  letter-spacing: 0.02em;
}
.page-home .card-detail {
  font-size: 0.8rem;
  color: var(--text-secondary, #94A3B8);
  margin: 0;
  line-height: 1.4;
}
.page-home .card-img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 0.4rem;
  opacity: 0.85;
  transition: var(--transition, 0.3s);
}
.page-home .data-card:hover .card-img {
  opacity: 1;
}
.page-home .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 30, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition, 0.3s);
  border-radius: var(--radius, 6px);
}
.page-home .data-card:hover .card-overlay {
  opacity: 1;
}
.page-home .overlay-text {
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #D4AF37);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--accent, #D4AF37);
  padding-bottom: 0.2rem;
}
.page-home .carousel-hint {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.page-home .hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border, #1E3A5F);
  transition: var(--transition, 0.3s);
}
.page-home .hint-dot.active {
  background: var(--accent, #D4AF37);
  width: 18px;
  border-radius: 3px;
}

/* 资料库入口 */
.page-home .library-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.page-home .library-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.2rem 1rem;
  background: var(--home-card-bg);
  border: 1px solid var(--border, #1E3A5F);
  border-radius: var(--radius, 6px);
  text-decoration: none;
  transition: var(--transition, 0.3s);
  color: var(--text-primary, #E2E8F0);
  backdrop-filter: blur(4px);
}
.page-home .library-card:hover {
  border-color: var(--home-border-glow);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3), 0 0 16px var(--home-accent-glow);
  transform: translateY(-2px);
}
.page-home .library-card-icon {
  color: var(--accent, #D4AF37);
  opacity: 0.6;
}
.page-home .library-card-title {
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.page-home .library-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary, #94A3B8);
  line-height: 1.4;
}

/* 侧栏导出 */
.page-home .export-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.page-home .export-text {
  flex: 1;
}
.page-home .export-text .section-desc {
  margin-bottom: 1.2rem;
}
.page-home .export-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 240px;
  opacity: 0.3;
  color: var(--accent, #D4AF37);
  align-self: center;
}
.page-home .export-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 页面上下文装饰 */
.page-home .page-context {
  display: none;
  position: fixed;
  right: 1.2rem;
  bottom: 2rem;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.3;
}
.page-home .context-marker {
  font-family: var(--font-heading, 'Orbitron', sans-serif);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent, #D4AF37);
}
.page-home .context-line {
  width: 40px;
  height: 1px;
  background: var(--accent, #D4AF37);
}
.page-home .context-label {
  font-family: var(--font-mono, 'Fira Code', monospace);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary, #94A3B8);
}

/* 桌面端响应式 */
@media (min-width: 768px) {
  .page-home {
    padding: 0 calc(var(--gap, 1.5rem) * 2) calc(var(--gap, 1.5rem) * 4);
  }
  .page-home .hero-split {
    flex-direction: row;
    align-items: stretch;
    gap: 2.5rem;
    min-height: 70vh;
  }
  .page-home .hero-left {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
  }
  .page-home .hero-right {
    flex: 0 0 40%;
    min-height: 460px;
  }
  .page-home .hero-bg {
    min-height: 460px;
  }
  .page-home .hero-headline {
    font-size: 3.2rem;
  }
  .page-home .data-carousel {
    gap: 1.5rem;
    padding: 0.5rem 0 1.5rem;
  }
  .page-home .data-card {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start;
    padding: 1.5rem;
  }
  .page-home .card-value {
    font-size: 1.5rem;
  }
  .page-home .card-img {
    max-height: 110px;
  }
  .page-home .card-overlay {
    opacity: 0;
  }
  .page-home .data-card:hover .card-overlay {
    opacity: 1;
  }
  .page-home .library-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  .page-home .library-card {
    padding: 1.5rem;
  }
  .page-home .export-content {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
  .page-home .export-visual {
    max-width: 200px;
    opacity: 0.4;
  }
  .page-home .section-numbered {
    margin-top: 4.5rem;
    padding-top: 2.5rem;
  }
  .page-home .section-number {
    font-size: 3.8rem;
  }
  .page-home .carousel-hint {
    display: none;
  }
  .page-home .page-context {
    right: 2rem;
    bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-headline {
    font-size: 3.8rem;
  }
  .page-home .hero-left {
    flex: 0 0 52%;
  }
  .page-home .hero-right {
    flex: 0 0 44%;
    min-height: 520px;
  }
  .page-home .hero-bg {
    min-height: 520px;
  }
  .page-home .data-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
  .page-home .card-value {
    font-size: 1.7rem;
  }
  .page-home .library-grid {
    gap: 1.5rem;
  }
}
@media (min-width: 1440px) {
  .page-home .hero-headline {
    font-size: 4.2rem;
  }
  .page-home .hero-right {
    min-height: 580px;
  }
  .page-home .hero-bg {
    min-height: 580px;
  }
}
