/* ============================================================
   UED赛场 · 首页专属样式（作用域 .page-home）
   ============================================================ */

.page-home {
  --home-gap: clamp(14px, 2.2vw, 26px);
  --home-cut: 22px;
  display: block;
  overflow-x: clip;
}

/* ---------- 页面上下文条 ---------- */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(14px, 2vw, 22px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
  text-transform: uppercase;
}

.page-home .home-context .mono {
  color: var(--cyan);
}

/* ---------- 框景首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(26px, 4vw, 56px);
}

.page-home .hero__bg {
  position: absolute;
  inset: -6% -4% 0 -4%;
  z-index: -1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 56% 100%, 0 92%);
  background: linear-gradient(150deg, rgba(30, 92, 72, .62) 0%, var(--ink) 68%);
}

.page-home .hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}

.page-home .hero__frame {
  padding: clamp(20px, 3.4vw, 46px);
  background: var(--grad-key);
  border: 1px solid var(--line);
}

.page-home .hero__title {
  margin: clamp(10px, 1.4vw, 16px) 0 0;
  max-width: 14ch;
}

.page-home .hero__lede {
  margin-top: clamp(14px, 1.8vw, 20px);
  max-width: 54ch;
}

.page-home .hero__entries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 2.4vw, 26px);
}

.page-home .entry-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(18, 58, 44, .55);
  color: var(--cyan-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}

.page-home .entry-chip::before {
  content: "▸";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--score);
}

.page-home .entry-chip:hover,
.page-home .entry-chip:focus-visible {
  border-color: var(--cyan);
  background: var(--archive-hi);
  color: var(--ivory);
  transform: translateY(-2px);
}

.page-home .hero__score {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3.4vw, 44px);
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.page-home .hero__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 96px;
}

.page-home .hero__stat .scoreboard__num {
  font-size: clamp(26px, 4.6vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--score);
}

.page-home .hero__stat-label {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 30px);
}

/* 版本签 + 纯 CSS 展开摘要 */
.page-home .version-chip {
  position: relative;
  display: inline-flex;
  outline: none;
}

.page-home .version-chip__tip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: max-content;
  max-width: 250px;
  padding: 11px 13px;
  border: 1px solid var(--cyan);
  background: var(--ink-2);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .02em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 6;
}

.page-home .version-chip:hover .version-chip__tip,
.page-home .version-chip:focus-within .version-chip__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 双入口档案卡 ---------- */
.page-home .entries-title {
  margin-top: 10px;
  max-width: 20ch;
}

.page-home .entry-grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(20px, 3vw, 34px);
}

.page-home .entry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 30px);
}

.page-home .entry-card .card__head {
  margin-bottom: 2px;
}

.page-home .entry-card .card__title {
  margin: 0;
}

.page-home .entry-card p {
  margin: 0;
}

.page-home .entry-card__act {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0;
}

.page-home .entry-card--wide {
  border-left: 3px solid var(--cyan);
}

.page-home .entry-card--narrow {
  border-left: 3px solid var(--score);
}

.page-home .entry-media {
  max-width: 420px;
  width: 100%;
}

.page-home .entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 两步集锦路径 ---------- */
.page-home .steps-section {
  position: relative;
}

.page-home .steps-section::before {
  content: "";
  position: absolute;
  inset: 0 -30% 40% 42%;
  z-index: -1;
  background: linear-gradient(118deg, rgba(18, 58, 44, .55), transparent 72%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 62%);
  pointer-events: none;
}

.page-home .steps-wrap {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(20px, 3vw, 34px);
}

.page-home .steps {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .step {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 20px 24px 20px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(118deg, rgba(18, 58, 44, .8) 0%, rgba(4, 20, 15, .74) 100%);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.page-home .step::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 24px;
  height: 24px;
  background: var(--score);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: .8;
  transition: opacity var(--t-fast);
}

.page-home .step:hover,
.page-home .step:focus-within {
  transform: translateY(-2px);
  border-color: var(--cyan);
  border-left-color: var(--score);
}

.page-home .step:hover::after,
.page-home .step:focus-within::after {
  opacity: 1;
}

.page-home .step__num {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}

.page-home .step__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .step__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ivory);
}

.page-home .step__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .step__hint {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--score);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.page-home .step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .steps-note {
  margin-top: clamp(16px, 2.2vw, 24px);
  max-width: 62ch;
  font-size: 15px;
}

