/* ===== 首页专属样式 .page-home ===== */
.page-home {
  --home-hero-min-h: min(100vh, 820px);
  --home-grid-gap: 16px;
  --home-card-radius: 8px;
  --home-stats-bg: #F5F5F5;
  --home-section-pad: clamp(48px, 10vw, 96px);
}

/* ---- 首屏 ---- */
.page-home__hero {
  position: relative;
  min-height: var(--home-hero-min-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #8B0000 0%, #1A1A1A 55%, #1A1A1A 100%);
  padding: 80px 0 60px;
}

.page-home__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.page-home__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.page-home__particle {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.5);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.3);
  animation: pageHomeParticle 8s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes pageHomeParticle {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0.3; }
  50% { transform: translate(20px, -30px) scale(1.2); opacity: 0.8; }
  100% { transform: translate(-10px, 20px) scale(0.9); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home__particle {
    animation: none;
    opacity: 0.4;
  }
}

.page-home__hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.page-home__hero-text {
  max-width: 680px;
}

.page-home__hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.page-home__hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin: 0 0 32px;
  max-width: 540px;
}

.page-home__hero-subtitle strong {
  color: #C9A96E;
  font-weight: 600;
}

.page-home__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home__hero-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--home-grid-gap);
  width: 100%;
}

/* ---- 分类卡片 ---- */
.page-home__category-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--home-card-radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25,0.1,0.25,1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.page-home__category-card:hover {
  transform: translateY(-4px);
  border-color: #C9A96E;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.page-home__category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.page-home__category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.page-home__category-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.page-home__category-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px;
  line-height: 1.3;
}

.page-home__category-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ---- 数据简报 ---- */
.page-home__stats {
  background: var(--home-stats-bg);
  padding: var(--home-section-pad) 0;
}

.page-home__stats .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-home__stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home__stats-item {
  text-align: center;
  padding: 24px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--home-card-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home__stats-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.page-home__stats-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #B22222;
  margin-bottom: 4px;
}

.page-home__stats-label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1A1A1A;
  font-weight: 500;
}

.page-home__stats-chart {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home__stats-chart img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--home-card-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ---- 品牌故事 ---- */
.page-home__brand {
  background: #1A1A1A;
  padding: var(--home-section-pad) 0;
}

.page-home__brand-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.page-home__brand-text {
  text-align: center;
  max-width: 640px;
}

.page-home__brand-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.page-home__brand-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin: 0 0 28px;
}

.page-home__brand-desc strong {
  color: #C9A96E;
  font-weight: 600;
}

.page-home__brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.page-home__brand-links .btn--ghost {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.25);
}

.page-home__brand-links .btn--ghost:hover,
.page-home__brand-links .btn--ghost:focus-visible {
  border-color: #C9A96E;
  color: #C9A96E;
}

.page-home__brand-visual {
  flex-shrink: 0;
  opacity: 0.6;
}

.page-home__brand-visual svg {
  width: 180px;
  height: 180px;
  display: block;
}

/* ---- CTA 区域 ---- */
.page-home__cta-section {
  background: #FFFFFF;
  padding: var(--home-section-pad) 0;
}

.page-home__cta-card {
  background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(178,34,34,0.2);
}

.page-home__cta-text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0 0 20px;
  font-weight: 500;
}

.page-home__cta-btn {
  font-size: 1rem;
  padding: 14px 36px;
  background: #C9A96E;
  color: #1A1A1A;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home__cta-btn:hover,
.page-home__cta-btn:focus-visible {
  background: #D4AF37;
  box-shadow: 0 4px 20px rgba(201,169,110,0.4);
}

/* ---- 桌面端媒体查询 ---- */
@media (min-width: 768px) {
  .page-home__hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .page-home__hero-text {
    flex: 0 0 38%;
    max-width: 420px;
    padding-top: 24px;
  }

  .page-home__hero-categories {
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .page-home__category-card {
    padding: 24px 16px;
  }

  .page-home__stats .container {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .page-home__stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    flex: 1;
  }

  .page-home__stats-chart {
    flex: 0 0 280px;
  }

  .page-home__stats-chart img {
    max-width: 260px;
  }

  .page-home__brand-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .page-home__brand-text {
    text-align: left;
  }

  .page-home__brand-links {
    justify-content: flex-start;
  }

  .page-home__cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 48px 56px;
  }

  .page-home__cta-text {
    margin: 0;
    font-size: 1.25rem;
  }

  .page-home__cta-btn {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .page-home__hero-categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .page-home__hero-text {
    flex: 0 0 34%;
  }
}

@media (min-width: 1280px) {
  .page-home__hero-categories {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---- 动效：滚动显现 ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25,0.1,0.25,1), transform 0.6s cubic-bezier(0.25,0.1,0.25,1);
}

[data-reveal-visible] {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay] {
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal-visible][data-reveal-delay] {
  transition-delay: var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home__particle {
    animation: none;
    opacity: 0.35;
  }
}

/* ---- 分类卡片中图片适配 ---- */
.page-home__category-icon img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .page-home__category-icon img {
    width: 56px;
    height: 56px;
  }
}

/* ---- 底部固定条内图片 ---- */
.footer__bottom-bar .footer__update-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
}

/* ---- 弹窗内列表 ---- */
.update-modal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.update-modal__list li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1A1A1A;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.update-modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9A96E;
}

.update-modal__list li:last-child {
  border-bottom: none;
}

/* ---- 首屏CTA按钮 --- */
.btn--primary {
  background: #B22222;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #8B0000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(178,34,34,0.3);
}

.btn--ghost {
  background: transparent;
  color: #1A1A1A;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: #B22222;
  color: #B22222;
  transform: translateY(-1px);
}

.page-home {
  --d: inherit;
  --reveal-delay: 0.3s;
  --s: 1rem;
  --x: inherit;
  --y: inherit;
}
