.page-home {
  --home-rail-card: min(74vw, 250px);
  --home-reel-card: min(78vw, 300px);
  display: block;
  background: var(--ink);
  color: var(--bone);
  overflow-x: clip;
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding: 1rem 0 clamp(2.5rem, 6vw, 4rem);
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.3;
  z-index: -2;
}

.page-home .home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.88) 0%, rgba(10, 12, 16, 0.72) 44%, rgba(10, 12, 16, 0.97) 100%),
    linear-gradient(100deg, rgba(110, 10, 28, 0.86) 0%, rgba(176, 16, 44, 0.28) 50%, rgba(10, 12, 16, 0) 80%);
}

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

.page-home .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 1.6rem;
}

.page-home .home-hero-grid > * {
  min-width: 0;
}

.page-home .home-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.4vw, 3.7rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0.55rem 0 1rem;
  color: var(--bone);
  text-wrap: balance;
}

.page-home .home-lede {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(243, 239, 233, 0.82);
  max-width: 38rem;
}

/* 订阅轨道 */

.page-home .track-card {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(158deg, rgba(176, 16, 44, 0.4) 0%, rgba(20, 24, 33, 0.96) 58%, rgba(10, 12, 16, 0.98) 100%);
}

.page-home .track-photo {
  height: 168px;
  overflow: hidden;
}

.page-home .track-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

.page-home .track-body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.page-home .track-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .track-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(243, 239, 233, 0.76);
}

.page-home .track-btn {
  display: block;
  width: 100%;
  margin-top: 1.05rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.page-home .track-btn:hover,
.page-home .track-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(38, 227, 200, 0.26);
}

.page-home .track-btn:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.page-home .track-btn:active {
  transform: translateY(0);
}

.page-home .sync-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--slate);
}

.page-home .sync-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(38, 227, 200, 0.16);
}

/* 轨道头部 */

.page-home .rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-home .rail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-home .rail-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-home .rail-hint,
.page-home .rail-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .rail-hint {
  color: var(--slate);
  font-weight: 500;
}

.page-home .rail-more:hover,
.page-home .rail-more:focus-visible {
  color: var(--crimson-bright);
}

/* 联赛横向卡片流 */

.page-home .league-rail,
.page-home .reel-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 0.7rem;
  display: flex;
  gap: 0.95rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-home .league-rail::-webkit-scrollbar,
.page-home .reel-rail::-webkit-scrollbar {
  display: none;
}

.page-home .league-card {
  scroll-snap-align: start;
  flex: 0 0 var(--home-rail-card);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 196px;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.97) 0%, rgba(10, 12, 16, 0.94) 100%);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
}

.page-home .league-card:hover {
  border-color: rgba(38, 227, 200, 0.5);
  transform: translateY(-3px);
}

.page-home .league-card:first-child {
  background: linear-gradient(180deg, rgba(110, 10, 28, 0.72) 0%, rgba(20, 24, 33, 0.96) 72%);
  border-color: rgba(228, 56, 79, 0.42);
}

