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

.page-home {
  --home-line-gold: rgba(232, 199, 126, 0.42);
  --home-line-soft: rgba(232, 199, 126, 0.2);
  --home-line-cream: rgba(244, 239, 228, 0.15);
  --home-pad: clamp(56px, 8vw, 96px);
  --home-pad-tight: clamp(48px, 6vw, 72px);
  background: var(--cream);
  color: var(--text);
}

/* ---------- 通用区块 ---------- */
.page-home .home-block {
  padding: var(--home-pad) 0;
  border-top: 1px solid var(--line);
}

.page-home .home-block--tight {
  padding: var(--home-pad-tight) 0 calc(var(--home-pad-tight) + 12px);
}

.page-home .home-block--paper {
  background: var(--paper);
}

.page-home .home-block--dark {
  background-color: var(--ink);
  background-image:
    radial-gradient(110% 80% at 88% 0%, rgba(23, 195, 162, 0.08), transparent 60%),
    repeating-linear-gradient(92deg, rgba(232, 199, 126, 0.04) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%);
  color: var(--cream);
  border-top-color: rgba(7, 26, 21, 0.6);
}

.page-home .home-block__head {
  margin: 0 0 clamp(32px, 4vw, 48px);
}

.page-home .home-block__head .index-num {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.page-home .home-block__head h2 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-home .home-block--dark .home-block__head h2 {
  color: var(--paper);
}

.page-home .home-block__head .lead {
  margin: 0;
  max-width: 40em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-block--dark .home-block__head .lead {
  color: rgba(244, 239, 228, 0.72);
}

/* ================= 首屏 ================= */
.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(34px, 5vw, 58px)) 0 clamp(54px, 7vw, 86px);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 10% 0%, rgba(23, 195, 162, 0.07), transparent 58%),
    repeating-linear-gradient(92deg, rgba(232, 199, 126, 0.045) 0 1px, transparent 1px 30px),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 62%, #0c221c 100%);
  color: var(--cream);
  overflow: hidden;
}

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

@media (min-width: 980px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 34px;
    align-items: start;
  }
}

/* --- 左侧框景叙事 --- */
.page-home .home-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--home-line-gold);
  border-radius: var(--radius);
  background: rgba(7, 26, 21, 0.34);
}

.page-home .home-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--home-line-soft);
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
}

.page-home .home-frame__inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 2px;
  min-height: 400px;
}

@media (min-width: 860px) {
  .page-home .home-frame__inner {
    min-height: clamp(460px, 62vh, 620px);
  }
}

.page-home .home-frame__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02) brightness(0.72);
}

.page-home .home-frame__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    178deg,
    rgba(7, 26, 21, 0.18) 0%,
    rgba(7, 26, 21, 0.44) 38%,
    rgba(7, 26, 21, 0.88) 80%,
    rgba(7, 26, 21, 0.97) 100%
  );
}

.page-home .home-frame__body {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 40em;
  padding: clamp(22px, 3.2vw, 44px);
}

.page-home .home-hero__eyebrow {
  color: var(--gold-soft);
}

.page-home .home-hero__title {
  margin: 14px 0 18px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-shadow: 0 2px 26px rgba(7, 26, 21, 0.6);
}

.page-home .home-hero__lead {
  margin: 0 0 26px;
  max-width: 30em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.86);
}

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

.page-home .home-frame__ticks {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.page-home .home-frame__ticks i {
  display: block;
  width: 1px;
  height: 7px;
  background: rgba(232, 199, 126, 0.5);
}

.page-home .home-frame__ticks i:nth-child(5n + 1) {
  height: 13px;
  background: rgba(232, 199, 126, 0.92);
}

/* --- 右侧入口索引 --- */
.page-home .home-hero__index {
  border: 1px solid var(--home-line-gold);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, 0.055);
  padding: clamp(20px, 2.4vw, 30px);
  backdrop-filter: blur(3px);
}

.page-home .home-hero__index .eyebrow {
  color: var(--gold-soft);
}

.page-home .home-hero__index-title {
  margin: 10px 0 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.35;
  color: var(--paper);
}

.page-home .home-index {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-index__item + .home-index__item {
  border-top: 1px solid var(--home-line-cream);
}

.page-home .home-index__link {
  position: relative;
  display: block;
  padding: 16px 4px 16px 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.page-home .home-index__link::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 23px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.page-home .home-index__link:hover::before {
  background: var(--teal);
  transform: scale(1.4);
}

.page-home .home-index__link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.page-home .home-index__title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--cream);
  transition: color 0.2s var(--ease);
}

.page-home .home-index__link:hover .home-index__title {
  color: var(--gold-soft);
}

.page-home .home-index__desc {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.66);
}

.page-home .home-hero__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--home-line-cream);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 239, 228, 0.72);
}

.page-home .home-hero__note-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 195, 162, 0.18);
}

/* ================= 01 三件事 ================= */
.page-home .home-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

