/* ===== 首页 page-home ===== */
.page-home {
  --pad: clamp(1rem, 4vw, 2.5rem);
  --cut: 22px;
  color: var(--text);
  overflow-x: hidden;
}

.page-home [id] {
  scroll-margin-top: calc(var(--topbar-h) + 1.25rem);
}

.page-home figure {
  margin: 0;
}

.page-home .pulse {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .18);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(1.8rem, 5vw, 3.5rem) clamp(2.6rem, 7vw, 5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3.2rem);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -14%;
  right: -18%;
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  background: radial-gradient(circle at 50% 50%, rgba(53, 224, 208, .14), transparent 62%);
  pointer-events: none;
}

.page-home .hero-trail {
  position: absolute;
  right: 0;
  top: 6%;
  width: 42%;
  height: 58%;
  color: rgba(53, 224, 208, .32);
  pointer-events: none;
  display: none;
}

.page-home .hero-copy,
.page-home .hero-side {
  position: relative;
}

.page-home .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--steel);
}

.page-home .hero-title {
  display: flex;
  flex-direction: column;
  margin: .75rem 0 0;
  font-size: clamp(2.7rem, 10vw, 5.4rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--text-strong);
}

.page-home .hero-title .line {
  display: block;
  animation: home-rise .82s var(--ease) both;
}

.page-home .hero-title .line:nth-child(1) { animation-delay: .05s; }
.page-home .hero-title .line:nth-child(2) { animation-delay: .17s; }

.page-home .hero-title .line--accent {
  background: linear-gradient(96deg, var(--cyan) 0%, #9df6ec 62%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.page-home .hero-lede {
  max-width: 48ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--silver);
  opacity: .94;
}

.page-home .hero-paths {
  display: grid;
  gap: .85rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  grid-template-columns: 1fr;
}

.page-home .path-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.1rem 1.2rem 1.25rem;
  background: linear-gradient(152deg, rgba(13, 35, 64, .96), rgba(7, 20, 38, .74));
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.page-home .path-card:hover,
.page-home .path-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(53, 224, 208, .6);
  background: linear-gradient(152deg, rgba(16, 44, 78, .98), rgba(7, 20, 38, .8));
}

.page-home .path-card--warm:hover,
.page-home .path-card--warm:focus-visible {
  border-color: rgba(255, 138, 61, .6);
}

.page-home .path-card .tag {
  align-self: flex-start;
}

.page-home .path-card strong {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-strong);
}

.page-home .path-desc {
  font-size: .86rem;
  line-height: 1.65;
  color: var(--steel);
}

.page-home .hero-visual {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.92) brightness(.88);
}

.page-home .scorecard {
  position: relative;
  width: min(100%, 330px);
  margin: -2.2rem 0 0 auto;
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(2, 8, 18, .94);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  animation: home-rise .8s var(--ease) .3s both;
}

.page-home .scorecard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}

.page-home .scorecard-meta {
  font-size: .78rem;
  color: var(--steel);
}

.page-home .score-rows {
  display: flex;
  flex-direction: column;
}

.page-home .score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(107, 135, 168, .2);
  transition: color .2s var(--ease);
}

.page-home .score-team {
  font-size: .92rem;
  color: var(--silver);
}

.page-home .score-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ice);
}

.page-home .score-foot {
  margin: .75rem 0 0;
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--steel);
}

/* ---------- 章节骨架 ---------- */
.page-home .section {
  position: relative;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(2.4rem, 6vw, 4.2rem);
}

.page-home .sec-head {
  display: grid;
  gap: .6rem;
  max-width: 62ch;
}

.page-home .kicker {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .sec-title {
  margin: .1rem 0 0;
  font-size: clamp(1.6rem, 4.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--text-strong);
}

.page-home .lede {
  margin: .2rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 01 浏览地图 ---------- */
.page-home .map-list {
  list-style: none;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .map-item {
  background: linear-gradient(160deg, rgba(13, 35, 64, .94), rgba(7, 20, 38, .96));
}

.page-home .map-link {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  height: 100%;
  padding: 1.35rem 1.15rem 1.45rem;
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--ease);
}

.page-home .map-link:hover,
.page-home .map-link:focus-visible {
  background: rgba(53, 224, 208, .08);
}

.page-home .map-num {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-home .map-name {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-strong);
}

.page-home .map-desc {
  font-size: .85rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .map-paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .9rem;
  margin: 1.3rem 0 0;
  font-size: .87rem;
  color: var(--steel);
}

.page-home .map-paths a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 208, .35);
  padding-bottom: 1px;
}

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

/* ---------- 02 双端差异 ---------- */
.page-home .dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.page-home .dual-col {
  padding: 1.4rem 1.25rem 1.5rem;
  background: linear-gradient(158deg, rgba(13, 35, 64, .95), rgba(7, 20, 38, .72));
  border: 1px solid var(--line);
  border-left: 2px solid rgba(53, 224, 208, .55);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .dual-col--mobile {
  border-left-color: rgba(255, 138, 61, .65);
}

.page-home .dual-col .tag {
  align-self: flex-start;
}

.page-home .dual-col h3 {
  margin: .75rem 0 .55rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 800;
  color: var(--text-strong);
}

.page-home .dual-col p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text);
}

.page-home .dual-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.page-home .dual-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .86rem;
  line-height: 1.65;
  color: var(--silver);
}

