.page-home {
  --ph-gutter: clamp(16px, 4vw, 40px);
  --ph-rule-dark: rgba(242, 237, 227, .14);
  --ph-rule-light: rgba(16, 36, 29, .14);
  overflow-x: hidden;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
}

.page-home .progressbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 95;
  background: linear-gradient(90deg, var(--cyan-electric), var(--ember));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- reveal（滚动驱动，纯 CSS，无 JS 时内容照常可见） ---------- */
@keyframes ph-reveal {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .page-home [data-reveal] {
      animation: ph-reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 58%;
    }
  }
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 5vw, 56px) 0 clamp(34px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(47, 227, 206, .16), transparent 62%),
    radial-gradient(90% 70% at 4% 110%, rgba(255, 90, 43, .12), transparent 66%),
    var(--ink-900);
  overflow: hidden;
}

.page-home .hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(242, 237, 227, .05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(242, 237, 227, .05) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .3) 72%, transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .3) 72%, transparent);
}

.page-home .hero__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-home .hero__rays path {
  fill: none;
  stroke: var(--cyan-electric);
  stroke-opacity: .22;
  stroke-width: 1.2;
  stroke-dasharray: 7 11;
}

.page-home .hero__rays path:nth-child(3) {
  stroke: var(--ember);
  stroke-opacity: .3;
  stroke-dasharray: none;
}

.page-home .hero__shot {
  position: absolute;
  top: -8%;
  right: -12%;
  width: min(880px, 76%);
  z-index: 2;
  opacity: .34;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(205deg, #000 0%, rgba(0, 0, 0, .55) 44%, transparent 80%);
  mask-image: linear-gradient(205deg, #000 0%, rgba(0, 0, 0, .55) 44%, transparent 80%);
}

.page-home .hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.8) contrast(1.06);
}

.page-home .hero__shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 56px);
}

.page-home .hero__ctx {
  color: var(--neutral-400);
}

.page-home .hero__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(2.7rem, 10vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--paper);
}

.page-home .hero__title-em {
  display: inline-block;
  font-weight: 500;
  color: var(--cyan-electric);
}

.page-home .hero__lede {
  margin: 22px 0 0;
  max-width: 36em;
  color: rgba(242, 237, 227, .82);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
}

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

.page-home .hero__side {
  display: grid;
  gap: 20px;
  align-content: end;
}

.page-home .hero__status {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-home .hero__status-label {
  margin: 0;
  color: var(--cyan-electric);
}

.page-home .hero__status-line {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--paper);
}

.page-home .hero__status-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .hero__status-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(242, 237, 227, .72);
}

.page-home .hero__status-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 1px;
  background: var(--cyan-deep);
}

.page-home .hero__dir {
  padding-top: 4px;
}

.page-home .dirlist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--ph-rule-dark);
}

.page-home .dirlist__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--ph-rule-dark);
  color: var(--paper);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), padding-left .25s var(--ease);
}

.page-home .dirlist__link:hover,
.page-home .dirlist__link:focus-visible {
  background: rgba(47, 227, 206, .09);
  padding-left: 12px;
  color: var(--cyan-electric);
  outline: none;
}

.page-home .dirlist__link.is-active {
  color: var(--cyan-electric);
}

.page-home .dirlist__link.is-active .dirlist__num {
  color: var(--cyan-electric);
}

.page-home .dirlist__num {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--neutral-400);
  transition: color .25s var(--ease);
}

.page-home .dirlist__link:hover .dirlist__num {
  color: var(--ember);
}

.page-home .dirlist__text {
  font-size: 15px;
}

.page-home .dirlist__meta {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--neutral-400);
}

/* ---------- 通用章节 ---------- */
.page-home .section {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0;
}

.page-home .section--paper {
  background: var(--paper);
  color: var(--ink-700);
}

.page-home .section--paper .sechead__idx {
  color: var(--cyan-deep);
}

.page-home .section--paper .lede {
  color: #34443D;
}

.page-home .sechead {
  max-width: 62em;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .sechead--tight {
  max-width: 54em;
}

.page-home .sechead__idx {
  margin: 0;
  color: var(--cyan-electric);
}

.page-home .sechead__idx--amber {
  color: var(--amber-battle);
}

.page-home .sechead__lede {
  margin: 16px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
}

.page-home .sect-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.01em;
}

.page-home .sect-title::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 16px;
  background: currentColor;
  opacity: .42;
}

