.page-home {
  --home-axis: clamp(58px, 9vw, 78px);
}

.page-home .home-tex {
  position: relative;
  overflow: hidden;
}

.page-home .home-tex::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-dark-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-dark-soft) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.75;
}

/* ============ 首屏 ============ */
.page-home .home-hero {
  padding-block: clamp(34px, 5vw, 68px) clamp(46px, 6.5vw, 96px);
}

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

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 3.15rem);
  line-height: 1.26;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin: 0.85rem 0 1.1rem;
  max-width: 20ch;
  overflow-wrap: anywhere;
}

.page-home .home-hero__intro {
  font-size: clamp(0.96rem, 1.05vw, 1.0625rem);
  line-height: 1.9;
  max-width: 46ch;
  color: rgba(244, 239, 228, 0.82);
  margin: 0 0 1rem;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.6rem;
}

.page-home .home-hero__visual {
  position: relative;
  min-height: clamp(300px, 54vw, 540px);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.page-home .home-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.42) contrast(1.08) brightness(0.9);
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14, 75, 74, 0.72) 0%, rgba(8, 46, 45, 0.93) 100%);
}

.page-home .home-ledger {
  position: absolute;
  z-index: 2;
  left: clamp(14px, 2.4vw, 30px);
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  padding: clamp(14px, 1.8vw, 22px) clamp(16px, 1.8vw, 24px);
  background: rgba(244, 239, 228, 0.95);
  box-shadow: 0 20px 42px -26px rgba(0, 0, 0, 0.7);
}

.page-home .home-ledger::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, var(--paper-2) 50%);
  border-left: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.page-home .home-ledger__label {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--cinnabar);
  margin-bottom: 0.6rem;
}

.page-home .home-ledger__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.page-home .home-ledger__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-ledger__key {
  color: var(--ink);
}

.page-home .home-ledger__val {
  color: var(--jade);
  white-space: nowrap;
}

/* ============ 数据锚点带 ============ */
.page-home .home-metrics {
  position: relative;
  overflow: hidden;
  padding-block: clamp(50px, 7vw, 96px);
}

.page-home .home-metrics__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.35) contrast(1.1);
}

.page-home .home-metrics__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-metrics__list {
  list-style: none;
  margin: clamp(26px, 3.4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.page-home .home-metric {
  background: var(--jade-deep);
  padding: clamp(20px, 2.2vw, 30px) clamp(16px, 1.7vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.26s var(--ease);
}

.page-home .home-metric:hover {
  background: var(--jade-mid);
}

.page-home .home-metric__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--sand);
}

.page-home .home-metric__unit {
  font-size: 0.34em;
  margin-left: 0.24em;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--sand-light);
}

.page-home .home-metric__label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--sand-light);
}

.page-home .home-metric__note {
  font-size: 0.87rem;
  line-height: 1.78;
  color: rgba(244, 239, 228, 0.68);
}

/* ============ 沿革时间轴 ============ */
.page-home .home-timeline {
  position: relative;
  overflow: hidden;
  padding-block: clamp(50px, 7vw, 100px);
}

.page-home .home-timeline__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: grayscale(0.55) contrast(1.08);
}

.page-home .home-timeline__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-timeline__list {
  position: relative;
  list-style: none;
  margin: clamp(28px, 3.4vw, 48px) 0 0;
  padding: 0;
}

.page-home .home-timeline__list::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.6rem;
  left: var(--home-axis);
  width: 1px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--line) 72%, transparent 100%);
}

.page-home .home-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--home-axis) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 30px);
  padding-bottom: clamp(26px, 3.2vw, 42px);
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: var(--home-axis);
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--sand);
  box-sizing: content-box;
  transition: background-color 0.26s var(--ease);
}

.page-home .home-timeline__item:hover::before {
  background: var(--sand);
}

.page-home .home-timeline__year {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--jade);
  text-align: right;
  padding-top: 0.3rem;
}

.page-home .home-timeline__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.04rem, 1.5vw, 1.3rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0.16rem 0 0.5rem;
}

.page-home .home-timeline__body p {
  margin: 0;
  max-width: 58ch;
  font-size: 0.94rem;
  line-height: 1.86;
  color: rgba(21, 22, 20, 0.74);
}

/* ============ 电脑端能力 ============ */
.page-home .home-modules {
  padding-block: clamp(50px, 7vw, 100px);
}

.page-home .home-modules__list {
  list-style: none;
  margin: clamp(26px, 3.2vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-module {
  position: relative;
  background: var(--paper);
  padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px) clamp(30px, 3vw, 42px);
  transition: background-color 0.26s var(--ease);
}

.page-home .home-module::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background-color 0.26s var(--ease);
}

.page-home .home-module:hover {
  background: var(--paper-2);
}

.page-home .home-module:hover::before {
  background: var(--sand);
}

.page-home .home-module__no {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gravel);
  margin-bottom: 0.5rem;
}

.page-home .home-module__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.page-home .home-module__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(21, 22, 20, 0.72);
}

/* ============ 入口卡片 ============ */
.page-home .home-routes {
  padding-block: clamp(50px, 7vw, 100px);
}

.page-home .home-routes .section-head {
  position: relative;
  z-index: 1;
}

.page-home .home-routes__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  margin-top: clamp(26px, 3.2vw, 40px);
}

.page-home .home-routes__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.page-home .home-route {
  background: rgba(244, 239, 228, 0.97);
  color: var(--ink);
  padding: clamp(20px, 2.2vw, 28px);
  transition: background-color 0.26s var(--ease), transform 0.26s var(--ease);
}

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

.page-home .home-route__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0.5rem 0 0;
}

.page-home .home-route .brief__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.86;
  color: rgba(21, 22, 20, 0.74);
}

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

/* ============ 平台日志 ============ */
.page-home .home-journal {
  padding-block: clamp(50px, 7vw, 96px);
}

.page-home .home-journal__list {
  list-style: none;
  margin: clamp(26px, 3.2vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .home-journal__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.24s var(--ease);
}

.page-home .home-journal__item:hover {
  background: var(--paper-2);
}

.page-home .home-journal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.page-home .home-journal__desc {
  margin: 0;
  max-width: 64ch;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(21, 22, 20, 0.7);
}

.page-home .home-journal__more {
  margin: clamp(24px, 3vw, 36px) 0 0;
}

/* ============ 响应式 ============ */
@media (min-width: 640px) {
  .page-home .home-metrics__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

@media (min-width: 1040px) {
  .page-home .home-modules__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-journal__item {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.6rem clamp(20px, 2.6vw, 36px);
    align-items: baseline;
  }

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

@media (min-width: 1100px) {
  .page-home .home-metrics__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-metric,
  .page-home .home-module,
  .page-home .home-module::before,
  .page-home .home-route,
  .page-home .home-journal__item,
  .page-home .home-timeline__item::before {
    transition: none;
  }
}
