.page-home {
  background: var(--night);
  color: var(--f-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 34px 0 60px;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(233, 185, 73, 0.16), transparent 62%),
    radial-gradient(760px 420px at -8% 22%, rgba(47, 111, 208, 0.22), transparent 68%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 68%);
  border-bottom: var(--bd) solid var(--line);
}

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

.page-home .home-hero__context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.page-home .home-hero__dot {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--flame);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.2);
}

.page-home .home-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 26px;
}

.page-home .home-index__link {
  display: inline-block;
  min-width: 42px;
  padding: 6px 8px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--line);
  transition: color 0.12s linear, border-color 0.12s linear, background 0.12s linear;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  color: var(--night);
  background: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(36px, 7.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--f-white);
}

.page-home .home-hero__title::after {
  content: "";
  display: block;
  width: 108px;
  height: 10px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--gold), var(--flame));
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.page-home .home-hero__lede {
  margin: 0 0 16px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--f-white);
}

.page-home .home-hero__sub {
  margin: 0 0 26px;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
}

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

.page-home .home-hero__art {
  margin: 0;
  background: var(--night-2);
  border: var(--bd) solid var(--line);
  box-shadow: var(--hard);
}

.page-home .home-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
}

.page-home .home-hero__art figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  border-top: 2px solid var(--line);
}

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

.page-home .home-figure {
  position: relative;
  padding: 26px 20px 22px;
  background: var(--night-2);
  border: var(--bd) solid var(--line);
  box-shadow: var(--hard);
  transition: border-color 0.12s linear, box-shadow 0.12s linear;
}

.page-home .home-figure::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  height: 6px;
  background: var(--f-blue);
}

.page-home .home-figures > .home-figure:nth-child(2)::before {
  background: var(--f-red);
}

.page-home .home-figures > .home-figure:nth-child(3)::before {
  background: var(--f-green);
}

.page-home .home-figure:hover {
  border-color: var(--gold);
  box-shadow: var(--hard-gold);
}

.page-home .home-figure__top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 10px;
}

.page-home .home-figure__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(58px, 13vw, 92px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.04em;
  color: var(--gold);
}

.page-home .home-figure__unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-soft);
}

.page-home .home-figure__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--f-white);
}

.page-home .home-figure__note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
  transition: color 0.12s linear;
}

.page-home .home-figure:hover .home-figure__note {
  color: var(--gold-soft);
}

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

/* ---------- 编号面板通用 ---------- */
.page-home .home-block {
  position: relative;
  margin: 0 0 44px;
  padding: 32px 20px 32px 28px;
  background: var(--night-2);
  border: var(--bd) solid var(--line);
  box-shadow: var(--hard);
}

.page-home .home-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(
    180deg,
    var(--f-blue) 0 20%,
    var(--f-white) 20% 40%,
    var(--f-red) 40% 60%,
    var(--f-green) 60% 80%,
    var(--f-yellow) 80% 100%
  );
}

.page-home .home-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.page-home .home-block__no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home .home-block__title {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--f-white);
}

.page-home .home-block__lede {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--f-white);
}

.page-home .home-block__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

/* ---------- 图注通用 ---------- */
.page-home .home-fig {
  margin: 0;
  background: var(--night);
  border: var(--bd) solid var(--line);
  box-shadow: var(--hard);
}

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

.page-home .home-fig figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  border-top: 2px solid var(--line);
}

.page-home .home-fig--wide {
  margin-bottom: 22px;
}

.page-home .home-fig--wide img {
  aspect-ratio: 16 / 5;
}

/* ---------- 02 三段 ---------- */
.page-home .home-parts {
  display: grid;
  gap: 14px;
}

.page-home .home-part {
  position: relative;
  padding: 20px 18px 20px 22px;
  background: var(--night);
  border: 2px solid var(--line);
  transition: border-color 0.12s linear;
}

.page-home .home-part::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--f-blue);
}

.page-home .home-part[data-tone="red"]::before {
  background: var(--f-red);
}

.page-home .home-part[data-tone="gold"]::before {
  background: var(--gold);
}

.page-home .home-part:hover {
  border-color: var(--gold);
}

.page-home .home-part__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--f-white);
}

.page-home .home-part__text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--f-white);
}

.page-home .home-part__plain {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gold-soft);
}

/* ---------- 03 七日周期 ---------- */
.page-home .home-cycle {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-cycle__day {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px 16px;
  background: var(--night);
  border: 2px solid var(--line);
  border-top-width: 6px;
  transition: border-color 0.12s linear, background 0.12s linear;
}

.page-home .home-cycle__day:nth-child(1) { border-top-color: var(--f-blue); }
.page-home .home-cycle__day:nth-child(2) { border-top-color: var(--f-white); }
.page-home .home-cycle__day:nth-child(3) { border-top-color: var(--f-red); }
.page-home .home-cycle__day:nth-child(4) { border-top-color: var(--f-green); }
.page-home .home-cycle__day:nth-child(5) { border-top-color: var(--f-yellow); }
.page-home .home-cycle__day:nth-child(6) { border-top-color: var(--f-blue); }
.page-home .home-cycle__day:nth-child(7) { border-top-color: var(--flame); }

.page-home .home-cycle__day:hover,
.page-home .home-cycle__day:focus-within {
  background: rgba(233, 185, 73, 0.08);
  border-color: var(--gold);
  border-top-color: var(--gold);
}

.page-home .home-cycle__idx {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .home-cycle__label {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--f-white);
}

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

.page-home .home-cycle__note {
  margin: 20px 0 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gold-soft);
  background: rgba(233, 185, 73, 0.08);
  border-left: 5px solid var(--gold);
}

