.page-home {
  --hero-accent: var(--neon-purple);
  --pad-y: clamp(3rem, 7.5vw, 6rem);
  position: relative;
  display: block;
  background: var(--night-indigo);
  color: var(--ink);
  overflow-x: clip;
}

.page-home .section {
  position: relative;
  padding: var(--pad-y) 0;
}

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

.page-home .hero-split {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(58% 74% at 82% 12%, rgba(168, 85, 247, 0.30), transparent 62%),
    radial-gradient(48% 66% at 6% 88%, rgba(53, 196, 240, 0.16), transparent 64%),
    var(--night-indigo);
  overflow: hidden;
}

.page-home .hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(243, 238, 255, 0.035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.page-home .pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home #pick-new:checked ~ .shell { --hero-accent: var(--electric-blue); }
.page-home #pick-back:checked ~ .shell { --hero-accent: var(--neon-purple); }
.page-home #pick-one:checked ~ .shell { --hero-accent: var(--gold); }

.page-home .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .hero-title span {
  display: block;
  margin-top: 0.38em;
  font-size: 0.58em;
  font-weight: 200;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}

.page-home .hero-lede {
  max-width: 30em;
  margin: 0 0 1.2rem;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.75;
  color: var(--ink-muted);
}

.page-home .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.9rem;
}

.page-home .hero-tags span {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(183, 170, 217, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.page-home .pick-q {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.page-home .pick-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-radius: 999px;
}

.page-home .pick-labels label {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 999px;
  background: rgba(36, 21, 70, 0.6);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.page-home .pick-labels label:hover {
  color: var(--ink);
  border-color: var(--hero-accent);
}

.page-home #pick-new:checked ~ .shell label[for="pick-new"],
.page-home #pick-back:checked ~ .shell label[for="pick-back"],
.page-home #pick-one:checked ~ .shell label[for="pick-one"] {
  color: var(--night-indigo);
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  font-weight: 600;
}

.page-home .pick-input:focus-visible ~ .shell .pick-labels {
  outline: 2px solid var(--electric-blue);
  outline-offset: 4px;
}

.page-home .pick-panel {
  display: none;
  max-width: 32em;
  margin: 0.95rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.page-home #pick-new:checked ~ .shell .pick-panel--new,
.page-home #pick-back:checked ~ .shell .pick-panel--back,
.page-home #pick-one:checked ~ .shell .pick-panel--one {
  display: block;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.page-home .hero-visual {
  position: relative;
  min-width: 0;
}

.page-home .hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: var(--card-purple);
  transform: rotate(-1.4deg);
  box-shadow: 0 24px 60px -28px rgba(168, 85, 247, 0.7);
}

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

.page-home .hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-home .hero-svg .acc-s { stroke: var(--hero-accent); }
.page-home .hero-svg .acc-f { fill: var(--hero-accent); }

.page-home .hero-chip {
  position: absolute;
  right: 1.1rem;
  bottom: -1rem;
  z-index: 2;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(53, 196, 240, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(21, 11, 46, 0.88);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  backdrop-filter: blur(6px);
}

/* ---------- 侧边目录 ---------- */

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

/* ---------- 通用小标题 ---------- */

.page-home .sec-head {
  max-width: 46rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
}

.page-home .sec-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .sec-lede {
  max-width: 34em;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

/* ---------- 起步方式 ---------- */

.page-home .paths-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.page-home .paths-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(53, 196, 240, 0.28);
  background: var(--card-purple);
  aspect-ratio: 3 / 2;
}

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

.page-home .paths-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

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

.page-home .path-card {
  padding: 1.25rem 1.3rem 1.4rem;
  border-left: 3px solid var(--pc, var(--neon-purple));
}

.page-home .path-card--a { --pc: var(--neon-purple); }
.page-home .path-card--b { --pc: var(--electric-blue); }
.page-home .path-card--c { --pc: var(--gold); }

.page-home .path-head h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.page-home .path-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pc);
}

.page-home .path-steps {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .path-steps li {
  position: relative;
  padding-left: 2.1rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.page-home .path-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0.1em;
  padding: 0.06rem 0.3rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pc);
  opacity: 0.9;
}

.page-home .path-link {
  display: inline-block;
  margin-top: 1.1rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--pc);
  text-decoration: none;
}

.page-home .path-link:hover {
  color: var(--ink);
}

/* ---------- 本周活动 ---------- */

.page-home .news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.page-home .news-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(53, 196, 240, 0.35);
  background: var(--night-indigo);
  transform: rotate(1.1deg);
}

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

.page-home .news-visual .media-caption {
  margin-top: 0.9rem;
}

.page-home .news-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(183, 170, 217, 0.18);
}

.page-home .news-date {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.page-home .news-link {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease;
}

.page-home .news-link:hover {
  color: var(--electric-blue);
}

.page-home .news-item .tag {
  justify-self: start;
}

.page-home .news-cta {
  margin-top: 1.6rem;
}

/* ---------- 道具速查 ---------- */

.page-home .items-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.page-home .cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .cat-item {
  display: block;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: var(--radius-sm);
  background: var(--card-purple);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.page-home .cat-item:hover {
  border-color: var(--laser-pink);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.28);
}

.page-home .cat-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--neon-purple);
}

