@property --ring {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.page-home {
  --home-edge: rgba(53, 224, 200, .30);
  --home-hair: rgba(143, 169, 162, .20);
  --home-surface: linear-gradient(160deg, rgba(20, 22, 26, .92), rgba(11, 31, 26, .92));
  position: relative;
  background: var(--ink);
  color: var(--mist);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ---------- 通用排版 ---------- */

.page-home .index-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
}

.page-home .section-title {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .section-title strong {
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--cyan);
}

.page-home .lede {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--sage);
}

.page-home .mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 9vw, 120px) 0 clamp(34px, 6vw, 72px);
  background:
    radial-gradient(110% 82% at 92% 4%, rgba(53, 224, 200, .16), transparent 60%),
    radial-gradient(90% 70% at 2% 98%, rgba(255, 77, 126, .10), transparent 62%),
    linear-gradient(158deg, #0E302A 0%, #07110F 68%);
}

.page-home .hero-contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: .62;
  -webkit-mask-image: radial-gradient(78% 70% at 72% 26%, #000 0%, transparent 74%);
  mask-image: radial-gradient(78% 70% at 72% 26%, #000 0%, transparent 74%);
}

.page-home .hero-inner {
  position: relative;
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

.page-home .hero-title {
  margin: 18px 0 0;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(40px, 8.4vw, 112px);
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .hero-title strong {
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--cyan);
  text-shadow: 0 0 32px rgba(53, 224, 200, .34);
}

.page-home .hero-lede {
  max-width: 44ch;
  margin: 22px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.76;
  color: var(--sage);
}

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

.page-home .hero-visual {
  position: relative;
  margin: 0;
  background: linear-gradient(160deg, #0E302A, #07110F);
  box-shadow: var(--shadow);
  clip-path: polygon(0 13%, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

/* ---------- 第四栏入口 ---------- */

.page-home .entry {
  padding: clamp(56px, 8vw, 108px) 0 clamp(44px, 6vw, 76px);
  background: linear-gradient(180deg, #07110F 0%, #0B1F1A 46%, #0B1F1A 100%);
}

.page-home .entry-head {
  max-width: 720px;
}

.page-home .entry-rail {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(28px, 4vw, 46px);
  padding: 10px var(--pad-x) 30px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}

.page-home .entry-rail::-webkit-scrollbar {
  display: none;
}

.page-home .entry-figure {
  flex: 0 0 min(74vw, 420px);
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--home-hair);
  background: var(--char);
  overflow: hidden;
}

.page-home .entry-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.page-home .entry-card {
  position: relative;
  flex: 0 0 min(70vw, 300px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 22px;
  border: 1px solid var(--home-hair);
  background: var(--home-surface);
  color: var(--mist);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.page-home .entry-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(from var(--ring, 0deg), rgba(53, 224, 200, 0) 0deg 230deg, var(--cyan) 302deg, rgba(53, 224, 200, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--home-edge);
}

.page-home .entry-card:hover::after,
.page-home .entry-card:focus-visible::after {
  opacity: 1;
  animation: home-ring-spin 1.2s linear infinite;
}

@keyframes home-ring-spin {
  from { --ring: 0deg; }
  to { --ring: 360deg; }
}

.page-home .entry-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--amber);
}

.page-home .entry-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .entry-desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--sage);
}

.page-home .entry-go {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cyan);
}

/* ---------- 一局的长度 ---------- */

.page-home .tempo {
  padding: clamp(56px, 8vw, 112px) 0;
  background:
    radial-gradient(70% 60% at 88% 10%, rgba(255, 179, 71, .10), transparent 62%),
    var(--ink);
}

.page-home .tempo-wrap {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
}

.page-home .tempo-slots {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--home-hair);
  background: var(--home-hair);
}

.page-home .tempo-slots li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 18px;
  background: #0B1F1A;
}

.page-home .slot-key {
  flex: 0 0 auto;
  min-width: 3.4em;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--amber);
}

.page-home .slot-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--sage);
}

.page-home .tempo-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .clock-card {
  padding: 24px 24px 22px;
  border: 1px solid var(--home-edge);
  background: linear-gradient(140deg, rgba(14, 48, 42, .92), rgba(7, 17, 15, .92));
  box-shadow: 0 2px 26px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(53, 224, 200, .05);
}

.page-home .clock-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--sage);
}

.page-home .clock-value {
  margin: 10px 0 8px;
  font-size: clamp(48px, 10vw, 78px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(53, 224, 200, .34);
}

.page-home .clock-sep {
  animation: home-blink 2s steps(1, end) infinite;
}

@keyframes home-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: .34; }
}

.page-home .clock-note {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--sage);
}

.page-home .tempo-figure {
  margin: 0;
  border: 1px solid var(--home-hair);
  overflow: hidden;
}

.page-home .tempo-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- 新手路径 ---------- */

