.page-home {
  --home-gap: 24px;
  --home-glass-bg: rgba(16, 42, 76, 0.55);
  --home-glass-border: rgba(232, 240, 254, 0.12);
  --home-line: rgba(26, 75, 140, 0.4);
  --home-line-strong: rgba(26, 75, 140, 0.6);

  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 45% at 85% 8%, rgba(45, 27, 78, 0.65) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 15% 45%, rgba(16, 42, 76, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 65% 85%, rgba(26, 75, 140, 0.32) 0%, transparent 70%),
    var(--bg-deep);
}

/* 面包屑 */
.page-home .breadcrumbs {
  padding-top: 18px;
}
.page-home .breadcrumbs a {
  color: var(--snow);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.page-home .breadcrumbs a:hover {
  color: var(--gold);
}
.page-home .breadcrumbs li[aria-current="page"] {
  color: var(--gold);
}

/* ============ 首屏拼贴 ============ */
.page-home .home-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 0 18px;
  position: relative;
}
.page-home .hero-side {
  padding: 24px 20px;
  text-align: center;
  order: 1;
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
}
.page-home .hero-crown-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--r-md);
  margin-bottom: 14px;
  box-shadow: 0 0 28px rgba(245, 183, 0, 0.18);
}
.page-home .hero-side-kicker {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-home .hero-side-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--snow);
}
.page-home .hero-main {
  order: 2;
  padding: 8px 0;
}
.page-home .hero-main .section-kicker {
  margin-bottom: 10px;
}
.page-home .hero-main h1 {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ice);
  text-wrap: balance;
}
.page-home .hero-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--snow);
  max-width: 30em;
  margin: 0 0 22px;
  font-weight: 300;
}
.page-home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.page-home .hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.page-home .hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ice);
  opacity: 0.82;
}
.page-home .hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 183, 0, 0.55);
}
.page-home .hero-live {
  order: 3;
  padding: 22px 20px;
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.page-home .hero-live::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 183, 0, 0.08), transparent 45%);
  pointer-events: none;
}
.page-home .live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-home .live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 194, 199, 0.6);
  animation: page-home-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes page-home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 194, 199, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(0, 194, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 199, 0); }
}
.page-home .live-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--snow);
  letter-spacing: 0.06em;
}
.page-home .live-issue {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.page-home .live-sub {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ice);
  opacity: 0.78;
}

/* ============ 通用区块 ============ */
.page-home .section {
  padding: 38px 0;
  border-bottom: 1px solid rgba(26, 75, 140, 0.18);
}
.page-home .section:last-child {
  border-bottom: 0;
}
.page-home .section-head {
  max-width: 760px;
  margin-bottom: 26px;
}
.page-home .section-title {
  font-size: var(--fs-h2);
  line-height: 1.18;
  margin: 4px 0 10px;
  color: var(--ice);
}
.page-home .section-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--snow);
  margin: 0;
}

/* ============ 期号导航 ============ */
.page-home .issue-panel {
  padding: 24px 20px;
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-home .issue-control {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-home .issue-label {
  font-size: 14px;
  color: var(--snow);
  letter-spacing: 0.04em;
}
.page-home .issue-select {
  width: 100%;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--home-line);
  background: rgba(11, 26, 58, 0.85);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5B700' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.page-home .issue-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.15);
}
.page-home .issue-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--snow);
  opacity: 0.82;
}

/* ============ 走势比较工作台 ============ */
.page-home .trend-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.page-home .trend-chart {
  padding: 20px 16px;
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
}
.page-home .trend-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--ice);
  letter-spacing: 0.04em;
}
.page-home .trend-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--snow);
}
.page-home .trend-legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}
.page-home .legend-gold {
  background: var(--gold);
}
.page-home .legend-cyan {
  background: var(--cyan);
}
.page-home .trend-svg {
  width: 100%;
  height: auto;
  display: block;
}
.page-home .trend-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
  color: var(--snow);
  padding: 0 4px;
}
.page-home .trend-side {
  display: grid;
  gap: 16px;
}
.page-home .trend-card {
  padding: 20px;
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-md);
}
.page-home .trend-card-title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}
.page-home .trend-card-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--snow);
}
.page-home .trend-span-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .span-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--home-line);
  background: rgba(11, 26, 58, 0.55);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.page-home .span-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.page-home .span-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
}
.page-home .trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .trend-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--snow);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(26, 75, 140, 0.2);
}
.page-home .trend-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.page-home .trend-list strong {
  color: var(--ice);
  font-size: 16px;
}
.page-home .trend-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--home-glass-border);
  object-fit: cover;
}

