/* =============================================
   page-home 专属样式 — 移动端优先
   作用域限定 .page-home
   ============================================= */
.page-home {
  --home-gold-glow: 0 0 40px rgba(255, 215, 0, 0.15);
  --home-card-bg: rgba(26, 32, 68, 0.7);
  --home-radius-card: var(--radius-lg, 24px);
  --home-radius-sm: var(--radius-md, 16px);
  --home-transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--color-text, #fff);
  background: var(--color-bg, #0A0F2E);
  overflow-x: hidden;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted, #C0C0C0);
  letter-spacing: 0.02em;
}
.page-home .breadcrumb span {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.12);
  color: var(--color-primary, #FFD700);
  font-weight: 500;
}

/* ---------- 分屏首屏 ---------- */
.page-home .hero-split {
  display: flex;
  flex-direction: column;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  position: relative;
  gap: 2.5rem;
}

/* --- 左半屏 --- */
.page-home .hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-home .hero-heading {
  font-family: var(--heading-font, 'ZCOOL KuaiLe', cursive);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary, #FFD700);
  margin: 0 0 0.25rem;
  line-height: 1.2;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.04em;
}
.page-home .hero-sub {
  font-family: var(--heading-font, 'ZCOOL KuaiLe', cursive);
  font-size: 1.1rem;
  color: var(--color-secondary, #FF0000);
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  -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(--color-text-muted, #C0C0C0);
  max-width: 480px;
  margin: 0 0 1.5rem;
}
.page-home .highlight-gold {
  color: var(--color-primary, #FFD700);
  font-weight: 600;
}
.page-home .caishen-figure {
  margin: 0;
  width: 100%;
  max-width: 320px;
  position: relative;
}
.page-home .caishen-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-glow, 0 0 20px rgba(255,215,0,0.25));
  transition: transform var(--home-transition), box-shadow var(--home-transition);
}
.page-home .caishen-img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

/* 浮动金币装饰 */
.page-home .coin-float {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.page-home .coin {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.25;
  animation: coinDrift 6s ease-in-out infinite;
}
.page-home .coin-1 { top: 8%; left: 5%; animation-delay: 0s; }
.page-home .coin-2 { top: 60%; right: 8%; animation-delay: 1.2s; font-size: 2.2rem; }
.page-home .coin-3 { bottom: 10%; left: 15%; animation-delay: 2.8s; font-size: 1.5rem; }
.page-home .coin-4 { top: 30%; right: 3%; animation-delay: 4s; }
@keyframes coinDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { transform: translateY(-20px) rotate(15deg); opacity: 0.4; }
}

/* --- 右半屏 --- */
.page-home .hero-right {
  position: relative;
  z-index: 1;
  background: var(--color-bg-light, #1A2044);
  border-radius: var(--home-radius-card);
  padding: 2rem 1.5rem;
  overflow: hidden;
  box-shadow: var(--home-gold-glow);
}
.page-home .wave-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255, 140, 0, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-home .announcement-title {
  font-family: var(--heading-font, 'ZCOOL KuaiLe', cursive);
  font-size: 1.5rem;
  color: var(--color-primary, #FFD700);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-home .announcement-title::before {
  content: "🎊";
  font-size: 1.4rem;
}
.page-home .announcement-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.page-home .announcement-scroll::-webkit-scrollbar {
  width: 4px;
}
.page-home .announcement-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.page-home .announcement-scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary, #FFD700);
  border-radius: 4px;
}
.page-home .announcement-item {
  background: rgba(10, 15, 46, 0.5);
  border-radius: var(--radius-sm, 16px);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: border-color var(--home-transition), background var(--home-transition);
}
.page-home .announcement-item[open] {
  background: rgba(10, 15, 46, 0.75);
  border-color: rgba(255, 215, 0, 0.3);
}
.page-home .announcement-summary {
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  color: var(--color-primary-light, #FFF8DC);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--home-transition);
}
.page-home .announcement-summary::-webkit-details-marker {
  display: none;
}
.page-home .announcement-summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-primary, #FFD700);
  transition: transform 0.3s;
}
.page-home .announcement-item[open] .announcement-summary::after {
  transform: rotate(180deg);
}
.page-home .announcement-summary:hover {
  color: var(--color-primary, #FFD700);
}
.page-home .announcement-detail {
  padding: 0 1.2rem 1rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted, #C0C0C0);
  border-top: 1px solid rgba(255, 215, 0, 0.08);
  padding-top: 0.75rem;
}
.page-home .coin-pile {
  margin: 1.5rem 0 0;
  text-align: center;
}
.page-home .coin-pile img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-sm, 16px);
  opacity: 0.6;
  transition: opacity var(--home-transition);
}
.page-home .coin-pile img:hover {
  opacity: 0.9;
}

/* ---------- 通用 section 标题 ---------- */
.page-home .section-title {
  font-family: var(--heading-font, 'ZCOOL KuaiLe', cursive);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary, #FFD700);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- 快速入口 ---------- */
.page-home .quick-entry {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.03) 100%);
}
.page-home .quick-entry .container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}
.page-home .quick-title {
  margin-bottom: 2rem;
}
.page-home .quick-title::after {
  content: "✨";
  display: block;
  font-size: 1.2rem;
  margin-top: 0.25rem;
  opacity: 0.6;
}
.page-home .entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.page-home .entry-card {
  background: var(--home-card-bg);
  border-radius: var(--home-radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.08);
  transition: transform var(--home-transition), box-shadow var(--home-transition), border-color var(--home-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-home .entry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow, 0 0 20px rgba(255,215,0,0.25));
  border-color: rgba(255, 215, 0, 0.25);
}
.page-home .entry-figure {
  margin: 0 0 1.25rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 215, 0, 0.15);
  transition: border-color var(--home-transition);
  background: var(--color-bg, #0A0F2E);
}
.page-home .entry-card:hover .entry-figure {
  border-color: var(--color-primary, #FFD700);
}
.page-home .entry-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .entry-heading {
  font-family: var(--heading-font, 'ZCOOL KuaiLe', cursive);
  font-size: 1.25rem;
  color: var(--color-primary-light, #FFF8DC);
  margin: 0 0 0.5rem;
}
.page-home .entry-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted, #C0C0C0);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 260px;
}
.page-home .entry-link {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FF8C00));
  color: var(--color-bg, #0A0F2E);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--home-transition), box-shadow var(--home-transition);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
}
.page-home .entry-link:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.4);
}
.page-home .entry-link:focus-visible {
  outline: 3px solid var(--color-primary, #FFD700);
  outline-offset: 3px;
}

/* ---------- 配置要求概览 ---------- */
.page-home .specs-overview {
  padding: 3rem 1.5rem 4rem;
  position: relative;
}
.page-home .specs-overview .container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-home .specs-title {
  margin-bottom: 0.25rem;
}
.page-home .specs-intro {
  font-size: 1rem;
  color: var(--color-text-muted, #C0C0C0);
  margin: 0 0 2rem;
  text-align: center;
}
.page-home .specs-list {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-home .spec-item {
  position: relative;
  background: var(--home-card-bg);
  border-radius: var(--radius-md, 16px);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.08);
  transition: border-color var(--home-transition), box-shadow var(--home-transition);
}
.page-home .spec-item:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.1);
}
.page-home .spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.page-home .spec-label {
  font-family: var(--heading-font, 'ZCOOL KuaiLe', cursive);
  font-size: 1.1rem;
  color: var(--color-primary-light, #FFF8DC);
}
.page-home .spec-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.15);
  color: var(--color-primary, #FFD700);
  letter-spacing: 0.04em;
}
.page-home .spec-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.page-home .spec-progress {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FF8C00));
  position: relative;
  transition: width 0.6s ease;
}
.page-home .spec-progress::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary, #FFD700);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}
.page-home .spec-tooltip {
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  background: var(--color-bg-light, #1A2044);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-sm, 12px);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--color-primary, #FFD700);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--home-transition), transform var(--home-transition);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.page-home .spec-item:hover .spec-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.page-home .specs-icon {
  margin: 2rem 0 0;
}
.page-home .specs-icon img {
  width: 80px;
  height: auto;
  border-radius: var(--radius-sm, 12px);
  opacity: 0.5;
  transition: opacity var(--home-transition);
}
.page-home .specs-icon img:hover {
  opacity: 0.85;
}

/* ---------- 桌面端 ( ≥768px ) ---------- */
@media (min-width: 768px) {
  .page-home .breadcrumb {
    padding: 1.5rem 2rem 0;
  }

  .page-home .hero-split {
    flex-direction: row;
    align-items: stretch;
    padding: 2rem 2rem 4rem;
    gap: 2rem;
  }

  .page-home .hero-left {
    flex: 0 0 52%;
    align-items: flex-start;
    text-align: left;
    padding-right: 1rem;
  }
  .page-home .hero-heading {
    font-size: 2.8rem;
  }
  .page-home .hero-sub {
    font-size: 1.3rem;
  }
  .page-home .hero-desc {
    font-size: 1.05rem;
  }
  .page-home .caishen-figure {
    max-width: 380px;
    margin: 0;
  }

  .page-home .hero-right {
    flex: 1;
    padding: 2rem 2rem;
  }
  .page-home .announcement-title {
    font-size: 1.6rem;
  }
  .page-home .announcement-scroll {
    max-height: 380px;
  }

  .page-home .coin-pile img {
    max-width: 240px;
  }

  .page-home .section-title {
    font-size: 2rem;
  }

  .page-home .quick-entry {
    padding: 4rem 2rem;
  }
  .page-home .entry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .page-home .entry-card {
    padding: 2.5rem 1.5rem;
  }

  .page-home .specs-overview {
    padding: 4rem 2rem 5rem;
  }
  .page-home .specs-list {
    gap: 1.8rem;
  }
  .page-home .spec-item {
    padding: 1.5rem 2rem;
  }
  .page-home .specs-icon img {
    width: 100px;
  }
}

/* ---------- 大桌面端 ( ≥1024px ) ---------- */
@media (min-width: 1024px) {
  .page-home .hero-split {
    padding: 2.5rem 2.5rem 5rem;
    gap: 3rem;
  }
  .page-home .hero-left {
    flex: 0 0 50%;
  }
  .page-home .hero-heading {
    font-size: 3.2rem;
  }
  .page-home .hero-sub {
    font-size: 1.5rem;
  }
  .page-home .caishen-figure {
    max-width: 440px;
  }

  .page-home .entry-grid {
    gap: 2.5rem;
  }
  .page-home .entry-card {
    padding: 3rem 2rem;
  }
}

/* ---------- 焦点样式 (键盘焦点) ---------- */
.page-home .entry-link:focus-visible,
.page-home .announcement-summary:focus-visible,
.page-home .spec-item:focus-within {
  outline: 3px solid var(--color-primary, #FFD700);
  outline-offset: 3px;
  border-radius: var(--radius-sm, 12px);
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .coin {
    animation: none !important;
  }
  .page-home .caishen-img,
  .page-home .entry-card,
  .page-home .entry-link,
  .page-home .spec-progress {
    transition: none !important;
  }
  .page-home .spec-tooltip {
    transition: none !important;
  }
}