.page-home .league-no {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-home .league-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .league-desc {
  flex: 1;
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .league-link {
  align-self: flex-start;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.page-home .league-link:hover,
.page-home .league-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: currentColor;
}

/* 集锦轨道 */

.page-home .home-reel {
  margin-top: 2.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.page-home .reel-card {
  scroll-snap-align: start;
  flex: 0 0 var(--home-reel-card);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.page-home .reel-media {
  position: relative;
  height: 166px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
}

.page-home .reel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 340ms var(--ease);
}

.page-home .reel-media--tone {
  background:
    radial-gradient(circle at 72% 22%, rgba(38, 227, 200, 0.26), rgba(20, 24, 33, 0) 62%),
    linear-gradient(140deg, var(--crimson-deep) 0%, var(--panel) 78%);
}

.page-home .reel-media--alt {
  background:
    radial-gradient(circle at 26% 76%, rgba(255, 106, 43, 0.3), rgba(20, 24, 33, 0) 62%),
    linear-gradient(200deg, var(--crimson) 0%, var(--panel) 76%);
}

.page-home .reel-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.74);
  border: 1px solid rgba(243, 239, 233, 0.24);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.06em;
}

.page-home .reel-card:hover .reel-media img {
  transform: scale(1.05);
}

.page-home .reel-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-home .reel-time {
  font-size: 0.78rem;
  color: var(--slate);
}

.page-home .reel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- 通用区块 ---------- */

.page-home .home-block {
  padding-block: clamp(2.4rem, 6vw, 4.2rem);
}

.page-home .section-head {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 0.8rem;
  text-wrap: balance;
}

.page-home .section-lead {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.85;
  color: rgba(243, 239, 233, 0.76);
}

/* ---------- 资料条 ---------- */

.page-home .home-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border: 1px solid rgba(228, 56, 79, 0.34);
  border-radius: var(--radius-lg);
  background: linear-gradient(102deg, rgba(176, 16, 44, 0.94) 0%, rgba(110, 10, 28, 0.92) 54%, rgba(20, 24, 33, 0.96) 100%);
}

.page-home .strip-title {
  margin: 0.45rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.page-home .strip-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(243, 239, 233, 0.84);
  max-width: 40rem;
}

.page-home .strip-btn {
  margin-top: 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.page-home .strip-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.page-home .strip-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(243, 239, 233, 0.86);
}

.page-home .strip-fact-num {
  flex: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
}

/* ---------- 三个动作 ---------- */

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

.page-home .step {
  position: relative;
  padding: 1.5rem 1.35rem 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.9) 0%, rgba(10, 12, 16, 0.9) 100%);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.page-home .step::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(38, 227, 200, 0));
}

.page-home .step:hover {
  border-color: rgba(38, 227, 200, 0.42);
  transform: translateY(-3px);
}

.page-home .step-no {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crimson-bright);
  line-height: 1;
}

.page-home .step-title {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.page-home .step-desc {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 更新节奏 ---------- */

.page-home .rhythm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.page-home .rhythm-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .rhythm-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.page-home .rhythm-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-home .rhythm-key {
  flex: none;
  min-width: 6.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
}

.page-home .rhythm-val {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(243, 239, 233, 0.82);
}

.page-home .rhythm-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}

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

.page-home .rhythm-cap {
  padding: 0.9rem 1.15rem 1rem;
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--slate);
  border-top: 1px solid var(--line);
}

/* ---------- 常用入口 ---------- */

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

.page-home .door {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.page-home .door:hover {
  border-color: rgba(38, 227, 200, 0.45);
  transform: translateY(-3px);
}

.page-home .door-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
}

.page-home .door-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-home .door-no {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.page-home .door-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .door-desc {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--slate);
}

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

@media (min-width: 760px) {
  .page-home .home-hero {
    padding-top: 1.4rem;
  }

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

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

  .page-home .home-strip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
  }

  .page-home .home-title {
    font-size: clamp(2.5rem, 3.9vw, 3.7rem);
  }

  .page-home .track-card {
    margin-top: 2rem;
  }

  .page-home .track-photo {
    height: 196px;
  }

  .page-home .rhythm-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
  }

  .page-home .home-strip {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 2.4rem;
  }
}

@media (min-width: 1080px) {
  .page-home .home-reel {
    margin-top: 2.75rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .track-btn,
  .page-home .league-card,
  .page-home .step,
  .page-home .door,
  .page-home .reel-media img {
    transition: none;
  }

  .page-home .track-btn:hover,
  .page-home .track-btn:focus-visible,
  .page-home .league-card:hover,
  .page-home .step:hover,
  .page-home .door:hover {
    transform: none;
  }

  .page-home .reel-card:hover .reel-media img {
    transform: none;
  }
}
