/* ===== 首页 page-home ===== */

.page-home {
  display: block;
  position: relative;
  padding: 22px 0 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(115% 62% at 88% -4%, rgba(200, 50, 43, .075), transparent 62%),
    radial-gradient(85% 46% at 4% 32%, rgba(217, 154, 43, .07), transparent 60%);
  background-repeat: no-repeat;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

.page-home .home-crumb {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------- 置顶换机重登入口 ---------- */

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

.page-home .home-entry__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(217, 154, 43, .5);
  background-color: rgba(251, 246, 238, .65);
  background-image: linear-gradient(118deg, rgba(200, 50, 43, .11), rgba(217, 154, 43, .12) 48%, rgba(232, 117, 47, .08));
  color: var(--ink);
  text-decoration: none;
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease), background-color .24s var(--ease);
}

.page-home .home-entry__link::before,
.page-home .home-entry__link::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(217, 154, 43, .5);
}

.page-home .home-entry__link::before { left: -7px; }
.page-home .home-entry__link::after { right: -7px; }

.page-home .home-entry__link:hover,
.page-home .home-entry__link:focus-visible {
  border-color: var(--cinnabar);
  background-color: rgba(200, 50, 43, .07);
  box-shadow: 0 10px 26px rgba(200, 50, 43, .13);
}

.page-home .home-entry__badge {
  flex: 0 0 auto;
  width: 62px;
  height: 40px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(217, 154, 43, .45);
  background: var(--fold);
}

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

.page-home .home-entry__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .home-entry__flag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.4;
  color: var(--cinnabar);
}

.page-home .home-entry__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .home-entry__arrow {
  display: block;
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cinnabar);
  transition: transform .24s var(--ease);
}

.page-home .home-entry__link:hover .home-entry__arrow {
  transform: translateX(4px);
}

/* ---------- 杂志封面式首屏 ---------- */

.page-home .home-cover {
  margin-top: 38px;
}

.page-home .home-cover__grid {
  display: grid;
  gap: 28px;
}

.page-home .home-cover__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 7.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .home-cover__deck {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .home-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-stat {
  flex: 1 1 0;
  min-width: 72px;
  padding-right: 14px;
  border-right: 1px solid var(--line-soft);
}

.page-home .home-stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--cinnabar);
}

.page-home .home-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

.page-home .home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.page-home .home-cover__fig img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 三条主线 ---------- */

.page-home .home-routes {
  margin-top: 66px;
}

.page-home .home-routes__title,
.page-home .home-cats__title,
.page-home .home-screen__title,
.page-home .home-feed__title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
}

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

.page-home .home-route {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-route__idx {
  flex: 0 0 auto;
  width: 30px;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--amber);
}

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

.page-home .home-route__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
}

.page-home .home-route__title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 50, 43, .3);
  transition: color .24s var(--ease), border-color .24s var(--ease);
}

.page-home .home-route__title a:hover,
.page-home .home-route__title a:focus-visible {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.page-home .home-route__desc {
  margin: 8px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-route__go {
  display: none;
  flex: 0 0 auto;
  font-family: var(--mono);
  color: var(--cinnabar);
  opacity: .55;
  line-height: 1.4;
}

/* ---------- 八大分类横向主题带 ---------- */

.page-home .home-cats {
  margin-top: 66px;
}

.page-home .home-cats__note {
  margin: 12px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-cats__fig {
  margin: 22px 0 22px;
}

.page-home .home-cats__fig img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-cats__rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 20px 20px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 50, 43, .28) transparent;
}

.page-home .home-cats__rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-cats__rail::-webkit-scrollbar-thumb {
  background: rgba(200, 50, 43, .25);
  border-radius: 3px;
}

.page-home .home-cats__rail:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: -2px;
}

