.page-home {
  --home-border: rgba(107, 122, 128, 0.24);
  --home-quiet: rgba(7, 26, 20, 0.55);
}

.page-home .num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.page-home .num--lime {
  color: var(--lime);
}

/* ============ 首屏框景 ============ */
.page-home .hero {
  padding: 20px 0 12px;
}

.page-home .hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.page-home .hero__meta-txt {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--steel-soft);
}

.page-home .hero__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 30px 20px 26px;
  overflow: hidden;
  border: 1px solid rgba(182, 255, 61, 0.28);
  border-radius: var(--r-l);
  background:
    radial-gradient(118% 86% at 88% 4%, rgba(255, 77, 28, 0.18), transparent 58%),
    linear-gradient(158deg, var(--ink-700) 0%, var(--ink-900) 68%);
}

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--r-l) - 8px);
  pointer-events: none;
}

.page-home .frame__corner {
  position: absolute;
  z-index: 4;
  width: 16px;
  height: 16px;
  border-style: solid;
  border-width: 0;
  border-color: var(--lime);
}

.page-home .frame__corner--tl {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: var(--r-l);
}

.page-home .frame__corner--tr {
  top: -1px;
  right: -1px;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: var(--r-l);
}

.page-home .frame__corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: var(--r-l);
}

.page-home .frame__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: var(--r-l);
}

.page-home .hero__media {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 62%;
  margin: 0;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to top, #000 6%, transparent 92%);
  mask-image: linear-gradient(to top, #000 6%, transparent 92%);
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.82);
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.page-home .hero__title {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(36px, 10.5vw, 76px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .hero__title span {
  color: var(--lime);
}

.page-home .hero__lead {
  max-width: 30em;
  font-size: 16px;
  line-height: 1.75;
  color: #c9d6d1;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(182, 255, 61, 0.18);
  list-style: none;
}

.page-home .hero__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home .hero__stats .stat__num {
  font-size: clamp(26px, 6.4vw, 38px);
  font-weight: 800;
  line-height: 1;
}

.page-home .hero__stats .stat__label {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--steel-soft);
}

/* ============ 轮次时间轴 ============ */
.page-home .rounds {
  padding: 50px 0 32px;
  border-top: 1px solid rgba(107, 122, 128, 0.18);
  border-bottom: 1px solid rgba(107, 122, 128, 0.18);
  background: var(--home-quiet);
}

.page-home .rounds__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.page-home .rounds__hint {
  font-size: 13px;
  color: var(--steel);
}

.page-home .rounds__viewport {
  overflow: hidden;
}

.page-home .rounds__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78vw;
  gap: 14px;
  padding: 6px var(--gutter) 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--lime-deep) transparent;
  -webkit-overflow-scrolling: touch;
}

.page-home .rounds__track:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.page-home .rcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 214px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: var(--r-m);
  background: var(--ink-800);
  scroll-snap-align: center;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-home .rcard:hover,
.page-home .rcard:focus-within {
  transform: translateY(-4px);
  border-color: rgba(182, 255, 61, 0.45);
}

.page-home .rcard.is-current {
  border-color: rgba(182, 255, 61, 0.6);
  background:
    radial-gradient(120% 82% at 18% 0%, rgba(182, 255, 61, 0.2), transparent 64%),
    var(--ink-800);
}

.page-home .rcard.is-current::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: home-pulse 2.8s var(--ease) infinite;
}

@keyframes home-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 255, 61, 0.42);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(182, 255, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(182, 255, 61, 0);
  }
}

.page-home .rcard__thumb {
  margin: -16px -16px 0;
  height: 88px;
  overflow: hidden;
}

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

.page-home .rcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .rcard__badge {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--steel-soft);
}

.page-home .rcard__badge .num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.page-home .rcard__line {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}

.page-home .rcard__line .num {
  margin: 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
}

.page-home .rcard__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .rcard__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
}

.page-home .rcard__link:hover {
  text-decoration: underline;
}

/* ============ 战报错位卡 ============ */
.page-home .reports {
  padding: 56px 0 42px;
}

.page-home .section-head {
  max-width: 62ch;
  margin-bottom: 30px;
}

.page-home .section-sub {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--steel-soft);
}

.page-home .report {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border: 1px solid var(--home-border);
  border-top: 3px solid var(--flare);
  border-radius: var(--r-m);
  background: linear-gradient(158deg, var(--ink-700), var(--ink-800));
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-home .report:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 28, 0.5);
  border-top-color: var(--flare);
}

