.page-home {
  background: var(--cream);
  color: var(--ink);
  padding-bottom: clamp(36px, 5vw, 76px);
}

/* 面包屑 */
.page-home .home-crumb {
  padding-top: clamp(16px, 2.6vw, 30px);
}
.page-home .home-crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.page-home .home-crumb__list li + li::before {
  content: "／";
  margin-right: 6px;
  color: var(--clay);
}
.page-home .home-crumb__list a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.page-home .home-crumb__list a:hover,
.page-home .home-crumb__list a:focus-visible {
  border-bottom-color: var(--gold);
}
.page-home .home-crumb__list [aria-current="page"] {
  color: var(--ink-soft);
}

/* 封面 */
.page-home .home-cover {
  position: relative;
  margin-top: clamp(12px, 2vw, 22px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 84% 10%, rgba(217, 164, 65, 0.24), transparent 44%),
    radial-gradient(circle at 6% 92%, rgba(179, 58, 58, 0.2), transparent 42%),
    linear-gradient(155deg, var(--green) 0%, var(--felt) 58%, var(--felt-deep) 100%);
  box-shadow: var(--shadow-card);
}
.page-home .home-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 240, 228, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 240, 228, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.page-home .home-cover__grid {
  position: relative;
  display: grid;
  gap: clamp(22px, 3.4vw, 42px);
  padding: clamp(22px, 4vw, 56px);
}
.page-home .home-cover__text {
  min-width: 0;
}
.page-home .home-cover .eyebrow {
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.page-home .home-cover__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 7vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
.page-home .home-cover__lede {
  margin: clamp(16px, 2.4vw, 22px) 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: rgba(247, 240, 228, 0.84);
}

/* 检索浮岛 */
.page-home .home-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 30px);
  padding: 8px 8px 8px 16px;
  max-width: 640px;
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.85);
}
.page-home .home-search__glyph {
  flex: none;
  font-size: 18px;
  line-height: 1;
  color: var(--clay);
}
.page-home .home-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.page-home .home-search__input {
  flex: 1 1 160px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.page-home .home-search__input::placeholder {
  color: var(--stone);
}
.page-home .home-search__input:focus {
  outline: none;
}
.page-home .home-search:focus-within {
  box-shadow: 0 0 0 2px var(--gold), 0 18px 40px -26px rgba(0, 0, 0, 0.85);
}
.page-home .home-search__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.page-home .home-search__go:hover,
.page-home .home-search__go:focus-visible {
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.page-home .home-search__hint {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(247, 240, 228, 0.72);
}
.page-home .home-search__hint a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 199, 122, 0.45);
}
.page-home .home-search__hint a:hover,
.page-home .home-search__hint a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.page-home .home-cover__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  padding: 0;
  list-style: none;
}
.page-home .home-chip {
  padding: 6px 14px;
  border: 1px solid rgba(232, 199, 122, 0.4);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}
.page-home .home-cover__figure {
  position: relative;
  margin: 0;
  min-width: 0;
}
.page-home .home-cover__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 26px 56px -34px rgba(0, 0, 0, 0.9);
}
.page-home .home-cover__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(247, 240, 228, 0.72);
}
.page-home .home-cover__code {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}
.page-home .home-cover__captext {
  flex: 1 1 180px;
}

/* 通用章节头 */
.page-home .home-section__head {
  max-width: 62ch;
  margin-bottom: clamp(22px, 3.2vw, 38px);
}
.page-home .home-section__head .eyebrow {
  color: var(--clay);
  margin-bottom: 10px;
}
.page-home .home-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--green);
}
.page-home .home-section__lede {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--ink-soft);
}
.page-home .home-section__head--dark .eyebrow--gold {
  color: var(--gold-soft);
}
.page-home .home-section__head--dark .home-section__title {
  color: var(--cream);
}
.page-home .home-section__head--dark .home-section__lede {
  color: rgba(247, 240, 228, 0.8);
}

/* 段位 */
.page-home .home-ranks {
  padding: clamp(40px, 6vw, 86px) 0 clamp(30px, 4vw, 56px);
}
.page-home .home-ranks__body {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}
.page-home .home-ranks__figure {
  margin: 0;
  min-width: 0;
}
.page-home .home-ranks__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}
.page-home .home-ranks__cap {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone);
}
.page-home .home-ranks__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .rank-card {
  position: relative;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 18px 36px -34px rgba(18, 61, 51, 0.7);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}
.page-home .rank-card::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: var(--pill);
  background: var(--gold);
  opacity: 0.75;
}
.page-home .rank-card:hover,
.page-home .rank-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.7);
}
.page-home .rank-card__no {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--green);
  opacity: 0.9;
}
.page-home .rank-card__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.page-home .rank-card__text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.page-home .rank-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}
.page-home .rank-card__tags .tag {
  background: rgba(111, 139, 106, 0.16);
  color: var(--green);
  font-size: 11.5px;
}
.page-home .home-ranks__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
}
.page-home .home-ranks__morenote {
  font-size: 13px;
  color: var(--stone);
}

