/* ===== page-home ===== */

.page-home {
  display: block;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(90vh, 840px);
  padding: clamp(88px, 15vh, 170px) 0 clamp(46px, 7vw, 92px);
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}

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

.page-home .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 85% at 76% 8%, rgba(14, 59, 74, 0.92), rgba(14, 59, 74, 0) 62%),
    linear-gradient(180deg, rgba(5, 25, 19, 0.32) 0%, rgba(5, 25, 19, 0.82) 56%, var(--ink) 100%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200, 162, 76, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 162, 76, 0.11) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 72%, transparent 100%);
}

.page-home .hero-inner {
  position: relative;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .hero-kicker::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.page-home .hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 8.6vw, 5.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 24px rgba(200, 162, 76, 0.3);
}

.page-home .hero-title em {
  display: block;
  font-style: normal;
  color: var(--gold-hi);
}

.page-home .hero-lede {
  max-width: 58ch;
  margin: 0 0 34px;
  font-size: clamp(1rem, 2.1vw, 1.14rem);
  line-height: 1.85;
  color: var(--text);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.page-home .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .hero-facts li {
  position: relative;
  padding-left: 16px;
}

.page-home .hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
}

/* ---------- 通用章节 ---------- */

.page-home .band {
  position: relative;
  padding: clamp(60px, 8.5vw, 118px) 0;
}

.page-home .band--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 42, 34, 0.55), rgba(11, 42, 34, 0));
  pointer-events: none;
}

.page-home .band--alt {
  isolation: isolate;
}

.page-home .sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: clamp(28px, 4.5vw, 54px);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.page-home .sec-num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.page-home .sec-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--text);
}

.page-home .sec-sub {
  max-width: 62ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
}

@media (min-width: 720px) {
  .page-home .sec-head {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 30px;
    align-items: start;
  }

  .page-home .sec-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 4px;
  }

  .page-home .sec-title {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .sec-sub {
    grid-column: 2;
    grid-row: 2;
    margin-top: 10px;
  }
}

/* ---------- 01 进场两条路 ---------- */

.page-home .enter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--line);
}

.page-home .enter-list > li {
  border-bottom: 2px solid var(--line);
}

.page-home .enter-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 6px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.24s ease, padding-left 0.24s ease;
}

.page-home .enter-link:hover,
.page-home .enter-link:focus-visible {
  background-color: rgba(63, 235, 208, 0.07);
  padding-left: 18px;
}

.page-home .enter-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .enter-name {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(1.12rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.page-home .enter-desc {
  display: block;
  max-width: 66ch;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .enter-arrow {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--cyan);
  transition: transform 0.24s ease;
}

.page-home .enter-link:hover .enter-arrow,
.page-home .enter-link:focus-visible .enter-arrow {
  transform: translateX(6px);
}

/* ---------- 图片容器 ---------- */

.page-home .shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 59, 74, 0.55), rgba(11, 42, 34, 0.92));
}

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

.page-home .shot--member {
  aspect-ratio: 4 / 3;
}

.page-home .shot--calendar {
  aspect-ratio: 14 / 9;
}

.page-home .shot--guide {
  aspect-ratio: 3 / 2;
}

.page-home .shot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(5, 25, 19, 0), rgba(5, 25, 19, 0.94));
}

/* ---------- 02 会员中心 ---------- */

.page-home .split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

@media (min-width: 880px) {
  .page-home .split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .page-home .split--even {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }
}

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

.page-home .step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .step:first-child {
  padding-top: 0;
}

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

.page-home .step-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  border: 2px solid var(--line);
  background: var(--panel);
}

.page-home .step-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: center;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .step-text {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.82;
  color: var(--muted);
}

/* ---------- 03 开服日历 ---------- */

.page-home .cal-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 59, 74, 0.4), rgba(11, 42, 34, 0.94));
  box-shadow: var(--shadow-hard-sm);
}

@media (min-width: 880px) {
  .page-home .cal-panel {
    box-shadow: var(--shadow-hard);
  }
}

.page-home .cal-lede {
  margin: 0 0 20px;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text);
}

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

.page-home .phases li {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(21, 66, 57, 0.4);
}

.page-home .cal-note {
  margin: 0 0 24px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 04 攻略区 ---------- */

.page-home .guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 880px) {
  .page-home .guide-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }
}

.page-home .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .fact {
  padding: 14px 16px;
  background: var(--panel);
}

.page-home .fact dt {
  margin-bottom: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .fact dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.page-home .guide-text {
  margin: 0 0 24px;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 05 版本线快照 ---------- */

.page-home .status-panel {
  border: 2px solid var(--line);
  background: var(--panel);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-hard-sm);
}

@media (min-width: 880px) {
  .page-home .status-panel {
    box-shadow: var(--shadow-hard);
  }
}

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

.page-home .vline {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas:
    "name track"
    "meta meta";
  gap: 10px 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .vline:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.page-home .vline-name {
  grid-area: name;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.page-home .vline-track {
  grid-area: track;
  position: relative;
  height: 2px;
  background: var(--line);
  transition: background 0.24s ease;
}

.page-home .vline-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background: var(--line);
  transition: background-color 0.24s ease, box-shadow 0.24s ease;
}

.page-home .vline-meta {
  grid-area: meta;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .vline:hover .vline-track,
.page-home .vline:focus-within .vline-track {
  background: linear-gradient(90deg, var(--cyan), var(--line) 78%);
}

.page-home .vline:hover .vline-dot,
.page-home .vline:focus-within .vline-dot {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.page-home .vline--hi .vline-dot {
  background: var(--gold-hi);
  box-shadow: 0 0 10px rgba(242, 217, 140, 0.65);
}

.page-home .vline--hi .vline-name {
  color: var(--gold-hi);
}

.page-home .ver-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 06 继续往下走 ---------- */

.page-home .next-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.page-home .next-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px;
  color: inherit;
  text-decoration: none;
  border: 2px solid var(--line);
  background: var(--panel);
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.page-home .next-link:hover,
.page-home .next-link:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard-sm);
}

.page-home .next-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .next-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.page-home .next-desc {
  flex: 1 1 auto;
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .next-go {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

/* ---------- 窄屏收尾 ---------- */

@media (max-width: 480px) {
  .page-home .hero {
    min-height: auto;
    padding-top: clamp(72px, 16vh, 120px);
  }

  .page-home .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-home .hero-facts {
    gap: 8px 18px;
  }

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

  .page-home .enter-arrow {
    display: none;
  }

  .page-home .facts {
    grid-template-columns: 1fr;
  }

  .page-home .vline {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 14px;
  }
}
