.page-home {
  --home-line: rgba(199, 208, 218, 0.24);
  --home-glass: rgba(127, 211, 232, 0.14);
  --home-glass-strong: rgba(127, 211, 232, 0.24);
  overflow-x: clip;
}

/* ---------- 首屏框景 ---------- */

.page-home .home-hero {
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-home .home-hero__crumb {
  margin-bottom: clamp(14px, 2vw, 24px);
}

.page-home .home-hero__crumb .breadcrumb__item {
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-home .hero-stage {
  padding: 0;
}

.page-home .hero-frame {
  position: relative;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(28px, 4vw, 48px);
  border: 1px solid var(--home-line);
  background:
    linear-gradient(155deg, rgba(30, 90, 138, 0.42) 0%, rgba(11, 37, 64, 0.05) 55%, rgba(255, 106, 26, 0.09) 100%);
}

.page-home .hero-frame::before,
.page-home .hero-frame::after {
  content: "";
  position: absolute;
  top: -1px;
  height: 2px;
  width: clamp(48px, 16vw, 200px);
}

.page-home .hero-frame::before {
  left: clamp(20px, 4vw, 64px);
  background: linear-gradient(90deg, var(--orange), rgba(255, 106, 26, 0));
}

.page-home .hero-frame::after {
  right: clamp(20px, 4vw, 64px);
  background: linear-gradient(270deg, var(--glass), rgba(127, 211, 232, 0));
}

.page-home .hero-frame__coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--silver);
  text-transform: uppercase;
  white-space: nowrap;
}

.page-home .hero-frame__coord--a { top: 12px; left: clamp(20px, 4vw, 64px); }
.page-home .hero-frame__coord--b { top: 12px; right: clamp(20px, 4vw, 64px); color: var(--glass); }
.page-home .hero-frame__coord--c { bottom: 12px; left: clamp(20px, 4vw, 64px); color: var(--green); }
.page-home .hero-frame__coord--d { bottom: 12px; right: clamp(20px, 4vw, 64px); color: var(--orange); }

.page-home .hero-frame__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 960px) {
  .page-home .hero-frame__inner {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    align-items: end;
  }
}

.page-home .hero-copy__kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-home .hero-copy__title {
  margin: 18px 0 0;
  font-size: clamp(38px, 7.2vw, 78px);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .hero-copy__lede {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.78;
  color: rgba(244, 247, 250, 0.8);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

.page-home .hero-visual {
  margin: 0;
  position: relative;
  border: 1px solid var(--home-glass-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(18, 26, 38, 0.6);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(11, 37, 64, 0) 0%, rgba(11, 37, 64, 0.78) 100%);
  pointer-events: none;
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}

.page-home .hero-ticker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--home-line);
  border: 1px solid var(--home-line);
}

@media (min-width: 720px) {
  .page-home .hero-ticker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .hero-ticker__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: rgba(11, 37, 64, 0.78);
}

.page-home .hero-ticker__value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--orange);
}

.page-home .hero-ticker__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
}

/* ---------- 通勤到看台的过渡带 ---------- */

.page-home .home-band {
  background: linear-gradient(100deg, var(--blue-night) 0%, var(--blue-deep) 45%, var(--blue-sky) 100%);
}

.page-home .home-band__figure {
  position: relative;
  margin: 0;
  height: clamp(190px, 32vw, 360px);
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 93%);
  overflow: hidden;
}

.page-home .home-band__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(0.9);
}

.page-home .home-band__cap {
  position: absolute;
  left: clamp(20px, 8vw, 140px);
  bottom: clamp(34px, 6vw, 78px);
  right: clamp(20px, 8vw, 140px);
  margin: 0;
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--mist);
}

/* ---------- 战报速览 ---------- */

.page-home .home-reports {
  position: relative;
}

.page-home .reports {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 10px;
}

.page-home .reports__item {
  background: #ffffff;
  border-left: 3px solid rgba(11, 37, 64, 0.1);
  border-radius: var(--radius-s);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-home .reports__item[open] {
  border-left-color: var(--orange);
  box-shadow: 0 14px 34px rgba(11, 37, 64, 0.1);
}

.page-home .reports__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-home .reports__summary::-webkit-details-marker {
  display: none;
}

.page-home .reports__summary::marker {
  content: "";
}

@media (min-width: 720px) {
  .page-home .reports__summary {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }
}

.page-home .reports__time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blue-sky);
}

.page-home .reports__title {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--blue-deep);
}

.page-home .reports__tag {
  justify-self: start;
}

@media (min-width: 720px) {
  .page-home .reports__tag {
    justify-self: end;
  }
}

.page-home .reports__body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(11, 37, 64, 0.08);
}

.page-home .reports__body p {
  margin: 14px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(11, 37, 64, 0.76);
}

.page-home .reports__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 26, 0.4);
  padding-bottom: 2px;
}

.page-home .reports__more:hover,
.page-home .reports__more:focus-visible {
  border-bottom-color: var(--orange);
}

.page-home .reports__foot {
  margin: clamp(24px, 3vw, 32px) 0 0;
}

/* ---------- 换设备通道 ---------- */

.page-home .home-switch .chapter__title {
  color: var(--mist);
}

.page-home .home-switch .chapter__lede {
  color: rgba(244, 247, 250, 0.84);
}

.page-home .home-switch .chapter__num {
  color: var(--mist);
}

.page-home .switch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(24px, 3vw, 40px);
}

@media (min-width: 900px) {
  .page-home .switch-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }
}

.page-home .switch-layout__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 247, 250, 0.32);
}