/* ---------- 04 返水阶梯 ---------- */
.page-home .home-ladder {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-ladder__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--night);
  border: 2px solid var(--line);
  transition: border-color 0.12s linear, background 0.12s linear;
}

.page-home .home-ladder__step:hover {
  border-color: var(--gold);
  background: rgba(233, 185, 73, 0.08);
}

.page-home .home-ladder__rank {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.page-home .home-ladder__name {
  font-size: 15px;
  font-weight: 900;
  color: var(--f-white);
}

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

.page-home .home-halls {
  margin-bottom: 24px;
  padding: 20px 18px;
  background: var(--night);
  border: 2px solid var(--line);
}

.page-home .home-halls__title {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--f-white);
}

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

.page-home .home-hall {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--f-white);
  background: var(--night-2);
  border: 2px solid var(--line);
}

.page-home .home-hall__dot {
  width: 10px;
  height: 10px;
  flex: none;
}

.page-home .home-hall__dot--blue { background: var(--f-blue); }
.page-home .home-hall__dot--white { background: var(--f-white); }
.page-home .home-hall__dot--red { background: var(--f-red); }
.page-home .home-hall__dot--green { background: var(--f-green); }
.page-home .home-hall__dot--yellow { background: var(--f-yellow); }
.page-home .home-hall__dot--gold { background: var(--gold); }

/* ---------- 05 换厅对照 ---------- */
.page-home .home-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--night);
  border: 2px solid var(--line);
}

.page-home .home-compare__side {
  padding: 20px 18px;
}

.page-home .home-compare__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold);
  border-bottom: 2px solid var(--line);
}

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

.page-home .home-compare__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .home-compare__rows li span:last-child {
  color: var(--f-white);
  font-weight: 700;
}

/* ---------- 横向条带 ---------- */
.page-home .home-ribbon {
  margin: 0 0 44px;
  background: linear-gradient(90deg, var(--night-2), var(--night));
  border-top: var(--bd) solid var(--line);
  border-bottom: var(--bd) solid var(--line);
}

.page-home .home-ribbon__track {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .home-ribbon__cell {
  flex: 0 0 auto;
  min-width: 176px;
  padding: 22px 26px;
  border-right: 2px solid var(--line);
}

.page-home .home-ribbon__cell:first-child {
  border-left: 2px solid var(--line);
}

.page-home .home-ribbon__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home .home-ribbon__label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
}

/* ---------- 06 三件事 ---------- */
.page-home .home-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-step {
  padding: 24px 20px 22px;
  background: var(--night);
  border: 2px solid var(--line);
  transition: border-color 0.12s linear;
}

.page-home .home-step:hover {
  border-color: var(--gold);
}

.page-home .home-step__idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  color: var(--flame);
}

.page-home .home-step__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  color: var(--f-white);
}

.page-home .home-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .home-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 07 看台更新 ---------- */
.page-home .home-posts {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 0;
  border: 2px solid var(--line);
}

.page-home .home-post {
  padding: 20px 20px 22px;
  background: var(--night);
  border-bottom: 2px solid var(--line);
  transition: background 0.12s linear;
}

.page-home .home-post:last-child {
  border-bottom: 0;
}

.page-home .home-post:hover {
  background: var(--night-2);
}

.page-home .home-post__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--night);
  background: var(--gold);
}

.page-home .home-post__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--f-white);
}

.page-home .home-post__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .home-posts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 中等屏幕 ---------- */
@media (min-width: 640px) {
  .page-home .home-ladder__step {
    grid-template-columns: 44px minmax(0, 92px) minmax(0, 1fr);
    gap: 14px;
  }

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

  .page-home .home-compare__side + .home-compare__side {
    border-left: var(--bd) solid var(--line);
  }
}

@media (min-width: 760px) {
  .page-home .home-figures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }

  .page-home .home-figures > .home-figure:nth-child(2) {
    margin-top: 28px;
  }

  .page-home .home-figures > .home-figure:nth-child(3) {
    margin-top: 56px;
  }

  .page-home .home-cycle {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }

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

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 44px 0 72px;
  }

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

  .page-home .home-block {
    margin-bottom: 64px;
    padding: 40px 34px 40px 42px;
  }

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

  .page-home .home-block__split--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .home-block__split--flip .home-fig {
    order: 2;
  }

  .page-home .home-ladder__step:nth-child(1) { width: 56%; }
  .page-home .home-ladder__step:nth-child(2) { width: 64%; }
  .page-home .home-ladder__step:nth-child(3) { width: 72%; }
  .page-home .home-ladder__step:nth-child(4) { width: 80%; }
  .page-home .home-ladder__step:nth-child(5) { width: 89%; }
  .page-home .home-ladder__step:nth-child(6) { width: 100%; }

  .page-home .home-ribbon__cell {
    min-width: 200px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__inner {
    padding-right: 46px;
  }

  .page-home .home-hero__vnote {
    display: block;
    position: absolute;
    right: 2px;
    top: 108px;
    font-size: 14px;
    letter-spacing: 0.35em;
    color: var(--gold-soft);
    opacity: 0.8;
    writing-mode: vertical-rl;
    pointer-events: none;
  }
}
