.page-home {
  --home-dye: linear-gradient(135deg, var(--tie), var(--tie-2));
  --home-glow: 0 0 0 1px rgba(34, 230, 211, .35), 0 0 24px rgba(34, 230, 211, .14);
  display: block;
}

/* ============ 首屏战术板 ============ */
.page-home .home-board {
  padding-block: clamp(24px, 5vw, 56px) clamp(32px, 6vw, 72px);
}

.page-home .home-context {
  margin: 0 0 clamp(16px, 3vw, 28px);
  color: var(--muted);
}

.page-home .board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* 左栏收藏夹 */
.page-home .fav-rail {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .fav-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .fav-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--paper);
}

.page-home .fav-count {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-home .fav-count .num {
  font-family: var(--font-mono);
  font-size: 15px;
}

.page-home .fav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .fav-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.page-home .fav-toggle:hover {
  background: rgba(245, 239, 225, .06);
  color: var(--paper);
}

.page-home .fav-toggle[aria-pressed="true"] {
  color: var(--paper);
  border-left-color: var(--orange);
  background: rgba(255, 107, 26, .08);
}

.page-home .fav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background .18s ease, box-shadow .18s ease;
}

.page-home .fav-toggle[aria-pressed="true"] .fav-dot {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 107, 26, .8);
}

.page-home .fav-name {
  font-weight: 500;
  line-height: 1.4;
}

.page-home .fav-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .fav-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .fav-figure {
  margin: 4px 0 0;
}

.page-home .fav-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

/* 中栏主视觉 */
.page-home .board-main {
  position: relative;
  isolation: isolate;
}

.page-home .board-main::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 62%;
  height: 58%;
  background: linear-gradient(135deg, rgba(108, 92, 231, .22), rgba(34, 230, 211, .05));
  clip-path: polygon(100% 0, 100% 100%, 0 22%);
  z-index: -1;
  pointer-events: none;
}

.page-home .board-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 7vw, 64px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .board-main .lede {
  margin: 0 0 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
}

.page-home .board-media {
  position: relative;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}

.page-home .board-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

/* 横向时间轴 */
.page-home .board-timeline {
  margin: 0 0 24px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}

.page-home .board-axis {
  display: block;
  width: 100%;
  height: 46px;
}

.page-home .board-slots {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.page-home .board-slots li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
  flex: 1;
}

.page-home .board-slots li .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
}

.page-home .board-slots li.is-live .num {
  color: var(--orange);
}

.page-home .board-slots li.is-live span:last-child {
  color: var(--orange);
}

.page-home .board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 右栏快照 */
.page-home .board-side {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .side-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--paper);
}

.page-home .injury-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .injury-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(245, 239, 225, .04);
  border-radius: var(--radius);
  font-size: 12px;
}

.page-home .injury-name {
  color: var(--paper);
  line-height: 1.35;
}

.page-home .injury-eta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .side-figure {
  margin: 0;
}

.page-home .side-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-home .side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-home .side-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .side-stats .stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .side-stats .stat-label {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* ============ 回看集锦 ============ */
.page-home #replay .chapter-head {
  max-width: 62ch;
}

.page-home .replay-grid {
  margin-top: 26px;
  align-items: stretch;
}

.page-home .replay-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .replay-card .card-actions {
  margin-top: auto;
}

.page-home .replay-media {
  position: relative;
  margin: 0;
}

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

.page-home .replay-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 148px;
  padding: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .replay-plate--cyan {
  background:
    radial-gradient(120% 110% at 100% 0%, rgba(34, 230, 211, .30), transparent 62%),
    linear-gradient(150deg, var(--ink-2), var(--ink-3));
  border: 1px solid rgba(34, 230, 211, .28);
}

.page-home .replay-plate--dye {
  background:
    radial-gradient(120% 110% at 0% 100%, rgba(108, 92, 231, .38), transparent 62%),
    linear-gradient(150deg, var(--ink-2), var(--ink-3));
  border: 1px solid rgba(167, 139, 255, .28);
}

.page-home .plate-score {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--paper);
}

.page-home .plate-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .replay-more {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .replay-more a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 230, 211, .4);
}

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

/* ============ 伤病档案 ============ */
.page-home #injury {
  margin-top: clamp(36px, 7vw, 80px);
}

.page-home .injury-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 24px;
}

.page-home .injury-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .injury-key {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .injury-key > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
}

.page-home .injury-key dt {
  justify-self: start;
}

.page-home .injury-key dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--brown);
  opacity: .82;
}

.page-home .injury-table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(33, 26, 21, .16);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .32);
}

.page-home .it-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr .8fr .7fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--brown);
  border-bottom: 1px solid rgba(33, 26, 21, .10);
}

.page-home .it-row:last-child {
  border-bottom: 0;
}

.page-home .it-row--head {
  background: rgba(33, 26, 21, .06);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: .7;
}

.page-home .it-row .num {
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .injury-foot {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--brown);
  opacity: .82;
}

.page-home .injury-foot a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 74, 29, .5);
}

/* ============ 三步路径 ============ */
.page-home .path-line {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: path;
}

.page-home .path-step {
  position: relative;
  padding: 22px 20px 22px 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}

.page-home .path-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-glow);
}

.page-home .path-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 12px;
}

.page-home .path-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  color: var(--paper);
}

.page-home .path-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

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

/* ============ 更新节奏 ============ */
.page-home .update-grid {
  margin-top: 26px;
}

.page-home .update-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}

.page-home .update-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 230, 211, .45);
}

.page-home .update-card .card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.page-home .update-foot {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--brown);
  opacity: .85;
}

.page-home .update-foot a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 74, 29, .5);
}

/* ============ 响应式 ============ */
@media (min-width: 640px) {
  .page-home .path-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .board-grid {
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
  }

  .page-home .fav-rail {
    position: sticky;
    top: 24px;
  }

  .page-home .injury-board {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .board-side {
    padding: 22px 20px;
  }
}

@media (max-width: 899px) {
  .page-home .board-main::before {
    width: 78%;
    height: 44%;
    top: -12px;
    right: -12px;
  }

  .page-home .it-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
  }

  .page-home .it-row--head {
    display: none;
  }

  .page-home .it-row > [role="cell"]::before {
    content: attr(data-label);
  }
}

@media (max-width: 479px) {
  .page-home .board-slots {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .page-home .board-slots li {
    flex: 0 0 auto;
    align-items: flex-start;
    text-align: left;
  }

  .page-home .fav-toggle {
    grid-template-columns: 12px 1fr auto;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path-step,
  .page-home .update-card,
  .page-home .fav-toggle {
    transition: none;
  }

  .page-home .path-step:hover,
  .page-home .update-card:hover {
    transform: none;
  }
}
