.page-home {
  --home-cut: 18px;
  --home-rail-w: 330px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  padding-bottom: 84px;
}

.page-home .home-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .home-topbar .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .home-topbar__meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--amber);
}

.page-home .home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding-top: 26px;
}

.page-home .home-flow {
  min-width: 0;
}

/* 首屏 */
.page-home .home-hero {
  position: relative;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero__index {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--amber);
}

.page-home .home-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 7.2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: .06em;
  color: var(--cream);
  text-wrap: balance;
}

.page-home .home-lead {
  margin: 0 0 26px;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .home-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: .95rem;
  letter-spacing: .08em;
  text-decoration: none;
  background: transparent;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.page-home .home-channel:hover,
.page-home .home-channel:focus-visible {
  color: var(--mint-soft);
  border-color: var(--mint);
  transform: translateY(-2px);
}

.page-home .home-channel--primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  font-weight: 500;
}

.page-home .home-channel--primary:hover,
.page-home .home-channel--primary:focus-visible {
  background: var(--mint-soft);
  border-color: var(--mint-soft);
  color: var(--ink);
}

.page-home .home-hero__kicker {
  margin: 0 0 26px;
  padding-left: 14px;
  border-left: 2px solid var(--mint);
  font-size: .82rem;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--mint-soft);
}

/* 图片容器 */
.page-home .home-figure {
  margin: 0;
}

.page-home .home-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}

.page-home .home-figure figcaption {
  margin-top: 10px;
  font-size: .78rem;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--mist);
}

.page-home .home-figure--hero {
  margin-top: 4px;
}

/* 通用章节 */
.page-home .home-sec {
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-sec:last-of-type {
  border-bottom: 0;
}

.page-home .chapter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.page-home .chapter__num {
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--line);
  letter-spacing: .06em;
}

.page-home .chapter__label {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mist);
}

.page-home .home-sec h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 4.6vw, 2.05rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .05em;
  color: var(--cream);
}

.page-home .home-sec__note {
  margin: 0 0 24px;
  max-width: 56ch;
  font-size: .92rem;
  line-height: 1.85;
  color: var(--mist);
}

/* 榜单时间轴 */
.page-home .home-axis {
  position: relative;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-axis::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.page-home .home-axis__item {
  position: relative;
  padding-left: 30px;
  min-width: 0;
}

.page-home .home-axis__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
}

.page-home .home-axis__item:first-child::before {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(51, 240, 192, .14);
}

.page-home .home-slip {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 16px 18px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-home .home-slip:hover,
.page-home .home-slip:focus-within {
  transform: translateY(-2px);
  border-color: var(--mint);
}

.page-home .home-slip__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.page-home .home-chip {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .home-chip--time {
  color: var(--amber);
  border-color: rgba(255, 174, 43, .4);
}

.page-home .home-chip--batch {
  color: var(--mint-soft);
  border-color: rgba(51, 240, 192, .35);
}

.page-home .home-slip__batch {
  opacity: .9;
}

.page-home .home-slip__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .03em;
}

.page-home .home-slip__title a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .home-slip__title a:hover,
.page-home .home-slip__title a:focus-visible {
  color: var(--mint-soft);
  border-color: var(--mint);
}

.page-home .home-slip__text {
  margin: 0;
  font-size: .85rem;
  line-height: 1.75;
  color: var(--mist);
}

/* 资料库 */
.page-home .home-library {
  position: relative;
  padding: 34px 16px 30px;
  background: linear-gradient(172deg, rgba(12, 29, 49, .96) 0%, rgba(12, 29, 49, .55) 58%, rgba(6, 16, 29, 0) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.page-home .filter-btn {
  appearance: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-home .filter-btn:hover,
.page-home .filter-btn:focus-visible {
  color: var(--mint-soft);
  border-color: var(--mint);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

.page-home .home-packs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.page-home .home-pack {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(51, 240, 192, .5);
  background: rgba(6, 16, 29, .72);
  min-width: 0;
}

.page-home .home-pack[hidden] {
  display: none;
}

.page-home .home-pack__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.page-home .home-pack__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--cream);
}

.page-home .home-pack__text {
  margin: 0 0 12px;
  font-size: .85rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-pack__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-pack__tags li {
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--mint-soft);
}

.page-home .filter-empty {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--mist);
}

/* 两步起步 */
.page-home .home-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.page-home .home-step {
  position: relative;
  padding: 20px 18px 20px 62px;
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(12, 29, 49, .95), rgba(6, 16, 29, .35));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .home-step__num {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--mint);
}

.page-home .home-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--cream);
}