/* ============ 双栏卡片 ============ */
.page-home .section-duo {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.page-home .duo-card {
  padding: 26px 22px;
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.page-home .duo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 183, 0, 0.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.page-home .duo-icon {
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
}
.page-home .duo-title {
  font-size: 20px;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--ice);
  margin: 0 0 10px;
  line-height: 1.4;
}
.page-home .duo-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--snow);
  margin: 0 0 16px;
}
.page-home .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 194, 199, 0.12);
  border: 1px solid rgba(0, 194, 199, 0.28);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ============ 主场坐标 ============ */
.page-home .section-harbin {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(26, 75, 140, 0.18);
}
.page-home .harbin-content {
  padding: 8px 0;
}
.page-home .harbin-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--snow);
  margin: 0 0 14px;
  max-width: 36em;
}
.page-home .harbin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ice);
  letter-spacing: 0.04em;
}
.page-home .harbin-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-home .harbin-media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--home-glass-border);
  object-fit: cover;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

/* ============ 数据实时状态 ============ */
.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.page-home .stat {
  padding: 22px 16px;
  text-align: center;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, rgba(16, 42, 76, 0.72), rgba(11, 26, 58, 0.85));
  border: 1px solid var(--home-glass-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.page-home .stat-value {
  display: block;
  font-family: var(--font-title);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 6px;
}
.page-home .stat-label {
  display: block;
  font-size: 14px;
  color: var(--snow);
  line-height: 1.6;
}
.page-home .data-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.page-home .refresh-control {
  display: flex;
  align-items: center;
}
.page-home .refresh-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .refresh-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.page-home .refresh-track {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(26, 75, 140, 0.55);
  border: 1px solid rgba(232, 240, 254, 0.18);
  transition: background 0.3s var(--ease);
}
.page-home .refresh-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.page-home .refresh-input:checked + .refresh-label .refresh-track {
  background: rgba(0, 194, 199, 0.42);
}
.page-home .refresh-input:checked + .refresh-label .refresh-thumb {
  transform: translateX(22px);
  background: var(--cyan);
}
.page-home .refresh-text {
  font-size: 14px;
  color: var(--ice);
  letter-spacing: 0.04em;
}
.page-home .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(245, 183, 0, 0.08);
  border: 1px solid rgba(245, 183, 0, 0.28);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.page-home .data-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--home-glass-border);
  object-fit: cover;
}

/* ============ 延伸入口 ============ */
.page-home .explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.page-home .explore-card {
  display: block;
  padding: 22px 20px;
  text-decoration: none;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, rgba(16, 42, 76, 0.72), rgba(11, 26, 58, 0.85));
  border: 1px solid var(--home-glass-border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.page-home .explore-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(245, 183, 0, 0.06) 45%, rgba(0, 194, 199, 0.05) 90%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.page-home .explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 183, 0, 0.4);
}
.page-home .explore-card:hover::after {
  opacity: 1;
}
.page-home .explore-index {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-home .explore-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ice);
  margin: 0 0 8px;
}
.page-home .explore-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--snow);
}

/* ============ 平板端 ============ */
@media (min-width: 600px) {
  .page-home .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .page-home .trend-grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
  .page-home .section-duo {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .section-harbin {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .page-home .hero-crown-img {
    width: 150px;
    height: 150px;
  }
}

/* ============ 桌面端 ============ */
@media (min-width: 1024px) {
  .page-home .home-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    padding: 44px 0 26px;
  }
  .page-home .hero-side {
    padding: 26px 20px;
  }
  .page-home .hero-crown-img {
    width: 160px;
    height: 160px;
  }
  .page-home .hero-main {
    padding: 12px 8px 0;
  }
  .page-home .hero-lead {
    font-size: 20px;
  }
  .page-home .hero-live {
    position: sticky;
    top: 28px;
    padding: 26px 22px;
  }
  .page-home .section {
    padding: 56px 0;
  }
  .page-home .explore-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .page-home .trend-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
  }
  .page-home .issue-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 30px;
  }
  .page-home .issue-control {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .page-home .issue-note {
    max-width: 340px;
    text-align: right;
  }
  .page-home .stat-grid {
    gap: 20px;
  }
  .page-home .data-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .page-home .section-harbin {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

/* ============ 减少动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  .page-home .live-dot {
    animation: none;
  }
  .page-home .duo-card,
  .page-home .explore-card {
    transition: none;
  }
  .page-home .duo-card:hover,
  .page-home .explore-card:hover {
    transform: none;
  }
}