.page-home .cat-name {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.page-home .field-panel {
  padding: clamp(1.2rem, 3vw, 1.9rem);
  border: 1px solid rgba(53, 196, 240, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-purple), rgba(21, 11, 46, 0.6));
}

.page-home .field-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric-blue);
}

.page-home .field-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .field-list li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.page-home .field-idx {
  font-size: 12px;
  color: var(--neon-purple);
}

.page-home .field-body {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.page-home .field-body strong {
  color: var(--ink);
  font-weight: 600;
}

.page-home .field-cta {
  margin-top: 1.5rem;
}

/* ---------- 段位阶梯 ---------- */

.page-home .rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.page-home .rank-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.8rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .rank-node {
  display: grid;
  gap: 0.55rem;
}

.page-home .rank-mark {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-purple), var(--electric-blue));
}

.page-home .rank-node:last-child .rank-mark {
  background: linear-gradient(90deg, var(--gold), var(--laser-pink));
  animation: homeRankPulse 2.6s ease-in-out infinite;
}

.page-home .rank-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.page-home .rank-node:last-child .rank-name {
  color: var(--gold);
}

.page-home .rank-cta {
  margin-top: 2rem;
}

.page-home .rank-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 198, 77, 0.3);
  background: var(--night-indigo);
  aspect-ratio: 1 / 1;
}

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

@keyframes homeRankPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 198, 77, 0.3); }
  50% { box-shadow: 0 0 24px rgba(255, 198, 77, 0.72); }
}

/* ---------- 内容体量 ---------- */

.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .stat-item {
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(36, 21, 70, 0.55);
}

.page-home .stat-num {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.page-home .stat-item:nth-child(2) .stat-num,
.page-home .stat-item:nth-child(5) .stat-num { color: var(--electric-blue); }

.page-home .stat-item:nth-child(3) .stat-num,
.page-home .stat-item:nth-child(6) .stat-num { color: var(--laser-pink); }

.page-home .stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.page-home .stat-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- 高频问题与客服 ---------- */

.page-home .help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.page-home .q-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .q-list a {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(21, 11, 46, 0.6);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.page-home .q-list a:hover {
  border-color: var(--laser-pink);
  transform: translateX(3px);
}

.page-home .q-idx {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--neon-purple);
}

.page-home .q-text {
  display: block;
  font-size: 1rem;
}

.page-home .q-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.page-home .help-contact {
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border: 1px solid rgba(53, 196, 240, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--deep-teal), rgba(6, 34, 43, 0.4));
}

.page-home .contact-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.page-home .home-contact-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-contact-list li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
}

.page-home .contact-key {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--electric-blue);
}

.page-home .contact-value {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  word-break: break-word;
}

.page-home .contact-note {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.page-home .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

/* ---------- 进入视口的错峰显现 ---------- */

.js .page-home .rank-node,
.js .page-home .stat-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.js .page-home .rank-node.is-visible,
.js .page-home .stat-item.is-visible {
  opacity: 1;
  transform: none;
}

.js .page-home .rank-node:nth-child(2),
.js .page-home .stat-item:nth-child(2) { transition-delay: 60ms; }
.js .page-home .rank-node:nth-child(3),
.js .page-home .stat-item:nth-child(3) { transition-delay: 120ms; }
.js .page-home .rank-node:nth-child(4),
.js .page-home .stat-item:nth-child(4) { transition-delay: 180ms; }
.js .page-home .rank-node:nth-child(5),
.js .page-home .stat-item:nth-child(5) { transition-delay: 240ms; }
.js .page-home .rank-node:nth-child(6),
.js .page-home .stat-item:nth-child(6) { transition-delay: 300ms; }
.js .page-home .rank-node:nth-child(7) { transition-delay: 360ms; }

/* ---------- 平板 ---------- */

@media (min-width: 640px) {
  .page-home .news-item {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
  }

  .page-home .news-item .tag {
    justify-self: end;
  }

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

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

/* ---------- 桌面 ---------- */

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .page-home .paths-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

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

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

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

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

  .page-home .paths-list {
    gap: 1.25rem;
  }

  .page-home .path-card--b {
    margin-left: 11%;
  }

  .page-home .path-card--c {
    margin-right: 7%;
  }

  .page-home .rank-track {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .page-home .home-toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: fixed;
    right: clamp(1rem, 2.4vw, 2.4rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }

  .page-home .home-toc a {
    padding: 0.32rem 0.1rem 0.32rem 0.8rem;
    border-left: 2px solid transparent;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease;
  }

  .page-home .home-toc a:hover {
    color: var(--ink);
  }

  .page-home .home-toc a.is-active {
    color: var(--ink);
    border-left-color: var(--neon-purple);
  }
}

/* ---------- 降低动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .rank-node:last-child .rank-mark {
    animation: none;
  }

  .page-home .hero-media,
  .page-home .news-media {
    transform: none;
  }

  .js .page-home .rank-node,
  .js .page-home .stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
