/* ===== 官方主页 · 页面专属样式 ===== */
.page-home {
  --home-veil: rgba(207, 230, 227, .42);
  --home-hairline: rgba(201, 162, 39, .32);
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--font-body);
}

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

/* ---------- 首屏：7:5 非对称分屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(120% 80% at 6% 0%, rgba(201, 162, 39, .14) 0%, transparent 55%),
    var(--ivory);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .page-home .home-hero__panel {
    margin-top: 44px;
  }
}

.page-home .home-hero__intro {
  max-width: 46rem;
}

.page-home .breadcrumb {
  margin: 0 0 1.25rem;
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .home-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .home-hero__title em {
  display: inline-block;
  font-style: normal;
  color: var(--red);
  padding-inline: .06em;
  background: linear-gradient(180deg, transparent 62%, rgba(201, 162, 39, .42) 62%);
}

.page-home .home-hero__lede {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* 首屏右侧仪表板 */
.page-home .home-hero__panel {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-mid) 58%, var(--red-deep) 135%);
  color: var(--ivory);
  box-shadow: var(--shadow-card);
}

.page-home .home-hero__panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  pointer-events: none;
}

.page-home .home-hero__panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
}

.page-home .home-hero__panel-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold-light);
}

.page-home .home-hero__panel-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: .95rem 1.5rem;
  font-size: 1.0625rem;
}

.page-home .home-hero__panel-hint {
  margin: 0;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(247, 242, 231, .78);
}

.page-home .home-hero__facts {
  margin: .5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--home-hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.page-home .home-hero__facts > div {
  display: grid;
  gap: .3rem;
}

.page-home .home-hero__facts dt {
  font-size: .6875rem;
  line-height: 1.4;
  letter-spacing: .04em;
  color: rgba(247, 242, 231, .65);
}

.page-home .home-hero__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-light);
}

.page-home .home-hero__facts dd .mono {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ---------- 今日更新：横向时间轴 ---------- */
.page-home .home-today {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: linear-gradient(165deg, var(--red) 0%, var(--red-deep) 62%, var(--red-ink) 100%);
  color: var(--ivory);
  overflow: hidden;
}

.page-home .home-today::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .22), transparent 62%);
  pointer-events: none;
}

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

.page-home .home-today__head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .home-today .section-title {
  color: var(--ivory);
}

.page-home .home-today__sub {
  max-width: 40rem;
  margin: .85rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(247, 242, 231, .82);
}

.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 .85rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .home-timeline__item {
  flex: 0 0 min(19rem, 80vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: var(--r-card);
  background: var(--ivory);
  color: var(--black);
  box-shadow: 0 18px 38px -30px rgba(58, 10, 21, .9);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.page-home .home-timeline__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px -28px rgba(58, 10, 21, .95);
}

.page-home .home-timeline__tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--red);
}

.page-home .home-timeline__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .2);
}

.page-home .home-timeline__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .home-timeline__text {
  flex: 1;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-timeline__link {
  align-self: flex-start;
  margin-top: .35rem;
  padding-bottom: 2px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
}

.page-home .home-timeline__link:hover {
  color: var(--red-deep);
}

@media (min-width: 960px) {
  .page-home .home-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
  .page-home .home-timeline__item {
    flex: none;
  }
}

/* ---------- 号码分布：6:6 对分 ---------- */
.page-home .home-numbers {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--ivory);
}

.page-home .home-numbers__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 960px) {
  .page-home .home-numbers__grid {
    grid-template-columns: 6fr 6fr;
    align-items: start;
  }
}

.page-home .home-numbers__head > p {
  max-width: 34rem;
  margin: .9rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--black);
}

.page-home .home-numbers__list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.page-home .home-numbers__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-numbers__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58rem;
  width: .55rem;
  height: .55rem;
  border-radius: 2px;
  background: var(--jade);
}

.page-home .home-numbers__list strong {
  color: var(--ink);
  font-weight: 700;
}

.page-home .home-numbers__media {
  margin: 1.75rem 0 0;
  border-radius: var(--r-card);
  overflow: hidden;
}

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

.page-home .home-numbers__board {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: var(--r-card);
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-mid) 100%);
  box-shadow: var(--shadow-card);
}

.page-home .home-chart {
  display: grid;
  gap: .7rem;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(201, 162, 39, .22);
  background: rgba(247, 242, 231, .05);
  color: var(--ivory);
}

.page-home .home-chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.page-home .home-chart__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ivory);
}

.page-home .home-chart__tag {
  flex: none;
  padding: .2rem .6rem;
  border-radius: var(--r-pill);
  font-size: .75rem;
  color: var(--gold-light);
  background: rgba(201, 162, 39, .15);
}

.page-home .home-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  height: 4.5rem;
}

.page-home .home-chart__bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: rgba(44, 140, 134, .55);
}