.page-home .cat-chip {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 156px;
  padding: 18px 20px 16px;
  background: var(--fold);
  border: 1px solid rgba(217, 154, 43, .32);
  color: var(--ink);
  text-decoration: none;
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.page-home .cat-chip:nth-child(4n+1) { border-radius: 22px 12px 20px 10px; }
.page-home .cat-chip:nth-child(4n+2) { border-radius: 12px 24px 10px 18px; }
.page-home .cat-chip:nth-child(4n+3) { border-radius: 20px 10px 24px 12px; }
.page-home .cat-chip:nth-child(4n)   { border-radius: 10px 18px 12px 22px; }

.page-home .cat-chip:hover,
.page-home .cat-chip:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cinnabar);
  box-shadow: 0 14px 30px rgba(200, 50, 43, .14);
}

.page-home .cat-chip::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.page-home .cat-chip:nth-child(2)::after { background: var(--amber); }
.page-home .cat-chip:nth-child(3)::after { background: var(--orange); }
.page-home .cat-chip:nth-child(4)::after { background: var(--seal); }
.page-home .cat-chip:nth-child(5)::after { background: var(--amber); }
.page-home .cat-chip:nth-child(6)::after { background: var(--orange); }
.page-home .cat-chip:nth-child(7)::after { background: var(--cinnabar); }
.page-home .cat-chip:nth-child(8)::after { background: var(--seal); }

.page-home .cat-chip__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.4;
  color: rgba(59, 52, 49, .58);
}

.page-home .cat-chip__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .cat-chip__count {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(30, 26, 24, .18);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cinnabar);
}

/* ---------- 小屏阅读说明 ---------- */

.page-home .home-screen {
  margin-top: 66px;
}

.page-home .home-screen__grid {
  display: grid;
  gap: 24px;
}

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

.page-home .home-screen__fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.page-home .home-screen__lead {
  margin: 14px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

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

.page-home .home-screen__list li {
  position: relative;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-screen__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- 最近更新摘要 ---------- */

.page-home .home-feed {
  margin-top: 66px;
}

.page-home .home-feed__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: feed;
}

.page-home .home-feed__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-feed__text {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-feed__time {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--orange);
}

.page-home .home-stamp {
  display: block;
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.page-home .home-stamp a {
  color: rgba(59, 52, 49, .66);
  text-decoration: none;
  border-bottom: 1px dotted rgba(59, 52, 49, .35);
}

.page-home .home-stamp a:hover,
.page-home .home-stamp a:focus-visible {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.page-home .home-tail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- 中等屏幕 ---------- */

@media (min-width: 520px) {
  .page-home .home-route__go {
    display: block;
    margin-left: auto;
  }

  .page-home .home-entry__title {
    font-size: 16px;
  }
}

@media (min-width: 820px) {
  .page-home {
    font-size: 17px;
    padding-top: 30px;
  }

  .page-home .home-cover__deck,
  .page-home .home-route__desc,
  .page-home .home-cats__note,
  .page-home .home-screen__lead,
  .page-home .home-screen__list li,
  .page-home .home-feed__text {
    font-size: 17px;
  }

  .page-home .home-screen__grid {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 46px;
    align-items: center;
  }

  .page-home .home-stats {
    padding: 18px 0;
  }

  .page-home .home-stat__num {
    font-size: 30px;
  }
}

@media (min-width: 900px) {
  .page-home .home-cover {
    margin-top: 54px;
  }

  .page-home .home-cover__grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .92fr);
    gap: 48px;
    align-items: end;
  }

  .page-home .home-cats__rail {
    padding-inline: max(28px, calc((100% - 1180px) / 2 + 28px));
  }

  .page-home .home-routes,
  .page-home .home-cats,
  .page-home .home-screen,
  .page-home .home-feed {
    margin-top: 84px;
  }
}

/* ---------- 减弱动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry__link,
  .page-home .home-entry__arrow,
  .page-home .cat-chip,
  .page-home .home-route__title a,
  .page-home .home-stamp a {
    transition: none;
  }

  .page-home .cat-chip:hover,
  .page-home .cat-chip:focus-visible {
    transform: none;
  }

  .page-home .home-entry__link:hover .home-entry__arrow {
    transform: none;
  }
}
<<<END>>>
