.page-home {
  --home-pad: clamp(40px, 7vw, 96px);
  --home-line: 1px solid var(--line);
  --home-soft-line: 1px solid rgba(27, 42, 54, 0.18);
  background: var(--ink-900);
  color: var(--paper);
}

.page-home a {
  text-decoration: none;
  color: inherit;
}

.page-home .home-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(16px, 3vw, 28px);
}

.page-home .breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--mist);
}

.page-home .breadcrumb__link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.page-home .breadcrumb__link:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.page-home .breadcrumb__current {
  color: var(--paper);
}

.page-home .breadcrumb__sep {
  color: var(--line);
}

.page-home .home-stamp {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  padding: clamp(24px, 4vw, 52px) 0 clamp(36px, 6vw, 80px);
}

.page-home .hero__inner {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
}

.page-home .hero__frame {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  border: var(--home-line);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(88, 169, 154, 0.12), transparent 55%),
    linear-gradient(155deg, var(--ink-800), var(--ink-900) 78%);
}

.page-home .hero__frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(38, 59, 77, 0.9);
  pointer-events: none;
}

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.page-home .hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--white);
}

.page-home .hero__lede {
  margin-top: 18px;
  max-width: 36em;
  color: var(--mist);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
}

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

.page-home .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: var(--home-line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .hero__meta li {
  position: relative;
  padding-left: 12px;
}

.page-home .hero__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  background: var(--celadon);
}

/* ---------- 通用图片框 ---------- */
.page-home .media-frame {
  margin: 0;
  padding: 10px;
  border: var(--home-line);
  background: var(--ink-800);
}

.page-home .media-frame__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hero__media .media-frame__img {
  aspect-ratio: 16 / 9;
}

.page-home .media-frame__caption {
  padding: 10px 4px 2px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--mist);
}

/* ---------- 两个入口 ---------- */
.page-home .entries {
  background: var(--paper);
  color: var(--graphite);
  border-top: var(--home-line);
  border-bottom: var(--home-line);
}

.page-home .entries__inner {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 46px) 0;
}

.page-home .entries__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(27, 42, 54, 0.62);
}

.page-home .entries__grid {
  display: grid;
  gap: 14px;
}

.page-home .entry-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num name go"
    "text text text";
  align-items: center;
  gap: 6px 12px;
  padding: 18px 18px 18px 20px;
  background: var(--white);
  border: 1px solid rgba(27, 42, 54, 0.16);
  border-left: 3px solid var(--orange);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.page-home .entry-card:hover {
  transform: translateX(3px);
  border-color: var(--orange);
}

.page-home .entry-card__num {
  grid-area: num;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .entry-card__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-900);
}

.page-home .entry-card__go {
  grid-area: go;
  color: var(--orange);
  font-size: 18px;
}

.page-home .entry-card__text {
  grid-area: text;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(27, 42, 54, 0.78);
}

/* ---------- 章节条 ---------- */
.page-home .home-chapters {
  border-bottom: var(--home-line);
  background: var(--ink-900);
}

.page-home .home-chapters__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: thin;
}

.page-home .chapter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--mist);
  white-space: nowrap;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.page-home .chapter-link .mono {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--celadon);
}

.page-home .chapter-link:hover,
.page-home .chapter-link[aria-current="true"] {
  color: var(--white);
  border-color: var(--orange);
}

/* ---------- 章节头 ---------- */
.page-home .section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.page-home .section-head__num {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  color: var(--orange);
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* ---------- 本周更新 ---------- */
.page-home .weekly {
  padding: var(--home-pad) 0;
  background: var(--ink-800);
  border-bottom: var(--home-line);
}

.page-home .weekly__grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  margin-top: 28px;
}

.page-home .weekly__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--home-line);
}

.page-home .weekly__item {
  border-bottom: var(--home-line);
}

.page-home .weekly__item a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px 4px;
  transition: background-color 200ms var(--ease), padding-left 200ms var(--ease);
}

.page-home .weekly__item a:hover {
  background: rgba(255, 90, 31, 0.06);
  padding-left: 10px;
}

.page-home .weekly__num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 4px;
}

.page-home .weekly__body {
  display: grid;
  gap: 6px;
}