.page-home .home-step p {
  margin: 0 0 12px;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-step__link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 240, 192, .45);
  padding-bottom: 2px;
}

.page-home .home-step__link:hover,
.page-home .home-step__link:focus-visible {
  color: var(--mint-soft);
  border-color: var(--mint-soft);
}

.page-home .home-start__more {
  margin: 0 0 24px;
  font-size: .86rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-start__more a {
  color: var(--mint-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 255, 234, .5);
}

.page-home .home-start__more a:hover,
.page-home .home-start__more a:focus-visible {
  color: var(--mint);
}

/* 版本栏 */
.page-home .home-railcol {
  min-width: 0;
}

.page-home .home-rail {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .home-rail__title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  color: var(--amber);
  text-transform: uppercase;
}

.page-home .home-rail__list {
  margin: 0 0 16px;
  padding: 0;
}

.page-home .home-rail__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.page-home .home-rail__row dt {
  color: var(--mist);
  letter-spacing: .06em;
}

.page-home .home-rail__row dd {
  margin: 0;
  color: var(--cream);
  text-align: right;
}

.page-home .home-rail__sub {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mist);
}

.page-home .home-rail__notes {
  margin: 0 0 16px;
  padding: 0 0 0 16px;
  list-style: none;
}

.page-home .home-rail__notes li {
  position: relative;
  margin-bottom: 7px;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--cream);
}

.page-home .home-rail__notes li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--alert);
}

.page-home .home-rail__link {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mint);
  text-decoration: none;
}

.page-home .home-rail__link:hover,
.page-home .home-rail__link:focus-visible {
  color: var(--mint-soft);
}

/* 移动端悬浮通道 */
.page-home .home-dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--mint);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .12em;
  text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 12px 30px rgba(6, 16, 29, .75);
}

@media (min-width: 620px) {
  .page-home .home-channels {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .page-home .home-channel--primary {
    flex: 0 0 auto;
  }

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

@media (min-width: 860px) {
  .page-home .home-axis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: 4px;
  }

  .page-home .home-axis::before {
    left: 6px;
    right: 6px;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

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

  .page-home .home-axis__item::before {
    top: 0;
    left: 0;
  }

  .page-home .home-axis__item:nth-child(even) {
    margin-top: 30px;
  }

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

@media (min-width: 700px) and (min-width: 700px) {
  .page-home .home-pack:nth-child(even) {
    margin-top: 22px;
  }
}

@media (min-width: 980px) {
  .page-home {
    padding-bottom: 0;
  }

  .page-home .home-shell {
    grid-template-columns: minmax(0, 1fr) var(--home-rail-w);
    gap: 46px;
    padding-top: 32px;
  }

  .page-home .home-railcol {
    position: sticky;
    top: 24px;
    align-self: start;
  }

  .page-home .home-dock {
    display: none;
  }

  .page-home .home-title {
    letter-spacing: .07em;
  }

  .page-home .home-figure--hero img {
    max-height: 420px;
  }

  .page-home .home-slip__batch {
    opacity: 0;
    transition: opacity .2s var(--ease);
  }

  .page-home .home-slip:hover .home-slip__batch,
  .page-home .home-slip:focus-within .home-slip__batch {
    opacity: 1;
  }
}

@media (min-width: 1100px) {
  .page-home .home-library {
    padding: 40px 28px 36px;
  }

  .page-home .home-packs {
    gap: 18px;
  }

  .page-home .home-pack:nth-child(2),
  .page-home .home-pack:nth-child(4) {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-channel,
  .page-home .home-slip,
  .page-home .filter-btn {
    transition: none;
  }

  .page-home .home-channel:hover,
  .page-home .home-slip:hover {
    transform: none;
  }
}
