/* ===== 首页专属样式 ===== */
.page-home {
  background: var(--c-light);
  color: var(--c-dark);
}

.page-home * {
  box-sizing: border-box;
}

/* 首屏 */
.page-home .hero-band {
  position: relative;
  overflow: hidden;
  padding: 28px 0 48px;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(35, 78, 130, 0.5), transparent 60%), var(--c-primary);
  color: var(--c-white);
}

.page-home .hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 242, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 242, 242, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
  mask-image: linear-gradient(to right, transparent, #000 30%);
}

.page-home .hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .coord-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .coord-dot:hover {
  background: var(--c-accent);
  color: var(--c-primary);
  transform: translateY(-2px);
}

.page-home .hero-content {
  min-width: 0;
}

.page-home .hero-content .breadcrumb {
  margin-bottom: 20px;
}

.page-home .hero-content .breadcrumb a {
  color: var(--c-accent-soft);
}

.page-home .hero-content .breadcrumb-coord {
  color: var(--c-white);
  opacity: 0.7;
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.1;
  margin: 16px 0;
  color: var(--c-white);
  letter-spacing: 0.01em;
}

.page-home .page-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(242, 242, 242, 0.85);
  max-width: 620px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero-actions .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--c-white);
  background: transparent;
}

.page-home .hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--c-white);
}

.page-home .hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  background: var(--c-primary-2);
  box-shadow: 0 24px 60px rgba(6, 18, 38, 0.45);
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), transparent 45%);
  pointer-events: none;
}

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

.page-home .hero-data-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
}

.page-home .flow-pulse {
  animation: homePulse 2.4s var(--ease) infinite;
}

@keyframes homePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* 数据与指南主题带 */
.page-home .themes-band {
  padding: 56px 0 64px;
  background: var(--c-light);
}

.page-home .themes-grid {
  display: grid;
  gap: 24px;
}

.page-home .theme-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
}

.page-home .theme-block--data {
  background: linear-gradient(145deg, var(--c-primary-2), var(--c-primary-deep));
  color: var(--c-white);
}

.page-home .theme-block--guide {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-dark);
}

.page-home .theme-block--guide::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.06);
  pointer-events: none;
}

.page-home .theme-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin: 8px 0 12px;
}

.page-home .theme-block-lead {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  opacity: 0.8;
}

.page-home .data-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.page-home .data-stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .data-stats li:last-child {
  border-bottom: 0;
}

.page-home .data-label {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(242, 242, 242, 0.7);
}

.page-home .data-num {
  font-family: var(--font-data);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  font-weight: 500;
  color: var(--c-accent);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .data-stats li:hover .data-num {
  color: var(--c-accent-soft);
  transform: translateY(-2px);
}

.page-home .media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-top: 8px;
}

.page-home .media-frame--dark {
  background: var(--c-primary-deep);
  box-shadow: 0 12px 30px rgba(6, 18, 38, 0.5);
}

.page-home .media-frame--light {
  background: var(--c-light);
}

.page-home .theme-block--data .media-frame {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

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

.page-home .guide-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 14px;
}

.page-home .guide-features li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.5;
}

.page-home .guide-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-accent-soft), var(--c-accent));
  box-shadow: 0 0 0 5px rgba(255, 107, 0, 0.12);
}

.page-home .theme-block--guide .btn {
  margin-bottom: 24px;
}

/* 最新动态与版本 */
.page-home .updates-section {
  position: relative;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 64px 0 72px;
}

.page-home .updates-section::before {
  content: "";
  display: block;
  height: 2px;
  max-width: 1200px;
  margin: 0 auto 40px;
  background: repeating-linear-gradient(90deg, var(--c-primary-4) 0 10px, transparent 10px 20px);
}

.page-home .updates-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.page-home .updates-head .page-lead {
  color: rgba(242, 242, 242, 0.7);
  max-width: 560px;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .updates-section .chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--c-white);
}

.page-home .updates-section .chip:hover,
.page-home .updates-section .chip.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

.page-home .home-stream {
  display: grid;
  gap: 28px;
}

.page-home .home-update-list {
  display: grid;
  gap: 16px;
}

.page-home .update-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-primary-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .update-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.45);
}

.page-home .update-card .tag {
  background: rgba(255, 107, 0, 0.12);
  color: var(--c-accent-soft);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.page-home .update-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.page-home .update-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(242, 242, 242, 0.7);
  margin: 0 0 4px;
}

.page-home .update-card a {
  display: inline-block;
  color: var(--c-accent-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-top: auto;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.page-home .update-card a:hover {
  border-bottom-color: var(--c-accent-soft);
}

.page-home .stream-aside {
  background: var(--c-primary-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.page-home .stream-aside h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 4px 0 16px;
}

.page-home .stream-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.page-home .stream-aside a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: rgba(242, 242, 242, 0.85);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .stream-aside a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
}

/* 下载 CTA */
.page-home .download-section {
  padding: 64px 0 72px;
  background: var(--c-light);
}

.page-home .download-card {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  gap: 28px;
  box-shadow: 0 24px 60px rgba(10, 30, 60, 0.08);
  border: 1px solid var(--c-line);
}

.page-home .download-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 8px 0 16px;
}

.page-home .download-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0 0 24px;
  max-width: 520px;
}

.page-home .download-img {
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-primary);
  aspect-ratio: 1 / 2;
  box-shadow: 0 20px 50px rgba(10, 30, 60, 0.18);
}

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

/* 桌面端布局 */
@media (min-width: 900px) {
  .page-home .hero-band {
    padding: 40px 0 64px;
  }

  .page-home .hero-layout {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas: "rail content media";
    gap: 32px;
    align-items: center;
  }

  .page-home .home-rail {
    grid-area: rail;
    flex-direction: column;
    justify-content: flex-start;
    width: 44px;
    height: 320px;
    padding: 12px 0;
    border-radius: var(--radius-pill);
    gap: 12px;
  }

  .page-home .coord-dot {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .page-home .hero-content {
    grid-area: content;
  }

  .page-home .hero-media {
    grid-area: media;
  }

  .page-home .themes-band {
    padding: 72px 0 80px;
  }

  .page-home .themes-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .page-home .theme-block {
    padding: 36px;
  }

  .page-home .updates-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .home-stream {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

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

  .page-home .download-card {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 40px;
    padding: 40px;
  }
}