/* ---------- 01 访问入口 ---------- */
.page-home .accessgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.page-home .steplist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ph-rule-light);
}

.page-home .steplist__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: clamp(18px, 3vw, 26px) 0;
  border-bottom: 1px solid var(--ph-rule-light);
}

.page-home .steplist__num {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan-deep);
}

.page-home .steplist__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--ink-900);
}

.page-home .steplist__body p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #34443D;
}

.page-home .steplist__meta {
  font-family: var(--font-data);
  font-size: 12px !important;
  letter-spacing: .04em;
  color: var(--neutral-400) !important;
}

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

.page-home .accessgrid__figure .media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-700);
}

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

.page-home .media-caption {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5C6B64;
}

/* ---------- 02 战报速读带 ---------- */
.page-home .sec-trends {
  background:
    linear-gradient(160deg, rgba(47, 227, 206, .06), transparent 55%),
    var(--ink-700);
  color: var(--paper);
  overflow: hidden;
}

.page-home .trend-chips {
  padding-inline: var(--ph-gutter);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-home .trend-chips .chip {
  cursor: pointer;
}

.page-home .trend-chips .chip.is-on {
  color: var(--ink-900);
}

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

.page-home .band__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(258px, 80vw);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px var(--ph-gutter) 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-deep) transparent;
}

.page-home .band__track:focus-visible {
  outline: 2px solid var(--cyan-electric);
  outline-offset: -4px;
}

.page-home .band__track::-webkit-scrollbar {
  height: 6px;
}

.page-home .band__track::-webkit-scrollbar-thumb {
  background: var(--cyan-deep);
  border-radius: 999px;
}

.page-home .band__item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--ph-rule-dark);
  background: var(--ink-600);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}

.page-home .band__item:hover,
.page-home .band__item:focus-within {
  border-color: var(--amber-battle);
  background: #1A3A2E;
  transform: translateY(-4px);
}

.page-home .report__tag {
  align-self: flex-start;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid rgba(233, 160, 59, .45);
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--amber-battle);
}

.page-home .report__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--paper);
}

.page-home .report__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(242, 237, 227, .72);
}

.page-home .report__meta {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ph-rule-dark);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--neutral-400);
}

.page-home .report__meta .data-num {
  color: var(--cyan-electric);
}

.page-home .trend-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-top: 14px;
}

.page-home .trend-foot__note {
  margin: 0;
  max-width: 52em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--neutral-400);
}

/* ---------- 03 赛季节奏 ---------- */
.page-home .sec-rhythm {
  background: var(--ink-900);
  color: var(--paper);
}

.page-home .sec-rhythm .sechead__idx {
  color: var(--cyan-electric);
}

.page-home .sec-rhythm .lede {
  color: rgba(242, 237, 227, .76);
}

.page-home .sec-rhythm .sect-title::before {
  background: var(--cyan-electric);
  opacity: .9;
}

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

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

.page-home .phase__dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan-electric);
  box-shadow: 0 0 0 5px rgba(47, 227, 206, .14);
  margin-bottom: 16px;
}

.page-home .phase__tag {
  margin: 0;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--neutral-400);
}

.page-home .phase__title {
  margin: 8px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--paper);
}

.page-home .phase__text {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(242, 237, 227, .74);
}

/* ---------- 04 会员中心 ---------- */
.page-home .memgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .memcard {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: #FFFFFF;
  border: 1px solid rgba(16, 36, 29, .1);
  overflow: hidden;
}

.page-home .memcard::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(225deg, rgba(15, 179, 166, .12), transparent 70%);
  pointer-events: none;
}

.page-home .memcard--rank::after { background: linear-gradient(225deg, rgba(15, 179, 166, .2), transparent 70%); }
.page-home .memcard--search::after { background: linear-gradient(225deg, rgba(255, 90, 43, .16), transparent 70%); }
.page-home .memcard--subs::after { background: linear-gradient(225deg, rgba(233, 160, 59, .2), transparent 70%); }
.page-home .memcard--history::after { background: linear-gradient(225deg, rgba(47, 227, 206, .18), transparent 70%); }

.page-home .memcard__no {
  margin: 0;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--cyan-deep);
}

.page-home .memcard__title {
  margin: 12px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink-900);
}

.page-home .memcard__text {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: #3B4A43;
}

.page-home .memcard__use {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(16, 36, 29, .18);
  font-size: 13px;
  line-height: 1.7;
  color: #5C6B64;
}

/* ---------- 05 简史与排查入口 ---------- */
.page-home .rowlinks {
  border-top: 1px solid var(--ph-rule-light);
}