@media (min-width: 900px) {
  .page-home .home-cards {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 26px;
  }

  .page-home .home-cards .home-card:nth-child(1) {
    grid-column: 1 / span 5;
  }

  .page-home .home-cards .home-card:nth-child(2) {
    grid-column: 6 / span 7;
    margin-top: 40px;
  }

  .page-home .home-cards .home-card:nth-child(3) {
    grid-column: 3 / span 8;
  }
}

.page-home .home-card {
  position: relative;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-home .home-card:hover,
.page-home .home-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.page-home .home-card__media {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--cream);
}

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

.page-home .home-card__kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.page-home .home-card__title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.4;
  color: var(--ink);
}

.page-home .home-card__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.page-home .home-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.page-home .home-card__go::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.page-home .home-card__go span {
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: border-color 0.18s var(--ease);
}

.page-home .home-card__go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.page-home .home-card__go:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.page-home .home-card__go:hover span {
  border-bottom-color: var(--gold);
}

/* ================= 02 改版对照 ================= */
.page-home .home-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

@media (min-width: 940px) {
  .page-home .home-compare {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 44px;
    align-items: start;
  }
}

.page-home .home-stages {
  display: flex;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .home-stage {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 15px 15px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--cream);
}

.page-home .home-stage__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .home-stage__name {
  display: block;
  margin: 6px 0 5px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.page-home .home-stage__note {
  display: block;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--muted);
}

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

.page-home .home-map__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-map__old {
  font-size: 15px;
  color: var(--muted);
}

.page-home .home-map__arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}

.page-home .home-map__new {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .home-compare__more {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

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

.page-home .home-compare__frame {
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.page-home .home-compare__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.page-home .home-compare__caption {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--gold);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ================= 03 最近更新 ================= */
.page-home .home-updates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

@media (min-width: 940px) {
  .page-home .home-updates {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 46px;
    align-items: start;
  }
}

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

.page-home .home-feed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--home-line-cream);
}

.page-home .home-feed__kind {
  padding: 4px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-home .home-feed__kind--feature {
  color: var(--gold-soft);
}

.page-home .home-feed__kind--column {
  color: var(--teal);
}

.page-home .home-feed__kind--tag {
  color: #e3a88f;
}

.page-home .home-feed__kind--ux {
  color: rgba(244, 239, 228, 0.72);
}

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

.page-home .home-feed__text {
  margin: 0 0 7px;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 239, 228, 0.92);
}

.page-home .home-feed__when {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 228, 0.52);
}

.page-home .home-updates__figure {
  margin: 0 0 20px;
}

.page-home .home-updates__frame {
  padding: 8px;
  border: 1px solid var(--home-line-gold);
  border-radius: var(--radius);
  background: rgba(7, 26, 21, 0.4);
}

.page-home .home-updates__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.85) brightness(0.86);
}

.page-home .home-updates__note {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.72);
}

/* ================= 04 常用入口一览 ================= */
.page-home .home-board {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.page-home .home-board__row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px 18px;
  align-items: center;
  padding: 20px clamp(18px, 2.4vw, 28px);
}

.page-home .home-board__row + .home-board__row {
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .page-home .home-board__row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
  }
}

.page-home .home-board__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .home-board__main {
  display: block;
  min-width: 0;
}

.page-home .home-board__main strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink);
}

.page-home .home-board__main em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-board__go {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (min-width: 760px) {
  .page-home .home-board__go {
    grid-column: auto;
    justify-self: end;
  }
}

/* ================= 05 收尾双栏 ================= */
.page-home .home-sign {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

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

.page-home .home-sign__col {
  padding: clamp(26px, 3.4vw, 44px);
}

.page-home .home-sign__col + .home-sign__col {
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 880px) {
  .page-home .home-sign__col + .home-sign__col {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }
}

.page-home .home-sign__col--dark {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    92deg,
    rgba(232, 199, 126, 0.05) 0 1px,
    transparent 1px 30px
  );
  color: var(--cream);
}

.page-home .home-sign__title {
  margin: 12px 0 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  color: var(--ink);
}

.page-home .home-sign__col--dark .home-sign__title {
  color: var(--paper);
}

.page-home .home-sign__col--dark .eyebrow {
  color: var(--gold-soft);
}

.page-home .home-sign__text {
  margin: 0 0 22px;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.88;
  color: var(--muted);
}

.page-home .home-sign__col--dark .home-sign__text {
  color: rgba(244, 239, 228, 0.78);
}

.page-home .home-contact {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.page-home .home-contact li {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  user-select: all;
}

/* ================= 窄屏收尾 ================= */
@media (max-width: 480px) {
  .page-home .home-frame__body {
    padding: 20px 16px 22px;
  }

  .page-home .home-map__row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    font-size: 14px;
  }

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

  .page-home .home-feed__kind {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-card,
  .page-home .home-index__link,
  .page-home .home-index__link::before,
  .page-home .home-card__go span {
    transition: none;
  }

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

  .page-home .home-index__link:hover {
    transform: none;
  }
}