.page-home .home-chart__bar:nth-child(1) { height: 36%; }
.page-home .home-chart__bar:nth-child(2) { height: 58%; }
.page-home .home-chart__bar:nth-child(3) { height: 45%; }
.page-home .home-chart__bar:nth-child(4) { height: 78%; }
.page-home .home-chart__bar:nth-child(5) { height: 64%; }

.page-home .home-chart__bar--now {
  background: var(--gold);
}

.page-home .home-chart__heat {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .3rem;
}

.page-home .home-chart__cell {
  height: 1.4rem;
  border-radius: 3px;
  background: rgba(44, 140, 134, .22);
}

.page-home .home-chart__cell--mid { background: rgba(44, 140, 134, .5); }
.page-home .home-chart__cell--high { background: var(--gold); }

.page-home .home-chart__split {
  display: flex;
  gap: 3px;
  height: 1.4rem;
  border-radius: var(--r-pill);
  overflow: hidden;
}

.page-home .home-chart__seg {
  display: block;
}

.page-home .home-chart__seg--odd {
  flex: 43;
  background: rgba(44, 140, 134, .65);
}

.page-home .home-chart__seg--even {
  flex: 57;
  background: var(--gold);
}

.page-home .home-chart__note {
  margin: 0;
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(247, 242, 231, .82);
}

/* ---------- 往期资料：日期刻度盘 ---------- */
.page-home .home-archive {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--ink) 0%, var(--red-ink) 100%);
  color: var(--ivory);
  overflow: hidden;
}

.page-home .home-archive__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .page-home .home-archive__grid {
    grid-template-columns: 5fr 7fr;
  }
}

.page-home .home-archive__dial-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: 2rem 1rem;
  border-radius: var(--r-card);
  border: 1px solid rgba(201, 162, 39, .2);
  background: rgba(15, 30, 54, .6);
  overflow: hidden;
}

.page-home .home-archive__dial-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  pointer-events: none;
}

.page-home .home-archive__dial {
  position: relative;
  display: grid;
  place-items: center;
  width: min(74vw, 17rem);
  aspect-ratio: 1;
}

.page-home .home-archive__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -15deg,
    rgba(201, 162, 39, .55) 0deg 1.2deg,
    transparent 1.2deg 30deg
  );
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
}

.page-home .home-archive__pointer {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 42%;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(201, 162, 39, .18), var(--gold));
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(38deg);
}

.page-home .home-archive__dial-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: .2rem;
  width: 56%;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, .25);
  background: rgba(15, 30, 54, .88);
  text-align: center;
}

.page-home .home-archive__dial-label {
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(247, 242, 231, .6);
}

.page-home .home-archive__dial-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
}

.page-home .home-archive__body .section-title {
  color: var(--ivory);
}

.page-home .home-archive__body > p {
  max-width: 34rem;
  margin: .9rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(247, 242, 231, .82);
}

.page-home .home-archive__ways {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: .65rem;
}

.page-home .home-archive__ways li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(247, 242, 231, .86);
}

.page-home .home-archive__ways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72rem;
  width: .75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.page-home .home-archive__ways strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* ---------- 老访客的习惯 ---------- */
.page-home .home-habits {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--ivory);
}

.page-home .home-habits__head {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.page-home .home-habits__head > p {
  margin: .85rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-habits__grid {
  display: grid;
  gap: 1rem;
}

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

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

.page-home .home-habit {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.4rem 1.35rem 1.3rem;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  color: inherit;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.page-home .home-habit:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-card);
}

.page-home .home-habit__num {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red);
}

.page-home .home-habit h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .home-habit p {
  flex: 1;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-habit__go {
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--red);
  border-bottom: 1px solid var(--line-gold);
}

/* ---------- 换设备接续 ---------- */
.page-home .home-switch {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--home-veil) 100%);
}

.page-home .home-switch__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .page-home .home-switch__grid {
    grid-template-columns: 5fr 7fr;
  }
}

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

.page-home .home-switch__body h2 {
  margin-top: .6rem;
}

.page-home .home-switch__body > p {
  max-width: 36rem;
  margin: .9rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--black);
}

.page-home .home-switch__steps {
  list-style: none;
  counter-reset: hstep;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-home .home-switch__steps li {
  counter-increment: hstep;
  position: relative;
  padding-left: 2.1rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-switch__steps li::before {
  content: counter(hstep);
  position: absolute;
  left: 0;
  top: .1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
}

.page-home .home-switch__more {
  margin: 1.25rem 0 0;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-switch__more a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--line-gold);
  text-underline-offset: 3px;
}

/* ---------- 收尾咨询条 ---------- */
.page-home .home-handoff {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  background: var(--red);
  color: var(--ivory);
}

.page-home .home-handoff__inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 820px) {
  .page-home .home-handoff__inner {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.page-home .home-handoff h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ivory);
}

.page-home .home-handoff p {
  max-width: 40rem;
  margin: .6rem 0 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(247, 242, 231, .82);
}
