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

/* ---------- 首屏 ---------- */
.page-home .hero {
  padding: 34px 0 0;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(79, 227, 209, .10), transparent 70%),
    radial-gradient(760px 420px at 6% 12%, rgba(255, 122, 77, .07), transparent 72%),
    var(--ink-night);
}

.page-home .hero__head {
  max-width: 780px;
}

.page-home .hero__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--white);
}

.page-home .hero__lede {
  margin: 14px 0 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

/* 拼贴 */
.page-home .collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 30px;
  padding-bottom: 40px;
}

.page-home .tile {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--ink-slate);
  box-shadow: var(--shadow-in);
  padding: 20px;
  overflow: hidden;
  transition: border-color 160ms var(--ease);
  outline: none;
}

.page-home .tile:focus-visible {
  border: 2px solid var(--gold);
  padding: 19px;
}

/* 奖池块 */
.page-home .tile--pool {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 24px 20px 26px;
}

.page-home .tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.page-home .tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 32, .35) 0%, rgba(11, 16, 32, .86) 62%, rgba(11, 16, 32, .96) 100%);
}

.page-home .tile__body {
  position: relative;
  z-index: 2;
}

.page-home .tile__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .tile__label--paper {
  color: rgba(42, 33, 28, .58);
}

.page-home .pool-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}

.page-home .pool-amount .num--hero {
  font-size: clamp(44px, 8vw, 96px);
  line-height: .96;
  letter-spacing: .04em;
  font-weight: 700;
  text-shadow: 0 0 34px rgba(232, 184, 92, .28);
}

.page-home .pool-amount__unit {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .tile__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .tile--pool .tile__note {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  font-size: 12px;
}

.page-home .pool-ruler {
  position: absolute;
  top: 26px;
  bottom: 26px;
  right: 20px;
  width: 1px;
  background: rgba(232, 184, 92, .30);
  z-index: 2;
}

.page-home .pool-ruler::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(232, 184, 92, .72) 0 2px,
    transparent 2px 16px
  );
}

/* 期号纸面板 */
.page-home .tile--issue {
  background: var(--paper);
  border: var(--line-paper);
  color: var(--paper-ink);
  box-shadow: 0 1px 0 rgba(245, 247, 255, .06);
}

.page-home .issue-num {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: .08em;
  line-height: 1;
  color: var(--paper-ink);
  font-weight: 600;
}

.page-home .issue-meta {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(42, 33, 28, .68);
}

/* 号码块 */
.page-home .ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--line);
  border-radius: var(--radius);
  background: rgba(79, 227, 209, .06);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--cyan);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.page-home .ball:hover {
  border-color: var(--cyan);
}

.page-home .ball--special {
  border-color: rgba(255, 122, 77, .55);
  color: var(--coral);
  background: rgba(255, 122, 77, .07);
}

.page-home .ball--special:hover {
  border-color: var(--coral);
}

/* 同步条 */
.page-home .tile--sync {
  padding: 16px 20px;
}

.page-home .sync-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
  margin: 0;
}

.page-home .sync-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.page-home .sync-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .sync-list dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}

.page-home .sync-list dd {
  margin: 0;
  font-size: 13px;
  color: var(--white);
  text-align: right;
}

/* ---------- 两条主线 ---------- */
.page-home .lines__lede {
  margin: 12px 0 0;
  max-width: 42em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .lines__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 24px;
  border: var(--line);
  border-radius: var(--radius);
  background: rgba(124, 137, 173, .18);
  overflow: hidden;
}

.page-home .linecard {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: start;
  gap: 14px;
  padding: 22px 20px;
  background: var(--ink-slate);
  text-decoration: none;
  color: inherit;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
  border-left: 2px solid transparent;
}

.page-home .linecard:hover,
.page-home .linecard:focus-visible {
  background: #161d33;
  border-left-color: var(--cyan);
  outline: none;
}

.page-home .linecard__idx {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--mist);
  transition: color 160ms var(--ease);
}

.page-home .linecard:hover .linecard__idx,
.page-home .linecard:focus-visible .linecard__idx {
  color: var(--cyan);
}

.page-home .linecard__text {
  display: block;
  min-width: 0;
}

.page-home .linecard__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--white);
}

