.page-home {
  --ph-blue-2: #1B2B47;
  --ph-blue-3: #0E1A2B;
  --ph-gold-line: rgba(201, 160, 99, .35);
  --ph-grid-line: rgba(201, 160, 99, .12);
  --ph-serif: var(--jb-font-head);
  --ph-sans: var(--jb-font-body);
  background-color: var(--jb-bg);
  background-image:
    linear-gradient(var(--ph-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ph-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: hidden;
}

/* ===== 首屏检索区 ===== */
.ph-stage {
  position: relative;
  color: var(--jb-on-dark);
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 160, 99, .20), transparent 42%),
    linear-gradient(135deg, var(--jb-blue) 0%, var(--ph-blue-2) 62%, var(--ph-blue-3) 100%);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--jb-gutter) 2.25rem;
  overflow: hidden;
}
.ph-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 58%, rgba(232, 200, 143, .10) 100%),
    repeating-linear-gradient(90deg, rgba(240, 230, 210, .04) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.ph-stage__inner {
  position: relative;
  z-index: 2;
  max-width: var(--jb-container);
  margin: 0 auto;
}
.ph-stage__intro .breadcrumbs {
  color: var(--jb-gold-light);
  font-size: .8125rem;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}
.ph-stage__intro .breadcrumbs__sep {
  color: rgba(240, 230, 210, .5);
  margin: 0 .5rem;
}
.ph-stage__intro h1 {
  font-family: var(--ph-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.1rem;
  letter-spacing: .01em;
}
.ph-stage__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(240, 230, 210, .86);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}
.ph-stage__search {
  max-width: 42rem;
}
.ph-search-box {
  display: flex;
  align-items: center;
  gap: .625rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ph-gold-line);
  border-radius: 999px;
  padding: .45rem .45rem .45rem 1.25rem;
  box-shadow: inset 0 0 24px rgba(201, 160, 99, .08);
  backdrop-filter: blur(4px);
}
.ph-search-box__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  color: var(--jb-gold);
}
.ph-search-box__input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--jb-on-dark);
  font-size: .9375rem;
  line-height: 1.4;
  padding: .55rem 0;
}
.ph-search-box__input::placeholder {
  color: rgba(240, 230, 210, .55);
}
.ph-search-box__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jb-gold);
  color: var(--jb-blue);
  font-weight: 700;
  font-size: .875rem;
  border-radius: 999px;
  padding: .55rem 1.35rem;
  cursor: pointer;
  transition: background .2s ease;
}
.ph-search-box__btn:hover {
  background: var(--jb-gold-light);
}
.ph-search-box__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}
.ph-search-box__hint-label {
  color: rgba(240, 230, 210, .6);
  font-size: .8125rem;
  margin-right: .15rem;
}
.ph-search-box__hint .tag {
  background: rgba(201, 160, 99, .16);
  color: var(--jb-gold-light);
  border: 1px solid rgba(201, 160, 99, .32);
  font-size: .8125rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.ph-search-box__hint .tag:hover {
  background: rgba(201, 160, 99, .28);
  border-color: var(--jb-gold);
}
.ph-search-box__note {
  color: rgba(240, 230, 210, .5);
  font-size: .8125rem;
  margin: .85rem 0 0;
  padding-left: .15rem;
}
.ph-stage__texture {
  display: block;
  width: min(100%, 600px);
  height: auto;
  max-width: 100%;
  margin-top: 1.5rem;
  border-radius: var(--jb-radius);
  opacity: .55;
  border: 1px solid rgba(201, 160, 99, .18);
}
.ph-stage__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  max-width: 520px;
  z-index: 1;
  opacity: .38;
  pointer-events: none;
}
.ph-stage__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  mask-image: linear-gradient(135deg, transparent 4%, #000 56%);
  -webkit-mask-image: linear-gradient(135deg, transparent 4%, #000 56%);
}
.ph-stage__quick {
  position: relative;
  z-index: 2;
  max-width: var(--jb-container);
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.ph-quick__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(201, 160, 99, .22);
  border-radius: var(--jb-radius);
  padding: .8rem 1rem;
  color: var(--jb-on-dark);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ph-quick__item:hover {
  background: rgba(201, 160, 99, .14);
  border-color: var(--jb-gold);
  transform: translateY(-2px);
}
.ph-quick__num {
  font-family: var(--ph-serif);
  font-size: 1.25rem;
  color: var(--jb-gold);
  line-height: 1;
}
.ph-quick__label {
  flex: 1 1 auto;
  font-size: .875rem;
  font-weight: 600;
}
.ph-quick__arrow {
  color: var(--jb-gold-light);
  font-size: 1rem;
}

/* ===== 分类瀑布流 ===== */
.ph-catalog {
  max-width: var(--jb-container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--jb-gutter);
}
.ph-catalog__head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ph-catalog__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.ph-catalog__legend-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8125rem;
  color: var(--jb-text-muted);
}
.ph-catalog__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.ph-catalog__legend-dot--gold {
  background: var(--jb-gold);
}
.ph-catalog__legend-dot--red {
  background: var(--jb-red);
}
.ph-catalog__legend-dot--blue {
  background: var(--jb-blue);
}
.ph-catalog__legend-dot--deep {
  background: var(--jb-gold-dark);
}
.ph-catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
}
.ph-cat {
  position: relative;
  margin: 0;
  padding: 1.15rem 1.2rem 1rem;
  border-radius: var(--jb-radius);
  border-top: 3px solid var(--jb-gold);
  background: var(--jb-surface);
  box-shadow: 0 1px 3px rgba(20, 33, 61, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.ph-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--jb-shadow);
}
.ph-cat--gold {
  border-top-color: var(--jb-gold);
}
.ph-cat--red {
  border-top-color: var(--jb-red);
}
.ph-cat--blue {
  border-top-color: var(--jb-blue);
}
.ph-cat--deep {
  border-top-color: var(--jb-gold-dark);
}
.ph-cat__num {
  display: block;
  font-family: var(--ph-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--jb-gold);
  margin-bottom: .45rem;
}
.ph-cat__name {
  font-family: var(--ph-serif);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 .3rem;
}
.ph-cat__name a {
  color: var(--jb-text-ink);
  text-decoration: none;
}
.ph-cat__name a:hover {
  color: var(--jb-gold-dark);
}
.ph-cat__count {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--jb-red);
  margin: 0 0 .35rem;
}
.ph-cat__desc {
  font-size: .8125rem;
  color: var(--jb-text-muted);
  line-height: 1.5;
  margin: 0;
}
.ph-cat--featured {
  padding-right: 5.5rem;
}
.ph-cat__thumb {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--jb-radius);
  border: 2px solid var(--jb-gold-light);
}

