/* ==========================================================================
   PG娱乐中心 · 共享样式 /assets/site.css
   夜间娱乐资料馆：浮岛导航 + 档案底板页脚 + 基础组件
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-0: #05070F;
  --ink-1: #0B1024;
  --ink-2: #121B38;
  --line: #263556;
  --line-soft: rgba(38, 53, 86, 0.62);

  --cyan: #2BF2C4;
  --violet: #8F62FF;
  --gold: #F6C56B;
  --coral: #FF6B87;
  --paper: #E8F2FF;
  --muted: #93A4C8;

  --cyan-06: rgba(43, 242, 196, 0.06);
  --cyan-14: rgba(43, 242, 196, 0.14);
  --cyan-28: rgba(43, 242, 196, 0.28);
  --violet-12: rgba(143, 98, 255, 0.12);
  --violet-22: rgba(143, 98, 255, 0.22);
  --gold-12: rgba(246, 197, 107, 0.12);
  --gold-38: rgba(246, 197, 107, 0.38);

  --shell: 1240px;
  --gutter: 24px;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;

  --font-head: "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --shadow-card: 0 30px 70px -52px rgba(0, 0, 0, 0.96);
  --shadow-island: 0 22px 48px -34px rgba(0, 0, 0, 0.92);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 2. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink-0);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-0);
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(143, 98, 255, 0.20), transparent 62%),
    radial-gradient(880px 520px at 4% 4%, rgba(43, 242, 196, 0.10), transparent 66%),
    radial-gradient(700px 700px at 50% 120%, rgba(246, 197, 107, 0.06), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, picture, video { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

hr { border: 0; }

#main-content { scroll-margin-top: 120px; }
#main-content:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--cyan);
  color: #04120F;
}

/* ---------- 3. 通用工具类 ---------- */
.pgk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pgk-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.pgk-container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pgk-section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.pgk-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.pgk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.pgk-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.pgk-h1 {
  font-size: clamp(40px, 8vw, 104px);
  letter-spacing: 0.04em;
  line-height: 0.98;
}

.pgk-h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: 0.03em;
}

.pgk-h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.02em;
}

.pgk-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 4. 网格 ---------- */
.pgk-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.pgk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pgk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgk-grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 5. 按钮 ---------- */
.pgk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.pgk-btn--primary {
  background: var(--cyan);
  color: #04120F;
  box-shadow: 0 16px 36px -22px rgba(43, 242, 196, 0.95);
}

.pgk-btn--violet {
  background: linear-gradient(120deg, var(--violet), #5B79FF);
  color: #F6F2FF;
  box-shadow: 0 16px 36px -22px rgba(143, 98, 255, 0.95);
}

.pgk-btn--ghost {
  background: rgba(18, 27, 56, 0.72);
  border-color: var(--line);
  color: var(--paper);
}

.pgk-btn--gold {
  background: var(--gold-12);
  border-color: var(--gold-38);
  color: var(--gold);
}

@media (hover: hover) {
  .pgk-btn:hover { transform: translateY(-2px); }
  .pgk-btn--primary:hover { box-shadow: 0 22px 44px -22px rgba(43, 242, 196, 0.9); }
  .pgk-btn--violet:hover { box-shadow: 0 22px 44px -22px rgba(143, 98, 255, 0.9); }
  .pgk-btn--ghost:hover { border-color: rgba(43, 242, 196, 0.55); color: var(--cyan); }
  .pgk-btn--gold:hover { background: rgba(246, 197, 107, 0.2); }
}

.pgk-btn:active { transform: translateY(0); }

/* ---------- 6. 标签 ---------- */
.pgk-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--violet-12);
  color: #BFA8FF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pgk-tag--cyan {
  background: var(--cyan-06);
  border-color: rgba(43, 242, 196, 0.34);
  color: var(--cyan);
}

.pgk-tag--gold {
  background: var(--gold-12);
  border-color: var(--gold-38);
  color: var(--gold);
}

.pgk-tag--coral {
  background: rgba(255, 107, 135, 0.12);
  border-color: rgba(255, 107, 135, 0.36);
  color: var(--coral);
}

/* ---------- 7. 卡片与面板 ---------- */
.pgk-card {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 27, 56, 0.94), rgba(11, 16, 36, 0.94));
  box-shadow: inset 0 1px 0 rgba(232, 242, 255, 0.05), var(--shadow-card);
  padding: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.pgk-card--glow::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 242, 196, 0.22), transparent 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}

@media (hover: hover) {
  .pgk-card--glow:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 242, 196, 0.42);
  }
  .pgk-card--glow:hover::after { opacity: 1; }
}

.pgk-panel {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(18, 27, 56, 0.82), rgba(5, 7, 15, 0.72));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  padding: clamp(22px, 2.6vw, 34px);
}

