/* ============================================================
   首页 · page-home
   ============================================================ */

.page-home {
  --home-gap: clamp(20px, 3.4vw, 40px);
  --home-hair: 1px solid var(--line);
  display: block;
}

/* ---------- 首屏：主题声明 + 内容目录 ---------- */
.page-home .home-lead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(30px, 6vw, 72px));
  padding-bottom: clamp(44px, 7vw, 96px);
}

.page-home .home-lead__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-lead__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: 0.5;
}

.page-home .home-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(110% 78% at 8% 26%, rgba(6, 14, 31, 0.72), transparent 62%),
    linear-gradient(180deg, rgba(6, 14, 31, 0.62) 0%, rgba(6, 14, 31, 0.93) 74%, var(--ink-900) 100%);
}

.page-home .home-lead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: end;
}

.page-home .home-lead__copy h1 {
  margin: 0.5em 0 0;
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  max-width: 17ch;
}

.page-home .home-lead__copy .lead {
  margin-top: clamp(16px, 2.4vw, 26px);
  max-width: 46ch;
  color: var(--steel);
  font-size: var(--step-0);
  line-height: 1.78;
}

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

/* 内容目录 */
.page-home .home-toc {
  border-top: var(--home-hair);
  padding-top: 16px;
}

.page-home .home-toc__title {
  margin: 0 0 14px;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  color: var(--cyan);
}

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

.page-home .home-toc__list li + li {
  border-top: var(--home-hair);
}

.page-home .home-toc__list a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 12px 6px 12px 0;
  text-decoration: none;
  color: var(--text-strong);
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.page-home .home-toc__list a:hover,
.page-home .home-toc__list a:focus-visible {
  color: var(--cyan);
  padding-left: 10px;
}

.page-home .home-toc__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--steel-dim);
}

.page-home .home-toc__name {
  font-size: var(--step-0);
  font-weight: 700;
}

.page-home .home-toc__meta {
  grid-column: 2;
  font-size: var(--step--1);
  color: var(--steel);
  margin-top: 3px;
}

/* ---------- 节奏对照带 ---------- */
.page-home .home-rhythm__grid {
  align-items: start;
}

.page-home .home-rhythm__intro .lead {
  max-width: 44ch;
  margin-top: 16px;
}

.page-home .home-rhythm__bands {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(24px, 3.6vw, 40px);
  background: var(--line);
  border: var(--home-hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-band {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--ink-900);
  transition: background 0.28s var(--ease);
}

.page-home .home-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  opacity: 0.28;
  transition: opacity 0.28s var(--ease);
}

.page-home .home-band--mid::before {
  background: var(--ice);
}

.page-home .home-band--low::before {
  background: var(--violet);
}

.page-home .home-band:hover::before,
.page-home .home-band:focus-within::before {
  opacity: 1;
}

.page-home .home-band:hover {
  background: var(--ink-800);
}

.page-home .home-band__label {
  margin: 0 0 10px;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  color: var(--steel);
}

.page-home .home-band__gap {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.page-home .home-band__pay {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-0);
  color: var(--cyan);
}

.page-home .home-band--mid .home-band__pay {
  color: var(--ice);
}

.page-home .home-band--low .home-band__pay {
  color: var(--violet);
}

.page-home .home-band__who {
  margin: 12px 0 0;
  font-size: var(--step--1);
  color: var(--steel);
  line-height: 1.7;
}

.page-home .home-band__note {
  margin: 10px 0 0;
  font-size: var(--step--1);
  color: var(--steel-dim);
  line-height: 1.7;
}

.page-home .home-rhythm__media {
  margin-top: clamp(24px, 3.4vw, 0px);
}

.page-home .home-rhythm__figure {
  margin: 0;
  border: var(--home-hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
}

.page-home .home-rhythm__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-rhythm__figure .media__caption {
  padding: 12px 14px;
  border-top: var(--home-hair);
}

.page-home .home-rhythm__media .note {
  margin-top: 14px;
  display: block;
  line-height: 1.75;
}

/* ---------- 12 个品类 ---------- */
.page-home .home-catalog__head {
  max-width: 62ch;
}

.page-home .home-catalog__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(26px, 3.6vw, 44px);
}

.page-home .home-catalog__aside {
  order: 2;
}

.page-home .home-catalog__figure {
  margin: 0;
  border: var(--home-hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
}

.page-home .home-catalog__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .home-catalog__figure .media__caption {
  padding: 12px 14px;
  border-top: var(--home-hair);
}

.page-home .home-cards {
  order: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .home-card {
  position: relative;
  padding: 18px 18px 20px;
  border: var(--home-hair);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 32, 68, 0.82), rgba(6, 14, 31, 0.72));
  box-shadow: var(--shadow-1);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-home .home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}

.page-home .home-card:hover,
.page-home .home-card:focus-within {
  border-color: rgba(47, 224, 208, 0.48);
  transform: translateY(-2px);
}

.page-home .home-card:hover::before {
  opacity: 1;
}

.page-home .home-card__tag {
  display: inline-block;
  margin: 0;
}

.page-home .home-card__name {
  margin: 12px 0 6px;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.page-home .home-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--cyan);
}

.page-home .home-card--mid .home-card__meta {
  color: var(--ice);
}

.page-home .home-card--low .home-card__meta {
  color: var(--violet);
}

