.page-home {
  --home-grid: rgba(13, 27, 42, .06);
  --home-grid-dark: rgba(246, 242, 234, .07);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  background-color: var(--ice);
  background-image:
    linear-gradient(var(--home-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  padding: 48px 0 44px;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 40px;
}

.page-home .home-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.6vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 18px 0 0;
}

.page-home .home-hero__lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--char);
  margin: 20px 0 0;
  max-width: 36em;
}

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

.page-home .home-hero__figure {
  margin: 0;
}

.page-home .home-hero__figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--steel);
}

/* ---------- 变更声明带 ---------- */
.page-home .home-notice {
  padding: 8px 0 64px;
  background: var(--ice);
}

.page-home .home-notice__inner {
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--cool);
  border-radius: var(--r-lg);
  padding: 28px 22px;
}

.page-home .home-notice h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 16px 0 0;
}

.page-home .home-notice__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--char);
  margin: 14px 0 0;
  max-width: 42em;
}

.page-home .home-notice__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--cool);
}

.page-home .home-notice__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cool);
  font-size: .9375rem;
  color: var(--char);
}

.page-home .home-notice__list a {
  color: var(--maple);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-notice__list a:hover {
  color: var(--maple-soft);
}

/* ---------- 三组核心数据 ---------- */
.page-home .home-stats {
  position: relative;
  background: var(--ink);
  color: var(--ice);
  padding: 68px 0 64px;
  overflow: hidden;
}

.page-home .home-stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

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

.page-home .home-stats h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  line-height: 1.28;
  color: var(--ice);
  margin: 16px 0 0;
}

.page-home .home-stats .label {
  color: var(--amber);
}

.page-home .home-stats__grid {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.page-home .hstat {
  border-top: 1px solid rgba(246, 242, 234, .2);
  padding-top: 22px;
}

.page-home .hstat__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ice);
}

.page-home .hstat__plus {
  font-size: .45em;
  color: var(--amber);
}

.page-home .hstat__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .05em;
  color: var(--amber);
  margin: 14px 0 0;
}

.page-home .hstat__desc {
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.8;
  color: rgba(246, 242, 234, .78);
  margin: 12px 0 0;
}

.page-home .home-stats__note {
  margin: 36px 0 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--steel);
}

/* ---------- 省份与彩种索引 ---------- */
.page-home .home-index {
  background: var(--ice);
  padding: 68px 0;
}

.page-home .home-index h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  line-height: 1.28;
  color: var(--ink);
  margin: 16px 0 0;
}

.page-home .home-index__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--char);
  margin: 14px 0 0;
  max-width: 40em;
}

.page-home .home-index__grid {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}

.page-home .home-index__figure {
  margin: 0;
}

.page-home .home-index__block + .home-index__block {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--cool);
}

.page-home .home-index__block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

.page-home .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.page-home .pill-row .pill {
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-index__note {
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.75;
  color: var(--steel);
  margin: 16px 0 0;
}

/* ---------- 连号频次年度刻度 ---------- */
.page-home .home-frequency {
  background: var(--ink-2);
  color: var(--ice);
  padding: 68px 0 72px;
}

.page-home .home-frequency h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  line-height: 1.3;
  color: var(--ice);
  margin: 16px 0 0;
}

.page-home .home-frequency .label {
  color: var(--amber);
}

.page-home .home-frequency__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(246, 242, 234, .8);
  margin: 16px 0 0;
  max-width: 42em;
}

.page-home .freq-chart {
  margin-top: 44px;
}

.page-home .freq-chart__bars {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 200px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(246, 242, 234, .3);
}

.page-home .freq-bar {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--lake), rgba(78, 140, 138, .28));
}

.page-home .freq-chart__bars .freq-bar:nth-child(1) { height: 46%; }
.page-home .freq-chart__bars .freq-bar:nth-child(2) { height: 52%; }
.page-home .freq-chart__bars .freq-bar:nth-child(3) { height: 49%; }
.page-home .freq-chart__bars .freq-bar:nth-child(4) { height: 57%; }
.page-home .freq-chart__bars .freq-bar:nth-child(5) { height: 61%; }
.page-home .freq-chart__bars .freq-bar:nth-child(6) { height: 68%; }
.page-home .freq-chart__bars .freq-bar:nth-child(7) { height: 64%; }
.page-home .freq-chart__bars .freq-bar:nth-child(8) { height: 73%; }
.page-home .freq-chart__bars .freq-bar:nth-child(9) { height: 78%; }
.page-home .freq-chart__bars .freq-bar:nth-child(10) { height: 71%; }
.page-home .freq-chart__bars .freq-bar:nth-child(11) {
  height: 86%;
  background: linear-gradient(180deg, var(--amber), rgba(224, 164, 59, .3));
}

