/* ================================================================
   page-home – 首页专属样式
   作用域：.page-home
   ================================================================ */
.page-home {
  --hero-gold: #D4AF37;
  --hero-purple: #7B2D8E;
  --hero-cyan: #00CED1;
  --hero-bg-dark: #0A0B1A;
  --hero-surface: #1A1C2E;
  --hero-border: #2A2D4A;
  --hero-text-muted: #B0B0C0;
  --hero-glow: 0 0 12px rgba(212,175,55,0.3);
  --hero-transition: 0.4s cubic-bezier(0.4,0,0.2,1);
  --hero-radius: 12px;
}

/* ---- 首屏框景 ---- */
.page-home .hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg-dark);
  overflow: hidden;
  padding: 2rem 1rem;
}

.page-home .hero-frame {
  position: relative;
  width: 100%;
  max-width: 1120px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-surface);
  border-radius: var(--hero-radius);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px var(--hero-border), 0 0 40px rgba(212,175,55,0.08);
  overflow: hidden;
}

/* 金色渐变边框（框景核心） */
.page-home .hero-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--hero-radius) + 3px);
  background: linear-gradient(135deg, var(--hero-gold), var(--hero-purple), var(--hero-cyan), var(--hero-gold));
  background-size: 400% 400%;
  z-index: 0;
  animation: heroBorderShift 8s ease infinite;
  pointer-events: none;
}

@keyframes heroBorderShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page-home .hero-frame::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--hero-radius) - 1px);
  background: var(--hero-surface);
  z-index: 1;
}

/* 粒子 canvas */
.page-home .hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.page-home .hero-bg-fallback {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  display: none;
}

/* 首屏内容 */
.page-home .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 720px;
}

.page-home .hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-gold);
  border: 1px solid var(--hero-gold);
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(212,175,55,0.08);
  text-shadow: 0 0 6px rgba(212,175,55,0.3);
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(212,175,55,0.25), 0 0 60px rgba(212,175,55,0.1);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.page-home .hero-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-gold);
  margin: 0 0 1rem;
  text-shadow: var(--hero-glow);
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  color: var(--hero-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.page-home .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-home .hero-actions .btn-gold {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-bg-dark);
  background: var(--hero-gold);
  border-radius: 4px;
  text-decoration: none;
  transition: var(--hero-transition);
  box-shadow: 0 0 20px rgba(212,175,55,0.25);
}
.page-home .hero-actions .btn-gold:hover,
.page-home .hero-actions .btn-gold:focus-visible {
  box-shadow: 0 0 40px rgba(212,175,55,0.5);
  transform: translateY(-2px);
}

.page-home .hero-actions .btn-outline {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-cyan);
  border: 2px solid var(--hero-cyan);
  border-radius: 4px;
  text-decoration: none;
  transition: var(--hero-transition);
  background: transparent;
}
.page-home .hero-actions .btn-outline:hover,
.page-home .hero-actions .btn-outline:focus-visible {
  background: rgba(0,206,209,0.1);
  box-shadow: 0 0 20px rgba(0,206,209,0.25);
  transform: translateY(-2px);
}

/* 框景角标 */
.page-home .hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 4;
  border-color: var(--hero-gold);
  border-style: solid;
  opacity: 0.7;
}
.page-home .hero-corner.top-left {
  top: 10px; left: 10px;
  border-width: 2px 0 0 2px;
}
.page-home .hero-corner.top-right {
  top: 10px; right: 10px;
  border-width: 2px 2px 0 0;
}
.page-home .hero-corner.bottom-left {
  bottom: 10px; left: 10px;
  border-width: 0 0 2px 2px;
}
.page-home .hero-corner.bottom-right {
  bottom: 10px; right: 10px;
  border-width: 0 2px 2px 0;
}

/* 刻度线 */
.page-home .hero-tick {
  position: absolute;
  z-index: 4;
  background: var(--hero-gold);
  opacity: 0.25;
}
.page-home .hero-tick.tick-top,
.page-home .hero-tick.tick-bottom {
  left: 20%;
  right: 20%;
  height: 1px;
}
.page-home .hero-tick.tick-top { top: 6px; }
.page-home .hero-tick.tick-bottom { bottom: 6px; }
.page-home .hero-tick.tick-left,
.page-home .hero-tick.tick-right {
  top: 20%;
  bottom: 20%;
  width: 1px;
}
.page-home .hero-tick.tick-left { left: 6px; }
.page-home .hero-tick.tick-right { right: 6px; }

.page-home .hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.5;
  animation: heroScrollPulse 2.4s ease infinite;
}
@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}
.page-home .hero-scroll-hint .scroll-line {
  display: block;
  width: 1px;
  height: 32px;
  background: var(--hero-gold);
}
.page-home .hero-scroll-hint .scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hero-text-muted);
}

/* ---- 通用 section 头 ---- */
.page-home .page-section {
  padding: 5rem 1rem;
  background: var(--hero-bg-dark);
  position: relative;
}

.page-home .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-home .section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(212,175,55,0.15);
  margin: 0 0 0.6rem;
  position: relative;
  display: inline-block;
}

.page-home .section-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--hero-gold), var(--hero-purple), var(--hero-cyan), transparent);
  border-radius: 2px;
}

.page-home .title-accent {
  color: var(--hero-gold);
  text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

.page-home .section-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--hero-text-muted);
  max-width: 480px;
  margin: 0.6rem auto 0;
  line-height: 1.6;
}