.page-home .home-card__desc {
  margin: 10px 0 0;
  font-size: var(--step--1);
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 派彩与返水 ---------- */
.page-home .home-facts__head {
  max-width: 58ch;
}

.page-home .home-facts__grid {
  margin-top: clamp(26px, 3.6vw, 44px);
}

.page-home .home-fact {
  display: flex;
  flex-direction: column;
}

.page-home .home-fact__kicker {
  margin: 0 0 10px;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .home-fact .board__lede {
  margin-top: 12px;
  font-size: var(--step-0);
  line-height: 1.78;
  color: var(--steel);
}

.page-home .home-fact .board__foot {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  line-height: 1.72;
}

/* 派彩刻度 */
.page-home .home-scale {
  position: relative;
  margin: 32px 0 8px;
  padding-bottom: 74px;
}

.page-home .home-scale__track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--ice) 52%, var(--violet) 100%);
  opacity: 0.86;
}

.page-home .home-scale__mark {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transform: translateX(-2px);
}

.page-home .home-scale__mark--a {
  left: 0;
}

.page-home .home-scale__mark--b {
  left: 42%;
}

.page-home .home-scale__mark--c {
  left: 100%;
  transform: translateX(-100%);
  align-items: flex-end;
}

.page-home .home-scale__dot {
  order: 2;
  width: 2px;
  height: 16px;
  background: var(--silver);
  opacity: 0.72;
}

.page-home .home-scale__num {
  order: 1;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--text-strong);
  white-space: nowrap;
}

.page-home .home-scale__who {
  order: 3;
  font-size: var(--step--1);
  color: var(--steel);
  white-space: nowrap;
}

.page-home .home-scale__mark--c .home-scale__who {
  text-align: right;
}

/* 返水四档 */
.page-home .home-rebate {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: var(--home-hair);
}

.page-home .home-rebate__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 16px;
  padding: 14px 0;
  border-bottom: var(--home-hair);
}

.page-home .home-rebate__rate {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.page-home .home-rebate__item:nth-child(2) .home-rebate__rate {
  color: #4FD8DE;
}

.page-home .home-rebate__item:nth-child(3) .home-rebate__rate {
  color: var(--ice);
}

.page-home .home-rebate__item:nth-child(4) .home-rebate__rate {
  color: var(--violet);
}

.page-home .home-rebate__note {
  font-size: var(--step--1);
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 本地化与终端 ---------- */
.page-home .home-local__grid {
  align-items: start;
}

.page-home .home-local__copy .lead {
  margin-top: 16px;
  max-width: 46ch;
}

.page-home .home-local__list {
  list-style: none;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
}

.page-home .home-local__list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: var(--home-hair);
  font-size: var(--step--1);
  line-height: 1.75;
  color: var(--steel);
}

.page-home .home-local__dot {
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.page-home .home-local__stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--home-hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-local__kpi {
  background: var(--ink-800);
  padding: 20px 18px;
  border-radius: 0;
}

.page-home .home-local__kpi .kpi__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.page-home .home-local__kpi .kpi__label {
  margin-top: 8px;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 客服通道 ---------- */
.page-home .home-support {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-home .home-support__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-support__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0.34;
}

.page-home .home-support::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--ink-900) 0%, rgba(6, 14, 31, 0.86) 40%, rgba(13, 32, 68, 0.9) 100%);
}

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

.page-home .home-support__copy .lead {
  margin-top: 16px;
  max-width: 50ch;
}

.page-home .home-support__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: 0;
  background: var(--line);
  border: var(--home-hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-support__fact {
  background: rgba(6, 14, 31, 0.76);
  padding: 18px;
}

.page-home .home-support__fact dt {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .home-support__fact dd {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--cyan);
}

.page-home .home-support__cta {
  margin: clamp(24px, 3.2vw, 34px) 0 0;
}

/* ---------- 平台动态 ---------- */
.page-home .home-news__head {
  max-width: 52ch;
}

.page-home .home-news__list {
  list-style: none;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  padding: 0;
  border-top: var(--home-hair);
}

.page-home .home-news__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 10px;
  padding: clamp(18px, 2.6vw, 26px) 0;
  border-bottom: var(--home-hair);
  transition: padding-left 0.24s var(--ease);
}

.page-home .home-news__item:hover {
  padding-left: 10px;
}

.page-home .home-news__tag {
  justify-self: start;
  margin: 0;
}

.page-home .home-news__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  max-width: 46ch;
}

.page-home .home-news__time {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--steel-dim);
}

.page-home .home-news__more {
  margin: clamp(24px, 3.2vw, 34px) 0 0;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .home-lead__inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

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

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

  .page-home .home-news__item {
    grid-template-columns: 130px minmax(0, 1fr) auto;
    column-gap: 20px;
    align-items: baseline;
  }

  .page-home .home-news__tag,
  .page-home .home-news__time {
    justify-self: start;
  }

  .page-home .home-news__time {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .page-home .home-lead__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: clamp(32px, 5vw, 72px);
  }

  .page-home .home-rhythm__media {
    margin-top: 0;
  }

  .page-home .home-catalog__body {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .page-home .home-catalog__aside {
    order: 1;
  }

  .page-home .home-cards {
    order: 2;
  }

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

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

@media (min-width: 1120px) {
  .page-home .home-catalog__body {
    grid-template-columns: 290px minmax(0, 1fr);
    column-gap: clamp(28px, 3vw, 48px);
  }

  .page-home .home-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .home-rhythm__bands .home-band {
    padding: 26px 24px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-toc__list a,
  .page-home .home-card,
  .page-home .home-news__item,
  .page-home .home-band {
    transition: none;
  }

  .page-home .home-card:hover,
  .page-home .home-news__item:hover,
  .page-home .home-toc__list a:hover {
    transform: none;
    padding-left: 0;
  }
}