/* ---------- 家庭看球 ---------- */
.page-home .family {
  display: grid;
  gap: var(--home-gap);
}

.page-home .media--family {
  aspect-ratio: 3 / 2;
}

.page-home .family__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .family__body h2 {
  margin: 10px 0 14px;
}

.page-home .family__body > p {
  max-width: 56ch;
}

.page-home .family__list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: clamp(18px, 2.4vw, 24px) 0 0;
  padding: 0;
}

.page-home .family__list li {
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--archive-hi);
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .family__list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15.5px;
  color: var(--cyan-soft);
  letter-spacing: .02em;
}

/* ---------- 分类标签流 ---------- */
.page-home .tags-lede {
  max-width: 62ch;
  margin-top: 12px;
}

.page-home .tag-filter {
  display: flex;
  gap: 10px;
  margin-top: clamp(18px, 2.4vw, 26px);
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .tag-filter .tag {
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: default;
}

.page-home .tag-notes {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: clamp(14px, 2vw, 20px) 0 0;
  padding: 0;
}

.page-home .tag-note {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(18, 58, 44, .38);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mist);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.page-home .tag-note:hover {
  border-color: var(--cyan);
  background: var(--archive-hi);
}

.page-home .tag-note__key {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--cyan);
}

/* ---------- 数据脉冲条 ---------- */
.page-home .pulse-band {
  position: relative;
  margin: clamp(44px, 6vw, 88px) 0;
  padding: clamp(26px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, var(--ink-2) 0%, var(--archive) 50%, var(--ink-2) 100%);
  overflow: hidden;
}

.page-home .pulse-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(59, 232, 196, .12) 1px, transparent 1px);
  background-size: 64px 100%;
  pointer-events: none;
}

.page-home .pulse-grid {
  position: relative;
  display: grid;
  gap: clamp(16px, 2.6vw, 30px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-home .pulse-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 15px;
  border-left: 2px solid var(--score);
}

.page-home .pulse-item__num {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ivory);
}

.page-home .pulse-item__label {
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

/* ---------- 版本演进 ---------- */
.page-home .version-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .version-copy h2 {
  margin: 10px 0 14px;
}

.page-home .version-copy > p {
  max-width: 54ch;
}

.page-home .version-copy .btn {
  margin-top: clamp(14px, 2vw, 20px);
}

.page-home .timeline {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--line);
}

.page-home .timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(31, 110, 90, .55);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory);
}

.page-home .timeline li:last-child {
  border-bottom: 0;
}

.page-home .timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 19px;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .timeline__year {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--amber);
}

/* ---------- 四向分流 ---------- */
.page-home .routes {
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 32px);
  grid-template-columns: 1fr;
}

.page-home .route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 38px;
  border: 1px solid var(--line);
  background: var(--grad-key);
  color: var(--ivory);
  text-decoration: none;
  transition: transform var(--t-fast), border-color var(--t-fast);
}

.page-home .route-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: var(--archive-hi);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: background var(--t-fast);
}

.page-home .route-card:hover,
.page-home .route-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .route-card:hover::after,
.page-home .route-card:focus-visible::after {
  background: var(--score);
}

.page-home .route-card__no {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .route-card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
}

.page-home .route-card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

/* ============================================================
   响应式
   ============================================================ */

@media (min-width: 640px) {
  .page-home .tag-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .page-home .hero__bg {
    inset: -8% -6% 0 8%;
    clip-path: polygon(14% 0, 100% 0, 100% 84%, 46% 100%, 0 78%);
  }

  .page-home .hero__frame {
    max-width: 880px;
  }

  .page-home .entry-grid {
    grid-template-columns: 1.35fr 1fr .82fr;
    align-items: start;
  }

  .page-home .entry-media {
    max-width: none;
  }

  .page-home .steps-wrap {
    grid-template-columns: 1.12fr .88fr;
    align-items: start;
  }

  .page-home .family {
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
  }

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

  .page-home .version-grid {
    grid-template-columns: 1.08fr .92fr;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .page-home .routes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .page-home .hero__score {
    gap: 14px 22px;
  }

  .page-home .hero__stat {
    min-width: 82px;
  }

  .page-home .step {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 18px 18px 34px 16px;
  }

  .page-home .timeline li {
    grid-template-columns: 58px 1fr;
    gap: 10px;
  }

  .page-home .entry-chip {
    width: 100%;
    justify-content: flex-start;
  }
}
<<<END>>>