/* ---------- 8. 编号带 ---------- */
.pgk-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.pgk-index::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
}

/* ---------- 9. 媒体容器（页面阶段直接放 img/picture） ---------- */
.pgk-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background-color: var(--ink-1);
  background-image:
    radial-gradient(120% 100% at 18% 0%, rgba(143, 98, 255, 0.30), transparent 62%),
    radial-gradient(90% 90% at 92% 100%, rgba(43, 242, 196, 0.18), transparent 64%),
    linear-gradient(180deg, #0B1024, #05070F);
}

.pgk-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 164, 200, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 164, 200, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 100% at 30% 10%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 10%, #000 20%, transparent 78%);
  opacity: 0.55;
  z-index: 1;
}

.pgk-media > img,
.pgk-media > picture,
.pgk-media > picture > img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pgk-media--16x9 { aspect-ratio: 16 / 9; }
.pgk-media--4x3 { aspect-ratio: 4 / 3; }
.pgk-media--1x1 { aspect-ratio: 1 / 1; }
.pgk-media--21x9 { aspect-ratio: 21 / 9; }
.pgk-media--tall { aspect-ratio: 3 / 4; }

/* ---------- 10. 面包屑 ---------- */
.pgk-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.pgk-crumbs a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.pgk-crumbs a:hover { color: var(--cyan); }

.pgk-crumbs__sep {
  color: var(--line);
  user-select: none;
}

/* ---------- 11. 章节目录跟随 ---------- */
.pgk-spy-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pgk-spy-link {
  display: block;
  padding: 9px 14px;
  border-left: 2px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.pgk-spy-link:hover { color: var(--paper); background: rgba(143, 98, 255, 0.08); }

.pgk-spy-link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: var(--cyan-06);
}

/* ---------- 12. 跳转链接 ---------- */
.pgk-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 40px -20px rgba(43, 242, 196, 0.9);
  transition: top 0.24s var(--ease);
}

.pgk-skip:focus-visible { top: 14px; }

/* ---------- 13. 顶部状态条 ---------- */
.pgk-topbar {
  position: relative;
  z-index: 90;
  background: var(--ink-1);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.pgk-topbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 9px var(--gutter);
  font-family: var(--font-mono);
}

.pgk-topbar__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(43, 242, 196, 0.8);
  animation: pgkPulse 2.6s ease-out infinite;
}

.pgk-topbar__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.pgk-topbar__link {
  flex: none;
  margin-left: auto;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.pgk-topbar__link:hover {
  color: var(--cyan);
  border-color: rgba(43, 242, 196, 0.5);
  background: var(--cyan-06);
}

@keyframes pgkPulse {
  0%   { box-shadow: 0 0 0 0 rgba(43, 242, 196, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(43, 242, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 242, 196, 0); }
}

/* ---------- 14. 粘性浮岛头部 ---------- */
.pgk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px var(--gutter) 0;
  transition: padding 0.3s var(--ease);
}

.pgk-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.94), rgba(5, 7, 15, 0));
  transition: opacity 0.3s var(--ease);
}

.pgk-header.is-condensed { padding-top: 8px; }
.pgk-header.is-condensed::before { opacity: 1; }

.pgk-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

/* 品牌胶囊 */
.pgk-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(18, 27, 56, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-island);
  transition: border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.pgk-brand:hover { border-color: rgba(43, 242, 196, 0.45); }

.pgk-brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  color: #05070F;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px -6px rgba(43, 242, 196, 0.8);
}

.pgk-brand__name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--paper);
  white-space: nowrap;
}

/* 导航胶囊 */
.pgk-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(11, 16, 36, 0.8);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-island);
}

.pgk-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

@media (hover: hover) {
  .pgk-nav__link:hover {
    color: var(--paper);
    background: var(--violet-22);
    transform: translateY(-2px);
  }
}

.pgk-nav__link[aria-current="page"] {
  background: var(--cyan);
  color: #04120F;
  font-weight: 700;
  box-shadow: 0 0 26px -8px rgba(43, 242, 196, 0.95);
}

@media (hover: hover) {
  .pgk-nav__link[aria-current="page"]:hover {
    color: #04120F;
    background: var(--cyan);
    transform: translateY(-2px);
  }
}

/* 头部右侧尾岛 */
.pgk-header__tail {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pgk-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(18, 27, 56, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-island);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.pgk-search:hover {
  color: var(--cyan);
  border-color: rgba(43, 242, 196, 0.5);
  background: rgba(43, 242, 196, 0.08);
}

.pgk-search__icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.pgk-search__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.pgk-search__text { white-space: nowrap; }

/* 移动菜单按钮 */
.pgk-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(18, 27, 56, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-island);
  color: var(--paper);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.pgk-nav-toggle:hover { border-color: rgba(43, 242, 196, 0.5); color: var(--cyan); }

.pgk-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.24s var(--ease);
}