.page-home .paths {
  padding: clamp(56px, 8vw, 112px) 0;
  background: linear-gradient(180deg, #0B1F1A 0%, #0E2A25 52%, #0B1F1A 100%);
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-home .filter-btn {
  appearance: none;
  padding: 9px 18px;
  border: 1px solid var(--home-hair);
  border-radius: 999px;
  background: transparent;
  color: var(--sage);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: color .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}

.page-home .filter-btn:hover {
  color: var(--mist);
  border-color: var(--home-edge);
}

.page-home .filter-btn[aria-pressed="true"] {
  color: #07110F;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.page-home .path-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .path-item {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px 26px 24px 30px;
  border: 1px solid var(--home-hair);
  background: linear-gradient(120deg, rgba(14, 48, 42, .55), rgba(20, 22, 26, .88));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .path-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(53, 224, 200, 0) 78%);
}

.page-home .path-idx {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--amber);
}

.page-home .path-name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .path-desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.74;
  color: var(--sage);
}

.page-home .path-fit {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--home-edge);
  font-size: 14px;
  line-height: 1.7;
  color: var(--cyan);
}

/* ---------- 本周评测 ---------- */

.page-home .weekly {
  padding: clamp(56px, 8vw, 112px) 0;
  background: #07110F;
}

.page-home .weekly-head {
  max-width: 720px;
}

.page-home .review-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.page-home .review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  border: 1px solid var(--home-hair);
  background: var(--home-surface);
  transition: border-color .28s var(--ease);
}

.page-home .review-card:hover {
  border-color: var(--home-edge);
}

.page-home .review-name {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--mist);
}

.page-home .review-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--sage);
}

.page-home .review-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--home-hair);
}

.page-home .stars {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .14em;
  white-space: nowrap;
}

.page-home .stars-track {
  color: #2A4A44;
}

.page-home .stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--rate, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--amber);
}

.page-home .score-num {
  font-size: 15px;
  font-weight: 500;
  color: var(--amber);
}

.page-home .monthly {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 28px 26px;
  border: 1px solid var(--home-edge);
  background: linear-gradient(120deg, rgba(14, 48, 42, .82), rgba(7, 17, 15, .94));
}

.page-home .monthly-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--rose);
}

.page-home .monthly-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .monthly-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.74;
  color: var(--sage);
}

.page-home .monthly-link {
  justify-self: start;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.page-home .monthly-link:hover {
  text-decoration: underline;
}

.page-home .weekly-more {
  margin: 22px 0 0;
  font-size: 14px;
}

.page-home .weekly-more a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid var(--home-hair);
  padding-bottom: 2px;
}

.page-home .weekly-more a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 夜景收尾 ---------- */

.page-home .night {
  position: relative;
  isolation: isolate;
  padding: clamp(84px, 14vw, 150px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
  background: #07110F;
}

.page-home .night-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}

.page-home .night-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .40;
  filter: saturate(.92) contrast(1.06);
}

.page-home .night::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #07110F 0%, rgba(7, 17, 15, .70) 40%, rgba(11, 31, 26, .95) 100%);
}

.page-home .night-copy {
  position: relative;
  max-width: 660px;
}

.page-home .night-title {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .night-lede {
  max-width: 48ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--sage);
}

/* ---------- 下一步 ---------- */

.page-home .next {
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 140px);
  background: var(--ink);
}

.page-home .next-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .next-card {
  position: relative;
  display: block;
  padding: 30px 26px 28px;
  border: 1px solid var(--home-hair);
  background: linear-gradient(150deg, rgba(14, 48, 42, .62), rgba(20, 22, 26, .92));
  color: inherit;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.page-home .next-card:hover {
  border-color: var(--home-edge);
  transform: translateY(-3px);
}

.page-home .next-name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .next-desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.76;
  color: var(--sage);
}

.page-home .next-go {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cyan);
}

.page-home .next-minor {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sage);
}

.page-home .next-minor a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--home-edge);
  padding-bottom: 1px;
}

.page-home .next-minor a:hover {
  color: var(--cyan);
}

/* ---------- 响应式 ---------- */

@media (min-width: 760px) {
  .page-home .path-item {
    grid-template-columns: 52px minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
    gap: 24px;
    padding: 26px 30px 26px 34px;
  }

  .page-home .path-fit {
    margin-top: 2px;
  }

  .page-home .monthly {
    grid-template-columns: minmax(0, .5fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
  }

  .page-home .monthly-note {
    grid-column: 2;
    grid-row: 2;
  }

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

  .page-home .monthly-tag {
    grid-row: 1 / span 2;
  }

  .page-home .monthly-link {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
  }

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

@media (min-width: 900px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(36px, 5vw, 76px);
  }

  .page-home .hero {
    padding-bottom: clamp(56px, 8vw, 104px);
  }

  .page-home .tempo-wrap {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: start;
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .tempo-side {
    position: sticky;
    top: calc(var(--frame-top) + 24px);
  }

  .page-home .night-copy {
    max-width: 720px;
  }
}

@media (min-width: 1180px) {
  .page-home .entry-rail {
    padding-inline: calc(var(--pad-x) + 8px);
  }

  .page-home .entry-figure {
    flex: 0 0 460px;
  }

  .page-home .entry-card {
    flex: 0 0 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card::after,
  .page-home .clock-sep {
    animation: none;
  }

  .page-home .entry-card:hover,
  .page-home .next-card:hover {
    transform: none;
  }
}

.page-home {
  --rate: 1rem;
}