.page-home .switch-layout__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .switch-layout__steps .accordion__item {
  background: rgba(11, 37, 64, 0.32);
  border-radius: var(--radius-s);
  margin-bottom: 8px;
}

.page-home .switch-layout__steps .accordion__summary {
  color: var(--mist);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 16px;
  cursor: pointer;
}

.page-home .switch-layout__steps .accordion__body {
  padding: 0 16px 16px;
}

.page-home .switch-layout__steps .accordion__body p {
  margin: 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 247, 250, 0.82);
}

.page-home .switch-layout__note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--green);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 247, 250, 0.78);
}

.page-home .switch-layout__cta {
  margin-top: 22px;
}

/* ---------- 数据面板 ---------- */

.page-home .home-data {
  position: relative;
  overflow: hidden;
}

.page-home .home-data__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .home-data__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .home-data__inner {
  position: relative;
  z-index: 1;
}

.page-home .panel-switch {
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .panel-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-home .panel-switch__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(18, 26, 38, 0.7);
}

.page-home .panel-switch__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home #panel-view-live:checked ~ .panel-switch__tabs .panel-switch__tab[for="panel-view-live"],
.page-home #panel-view-trend:checked ~ .panel-switch__tabs .panel-switch__tab[for="panel-view-trend"] {
  background: var(--orange);
  color: #ffffff;
}

.page-home .panel-switch__panels {
  margin-top: 22px;
}

.page-home .panel-switch__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: rgba(255, 106, 26, 0.34);
}

.page-home .panel-switch__panel--trend {
  display: none;
}

.page-home #panel-view-trend:checked ~ .panel-switch__panels .panel-switch__panel--live {
  display: none;
}

.page-home #panel-view-trend:checked ~ .panel-switch__panels .panel-switch__panel--trend {
  display: grid;
}

.page-home .data-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 148px;
  padding: 20px 18px;
  border-radius: 0;
  background: rgba(11, 37, 64, 0.84);
  border: 1px solid var(--home-glass);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .data-card:hover,
.page-home .data-card:focus-within {
  background: rgba(11, 37, 64, 0.68);
  border-color: var(--home-glass-strong);
}

.page-home .data-card__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--orange);
}

.page-home .data-card__unit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
}

.page-home .data-card__label {
  font-size: 13px;
  line-height: 1.7;
  color: var(--silver);
}

/* ---------- 历史检索 ---------- */

.page-home .history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(24px, 3vw, 40px);
  background: rgba(11, 37, 64, 0.14);
  border: 1px solid rgba(11, 37, 64, 0.14);
}

@media (min-width: 700px) {
  .page-home .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .page-home .history-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .history-col {
  position: relative;
  padding: 26px 22px 30px;
  background: #ffffff;
}

.page-home .history-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--orange);
}

.page-home .history-col__title {
  margin: 10px 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
}

.page-home .history-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .history-col__list li {
  position: relative;
  padding-left: 15px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(11, 37, 64, 0.76);
}

.page-home .history-col__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--green);
  transform: rotate(45deg);
}

.page-home .home-history__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

/* ---------- 联系与本地看台 ---------- */

.page-home .contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin-top: clamp(24px, 3vw, 40px);
  background: rgba(255, 106, 26, 0.36);
}

@media (min-width: 900px) {
  .page-home .contact-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .contact-card {
  padding: clamp(24px, 3vw, 40px);
  background: rgba(18, 26, 38, 0.92);
  border: 1px solid var(--home-glass);
}

.page-home .contact-card__idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.page-home .contact-card__title {
  margin: 14px 0 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--mist);
}

.page-home .contact-card__text {
  margin: 14px 0 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 247, 250, 0.78);
}

.page-home .contact-card__meta {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--home-line);
  padding-top: 18px;
}

.page-home .contact-card__meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 247, 250, 0.86);
}

.page-home .contact-card__key {
  flex: 0 0 52px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
}

.page-home .contact-card .btn {
  margin-top: 24px;
}

.page-home .local-stand {
  margin-top: 2px;
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(100deg, rgba(30, 90, 138, 0.62), rgba(52, 199, 123, 0.18));
  border-left: 3px solid var(--green);
}

.page-home .local-stand__title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .local-stand__text {
  margin: 12px 0 0;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.82;
  color: rgba(244, 247, 250, 0.84);
}

/* ---------- 收束 ---------- */

.page-home .scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: clamp(24px, 3vw, 40px);
  background: rgba(199, 208, 218, 0.16);
}

@media (min-width: 900px) {
  .page-home .scale-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .scale-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--blue-night);
}

.page-home .scale-item__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--amber);
}

.page-home .scale-item__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--silver);
}

.page-home .home-scale__foot {
  margin-top: clamp(26px, 3vw, 38px);
  display: grid;
  gap: 20px;
}

.page-home .home-scale__text {
  margin: 0;
  max-width: 46em;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.82;
  color: rgba(244, 247, 250, 0.78);
}

.page-home .home-scale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 窄屏保护 ---------- */

@media (max-width: 640px) {
  .page-home .hero-frame__coord--b,
  .page-home .hero-frame__coord--c {
    display: none;
  }

  .page-home .hero-frame {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-home .contact-card__key {
    flex-basis: auto;
  }

  .page-home .hero-actions .btn,
  .page-home .home-history__foot .btn,
  .page-home .home-scale__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .reports__item,
  .page-home .reports__more,
  .page-home .panel-switch__tab,
  .page-home .data-card {
    transition: none;
  }
}