/* 标签墙 */
.page-home .home-tags {
  padding: clamp(30px, 4.6vw, 64px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-home .home-tags__body {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}
.page-home .home-tags__wall {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .tag-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--green);
  font-size: 14.5px;
  text-decoration: none;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), background-color 200ms var(--ease);
}
.page-home .tag-card__link:hover,
.page-home .tag-card__link:focus-visible {
  border-color: var(--gold);
  background: var(--cream);
  transform: translateY(-2px);
}
.page-home .tag-card__count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: var(--pill);
  background: rgba(111, 139, 106, 0.2);
  color: var(--green-deep);
}
.page-home .home-tags__figure {
  margin: 0;
  min-width: 0;
}
.page-home .home-tags__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.page-home .home-tags__cap {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone);
}

/* 回放时间轴 */
.page-home .home-replay {
  margin: clamp(34px, 5vw, 66px) auto 0;
  padding: clamp(26px, 4.4vw, 60px) clamp(16px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 6%, rgba(217, 164, 65, 0.18), transparent 46%),
    linear-gradient(165deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: var(--cream);
  overflow: hidden;
}
.page-home .home-replay__board {
  display: grid;
  gap: clamp(18px, 2.6vw, 30px);
}
.page-home .home-timeline {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  padding: 6px 0;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 228, 0.045);
}
.page-home .home-replay__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .home-replay__step {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(247, 240, 228, 0.06);
}
.page-home .home-replay__range {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.page-home .home-replay__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(247, 240, 228, 0.86);
}
.page-home .home-replay__figure {
  margin: clamp(20px, 3vw, 32px) 0 0;
}
.page-home .home-replay__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 199, 122, 0.28);
}
.page-home .home-replay__cap {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(247, 240, 228, 0.68);
}
.page-home .home-replay__more {
  margin: clamp(20px, 3vw, 30px) 0 0;
}

/* 专题与笔记 */
.page-home .home-journal {
  padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 4vw, 56px);
}
.page-home .home-journal__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}
.page-home .home-journal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.page-home .journal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.page-home .journal-item__no {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--clay);
}
.page-home .journal-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
}
.page-home .journal-item__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, 0.5);
}
.page-home .journal-item__title a:hover,
.page-home .journal-item__title a:focus-visible {
  border-bottom-color: var(--chip);
}
.page-home .journal-item__text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.page-home .home-journal__aside {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.page-home .home-journal__asideTitle {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
}
.page-home .home-journal__facts {
  margin: 0;
  display: grid;
  gap: 12px;
}
.page-home .home-fact {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.page-home .home-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.page-home .home-fact dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.page-home .home-fact dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
}
.page-home .home-journal__asideNote {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--clay);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 联系与服务 */
.page-home .home-help {
  padding: 0 0 clamp(10px, 2vw, 20px);
}
.page-home .home-help__panel {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  padding: clamp(22px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(185, 122, 91, 0.16), transparent 48%),
    var(--paper);
}
.page-home .home-help__main .eyebrow {
  color: var(--clay);
  margin-bottom: 10px;
}
.page-home .home-help__text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.page-home .home-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.6vw, 26px);
}
.page-home .home-help__contact {
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
}
.page-home .home-help__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.page-home .home-help__value {
  margin: 4px 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--green);
  word-break: break-word;
}
.page-home .home-help__value:last-of-type {
  margin-bottom: 0;
}
.page-home .home-help__note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone);
}

/* 响应式 */
@media (min-width: 640px) {
  .page-home .home-search {
    flex-wrap: nowrap;
  }
  .page-home .home-ranks__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .home-replay__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-cover__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: end;
  }
  .page-home .home-ranks__body {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
  }
  .page-home .home-ranks__list {
    padding-bottom: 34px;
  }
  .page-home .home-tags__body {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    align-items: start;
  }
  .page-home .home-journal__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: start;
  }
  .page-home .home-help__panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

@media (min-width: 1120px) {
  .page-home .home-ranks__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .page-home .rank-card:nth-child(2n) {
    transform: translateY(24px);
  }
  .page-home .rank-card:nth-child(2n):hover,
  .page-home .rank-card:nth-child(2n):focus-within {
    transform: translateY(21px);
  }
  .page-home .home-replay__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .rank-card,
  .page-home .tag-card__link,
  .page-home .home-search__go {
    transition: none;
  }
  .page-home .rank-card:hover,
  .page-home .rank-card:focus-within,
  .page-home .rank-card:nth-child(2n):hover,
  .page-home .rank-card:nth-child(2n):focus-within,
  .page-home .tag-card__link:hover,
  .page-home .tag-card__link:focus-visible,
  .page-home .home-search__go:hover,
  .page-home .home-search__go:focus-visible {
    transform: none;
  }
}
</main>
