.page-home {
  --home-rule: var(--rule);
  --home-gap-sm: clamp(16px, 3vw, 24px);
  --home-gap-md: clamp(36px, 6vw, 64px);
  --home-gap-lg: clamp(56px, 9vw, 104px);
  position: relative;
}

.page-home .home-block {
  padding: var(--home-gap-lg) 0;
  border-top: 1px solid var(--home-rule);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px) 0 clamp(44px, 8vw, 96px);
  border-bottom: 3px solid var(--ink);
}

.page-home .home-hero__frame {
  position: absolute;
  top: 0;
  right: -4%;
  width: min(58%, 520px);
  height: 100%;
  color: var(--ink);
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 6vw, 56px);
}

.page-home .home-hero__title {
  margin: 12px 0 20px;
  max-width: 14ch;
}

.page-home .home-hero__title-main {
  display: block;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.page-home .home-hero__title-sub {
  display: block;
  margin-top: 0.2em;
  font-size: 0.4em;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.24;
  color: var(--grey);
}

.page-home .home-hero__lede {
  max-width: 30ch;
  margin: 0 0 28px;
  color: var(--ink);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.page-home .home-hero__flash {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 168px;
  border: 1px solid var(--ink);
  background: var(--lime-soft);
  overflow: hidden;
}

.page-home .home-hero__flash .ticker__label {
  flex: 0 0 auto;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.page-home .home-hero__flash .ticker__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.page-home .home-hero__flash .ticker__track {
  display: flex;
  flex-direction: column;
  animation: home-flash-y 22s linear infinite;
}

.page-home .home-hero__flash:hover .ticker__track,
.page-home .home-hero__flash:focus-within .ticker__track {
  animation-play-state: paused;
}

.page-home .home-hero__flash .ticker__item {
  padding: 10px;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: var(--ink);
  border-bottom: 1px dashed var(--rule);
}

@keyframes home-flash-y {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.page-home .home-hero__figure {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- 通用图片 ---------- */
.page-home .media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .media__caption {
  margin-top: 10px;
  font-size: var(--step-1);
  color: var(--grey);
}

/* ---------- 区块标题 ---------- */
.page-home .home-entries__head,
.page-home .home-log__head {
  max-width: 62ch;
  margin-bottom: var(--home-gap-md);
}

.page-home .home-entries__lede,
.page-home .home-log__lede {
  margin-top: 12px;
  color: var(--grey);
}

/* ---------- 三个入口 ---------- */
.page-home .home-entries__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap-sm);
}

.page-home .home-entries__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(21, 23, 27, 0.08);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .home-entries__card .card__title {
  margin: 0;
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.page-home .home-entries__card .card__text {
  margin: 0;
  color: var(--grey);
  line-height: 1.7;
}

.page-home .home-entries__card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.page-home .entry-facts {
  list-style: none;
  margin: 4px 0 12px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--rule);
  display: grid;
  gap: 8px;
  font-size: var(--step-2);
  line-height: 1.55;
}

.page-home .entry-facts li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.page-home .entry-facts .mono {
  color: var(--grey);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.page-home .home-entries__note {
  margin: var(--home-gap-md) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-entries__note img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink);
}

/* ---------- 本周速览 ---------- */
.page-home .home-week {
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.page-home .home-week__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap-md);
  align-items: start;
}

.page-home .week-list {
  list-style: none;
  margin: var(--home-gap-sm) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.page-home .week-list__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--rule);
}

.page-home .week-list__item p {
  margin: 0;
  line-height: 1.7;
}

.page-home .week-list__no {
  display: inline-block;
  padding-top: 3px;
  color: var(--clay);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.page-home .home-week__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--home-gap-sm);
}

.page-home .home-week__media {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  padding: 0;
}

.page-home .home-week__media img {
  aspect-ratio: 3 / 2;
}

.page-home .home-week__media .media__caption {
  padding: 12px 14px;
  margin: 0;
  color: var(--mist);
  background: var(--ink);
  font-size: var(--step-1);
}

/* ---------- 最近调整 ---------- */
.page-home .home-log__rail {
  list-style: none;
  margin: 0;
  padding: 4px 4px 20px;
  display: flex;
  gap: var(--home-gap-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-log__card {
  scroll-snap-align: start;
  flex: 0 0 84%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 4vw, 26px);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(21, 23, 27, 0.07);
}

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

.page-home .home-log__ver {
  margin: 0;
  font-size: var(--step-2);
  letter-spacing: 0.06em;
  color: var(--forest);
}

.page-home .home-log__title {
  margin: 0;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-home .home-log__text {
  margin: 0;
  color: var(--grey);
  line-height: 1.7;
}

.page-home .home-log__more {
  margin: var(--home-gap-sm) 0 0;
}

/* ---------- 路线图 ---------- */
.page-home .home-map__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap-md);
  align-items: start;
}

.page-home .home-map__list {
  list-style: none;
  counter-reset: none;
  margin: var(--home-gap-sm) 0 0;
  padding: 0;
}

.page-home .home-map__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  transition: border-color 160ms var(--ease);
}

.page-home .home-map__item:last-child {
  border-bottom: 1px solid var(--rule);
}

.page-home .home-map__no {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  padding-top: 4px;
}

.page-home .home-map__title {
  margin: 0 0 6px;
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .home-map__title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.page-home .home-map__title a:hover,
.page-home .home-map__title a:focus-visible {
  border-color: var(--ink);
  background: var(--lime);
}

.page-home .home-map__detail p {
  margin: 0;
  color: var(--grey);
  line-height: 1.7;
  font-size: var(--step-2);
}

.page-home .home-map__media {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.page-home .home-map__media img {
  aspect-ratio: 3 / 2;
}

/* ---------- 中等屏 ---------- */
@media (min-width: 700px) {
  .page-home .home-entries__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }

  .page-home .home-entries__card:nth-child(2) {
    margin-top: 22px;
  }

  .page-home .home-entries__card:nth-child(3) {
    margin-top: 44px;
  }

  .page-home .home-entries__card:hover,
  .page-home .home-entries__card:focus-within {
    transform: translateY(-2px);
    box-shadow: 12px 12px 0 rgba(21, 23, 27, 0.12);
  }

  .page-home .home-log__card {
    flex: 0 0 46%;
  }

  .page-home .home-entries__note {
    max-width: 620px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
  }

  .page-home .home-hero__aside {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
  }

  .page-home .home-hero__flash {
    height: 100%;
    min-height: 360px;
  }

  .page-home .home-week__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .page-home .home-map__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
  }

  .page-home .home-log__rail {
    gap: 24px;
    padding-bottom: 24px;
  }

  .page-home .home-log__card {
    flex: 0 0 32%;
  }
}

@media (min-width: 1180px) {
  .page-home .home-log__card:nth-child(2) {
    margin-top: 16px;
  }

  .page-home .home-log__card:nth-child(3) {
    margin-top: 32px;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__flash .ticker__track {
    animation: none;
  }

  .page-home .home-entries__card,
  .page-home .home-map__item,
  .page-home .home-map__title a {
    transition: none;
  }

  .page-home .home-entries__card:hover,
  .page-home .home-entries__card:focus-within {
    transform: none;
  }
}
