.page-home {
  --home-pad: clamp(28px, 5vw, 64px);
  --home-line: rgba(56, 71, 75, 0.55);
  --home-dash: rgba(92, 122, 94, 0.35);
  background: var(--night);
  color: var(--paper);
  overflow-x: hidden;
}

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

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--home-line);
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(43, 227, 200, 0.1), transparent 60%),
    linear-gradient(160deg, #0a1a2a 0%, #0b2029 55%, #0e2b26 100%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.7) contrast(1.08);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 71, 75, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 71, 75, 0.3) 1px, transparent 1px);
  background-size: 104px 104px;
  background-position: -1px -1px;
}

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

.page-home .hero-ctx {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--paper-3);
  margin: 0 0 18px;
}

.page-home .hero-grid {
  display: grid;
  gap: 26px;
}

.page-home .hero-day {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--paper-3);
  margin: 10px 0 0;
}

.page-home .hero-day__num {
  font-size: 20px;
  color: var(--cyan);
  margin-right: 8px;
}

.page-home .hero-title {
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 12px 0 16px;
}

.page-home .hero-sub {
  max-width: 60ch;
  color: var(--paper-2);
  margin: 0;
}

.page-home .hero-score-wrap {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(43, 227, 200, 0.22);
}

.page-home .hero-score-cap {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-3);
  margin: 0;
}

.page-home .hero-score {
  margin: 6px 0 8px;
  color: var(--paper);
  font-size: clamp(76px, 19vw, 158px);
  line-height: 0.88;
}

.page-home .score__digit {
  display: inline-block;
  animation: home-flip-in 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.page-home .score__digit:nth-child(3) {
  animation-delay: 0.14s;
}

@keyframes home-flip-in {
  from {
    opacity: 0;
    transform: translateY(0.22em) rotateX(-42deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 悬浮战报卡 */
.page-home .hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.page-home .card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-home .card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.page-home .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 42, 0.05) 40%, rgba(10, 26, 42, 0.78) 100%);
}

.page-home .hero-card__body {
  padding: 16px 18px 20px;
}

.page-home .hero-card__cap {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-3);
  margin: 0 0 6px;
}

.page-home .hero-card__line {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--paper-2);
}

.page-home .hero-card__final {
  font-family: var(--mono);
  font-size: 30px;
  letter-spacing: 0.02em;
}

.page-home .hero-card__more {
  margin: 14px 0 10px;
  border-top: 1px dashed rgba(43, 227, 200, 0.3);
  border-bottom: 1px dashed rgba(43, 227, 200, 0.3);
  padding: 10px 0;
}

.page-home .hero-card__more summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  list-style: none;
}

.page-home .hero-card__more summary::-webkit-details-marker {
  display: none;
}

.page-home .hero-card__more summary::before {
  content: "+ ";
  color: var(--orange);
}

.page-home .hero-card__more[open] summary::before {
  content: "− ";
}

.page-home .node-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .node-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-2);
}

.page-home .node-list__t {
  color: var(--orange);
  font-size: 13px;
}

.page-home .hero-card__note {
  margin: 0 0 16px;
}

.page-home .hero-cta {
  display: block;
  text-align: center;
  width: 100%;
}

.page-home .hero-card__sync {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-3);
}

.page-home .hero-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--home-line);
}

.page-home .hero-foot__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(43, 227, 200, 0.28);
}

.page-home .hero-foot__cell:first-child {
  padding-left: 0;
  border-left: 0;
}

.page-home .hero-foot__k {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper-3);
}

.page-home .hero-foot__v {
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.1;
}

/* ---------- 日期轴 ---------- */
.page-home .home-timeline {
  background:
    linear-gradient(180deg, rgba(14, 43, 38, 0.95) 0%, rgba(14, 43, 38, 0.6) 100%),
    var(--moss);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-timeline .section__note,
.page-home .home-timeline .filter-count {
  color: var(--paper-3);
}

.page-home .filter-bar {
  margin-top: 22px;
}

.page-home .tl {
  position: relative;
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 0 34px;
}

.page-home .tl::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(43, 227, 200, 0.55), rgba(43, 227, 200, 0.08));
}

.page-home .tl-node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "date tag"
    "meta meta";
  gap: 6px 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed var(--home-dash);
}

.page-home .tl-node[data-hidden="true"] {
  display: none;
}

.page-home .tl-mark {
  position: absolute;
  left: -31px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--moss);
  transition: box-shadow 180ms linear;
}