/* ---- 直连入口 ---- */
.page-home .direct-section {
  background: var(--hero-bg-dark);
  padding-top: 3rem;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.page-home .filter-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hero-text-muted);
  background: transparent;
  border: 1px solid var(--hero-border);
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--hero-transition);
}
.page-home .filter-tag:hover {
  border-color: var(--hero-gold);
  color: var(--hero-gold);
}
.page-home .filter-tag.active {
  background: rgba(212,175,55,0.12);
  border-color: var(--hero-gold);
  color: var(--hero-gold);
  text-shadow: 0 0 6px rgba(212,175,55,0.3);
}

.page-home .entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-home .entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.6rem 1rem;
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--hero-transition);
  position: relative;
  overflow: hidden;
}
.page-home .entry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(123,45,142,0.05));
  opacity: 0;
  transition: var(--hero-transition);
}
.page-home .entry-card:hover::before {
  opacity: 1;
}
.page-home .entry-card:hover {
  border-color: var(--hero-gold);
  box-shadow: 0 0 24px rgba(212,175,55,0.1);
}

.page-home .entry-icon {
  font-size: 2rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.page-home .entry-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.page-home .entry-brief {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--hero-text-muted);
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.page-home .entry-arrow {
  font-size: 1.2rem;
  color: var(--hero-gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--hero-transition);
  position: relative;
  z-index: 1;
}
.page-home .entry-card:hover .entry-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- 平台分类 ---- */
.page-home .platform-section {
  background: var(--hero-surface);
}

.page-home .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.page-home .category-card {
  background: var(--hero-bg-dark);
  border: 1px solid var(--hero-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--hero-transition);
  display: flex;
  flex-direction: column;
}
.page-home .category-card:hover {
  border-color: var(--hero-gold);
  box-shadow: 0 0 30px rgba(212,175,55,0.08);
}

.page-home .category-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--hero-surface);
}
.page-home .category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.page-home .category-card:hover .category-card-img img {
  transform: scale(1.04);
}

.page-home .category-card-body {
  padding: 1.4rem 1.2rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .category-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0;
}

.page-home .category-card-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--hero-text-muted);
  margin: 0;
  flex: 1;
}

.page-home .category-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.page-home .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hero-cyan);
  background: rgba(0,206,209,0.08);
  border: 1px solid rgba(0,206,209,0.2);
  padding: 0.15rem 0.7rem;
  border-radius: 3px;
}

/* ---- 查询直达 ---- */
.page-home .query-section {
  background: var(--hero-bg-dark);
}

.page-home .query-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.page-home .query-visual {
  width: 100%;
  overflow: hidden;
}

.page-home .timeline-wrapper {
  position: relative;
  padding: 1rem 0;
}

.page-home .timeline-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--hero-border);
}

.page-home .timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}

.page-home .tl-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hero-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home .query-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
  max-width: 560px;
}

.page-home .query-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.page-home .query-icon {
  font-size: 1.6rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.page-home .query-feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.page-home .query-feature-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hero-text-muted);
  margin: 0;
}

.page-home .query-cta {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-bg-dark);
  background: var(--hero-gold);
  border-radius: 4px;
  text-decoration: none;
  transition: var(--hero-transition);
  box-shadow: 0 0 16px rgba(212,175,55,0.2);
}
.page-home .query-cta:hover,
.page-home .query-cta:focus-visible {
  box-shadow: 0 0 36px rgba(212,175,55,0.4);
  transform: translateY(-2px);
}

/* ---- 品牌承诺 ---- */
.page-home .brand-section {
  background: var(--hero-surface);
  padding-bottom: 4rem;
}

.page-home .promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.8rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.page-home .promise-card {
  background: var(--hero-bg-dark);
  border: 1px solid var(--hero-border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--hero-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.page-home .promise-card:hover {
  border-color: var(--hero-gold);
  box-shadow: 0 0 30px rgba(212,175,55,0.06);
}

.page-home .promise-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .promise-icon-wrap svg {
  width: 48px;
  height: 48px;
}

.page-home .promise-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0;
}

.page-home .promise-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--hero-text-muted);
  margin: 0;
  max-width: 280px;
}

.page-home .brand-symbol-wrap {
  text-align: center;
  padding: 1rem 0 0;
}

.page-home .brand-symbol {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.7;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(212,175,55,0.08);
}

/* ---- 响应式 桌面端（≥768px） ---- */
@media (min-width: 768px) {
  .page-home .hero-section {
    padding: 3rem 2rem;
  }

  .page-home .hero-content {
    padding: 4rem 3rem;
  }

  .page-home .entry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

  .page-home .query-layout {
    flex-direction: row;
    align-items: center;
  }

  .page-home .query-visual {
    flex: 1.2;
  }

  .page-home .query-info {
    flex: 1;
  }

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

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

  .page-home .entry-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 780px;
  }

  .page-home .hero-title {
    font-size: 4.6rem;
  }
}

/* ---- 移动端微调 ---- */
@media (max-width: 480px) {
  .page-home .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-home .hero-actions .btn-gold,
  .page-home .hero-actions .btn-outline {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .page-home .filter-bar {
    gap: 0.4rem;
  }

  .page-home .filter-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .page-home .entry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .page-home .entry-card {
    padding: 1.2rem 0.6rem;
  }

  .page-home .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-home .promise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