/* ===== 最新更新公告 ===== */
.ph-updates {
  background: var(--jb-surface);
  border-top: 1px solid rgba(201, 160, 99, .18);
  border-bottom: 1px solid rgba(201, 160, 99, .18);
}
.ph-updates__inner {
  max-width: var(--jb-container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--jb-gutter);
}
.ph-updates__list {
  border-left: 2px solid var(--jb-gold-light);
  padding-left: 1.25rem;
  margin: 1.75rem 0 2rem;
}
.ph-update-item {
  position: relative;
  padding: .85rem 0;
}
.ph-update-item::before {
  content: "";
  position: absolute;
  left: -1.46rem;
  top: 1.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--jb-gold);
  border: 2px solid var(--jb-surface);
  box-shadow: 0 0 0 1px var(--jb-gold);
}
.ph-update-item__week {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--jb-red);
  background: rgba(154, 27, 30, .08);
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .3rem;
}
.ph-update-item h3 {
  font-family: var(--ph-serif);
  font-size: 1.1rem;
  line-height: 1.4;
  margin: .25rem 0 .2rem;
}
.ph-update-item h3 a {
  color: var(--jb-text-ink);
  text-decoration: none;
  transition: color .2s ease;
}
.ph-update-item h3 a:hover {
  color: var(--jb-gold-dark);
}
.ph-update-item__meta {
  font-size: .8125rem;
  color: var(--jb-text-muted);
  margin: 0;
}