.page-home .rowlink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--ph-rule-light);
  color: inherit;
  text-decoration: none;
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}

.page-home .rowlink:hover,
.page-home .rowlink:focus-visible {
  padding-left: 14px;
  color: var(--cyan-deep);
  outline: none;
}

.page-home .rowlink__no {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-deep);
  border: 1px solid rgba(15, 179, 166, .35);
  border-radius: var(--r-sm);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.page-home .rowlink__body {
  display: grid;
  gap: 8px;
}

.page-home .rowlink__title {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink-900);
}

.page-home .rowlink__desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #4A5A53;
  max-width: 58em;
}

.page-home .rowlink__arrow {
  font-family: var(--font-data);
  font-size: 20px;
  color: var(--neutral-400);
  transition: transform .3s var(--ease), color .3s var(--ease);
}

.page-home .rowlink:hover .rowlink__arrow {
  transform: translateX(6px);
  color: var(--ember);
}

/* ---------- 06 站点信息条 ---------- */
.page-home .sec-help {
  position: relative;
  padding: 0 0 clamp(48px, 7vw, 84px);
  background: var(--ink-900);
  color: var(--paper);
}

.page-home .help-visual {
  margin: 0 0 clamp(34px, 5vw, 56px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 76%, transparent);
}

.page-home .help-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  opacity: .5;
  filter: saturate(.7);
}

.page-home .helpbar__head {
  max-width: 48em;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.page-home .helpbar__head .sect-title::before {
  background: var(--ember);
  opacity: .9;
}

.page-home .helpbar__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--ph-rule-dark);
}

.page-home .helpbar__cell .index-label {
  margin: 0;
  color: var(--neutral-400);
}

.page-home .helpbar__value {
  margin: 10px 0 0;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 600;
  color: var(--paper);
  word-break: break-word;
}

.page-home .helpbar__foot {
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--ph-rule-dark);
  display: grid;
  gap: 12px;
}

.page-home .helpbar__addr,
.page-home .helpbar__note,
.page-home .helpbar__legal {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--neutral-400);
}

.page-home .helpbar__note {
  max-width: 64em;
}

.page-home .helpbar__note a {
  color: var(--cyan-electric);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 227, 206, .45);
}

.page-home .helpbar__note a:hover {
  color: var(--ember);
  border-bottom-color: rgba(255, 90, 43, .55);
}

.page-home .helpbar__legal {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .05em;
}

/* ---------- 返回顶部 ---------- */
.page-home .totop {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(8, 19, 15, .8);
  color: var(--cyan-electric);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}

.page-home .totop.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.page-home .totop:hover {
  background: rgba(15, 179, 166, .26);
}

/* ---------- 平板 / 小桌面 ---------- */
@media (min-width: 720px) {
  .page-home .band__track {
    grid-auto-columns: minmax(288px, 33%);
  }

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

  .page-home .hero__shot {
    right: -6%;
    width: min(880px, 62%);
  }
}

@media (min-width: 780px) {
  .page-home .phase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .page-home .phase__item {
    padding: 0 26px;
    border-left: 1px solid var(--ph-rule-dark);
  }

  .page-home .phase__item:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .page-home .phase__item:last-child {
    padding-right: 0;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .hero {
    padding-bottom: clamp(48px, 6vw, 84px);
  }

  .page-home .hero__shell {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(36px, 5vw, 80px);
  }

  .page-home .hero__side {
    align-content: start;
  }
}

@media (min-width: 940px) {
  .page-home .accessgrid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
    gap: clamp(32px, 4vw, 56px);
  }

  .page-home .accessgrid__figure {
    position: sticky;
    top: 28px;
  }
}

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

  .page-home .memcard--rank { grid-column: span 7; }
  .page-home .memcard--search { grid-column: span 5; }
  .page-home .memcard--subs { grid-column: span 5; }
  .page-home .memcard--history { grid-column: span 7; }
}

@media (min-width: 1080px) {
  .page-home .band__track {
    grid-auto-columns: minmax(300px, 25%);
  }

  .page-home .helpbar__grid {
    gap: 32px;
  }
}

/* ---------- 窄屏收口 ---------- */
@media (max-width: 520px) {
  .page-home .hero__title {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

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

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

  .page-home .dirlist__meta {
    grid-column: 2;
  }

  .page-home .rowlink {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .rowlink__arrow {
    grid-column: 2;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.page-home {
  --progress: inherit;
}
