/* =========================================================
   page-home · 首页专属样式
   所有选择器限定在 .page-home 作用域内
   ========================================================= */

.page-home {
  --ph-num-font: var(--font-mono);
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-home .ph-shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.page-home .ph-section {
  padding-block: clamp(52px, 7.5vw, 100px);
}

.page-home .ph-section--cream {
  background: var(--cream);
  color: var(--text-ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- 通用章节头 ---------- */
.page-home .ph-section__head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(26px, 3.6vw, 44px);
}

.page-home .ph-section__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .ph-section__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--chalk);
}

.page-home .ph-section__note {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-17);
  line-height: 1.75;
  color: var(--on-ink-soft);
}

.page-home .ph-section--cream .ph-section__num {
  color: var(--gold-ink);
}

.page-home .ph-section--cream .ph-section__title {
  color: var(--text-ink);
}

.page-home .ph-section--cream .ph-section__note {
  color: var(--ink-soft);
}

/* =========================================================
   首屏
   ========================================================= */
.page-home .ph-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line-gold);
}

.page-home .ph-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .ph-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .2;
  display: block;
}

.page-home .ph-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(148deg, rgba(11, 27, 43, .34) 0%, rgba(11, 27, 43, .88) 48%, var(--ink) 84%);
  pointer-events: none;
}

.page-home .ph-hero__slice {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(62%, 780px);
  height: 100%;
  background: linear-gradient(158deg,
      rgba(200, 162, 74, .2) 0%,
      rgba(200, 162, 74, .04) 52%,
      rgba(200, 162, 74, 0) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .ph-hero__slice--b {
  top: auto;
  bottom: 0;
  right: auto;
  left: 0;
  width: min(38%, 460px);
  height: min(46%, 320px);
  background: linear-gradient(28deg,
      rgba(53, 224, 201, .16) 0%,
      rgba(53, 224, 201, 0) 72%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-home .ph-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(46px, 6.5vw, 84px);
  padding-bottom: clamp(34px, 5vw, 56px);
}

.page-home .ph-hero__eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

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

.page-home .ph-hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.06;
  letter-spacing: .02em;
  color: var(--chalk);
}

.page-home .ph-hero__title span {
  color: var(--gold-light);
}

.page-home .ph-hero__lede {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  max-width: 34em;
  font-size: var(--fs-20);
  line-height: 1.7;
  color: var(--on-ink-soft);
}

.page-home .ph-hero__cols {
  margin-top: clamp(30px, 4.4vw, 54px);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

/* ---------- 检索组件 ---------- */
.page-home .ph-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.page-home .ph-search__label {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: .08em;
  color: var(--cyan-mist);
}

.page-home .ph-search__field {
  position: relative;
}

.page-home .ph-search__input {
  width: 100%;
  padding: clamp(15px, 1.6vw, 20px) clamp(16px, 1.8vw, 22px);
  background: var(--ink-deep);
  border: 1px solid var(--line-gold);
  border-radius: 0;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--fs-17);
  line-height: 1.4;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.page-home .ph-search__input::placeholder {
  color: rgba(201, 194, 182, .6);
}

.page-home .ph-search__input:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(53, 224, 201, .3);
}

.page-home .ph-search__quick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .ph-search__quick li {
  background: rgba(7, 19, 32, .74);
  min-width: 0;
}

.page-home .ph-search__quick a {
  display: block;
  padding: 11px 13px;
  color: var(--warm);
  text-decoration: none;
  font-size: var(--fs-15);
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.page-home .ph-search__quick a:hover,
.page-home .ph-search__quick a:focus-visible {
  color: var(--cyan);
  background: rgba(53, 224, 201, .09);
}

.page-home .ph-search__empty {
  margin: 0;
  font-size: var(--fs-15);
  line-height: 1.6;
  color: var(--gold-light);
}

.page-home .ph-search__empty[hidden] {
  display: none;
}

/* ---------- 状态侧栏 ---------- */
.page-home .ph-side {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-content: start;
  min-width: 0;
}

.page-home .ph-side__item {
  margin: 0;
  background: rgba(11, 27, 43, .74);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-15);
  line-height: 1.5;
  color: var(--warm);
}

.page-home .ph-side__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 201, .16);
}