.page-home .linecard__desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .linecard__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--mist);
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .linecard:hover .linecard__arrow,
.page-home .linecard:focus-visible .linecard__arrow {
  color: var(--cyan);
  transform: translateX(3px);
}

/* ---------- 冷热分布 ---------- */
.page-home .heat__lede {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .heat__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
}

.page-home .heat__grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
}

.page-home .heat-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 137, 173, .22);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mist);
  cursor: default;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
  outline: none;
}

.page-home .heat-cell:hover,
.page-home .heat-cell:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-2px);
  z-index: 6;
  outline: none;
}

.page-home .heat-cell--5 { background: rgba(255, 122, 77, .22); border-color: var(--coral); color: var(--coral); }
.page-home .heat-cell--4 { background: rgba(255, 122, 77, .13); border-color: rgba(255, 122, 77, .58); color: #FF9A72; }
.page-home .heat-cell--2 { background: rgba(255, 122, 77, .06); border-color: rgba(255, 122, 77, .28); color: #C99B92; }
.page-home .heat-cell--1 { background: rgba(124, 137, 173, .07); border-color: rgba(124, 137, 173, .26); color: var(--mist); }
.page-home .heat-cell--0 { background: rgba(31, 140, 126, .10); border-color: rgba(31, 140, 126, .40); color: #79B8AE; }
.page-home .heat-cell--c { background: rgba(31, 140, 126, .18); border-color: rgba(31, 140, 126, .70); color: var(--white); }

.page-home .heat-cell__num {
  position: relative;
  z-index: 2;
}

.page-home .heat-cell__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  min-width: 190px;
  padding: 8px 10px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: #070b16;
  color: var(--white);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms var(--ease), transform 140ms var(--ease);
  z-index: 20;
}

.page-home .heat-cell:hover .heat-cell__tip,
.page-home .heat-cell:focus-visible .heat-cell__tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.page-home .heat__side {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--ink-slate);
  overflow: hidden;
}

.page-home .heat__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .13;
}

.page-home .heat__side-body {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
}

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

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

.page-home .heat__facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: var(--line);
}

.page-home .heat__facts-k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .heat__facts-v {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--white);
  text-align: right;
}

.page-home .heat__side-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .heat__more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}

.page-home .heat__more:hover,
.page-home .heat__more:focus-visible {
  border-bottom-color: var(--cyan);
  outline: none;
}

/* ---------- 连号频次 ---------- */
.page-home .runs__lede {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .runs__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
}

.page-home .runs__chart {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--ink-slate);
  padding: 20px;
}

.page-home .runs__chart-cap {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}

.page-home .runs__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.page-home .runs__bar--a { fill: rgba(79, 227, 209, .30); stroke: var(--cyan); stroke-width: 1; }
.page-home .runs__bar--b { fill: rgba(255, 122, 77, .30); stroke: var(--coral); stroke-width: 1; }
.page-home .runs__bar--c { fill: rgba(232, 184, 92, .30); stroke: var(--gold); stroke-width: 1; }

.page-home .runs__val {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  fill: var(--white);
}

.page-home .runs__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .runs__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .runs__dot {
  width: 9px;
  height: 9px;
  border-radius: 1px;
}

.page-home .runs__dot--a { background: rgba(79, 227, 209, .45); border: 1px solid var(--cyan); }
.page-home .runs__dot--b { background: rgba(255, 122, 77, .45); border: 1px solid var(--coral); }
.page-home .runs__dot--c { background: rgba(232, 184, 92, .45); border: 1px solid var(--gold); }

.page-home .runs__figure {
  margin: 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-slate);
}

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

.page-home .runs__figcap {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
  border-top: var(--line);
}

.page-home .runs__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--line);
}

.page-home .runs__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: var(--line);
  transition: border-color 160ms var(--ease);
}

.page-home .runs__row:hover {
  border-bottom-color: var(--cyan);
}

.page-home .runs__name {
  font-size: 14px;
  color: var(--white);
}

.page-home .runs__s {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
}

.page-home .runs__s em {
  font-style: normal;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--white);
}