/* ===== 版本时间线概览 ===== */
.ph-history {
  background:
    linear-gradient(180deg, var(--jb-blue) 0%, var(--ph-blue-3) 100%);
  color: var(--jb-on-dark);
}
.ph-history__inner {
  max-width: var(--jb-container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--jb-gutter);
}
.ph-history .section-heading__title {
  color: var(--jb-on-dark);
}
.ph-history .section-heading__desc {
  color: rgba(240, 230, 210, .72);
}
.ph-history__chart {
  margin: 2rem 0 1.25rem;
}
.ph-history__chart img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--jb-radius);
  object-fit: cover;
  border: 1px solid rgba(201, 160, 99, .25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.ph-history__nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .85rem;
}
.ph-history__node {
  font-size: .8125rem;
  color: var(--jb-gold-light);
  background: rgba(201, 160, 99, .10);
  border: 1px solid rgba(201, 160, 99, .40);
  border-radius: 999px;
  padding: .3rem .8rem;
}
.ph-history__note {
  max-width: 36rem;
  color: rgba(240, 230, 210, .74);
  font-size: .9375rem;
  line-height: 1.7;
  margin-top: 1.25rem;
}
.ph-history__link {
  display: inline-block;
  margin-top: .75rem;
  color: var(--jb-gold-light);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 160, 99, .5);
  padding-bottom: .1rem;
  transition: color .2s ease, border-color .2s ease;
}
.ph-history__link:hover {
  color: var(--jb-gold);
  border-color: var(--jb-gold);
}

/* ===== 常用入口 ===== */
.ph-gateway {
  max-width: var(--jb-container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--jb-gutter);
}
.ph-gateway__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
.ph-gateway__card {
  position: relative;
  display: block;
  background: var(--jb-surface);
  border: 1px solid rgba(201, 160, 99, .25);
  border-left: 4px solid var(--jb-gold);
  border-radius: var(--jb-radius);
  padding: 1.35rem 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--jb-text-ink);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-left-color .2s ease;
}
.ph-gateway__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--jb-shadow);
  border-left-color: var(--jb-gold-dark);
}
.ph-gateway__card-num {
  display: block;
  font-family: var(--ph-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--jb-gold);
  margin-bottom: .6rem;
}
.ph-gateway__card h3 {
  font-family: var(--ph-serif);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 .35rem;
}
.ph-gateway__card p {
  font-size: .875rem;
  color: var(--jb-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .ph-stage__quick {
    grid-template-columns: repeat(4, 1fr);
  }
  .ph-catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ph-gateway__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .ph-stage {
    padding-top: clamp(3rem, 6vw, 5.5rem);
  }
  .ph-stage__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .45fr);
    column-gap: 3rem;
    align-items: start;
  }
  .ph-stage__search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 34rem;
  }
  .ph-stage__texture {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 2rem;
  }
  .ph-stage__quick {
    margin-left: 0;
    margin-right: 0;
  }
  .ph-catalog__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .ph-catalog__legend {
    flex: 0 0 auto;
  }
  .ph-catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ph-updates__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 2.2fr);
    column-gap: 3rem;
    align-items: start;
  }
  .ph-updates__list {
    margin-top: 0;
  }
  .ph-updates .btn {
    grid-column: 2;
    justify-self: start;
  }
  .ph-history__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    column-gap: 3rem;
    align-items: start;
  }
  .ph-history__chart {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .ph-history__note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .ph-catalog__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ph-gateway__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ph-gateway__card {
    padding: 1.6rem 1.6rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-cat,
  .ph-gateway__card,
  .ph-quick__item,
  .ph-search-box__btn {
    transition: none;
  }
  .ph-cat:hover,
  .ph-gateway__card:hover,
  .ph-quick__item:hover {
    transform: none;
  }
}