.pgk-nav-toggle__bars::before,
.pgk-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease);
}

.pgk-nav-toggle__bars::before { top: -6px; }
.pgk-nav-toggle__bars::after { top: 6px; }

.pgk-header[data-open] .pgk-nav-toggle__bars { background: transparent; }
.pgk-header[data-open] .pgk-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.pgk-header[data-open] .pgk-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度条 */
.pgk-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 68%, var(--gold) 100%);
  z-index: 140;
  pointer-events: none;
  will-change: transform;
}

/* 返回顶部 */
.pgk-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(18, 27, 56, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cyan);
  box-shadow: var(--shadow-island);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s var(--ease), border-color 0.22s var(--ease);
}

.pgk-to-top::before {
  content: "";
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.pgk-to-top:hover { border-color: rgba(43, 242, 196, 0.6); }

.pgk-to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 15. 档案底板页脚 ---------- */
.pgk-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.pgk-footer__aura {
  position: absolute;
  inset: -180px -8% auto -8%;
  height: 420px;
  pointer-events: none;
  background:
    radial-gradient(58% 100% at 18% 0%, rgba(43, 242, 196, 0.16), transparent 72%),
    radial-gradient(52% 100% at 82% 0%, rgba(143, 98, 255, 0.22), transparent 72%);
}

.pgk-footer__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter) 0;
}

.pgk-footer__sign {
  display: grid;
  gap: 12px;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.pgk-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.pgk-footer__brand::before {
  content: "";
  flex: none;
  width: 9px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px -6px rgba(43, 242, 196, 0.9);
}

.pgk-footer__brand:hover { color: var(--cyan); }

.pgk-footer__motto {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.pgk-footer__desc {
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.pgk-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: clamp(30px, 4vw, 44px) 0;
}

.pgk-footer__col { min-width: 0; }

.pgk-footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.pgk-footer__list { display: grid; gap: 10px; }

.pgk-footer__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pgk-footer__list a:hover { color: var(--cyan); }

@media (hover: hover) {
  .pgk-footer__list a:hover { transform: translateX(3px); }
}

.pgk-footer__list--contact { gap: 12px; }

.pgk-footer__plain {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.pgk-footer__list--contact .pgk-footer__plain {
  padding-left: 2px;
  border-left: 2px solid var(--line-soft);
  padding-inline-start: 10px;
}

.pgk-footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--cyan-06);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: left;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.pgk-footer__copy:hover {
  color: var(--cyan);
  border-color: rgba(43, 242, 196, 0.55);
  background: var(--cyan-14);
}

.pgk-footer__copy-value {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.pgk-footer__copy-hint {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.pgk-footer__copy-hint::before { content: "复制"; }

.pgk-footer__copy[data-copied="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-14);
}

.pgk-footer__copy[data-copied="true"] .pgk-footer__copy-hint::before { content: "已复制"; }

.pgk-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 22px 0 clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pgk-footer__meta-item {
  position: relative;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.pgk-footer__meta-item:first-child { color: var(--paper); }

/* ---------- 16. 分层显现 ---------- */
.pgk-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s var(--ease) var(--pgk-delay, 0ms),
    transform 0.62s var(--ease) var(--pgk-delay, 0ms);
}

.pgk-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .pgk-header__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .pgk-nav-toggle { display: inline-flex; }

  .pgk-search { display: none; }

  .pgk-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--r-lg);
    background: rgba(9, 13, 30, 0.97);
    box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.98);
    z-index: 5;
  }

  .pgk-header[data-open] .pgk-nav { display: flex; }

  .pgk-nav__link {
    padding: 13px 16px;
    border-radius: var(--r-sm);
    font-size: 15px;
  }

  .pgk-nav__link[aria-current="page"] { border-radius: var(--r-sm); }

  .pgk-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 900px) {
  .pgk-grid--3,
  .pgk-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .pgk-header { padding-top: 10px; }
  .pgk-to-top { right: 16px; bottom: 16px; }
  .pgk-brand { padding: 8px 14px 8px 9px; }
  .pgk-brand__mark { width: 28px; height: 28px; border-radius: 10px; font-size: 11px; }
  .pgk-brand__name { font-size: 14px; }
  .pgk-nav-toggle { width: 42px; height: 42px; }
  .pgk-topbar__text { font-size: 11px; letter-spacing: 0.04em; }
}

@media (max-width: 600px) {
  .pgk-grid--2,
  .pgk-grid--3,
  .pgk-grid--4 { grid-template-columns: 1fr; }

  .pgk-footer__cols { grid-template-columns: 1fr; gap: 26px; }
  .pgk-footer__meta { font-size: 11px; gap: 4px 16px; }
  .pgk-btn { width: 100%; }
}

/* ---------- 18. 无障碍降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .pgk-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