.page-home .tl-node:hover .tl-mark {
  box-shadow: 0 0 0 5px rgba(43, 227, 200, 0.14);
}

.page-home .tl-date {
  grid-area: date;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.page-home .tl-meta {
  grid-area: meta;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper-3);
}

.page-home .tl-node .tag {
  grid-area: tag;
  justify-self: end;
}

.page-home .tl-texture {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 26, 42, 0.6);
}

.page-home .tl-texture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  opacity: 0.72;
}

/* ---------- 客场胜率 ---------- */
.page-home .home-away {
  background: var(--night);
  border-bottom: 1px solid var(--home-line);
}

.page-home .away-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.page-home .away-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name val"
    "bar bar";
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(56, 71, 75, 0.45);
}

.page-home .away-name {
  grid-area: name;
  font-size: 15px;
  color: var(--paper-2);
}

.page-home .away-bar {
  grid-area: bar;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(56, 71, 75, 0.7);
  overflow: hidden;
}

.page-home .away-bar .meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
  transition: width 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.page-home .away-bar--top .meter__fill {
  background: var(--gold);
}

.page-home .away-row:nth-child(1) .meter__fill { width: 68.3%; }
.page-home .away-row:nth-child(2) .meter__fill { width: 63.1%; }
.page-home .away-row:nth-child(3) .meter__fill { width: 59.7%; }
.page-home .away-row:nth-child(4) .meter__fill { width: 54.2%; }
.page-home .away-row:nth-child(5) .meter__fill { width: 51.8%; }
.page-home .away-row:nth-child(6) .meter__fill { width: 47.5%; }

.page-home .away-val {
  grid-area: val;
  font-size: 17px;
  justify-self: end;
}

.page-home .away-note {
  margin: 18px 0 12px;
}

/* ---------- 跟队笔记 ---------- */
.page-home .home-notes {
  background: linear-gradient(120deg, rgba(14, 43, 38, 0.98) 0%, rgba(10, 26, 42, 0.98) 100%);
  border-bottom: 1px solid var(--home-line);
}

.page-home .notes-grid {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.page-home .notes-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 26, 42, 0.6);
}

.page-home .notes-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.8);
}

.page-home .notes-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--paper-3);
}

.page-home .note-card {
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--cyan);
}

.page-home .note-card + .note-card {
  margin-top: 24px;
}

.page-home .note-card__meta {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .note-card p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--paper-2);
}

/* ---------- 同步状态 ---------- */
.page-home .home-sync {
  background: var(--night);
}

.page-home .sync-panel {
  padding: 0;
}

.page-home .sync-lead {
  margin: 0;
  color: var(--paper-2);
  font-size: 15px;
  line-height: 1.75;
  max-width: 70ch;
}

.page-home .sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.page-home .sync-grid .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .sync-grid .stat__value {
  font-family: var(--mono);
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1;
}

.page-home .sync-grid .stat__label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-3);
}

.page-home .home-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 43, 38, 0.5);
  text-decoration: none;
  transition: border-color 160ms linear, background 160ms linear, transform 160ms linear;
}

.page-home .home-link:hover,
.page-home .home-link:focus-visible {
  border-color: var(--cyan);
  background: rgba(14, 43, 38, 0.85);
  transform: translateY(-2px);
}

.page-home .home-link__k {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .home-link__t {
  font-size: 16px;
  color: var(--paper);
}

/* ---------- 响应式 ---------- */
@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .hero-card {
    margin-top: 42px;
  }

  .page-home .tl-node {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    grid-template-areas: "date meta tag";
    gap: 12px 18px;
  }

  .page-home .away-row {
    grid-template-columns: 140px minmax(0, 1fr) 84px;
    grid-template-areas: "name bar val";
    gap: 14px 20px;
  }

  .page-home .away-val {
    font-size: 19px;
  }

  .page-home .notes-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .sync-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 24px;
  }

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

@media (max-width: 480px) {
  .page-home .tl {
    padding-left: 26px;
  }

  .page-home .tl::before {
    left: 6px;
  }

  .page-home .tl-mark {
    left: -25px;
    width: 12px;
    height: 12px;
  }

  .page-home .hero-card__final {
    font-size: 24px;
  }

  .page-home .node-list li {
    grid-template-columns: 34px 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .score__digit {
    animation: none;
  }

  .page-home .away-bar .meter__fill,
  .page-home .home-link {
    transition: none;
  }
}