.page-home .freq-chart__years {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(.5rem, 1.9vw, .6875rem);
  color: var(--steel);
  text-align: center;
}

.page-home .freq-chart__note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--steel);
}

.page-home .home-frequency__figure {
  margin: 52px 0 0;
}

.page-home .home-frequency__figure figcaption {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: .8125rem;
  line-height: 1.7;
  color: rgba(246, 242, 234, .6);
}

/* ---------- 手机查询 ---------- */
.page-home .home-mobile {
  background: var(--ice);
  padding: 68px 0;
}

.page-home .home-mobile__card {
  display: grid;
  gap: 36px;
  background: var(--ink-2);
  border-radius: var(--r-xl);
  padding: 34px 24px;
}

.page-home .home-mobile__card .label {
  color: var(--amber);
}

.page-home .home-mobile h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.28;
  color: var(--ice);
  margin: 16px 0 0;
}

.page-home .home-mobile__copy p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(246, 242, 234, .8);
  margin: 14px 0 0;
}

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

.page-home .home-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .home-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(246, 242, 234, .16);
}

.page-home .home-steps__idx {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .875rem;
  font-weight: 600;
  color: var(--maple-soft);
  padding-top: 3px;
}

.page-home .home-steps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .03em;
  color: var(--ice);
  margin: 0;
}

.page-home .home-steps p {
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.8;
  color: rgba(246, 242, 234, .72);
  margin: 8px 0 0;
}

/* ---------- 规则档案与年度报告 ---------- */
.page-home .home-rules {
  background: var(--ice);
  padding: 0 0 72px;
  border-top: 1px solid var(--cool);
}

.page-home .home-rules__band {
  margin: 0 0 52px;
}

.page-home .home-rules__band figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--steel);
}

.page-home .home-rules h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.28;
  color: var(--ink);
  margin: 16px 0 0;
}

.page-home .home-rules__head p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--char);
  margin: 14px 0 0;
  max-width: 42em;
}

.page-home .home-rules__ruler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}

.page-home .home-rules__ruler li {
  flex: 1 1 70px;
  min-width: 0;
  padding: 10px 4px;
  border-top: 2px solid var(--lake);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .8125rem;
  letter-spacing: .02em;
  color: var(--char);
  text-align: center;
}

.page-home .home-rules__cols {
  display: grid;
  gap: 32px;
  margin-top: 44px;
}

.page-home .home-rules__cols article {
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--cool);
  border-radius: var(--r-lg);
  padding: 26px 22px;
}

.page-home .home-rules__cols h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: var(--ink);
  margin: 0;
}

.page-home .home-rules__cols p {
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--char);
  margin: 12px 0 0;
}

.page-home .home-rules__more {
  margin: 36px 0 0;
}

/* ---------- 勘误 · 咨询 · 授权 ---------- */
.page-home .home-contact {
  background: var(--ink);
  color: var(--ice);
  padding: 68px 0;
  border-top: 3px solid var(--maple);
}

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

.page-home .home-contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.28;
  color: var(--ice);
  margin: 16px 0 0;
}

.page-home .home-contact .label {
  color: var(--amber);
}

.page-home .home-contact__copy p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(246, 242, 234, .8);
  margin: 16px 0 0;
  max-width: 44em;
}

.page-home .home-contact__action {
  margin: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 639px) {
  .page-home .freq-chart__years span:nth-child(even) {
    visibility: hidden;
  }

  .page-home .freq-chart__bars {
    height: 160px;
  }
}

@media (min-width: 640px) {
  .page-home .home-hero {
    padding: 64px 0 56px;
  }

  .page-home .home-notice__inner {
    padding: 34px 32px;
  }

  .page-home .home-mobile__card {
    padding: 44px 40px;
  }

  .page-home .home-rules__cols article {
    padding: 30px 28px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 72px 0 64px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 60px;
    align-items: center;
  }

  .page-home .home-stats {
    padding: 88px 0 84px;
  }

  .page-home .home-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    margin-top: 52px;
  }

  .page-home .home-index {
    padding: 88px 0;
  }

  .page-home .home-index__grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .home-frequency {
    padding: 88px 0 92px;
  }

  .page-home .freq-chart__bars {
    height: 240px;
  }

  .page-home .home-mobile {
    padding: 88px 0;
  }

  .page-home .home-mobile__card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 52px;
    padding: 56px 52px;
    align-items: start;
  }

  .page-home .home-rules {
    padding: 0 0 92px;
  }

  .page-home .home-rules__band {
    margin-bottom: 64px;
  }

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

  .page-home .home-contact {
    padding: 88px 0;
  }

  .page-home .home-contact__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
  }
}