/* ---------- 首屏底部状态条 ---------- */
.page-home .ph-hero__bar {
  position: relative;
  z-index: 2;
  background: rgba(7, 19, 32, .9);
  border-top: 1px solid var(--line-gold);
}

.page-home .ph-hero__bar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(20px, 3vw, 48px);
  padding-block: 13px;
}

.page-home .ph-hero__bar-item {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.page-home .ph-hero__bar-label {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warm);
}

.page-home .ph-hero__bar-value {
  font-family: var(--font-mono);
  font-size: var(--fs-15);
  color: var(--chalk);
}

/* =========================================================
   01 三条动线
   ========================================================= */
.page-home .ph-routes {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
}

.page-home .ph-routes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .ph-route {
  position: relative;
  background: var(--ink);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: background-color .22s var(--ease);
}

.page-home .ph-route:hover,
.page-home .ph-route:focus-within {
  background: rgba(53, 224, 201, .05);
}

.page-home .ph-route__cat {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .ph-route__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--chalk);
}

.page-home .ph-route__text {
  margin: 0;
  font-size: var(--fs-15);
  line-height: 1.75;
  color: var(--on-ink-soft);
}

.page-home .ph-route__more {
  margin: 0;
  font-size: var(--fs-15);
  line-height: 1.7;
  color: var(--warm);
}

.page-home .ph-route__foot {
  margin: auto 0 0;
  padding-top: 8px;
}

.page-home .ph-route__link {
  display: inline-block;
  font-size: var(--fs-15);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 201, .4);
  padding-bottom: 2px;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.page-home .ph-route__link:hover,
.page-home .ph-route__link:focus-visible {
  color: var(--cyan-mist);
  border-bottom-color: var(--cyan-mist);
}

.page-home .ph-route--step {
  background:
    linear-gradient(180deg, rgba(200, 162, 74, .14) 0%, rgba(200, 162, 74, 0) 72%),
    var(--ink-deep);
}

.page-home .ph-route--step .ph-route__big {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(60px, 7.6vw, 92px);
  line-height: .9;
  color: var(--gold);
  letter-spacing: -.02em;
}

/* 全宽分流示意 */
.page-home .ph-route-map {
  margin: clamp(28px, 3.6vw, 48px) 0 0;
  border: 1px solid var(--line);
  background: var(--ink);
}

.page-home .ph-route-map img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .ph-route-map__cap {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-13);
  line-height: 1.6;
  color: var(--warm);
}

/* =========================================================
   02 更新笔记
   ========================================================= */
.page-home .ph-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(16px, 2.4vw, 32px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-cream);
  margin-bottom: 0;
}

.page-home .ph-filter__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border: 1px solid var(--line-cream);
  background: var(--line-cream);
}

.page-home .ph-filter__btn {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 9px 20px;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-15);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}

.page-home .ph-filter__btn:hover {
  background: rgba(200, 162, 74, .16);
  color: var(--text-ink);
}

.page-home .ph-filter__btn.is-active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.page-home .ph-filter__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .ph-filter__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: .06em;
  color: var(--gold-ink);
}

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

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

.page-home .ph-note[hidden] {
  display: none;
}

.page-home .ph-note__link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "tag meta"
    "text text";
  gap: 8px 14px;
  align-items: center;
  padding: clamp(16px, 2vw, 22px) 0;
  text-decoration: none;
  color: inherit;
  transition: background-color .18s var(--ease);
}

.page-home .ph-note__link:hover,
.page-home .ph-note__link:focus-visible {
  background: rgba(200, 162, 74, .1);
}

.page-home .ph-note__link .tag {
  grid-area: tag;
  justify-self: start;
}

.page-home .ph-note__text {
  grid-area: text;
  font-size: var(--fs-17);
  line-height: 1.7;
  color: var(--text-ink);
  max-width: 34em;
}

.page-home .ph-note__meta {
  grid-area: meta;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.page-home .ph-notes__more {
  margin: clamp(22px, 3vw, 34px) 0 0;
}

/* =========================================================
   03 检索说明带
   ========================================================= */
.page-home .ph-searchband {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-home .ph-searchband__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
}

.page-home .ph-searchband__media {
  margin: 0;
  border: 1px solid var(--line-gold);
  background: var(--ink-deep);
  min-width: 0;
}

.page-home .ph-searchband__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .ph-searchband__media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-13);
  line-height: 1.6;
  color: var(--warm);
}

