.page-home {
  --home-line: rgba(31, 242, 209, 0.16);
  --home-hair: rgba(143, 169, 189, 0.2);
  --home-panel: #0d2a40;
  --home-deep: #071a2b;
  color: var(--fg);
  background: var(--ink-950);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(2.25rem, 5vw, 3.75rem);
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(31, 242, 209, 0.12), transparent 62%),
    linear-gradient(165deg, #071a2b 0%, #0a2337 52%, #0d2a40 100%);
  border-bottom: 1px solid var(--home-line);
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(31, 242, 209, 0.22) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

.page-home .hero-inner {
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.page-home .hero-context {
  margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--cyan-500);
}

.page-home .hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper-050);
}

.page-home .hero-title em {
  font-style: normal;
  color: var(--orange-500);
}

.page-home .hero-lede {
  max-width: 44ch;
  margin: 0;
  color: var(--soft);
  line-height: 1.85;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.25rem, 3vw, 1.9rem);
}

/* ---------- 首屏 3:9 对位网格 ---------- */
.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .hero-index {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--home-hair);
  border-radius: var(--r-lg);
  background: rgba(3, 16, 28, 0.55);
}

.page-home .index-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--slate-400);
}

.page-home .index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .index-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px dashed var(--home-hair);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.page-home .index-row:last-child {
  border-bottom: none;
}

.page-home .index-row:hover {
  background: rgba(31, 242, 209, 0.08);
}

.page-home .index-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-500);
  letter-spacing: 0.06em;
}

.page-home .index-name {
  font-size: 0.94rem;
  color: var(--soft);
}

.page-home .index-more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--cyan-500);
  text-decoration: none;
}

.page-home .index-more:hover {
  color: var(--orange-500);
}

.page-home .hero-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #0d2a40, #071a2b 72%);
}

.page-home .panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .panel-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--soft);
}

.page-home .panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-home .panel-tag {
  padding: 0.22rem 0.66rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--home-hair);
  background: rgba(143, 169, 189, 0.08);
  font-size: 0.74rem;
  color: var(--slate-400);
}

.page-home .panel-tag.is-on {
  border-color: var(--cyan-500);
  background: var(--cyan-500);
  color: var(--ink-950);
  font-weight: 600;
}

.page-home .panel-figure {
  flex: 1 1 auto;
}

.page-home .panel-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .panel-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--home-hair);
}

.page-home .panel-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.page-home .panel-num {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange-500);
}

.page-home .panel-cap {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--slate-400);
}

/* ---------- 章节通用 ---------- */
.page-home .chapter {
  padding: clamp(2.5rem, 6vw, 4.75rem) 0;
}

.page-home .chapter--alt {
  background: var(--ink-800);
  border-top: 1px solid var(--home-hair);
  border-bottom: 1px solid var(--home-hair);
}

.page-home .chapter--band {
  background:
    radial-gradient(95% 130% at 8% 0%, rgba(11, 79, 90, 0.55), transparent 66%),
    #071a2b;
  border-top: 1px solid var(--home-hair);
}

.page-home .chapter-head {
  max-width: 62ch;
}

.page-home .chapter h2 {
  margin: 0.55rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper-050);
}

.page-home .chapter p {
  color: var(--soft);
  line-height: 1.85;
  font-size: clamp(0.94rem, 1.4vw, 1.02rem);
}

.page-home .chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

/* ---------- 球队库三视角 ---------- */
.page-home .lib-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.page-home .lib-dim {
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--home-hair);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(13, 42, 64, 0.92), rgba(7, 26, 43, 0.92));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .lib-dim:hover {
  border-color: var(--cyan-500);
}

.page-home .dim-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(217, 179, 108, 0.16);
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.page-home .lib-dim h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--paper-050);
}

.page-home .lib-dim p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.75;
}

.page-home .lib-note {
  margin: 1.3rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--cyan-700);
  font-size: 0.84rem;
  color: var(--slate-400);
  line-height: 1.7;
}

/* ---------- 更新公告摘要 ---------- */
.page-home .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 1.75rem;
}

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

.page-home .news-row {
  padding: 0.95rem 0;
  border-top: 1px solid var(--home-hair);
}

.page-home .news-row:last-child {
  border-bottom: 1px solid var(--home-hair);
}

.page-home .news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.page-home .news-tag {
  padding: 0.18rem 0.62rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(31, 242, 209, 0.42);
  font-size: 0.72rem;
  color: var(--cyan-500);
}

.page-home .news-when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-400);
}

.page-home .news-title {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  color: var(--paper-050);
}

.page-home .news-text {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.72;
  color: var(--slate-400);
}

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

.page-home .news-cap {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--slate-400);
}

/* ---------- 大屏与回看 ---------- */
.page-home .screen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
}

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

.page-home .screen-copy h2 {
  margin-top: 0.55rem;
}

.page-home .replay-list {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.page-home .replay-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: rgba(11, 79, 90, 0.32);
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--soft);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.page-home .replay-item:hover {
  border-color: var(--cyan-500);
  background: rgba(31, 242, 209, 0.08);
}

.page-home .replay-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}

/* ---------- 会员记录时间带 ---------- */
.page-home .member-track {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .track-item {
  padding: 1.2rem 1.1rem;
  border-left: 2px solid rgba(217, 179, 108, 0.45);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(3, 16, 28, 0.5);
}

.page-home .track-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold-400);
}

.page-home .track-item h3 {
  margin: 0.45rem 0 0.4rem;
  font-size: 1rem;
  color: var(--paper-050);
}

.page-home .track-item p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--slate-400);
}

.page-home .member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

/* ---------- 热门直达 ---------- */
.page-home .search-block {
  max-width: 68ch;
}

.page-home .hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.page-home .hint-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--home-hair);
  background: rgba(13, 42, 64, 0.62);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--soft);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.page-home .hint-chip:hover {
  border-color: var(--cyan-500);
  color: var(--paper-050);
}

.page-home .search-help {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--slate-400);
}

.page-home .search-help a {
  color: var(--cyan-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .search-help a:hover {
  color: var(--orange-500);
}

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

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .page-home .news-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 2.25rem;
    align-items: start;
  }

  .page-home .screen-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.5rem;
  }

  .page-home .screen-copy {
    padding-left: 0.5rem;
  }
}

@media (min-width: 1180px) {
  .page-home .hero-inner {
    padding-top: 1.5rem;
  }

  .page-home .panel-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .lib-dim,
  .page-home .replay-item,
  .page-home .hint-chip,
  .page-home .index-row {
    transition: none;
  }
}