.page-home .weekly__body strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.page-home .weekly__body span {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .weekly__media {
  align-self: start;
}

.page-home .weekly__media .media-frame__img {
  aspect-ratio: 3 / 2;
}

/* ---------- 六类服务 ---------- */
.page-home .services {
  padding: var(--home-pad) 0;
  background: var(--paper);
  color: var(--graphite);
}

.page-home .services .section-head__title {
  color: var(--ink-900);
}

.page-home .services__lede {
  margin: 18px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(27, 42, 54, 0.78);
}

.page-home .services__list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--home-soft-line);
}

.page-home .service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  padding: 22px 0;
  border-bottom: var(--home-soft-line);
}

.page-home .service__num {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  color: var(--orange);
}

.page-home .service__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .service__text {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(27, 42, 54, 0.8);
}

.page-home .services__more {
  margin-top: 30px;
  color: var(--ink-900);
  border-color: rgba(27, 42, 54, 0.4);
}

/* ---------- 数据 ---------- */
.page-home .numbers {
  padding: var(--home-pad) 0;
  background: var(--ink-900);
}

.page-home .numbers__grid {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: var(--home-line);
}

.page-home .stat {
  padding: 22px 20px;
  background: var(--ink-800);
}

.page-home .stat__num {
  display: block;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.05;
  color: var(--white);
}

.page-home .stat:nth-child(3n + 2) .stat__num {
  color: var(--celadon);
}

.page-home .stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .numbers__note {
  margin: 24px 0 0;
  max-width: 52em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
  border-left: 2px solid var(--celadon);
  padding-left: 16px;
}

/* ---------- 常见路径 ---------- */
.page-home .paths {
  padding: var(--home-pad) 0;
  background: var(--paper);
  color: var(--graphite);
}

.page-home .paths .section-head__title {
  color: var(--ink-900);
}

.page-home .paths__grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.page-home .path {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(27, 42, 54, 0.18);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.page-home .path:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.page-home .path__num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .path__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .path__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(27, 42, 54, 0.78);
}

.page-home .path__go {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

/* ---------- 帮助与反馈 ---------- */
.page-home .support {
  padding: var(--home-pad) 0;
  background: var(--ink-900);
}

.page-home .support__box {
  position: relative;
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--orange);
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.08), transparent 62%);
}

.page-home .support__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
}

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

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

.page-home .support__media .media-frame__img {
  aspect-ratio: 10 / 7;
}

.page-home .support__channels {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .support__channels .mono {
  display: inline-block;
  min-width: 44px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--celadon);
}

/* ---------- 最新条目 ---------- */
.page-home .latest {
  padding: var(--home-pad) 0;
  background: var(--paper);
  color: var(--graphite);
}

.page-home .latest .section-head__title {
  color: var(--ink-900);
}

.page-home .latest__media {
  margin-top: 28px;
}

.page-home .latest__media .media-frame__img {
  aspect-ratio: 12 / 7;
}

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

.page-home .latest__item {
  border-bottom: var(--home-soft-line);
}

.page-home .latest__item a {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 4px;
  transition: padding-left 200ms var(--ease);
}

.page-home .latest__item a:hover {
  padding-left: 10px;
}

.page-home .latest__cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(27, 42, 54, 0.55);
}

.page-home .latest__title {
  grid-column: 1 / -1;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-900);
}

/* ---------- 结尾 ---------- */
.page-home .closing {
  padding: var(--home-pad) 0 calc(var(--home-pad) + 12px);
  background: var(--ink-900);
  border-top: var(--home-line);
}

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

.page-home .closing__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

.page-home .closing__text {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

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

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

  .page-home .support__channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: stretch;
  }

  .page-home .hero__media {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .page-home .weekly__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .page-home .service {
    grid-template-columns: 76px minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
    gap: 18px;
  }

  .page-home .service__text {
    grid-column: 3;
  }

  .page-home .support__box {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
  }

  .page-home .closing__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
  }
}

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

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

  .page-home .latest__item a {
    grid-template-columns: auto auto 1fr;
  }

  .page-home .latest__title {
    grid-column: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .path,
  .page-home .weekly__item a,
  .page-home .latest__item a,
  .page-home .breadcrumb__link,
  .page-home .chapter-link {
    transition: none;
  }

  .page-home .entry-card:hover,
  .page-home .path:hover {
    transform: none;
  }

  .page-home .weekly__item a:hover,
  .page-home .latest__item a:hover {
    padding-left: 4px;
  }
}