.page-home .runs__s small {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .runs__tag {
  display: none;
}

/* ---------- 更新节奏 ---------- */
.page-home .cadence__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .cadence__lede {
  margin: 12px 0 0;
  max-width: 42em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .cadence__list {
  margin: 22px 0 0;
  display: grid;
  gap: 1px;
  border: var(--line);
  border-radius: var(--radius);
  background: rgba(124, 137, 173, .18);
  overflow: hidden;
}

.page-home .cadence__item {
  padding: 18px 20px;
  background: var(--ink-slate);
}

.page-home .cadence__item dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}

.page-home .cadence__idx {
  color: var(--gold);
}

.page-home .cadence__item dd {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--white);
  max-width: 38em;
}

.page-home .cadence__side {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  border-color: rgba(42, 33, 28, .20);
  padding: 22px 20px;
  color: var(--paper-ink);
}

.page-home .cadence__side-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper-ink);
}

.page-home .issue-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(42, 33, 28, .78);
}

.page-home .issue-strip li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(42, 33, 28, .14);
}

.page-home .cadence__side-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(42, 33, 28, .72);
}

/* ---------- 目录索引 ---------- */
.page-home .directory__lede {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .directory__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
}

.page-home .directory__nav {
  display: grid;
  gap: 0;
  border-top: var(--line);
}

.page-home .directory__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 4px 14px;
  padding: 15px 0;
  border-bottom: var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.page-home .directory__item:hover,
.page-home .directory__item:focus-visible {
  border-bottom-color: var(--cyan);
  outline: none;
}

.page-home .directory__num {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--mist);
  transition: color 160ms var(--ease);
}

.page-home .directory__item:hover .directory__num,
.page-home .directory__item:focus-visible .directory__num {
  color: var(--cyan);
}

.page-home .directory__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.page-home .directory__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .directory__figure {
  margin: 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-slate);
}

.page-home .directory__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.85);
}

.page-home .directory__figcap {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 媒体查询 ---------- */
@media (min-width: 720px) {
  .page-home .collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .tile--pool {
    grid-column: 1 / -1;
    min-height: 340px;
  }

  .page-home .tile--sync {
    grid-column: 1 / -1;
  }

  .page-home .sync-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .sync-list__item {
    border-bottom: 0;
    border-right: var(--line);
    padding-bottom: 0;
    padding-right: 16px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  .page-home .sync-list__item:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .page-home .sync-list dd {
    text-align: left;
  }

  .page-home .lines__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .linecard {
    grid-template-columns: 52px 1fr 20px;
    padding: 26px 24px;
  }

  .page-home .linecard__idx {
    font-size: 26px;
  }

  .page-home .heat-cell {
    font-size: 13px;
  }

  .page-home .runs__list {
    margin-top: 28px;
  }

  .page-home .runs__row {
    grid-template-columns: 150px 1fr 1fr auto;
    gap: 20px;
  }

  .page-home .runs__s {
    align-items: flex-start;
  }

  .page-home .runs__tag {
    display: inline-flex;
  }

  .page-home .issue-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    padding-top: 46px;
  }

  .page-home .directory__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .cadence__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (min-width: 1120px) {
  .page-home .collage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }

  .page-home .tile--pool {
    grid-column: 1 / 8;
    grid-row: 1 / 4;
    min-height: 100%;
    padding: 30px 26px 30px;
  }

  .page-home .tile--issue {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
  }

  .page-home .tile--balls {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
  }

  .page-home .tile--sync {
    grid-column: 8 / 13;
    grid-row: 3 / 4;
  }

  .page-home .sync-list {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }

  .page-home .sync-list__item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    border-right: 0;
    border-bottom: var(--line);
    padding-right: 0;
    padding-bottom: 8px;
  }

  .page-home .sync-list__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .page-home .sync-list dd {
    text-align: right;
  }

  .page-home .heat__layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
  }

  .page-home .runs__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .heat-cell {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .heat-cell,
  .page-home .linecard,
  .page-home .directory__item,
  .page-home .linecard__arrow,
  .page-home .heat-cell__tip {
    transition: color 120ms linear, border-color 120ms linear, background-color 120ms linear;
  }

  .page-home .heat-cell:hover,
  .page-home .heat-cell:focus-visible,
  .page-home .linecard:hover .linecard__arrow,
  .page-home .linecard:focus-visible .linecard__arrow {
    transform: none;
  }
}