.page-home .dual-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .45rem;
  height: .45rem;
  background: var(--cyan);
  transform: rotate(45deg);
  opacity: .85;
}

.page-home .dual-col--mobile .dual-list li::before {
  background: var(--orange);
}

.page-home .dual-figure {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .dual-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.9) brightness(.86);
}

.page-home .dual-figure figcaption {
  padding: .85rem 1.1rem 1rem;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

.page-home .dual-foot {
  margin: 1.6rem 0 0;
}

/* ---------- 03 球队库 ---------- */
.page-home .lib-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.page-home .lib-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .lib-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem .85rem 1.1rem;
  background: rgba(2, 8, 18, .55);
}

.page-home .lib-num {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ice);
}

.page-home .lib-num small {
  font-size: .55em;
  font-weight: 700;
  color: var(--cyan);
  margin-left: 1px;
}

.page-home .lib-label {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--steel);
}

.page-home .lib-fields {
  margin-top: 1.2rem;
}

.page-home .lib-fields-title {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--steel);
  margin-bottom: .6rem;
}

.page-home .chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.page-home .chip {
  padding: .35rem .7rem;
  font-size: .8rem;
  color: var(--silver);
  background: rgba(53, 224, 208, .08);
  border: 1px solid rgba(53, 224, 208, .3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.page-home .lib-figure {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 1rem;
}

.page-home .lib-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  filter: saturate(.9) brightness(.88);
}

.page-home .lib-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.page-home .lib-table caption {
  text-align: left;
  padding-bottom: .6rem;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--steel);
}

.page-home .lib-table th,
.page-home .lib-table td {
  text-align: left;
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.page-home .lib-table th {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--steel);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}

.page-home .lib-table td:first-child {
  color: var(--text-strong);
  font-weight: 600;
  white-space: nowrap;
}

.page-home .lib-table td:last-child {
  color: var(--text);
  line-height: 1.7;
}

.page-home .lib-table tbody tr {
  transition: background .18s var(--ease);
}

.page-home .lib-table tbody tr:hover {
  background: rgba(53, 224, 208, .06);
}

.page-home .lib-note {
  margin: 1rem 0 0;
  font-size: .84rem;
  line-height: 1.75;
  color: var(--steel);
}

/* ---------- 04 场次栏目 ---------- */
.page-home .mr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.page-home .mr-card {
  position: relative;
  padding: 1.6rem 1.25rem 1.5rem;
  background: linear-gradient(164deg, rgba(13, 35, 64, .96), rgba(2, 8, 18, .9));
  border: 1px solid var(--line);
  border-top: 2px solid rgba(53, 224, 208, .5);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-home .mr-card--warm {
  border-top-color: rgba(255, 138, 61, .65);
}

.page-home .mr-num {
  position: absolute;
  top: .55rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(107, 135, 168, .26);
}

.page-home .mr-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-strong);
}

.page-home .mr-card p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 05 迭代与质量 ---------- */
.page-home .trust {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.page-home .trust-visual {
  position: relative;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .trust-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 3;
  object-fit: cover;
  filter: saturate(.85) brightness(.8);
}

.page-home .trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(1.3rem, 3vw, 2rem);
}

.page-home .trust-card {
  padding: 1.2rem 1.1rem 1.35rem;
  background: rgba(2, 8, 18, .5);
}

.page-home .trust-num {
  display: block;
  font-size: clamp(1.5rem, 4.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--cyan);
}

.page-home .trust-num small {
  font-size: .6em;
  color: var(--orange);
}

.page-home .trust-card h3 {
  margin: .35rem 0 .5rem;
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-strong);
}

.page-home .trust-card p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.75;
  color: var(--text);
}

.page-home .trust-flow {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-home .trust-flow li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text);
}

.page-home .trust-flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .45rem;
  height: .45rem;
  background: var(--green);
  transform: rotate(45deg);
}

.page-home .trust-flow strong {
  color: var(--text-strong);
  font-weight: 700;
  margin-right: .35rem;
}

.page-home .trust-meta {
  margin: 1.3rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  line-height: 1.8;
  color: var(--steel);
}

.page-home .trust-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.4rem 0 0;
}

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .page-home .hero-paths {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .page-home .map-list {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .mr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .mr-card:nth-child(2) {
    transform: translateY(1.2rem);
  }
  .page-home .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .trust-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .page-home .hero-trail {
    display: block;
  }
  .page-home .scorecard {
    margin-top: -3.4rem;
    margin-right: -1.2rem;
  }
  .page-home .map-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .dual-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.12fr) minmax(0, .92fr);
    align-items: start;
    gap: 1.2rem;
  }
  .page-home .dual-figure {
    margin-top: 1.6rem;
  }
  .page-home .lib-body {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 2rem;
    align-items: start;
  }
  .page-home .lib-right {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 1.2rem;
    align-items: start;
  }
  .page-home .lib-figure {
    margin-bottom: 0;
  }
  .page-home .lib-note {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .page-home .mr-card:nth-child(2) {
    transform: translateY(1.8rem);
  }
  .page-home .trust {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 2rem;
    align-items: start;
  }
  .page-home .trust-visual {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--topbar-h) + 1.5rem);
  }
  .page-home .trust-visual img {
    aspect-ratio: 4 / 5;
  }
  .page-home .trust-grid {
    margin-top: 1.4rem;
  }
}

@media (min-width: 1140px) {
  .page-home .sec-head {
    max-width: 66ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}