.page-home .ph-searchband__body {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.page-home .ph-searchband__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .ph-searchband__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  font-size: var(--fs-15);
  line-height: 1.7;
  color: var(--on-ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .ph-searchband__list li:last-child {
  border-bottom: 0;
}

.page-home .ph-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-24);
  line-height: 1;
  color: var(--cyan);
  min-width: 3.4em;
}

.page-home .ph-searchband__foot {
  margin: 6px 0 0;
}

/* =========================================================
   04 视口清单
   ========================================================= */
.page-home .ph-vp {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
}

.page-home .ph-vp__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .ph-vp__item {
  background: var(--ink);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: background-color .2s var(--ease);
}

.page-home .ph-vp__item:hover {
  background: rgba(53, 224, 201, .07);
}

.page-home .ph-vp__size {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-20);
  letter-spacing: .02em;
  color: var(--gold-light);
  white-space: nowrap;
}

.page-home .ph-vp__desc {
  font-size: var(--fs-13);
  line-height: 1.6;
  color: var(--warm);
}

.page-home .ph-vp__foot {
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  max-width: 44em;
  font-size: var(--fs-15);
  line-height: 1.8;
  color: var(--on-ink-soft);
}

.page-home .ph-vp__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 201, .4);
}

.page-home .ph-vp__foot a:hover,
.page-home .ph-vp__foot a:focus-visible {
  color: var(--cyan-mist);
  border-bottom-color: var(--cyan-mist);
}

/* =========================================================
   05 十年数据带
   ========================================================= */
.page-home .ph-figures__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}

.page-home .ph-figures__media {
  margin: 0;
  border: 1px solid var(--line-cream);
  background: rgba(255, 255, 255, .35);
  min-width: 0;
}

.page-home .ph-figures__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .ph-figures__media figcaption {
  padding: 9px 13px;
  border-top: 1px solid var(--line-cream);
  font-size: var(--fs-13);
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-home .ph-figures__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-cream);
  border: 1px solid var(--line-cream);
}

.page-home .ph-figures__item {
  background: var(--cream);
  padding: 18px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num unit"
    "label label";
  gap: 4px 10px;
  align-items: baseline;
  min-width: 0;
}

.page-home .ph-figures__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  line-height: .95;
  color: var(--gold-ink);
  letter-spacing: -.02em;
}

.page-home .ph-figures__unit {
  grid-area: unit;
  font-size: var(--fs-15);
  color: var(--ink-soft);
}

.page-home .ph-figures__label {
  grid-area: label;
  font-size: var(--fs-15);
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .ph-figures__more {
  margin: clamp(22px, 3vw, 34px) 0 0;
}

/* =========================================================
   06 出发前提示
   ========================================================= */
.page-home .ph-last {
  background: var(--ink);
  border-top: 1px solid var(--line-gold);
}

.page-home .ph-last__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: end;
}

.page-home .ph-last__text {
  display: grid;
  gap: 12px;
}

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

/* =========================================================
   响应式
   ========================================================= */
@media (min-width: 700px) {
  .page-home .ph-notes__list {
    border-bottom: 0;
  }

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

  .page-home .ph-note__link {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "tag text meta";
  }
}

@media (min-width: 900px) {
  .page-home .ph-hero {
    min-height: 70vh;
  }

  .page-home .ph-hero__cols {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }

  .page-home .ph-routes__grid {
    grid-template-columns: 4fr 5fr 3fr;
  }

  .page-home .ph-route__more {
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s var(--ease);
  }

  .page-home .ph-route:hover .ph-route__more,
  .page-home .ph-route:focus-within .ph-route__more {
    max-height: 140px;
  }

  .page-home .ph-searchband__grid {
    grid-template-columns: 5fr 7fr;
  }

  .page-home .ph-figures__grid {
    grid-template-columns: 5fr 7fr;
    align-items: stretch;
  }

  .page-home .ph-figures__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .ph-last__inner {
    grid-template-columns: 7fr 5fr;
  }
}

@media (min-width: 1180px) {
  .page-home .ph-figures__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .ph-figures__item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "unit"
      "label";
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