.page-home .report__title {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

.page-home .report__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--steel-soft);
}

.page-home .report__link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--flare-soft);
  text-decoration: none;
}

.page-home .report__link:hover {
  text-decoration: underline;
}

/* ============ 数据面板 ============ */
.page-home .board {
  padding: 50px 0;
  border-top: 1px solid rgba(107, 122, 128, 0.18);
  border-bottom: 1px solid rgba(107, 122, 128, 0.18);
  background: var(--home-quiet);
}

.page-home .board__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-home .board__lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--steel-soft);
}

.page-home .board__fig {
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid var(--home-border);
  border-radius: var(--r-m);
  background: var(--ink-900);
}

.page-home .heat {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .heat__cell rect {
  fill: var(--lime);
  transition: fill-opacity 0.22s var(--ease);
}

.page-home .heat__cell:hover rect {
  fill-opacity: 0.98 !important;
}

.page-home .heat__cell text {
  fill: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  opacity: 0.8;
}

.page-home .heat__axis line {
  stroke: rgba(107, 122, 128, 0.5);
  stroke-width: 1;
}

.page-home .heat__axis text {
  fill: var(--steel);
  font-size: 12px;
}

.page-home .board__fig figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .board__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--home-border);
  border-left: 3px solid var(--lime);
  border-radius: var(--r-m);
  background: var(--ink-800);
}

.page-home .board__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-s);
}

.page-home .board__media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .board__side-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.page-home .board__dims {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .board__dims li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(107, 122, 128, 0.32);
}

.page-home .board__dims li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .board__dim-k {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
}

.page-home .board__dim-v {
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel-soft);
}

/* ============ 平板端 ============ */
.page-home .tablet {
  padding: 52px 0;
}

.page-home .tablet__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-home .tablet__lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--steel-soft);
}

.page-home .tablet__switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.page-home .tablet__switch-label {
  font-size: 13px;
  color: var(--steel);
}

.page-home .tablet__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .tablet__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel-soft);
}

.page-home .tablet__list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--lime);
  transform: rotate(45deg);
}

.page-home .tablet__list b {
  color: var(--white);
}

.page-home .tablet__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: var(--r-m);
}

.page-home .tablet__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ 天津本地与订阅 ============ */
.page-home .local {
  padding: 54px 0 0;
  border-top: 1px solid rgba(107, 122, 128, 0.2);
  background:
    radial-gradient(88% 58% at 6% 0%, rgba(255, 77, 28, 0.15), transparent 62%),
    rgba(7, 26, 20, 0.62);
}

.page-home .local::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 48px;
  background: linear-gradient(90deg, transparent, var(--lime) 18%, var(--flare) 82%, transparent);
}

.page-home .local__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-home .local__lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--steel-soft);
}

.page-home .local__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .local__facts li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--steel-soft);
}

.page-home .local__facts .num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.page-home .local__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .local__sub {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(182, 255, 61, 0.32);
  border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(182, 255, 61, 0.1), rgba(18, 58, 46, 0.86) 62%);
}

.page-home .local__sub-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.page-home .local__sub p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: #c9d6d1;
}

.page-home .local__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel-soft);
}

.page-home .local__note a {
  color: var(--lime);
  text-decoration: underline;
}

/* ============ 响应式 ============ */
@media (min-width: 720px) {
  .page-home .hero__frame {
    min-height: 480px;
    padding: 46px 40px 34px;
  }

  .page-home .hero__frame::after {
    inset: 12px;
  }

  .page-home .rounds__track {
    grid-auto-columns: 268px;
    padding-inline: var(--gutter);
  }

  .page-home .board__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .page-home .tablet__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 34px;
  }

  .page-home .local__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-home .hero__stats {
    gap: 44px;
  }

  .page-home .rounds__track {
    grid-auto-columns: 296px;
  }

  .page-home .reports {
    padding: 72px 0 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .rcard,
  .page-home .report,
  .page-home .heat__cell rect {
    transition: none;
  }

  .page-home .rcard.is-current::after {
    animation: none;
    box-shadow: 0 0 0 6px rgba(182, 255, 61, 0.16);
  }

  .page-home .rcard:hover,
  .page-home .report:hover {
    transform: none;
  }
}
