.page-nav {
  position: relative;
  display: grid;
  min-width: 117px;
  padding: 5px 10px 6px;
  overflow: hidden;
  border: 1px solid rgba(246, 212, 132, 0.55);
  background: linear-gradient(135deg, rgba(28, 11, 12, 0.74), rgba(83, 5, 14, 0.52));
  box-shadow: 0 8px 21px rgba(30, 0, 5, 0.2), inset 0 0 0 1px rgba(255, 241, 194, 0.05);
}

.page-nav::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 29px;
  height: 2px;
  content: "";
  background: #e6bd61;
}

.page-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 28px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #f7df9b;
  cursor: pointer;
  font-family: "Songti SC", SimSun, serif;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-align: right;
  transition: color 160ms ease, transform 160ms ease;
}

.page-nav button + button {
  border-top: 1px solid rgba(247, 223, 155, 0.22);
}

.page-nav__next,
.page-nav__home {
  color: #fff0bb !important;
  font-weight: 700;
}

.page-nav button:hover,
.page-nav button:focus-visible {
  outline: 0;
  color: #ffffff;
  transform: translateX(-2px);
}

.page-nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 359px) {
  .page-nav { min-width: 106px; padding-inline: 8px; }
  .page-nav button { font-size: 10px; }
}
