.page-home {
  --home-gap: 16px;
  --home-radius: 16px;
  padding-bottom: 72px;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .home-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.page-home .home-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.page-home .home-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.16);
}

.page-home .home-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .home-focus { order: 1; }
.page-home .home-timeline { order: 2; }
.page-home .home-block--version { order: 3; }
.page-home .home-block--download { order: 4; }

.page-home .home-focus {
  position: relative;
  padding: 24px 20px 26px;
  border: 1px solid rgba(36, 66, 88, 0.9);
  border-radius: var(--home-radius);
  background: linear-gradient(158deg, rgba(17, 42, 61, 0.96), rgba(6, 19, 31, 0.92));
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.95);
}

.page-home .home-focus::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.page-home .home-focus h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 8.6vw, 54px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: var(--text);
}

.page-home .home-lead {
  max-width: 38em;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
}

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

.page-home .home-actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

/* ---------- 左侧赛程时间轴 ---------- */
.page-home .home-timeline {
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(11, 29, 44, 0.74);
}

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

.page-home .home-tl-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(36, 66, 88, 0.75);
}

.page-home .home-tl-item:last-child {
  border-bottom: 0;
}

.page-home .home-tl-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.page-home .home-tl-meta {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .home-tl-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ---------- 首屏并列块 ---------- */
.page-home .home-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--ink-800);
}

.page-home .home-block h2 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.page-home .home-block-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .home-ver {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .home-ver-date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.page-home .home-block--download {
  border-color: rgba(46, 230, 168, 0.3);
  background: linear-gradient(160deg, rgba(46, 230, 168, 0.11), rgba(17, 42, 61, 0.62));
}

.page-home .home-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 154, 107, 0.4);
  padding-bottom: 1px;
}

.page-home .home-link:hover,
.page-home .home-link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 编号章节 ---------- */
.page-home .home-sec {
  padding-top: 48px;
}

.page-home .home-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-sec-head .sec-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .home-sec-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.page-home .home-sec-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ---------- 01 版本更新 ---------- */
.page-home .home-update {
  display: grid;
  gap: 22px;
}

.page-home .home-update-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-dim);
}

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

.page-home .home-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mint);
  transform: rotate(45deg);
}

.page-home .home-fold {
  margin: 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 42, 61, 0.5);
}

.page-home .home-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

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

.page-home .home-fold summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-fold[open] summary::after {
  content: "−";
}

.page-home .home-fold p {
  margin: 0;
  padding: 0 15px 15px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-dim);
}

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

.page-home .home-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------- 02 三条路径 ---------- */
.page-home .home-tree {
  position: relative;
  display: grid;
  gap: 16px;
}

.page-home .home-path {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(17, 42, 61, 0.86), rgba(11, 29, 44, 0.92));
}

.page-home .home-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.page-home .home-path h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

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

/* ---------- 03 赛季数据 ---------- */
.page-home .home-season {
  display: grid;
  gap: 22px;
}

.page-home .home-season-copy > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .home-stats {
  display: grid;
  gap: 18px;
  margin: 20px 0 18px;
}

.page-home .home-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.page-home .home-stat-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.page-home .data-bar__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(36, 66, 88, 0.7);
  overflow: hidden;
}

.page-home .data-bar__fill {
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
}

.page-home .home-stat--orange .data-bar__fill {
  background: linear-gradient(90deg, #B84A16, var(--orange));
}

.page-home .home-stat--orange .home-stat-num {
  color: var(--orange);
}

.page-home .home-note {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .home-note .home-link {
  display: inline;
  margin-left: 6px;
  font-size: 13px;
}

/* ---------- 04 通勤下载 ---------- */
.page-home .home-commute {
  display: grid;
  gap: 22px;
}

.page-home .home-commute-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .home-files {
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .home-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(36, 66, 88, 0.6);
}

.page-home .home-file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.page-home .home-file-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- 05 联系 ---------- */
.page-home .home-reach {
  display: grid;
  gap: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 106, 43, 0.3);
  border-radius: 14px;
  background: linear-gradient(142deg, rgba(255, 106, 43, 0.09), rgba(11, 29, 44, 0.88));
}

.page-home .home-reach p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .home-reach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .page-home .home-focus {
    padding: 30px 28px 32px;
  }

  .page-home .home-lead {
    font-size: 17px;
  }

  .page-home .home-actions .btn {
    flex: 0 0 auto;
    text-align: left;
  }

  .page-home .home-reach {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 24px 26px;
  }
}

@media (min-width: 900px) {
  .page-home {
    --home-gap: 20px;
  }

  .page-home .home-hero {
    padding: 26px 0 56px;
  }

  .page-home .home-bento {
    grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-focus {
    order: 0;
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .page-home .home-timeline {
    order: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 24px;
  }

  .page-home .home-block--version {
    order: 0;
    grid-column: 2;
    grid-row: 2;
  }

  .page-home .home-block--download {
    order: 0;
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    margin-top: 28px;
  }

  .page-home .home-sec {
    padding-top: 64px;
  }

  .page-home .home-sec-head {
    gap: 20px;
    margin-bottom: 26px;
  }

  .page-home .home-sec-head .sec-num {
    font-size: 40px;
  }

  .page-home .home-update,
  .page-home .home-season,
  .page-home .home-commute {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }

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

  .page-home .home-tree::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, var(--orange), var(--mint));
    opacity: 0.45;
  }
}

@media (min-width: 1180px) {
  .page-home .home-bento {
    grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .home-focus h1 {
    font-size: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-timeline {
    position: static;
  }
}

.page-home {
  --fill: currentColor;
}
