/* ============ 全局变量 ============ */
:root {
  --pg-blue: #0B1D3A;
  --pg-blue-2: #12294D;
  --pg-blue-3: #1A1540;
  --pg-orange: #FF5A36;
  --pg-purple: #8B5CF6;
  --pg-bg: #F4F6FA;
  --pg-white: #FFFFFF;
  --pg-text: #1A2033;
  --pg-gray: #5A6478;
  --pg-green: #10B981;
  --pg-yellow: #F59E0B;
  --pg-font-head: 'Chakra Petch', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --pg-font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --pg-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --pg-gutter: clamp(16px, 4vw, 56px);
  --pg-radius: 14px;
  --pg-radius-s: 8px;
  --pg-shadow: 0 8px 30px rgba(11, 29, 58, 0.08);
  --pg-shadow-lg: 0 20px 60px rgba(11, 29, 58, 0.16);
  --pg-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pg-transition: 0.3s var(--pg-ease);
}

/* ============ Reset ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--pg-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--pg-text);
  background:
    linear-gradient(rgba(11, 29, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 29, 58, 0.035) 1px, transparent 1px),
    var(--pg-bg);
  background-size: 24px 24px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pg-font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pg-blue);
}

/* ============ 容器 ============ */
.pg-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--pg-gutter);
}

/* ============ 跳过链接 ============ */
.pg-skip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  padding: 12px 20px;
  background: var(--pg-orange);
  color: #fff;
  font-family: var(--pg-font-head);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 20px rgba(255, 90, 54, 0.4);
  transform: translateY(-200%);
  transition: transform 0.3s var(--pg-ease);
}

.pg-skip:focus {
  transform: translateY(0);
}

/* ============ 滚动进度条 ============ */
.pg-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pg-orange), var(--pg-purple));
  box-shadow: 0 0 10px rgba(255, 90, 54, 0.5);
  z-index: 2000;
  pointer-events: none;
  transition: width 60ms linear;
}

/* ============ 公告条 ============ */
.pg-announce {
  background: linear-gradient(90deg, var(--pg-blue), var(--pg-blue-2));
  border-bottom: 1px solid rgba(255, 90, 54, 0.25);
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--pg-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.pg-announce::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pg-orange), var(--pg-purple), transparent 85%);
  opacity: 0.9;
}

.pg-announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding-block: 6px;
}

.pg-announce-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--pg-orange);
  color: #fff;
  font-family: var(--pg-font-head);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  transform: skewX(-6deg);
}

.pg-announce-copy {
  font-weight: 500;
  letter-spacing: 0.12em;
}

.pg-announce-sep {
  flex: 1;
  min-width: 8px;
}

.pg-announce-domain {
  color: var(--pg-orange);
  font-weight: 500;
  border-bottom: 1px dashed rgba(255, 90, 54, 0.4);
  transition: color 0.2s ease;
}

.pg-announce-domain:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============ 页头 ============ */
.pg-header {
  position: relative;
  z-index: 1200;
  background: linear-gradient(160deg, var(--pg-blue) 0%, var(--pg-blue-2) 65%, #172047 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.pg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

/* ============ 品牌 ============ */
.pg-brand {
  position: relative;
  z-index: 1600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--pg-font-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  transform: skewX(-6deg);
}

.pg-brand-mark {
  display: inline-block;
  color: var(--pg-orange);
  background: rgba(255, 90, 54, 0.14);
  border: 1px solid rgba(255, 90, 54, 0.4);
  padding: 4px 10px;
  border-radius: 8px 2px 8px 2px;
  font-size: 24px;
}

.pg-brand-cn {
  display: inline-block;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-left: 2px;
  text-shadow: 0 2px 12px rgba(139, 92, 246, 0.5);
}

/* ============ 移动导航开关 ============ */
.pg-nav-toggle {
  display: none;
  position: relative;
  z-index: 1600;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 90, 54, 0.12);
  border: 1px solid rgba(255, 90, 54, 0.3);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.pg-nav-toggle:hover {
  background: rgba(255, 90, 54, 0.22);
  border-color: rgba(255, 90, 54, 0.5);
}

.pg-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pg-orange);
  border-radius: 2px;
  transition: transform 0.3s var(--pg-ease), opacity 0.2s ease;
}

.pg-toggle-text {
  font-family: var(--pg-font-mono);
  font-size: 9px;
  color: var(--pg-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.pg-nav-toggle[aria-expanded="true"] .pg-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.pg-nav-toggle[aria-expanded="true"] .pg-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.pg-nav-toggle[aria-expanded="true"] .pg-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============ 侧边轨道导航 ============ */
.pg-rail {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: rgba(11, 29, 58, 0.68);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 90, 54, 0.2);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.35);
}

.pg-rail-domain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 36px;
  border-radius: 10px;
  color: var(--pg-purple);
  font-family: var(--pg-font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
}

.pg-rail-domain-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.pg-rail-domain-name {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-rail-domain:hover {
  color: var(--pg-orange);
  background: rgba(255, 90, 54, 0.08);
}

.pg-rail-sep {
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.45), transparent);
  margin: 4px 0;
}

.pg-rail-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--pg-font-mono);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.28s var(--pg-ease);
}

.pg-rail-link:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.22);
  transform: translateX(-3px);
}

.pg-rail-link[aria-current="page"] {
  color: var(--pg-orange);
  background: rgba(255, 90, 54, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 54, 0.25);
}

.pg-rail-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--pg-blue);
  color: #fff;
  font-family: var(--pg-font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--pg-ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.pg-rail-label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--pg-blue);
}

.pg-rail-link:hover .pg-rail-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.pg-rail-link[aria-current="page"] {
  width: auto;
  padding: 0 16px 0 8px;
  gap: 6px;
}

.pg-rail-link[aria-current="page"] .pg-rail-label {
  position: static;
  transform: none;
  opacity: 1;
  background: none;
  padding: 0;
  box-shadow: none;
  font-family: var(--pg-font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-orange);
}

.pg-rail-link[aria-current="page"] .pg-rail-label::after {
  display: none;
}

.pg-rail-index {
  font-family: var(--pg-font-mono);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pg-rail-link:hover .pg-rail-index {
  opacity: 1;
}

.pg-rail-link[aria-current="page"] .pg-rail-index {
  color: var(--pg-orange);
  opacity: 1;
}

/* ============ 抽屉遮罩 ============ */
.pg-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

.pg-nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ============ 移动端抽屉状态 ============ */
@media (max-width: 1023px) {
  .pg-nav-toggle {
    display: flex;
  }

  .pg-rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 84vw);
    height: auto;
    max-height: 100vh;
    transform: translateX(100%);
    align-items: stretch;
    gap: 2px;
    padding: 88px 20px 32px;
    border-radius: 16px 0 0 16px;
    border: none;
    border-left: 1px solid rgba(255, 90, 54, 0.2);
    background: rgba(11, 29, 58, 0.97);
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.4);
    transition: transform 0.38s var(--pg-ease);
    overflow-y: auto;
  }

  .pg-rail[data-open] {
    transform: translateX(0);
  }

  .pg-rail-domain {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--pg-purple);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .pg-rail-domain-name {
    display: inline;
  }

  .pg-rail-sep {
    width: 100%;
    margin: 6px 0;
  }

  .pg-rail-link {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--pg-font-body);
    color: rgba(255, 255, 255, 0.7);
  }

  .pg-rail-link:hover {
    background: rgba(139, 92, 246, 0.18);
    transform: none;
  }

  .pg-rail-link[aria-current="page"] {
    width: 100%;
    padding: 14px 16px;
    gap: 12px;
    background: rgba(255, 90, 54, 0.14);
    border-left: 3px solid var(--pg-orange);
    border-radius: 8px;
  }

  .pg-rail-label {
    position: static;
    transform: none;
    opacity: 1;
    background: none;
    padding: 0;
    font-family: var(--pg-font-body);
    font-size: 15px;
    font-weight: 500;
    color: inherit;
    box-shadow: none;
  }

  .pg-rail-label::after {
    display: none;
  }

  .pg-rail-link[aria-current="page"] .pg-rail-label {
    color: var(--pg-orange);
    font-family: var(--pg-font-body);
    font-size: 15px;
  }

  .pg-rail-index {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
  }

  .pg-rail-link[aria-current="page"] .pg-rail-index {
    color: var(--pg-orange);
  }

  .pg-nav-backdrop {
    display: block;
  }
}

@media (min-width: 1024px) {
  .pg-nav-backdrop {
    display: none;
  }
}

/* ============ 页脚 ============ */
.pg-footer {
  position: relative;
  margin-top: 48px;
  background: linear-gradient(135deg, var(--pg-blue) 0%, var(--pg-blue-2) 55%, var(--pg-blue-3) 100%);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.pg-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pg-orange), var(--pg-purple), transparent 80%);
  opacity: 0.85;
}

.pg-footer::after {
  content: 'PG';
  position: absolute;
  bottom: -70px;
  right: -20px;
  font-family: var(--pg-font-head);
  font-size: 220px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -0.06em;
  pointer-events: none;
}

.pg-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-block: 48px 40px;
}

.pg-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pg-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--pg-font-head);
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 14px;
}

.pg-footer-logo-mark {
  display: inline-block;
  color: var(--pg-orange);
  background: rgba(255, 90, 54, 0.14);
  border: 1px solid rgba(255, 90, 54, 0.3);
  padding: 4px 10px;
  border-radius: 8px 2px 8px 2px;
  transform: skewX(-6deg);
  font-size: 26px;
}

.pg-footer-logo-cn {
  color: #fff;
  font-size: 22px;
  transform: skewX(-6deg);
}

.pg-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 340px;
  margin-bottom: 16px;
}

.pg-footer-cert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pg-font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
}

.pg-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pg-status--ok {
  color: var(--pg-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.pg-status--warn {
  color: var(--pg-yellow);
  border-color: rgba(245, 158, 11, 0.3);
}

.pg-footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--pg-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pg-footer-index {
  font-family: var(--pg-font-mono);
  font-size: 11px;
  color: var(--pg-orange);
  font-weight: 400;
  border: 1px solid rgba(255, 90, 54, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
}

.pg-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.pg-footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, transform 0.2s ease;
}

.pg-footer-links a:hover {
  color: var(--pg-orange);
  transform: translateX(4px);
}

.pg-footer-links span {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
}

.pg-footer-contact .pg-footer-links li {
  position: relative;
  padding-left: 16px;
}

.pg-footer-contact .pg-footer-links li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--pg-purple);
  font-size: 12px;
}

.pg-footer-note {
  margin-top: 16px;
  font-family: var(--pg-font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.pg-footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  padding-block: 16px;
}

.pg-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--pg-font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.pg-footer-icp {
  letter-spacing: 0.04em;
}

/* ============ 按钮 ============ */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--pg-orange);
  color: #fff;
  font-family: var(--pg-font-head);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--pg-radius-s);
  transform: skewX(-4deg);
  box-shadow: 0 6px 20px rgba(255, 90, 54, 0.35);
  transition: all var(--pg-transition);
  border: 1px solid transparent;
}

.pg-btn:hover {
  transform: skewX(-4deg) translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 90, 54, 0.45);
}

.pg-btn:active {
  transform: skewX(-4deg) translateY(0);
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.3);
}

.pg-btn--ghost {
  background: transparent;
  color: var(--pg-blue);
  border-color: rgba(11, 29, 58, 0.3);
  box-shadow: none;
}

.pg-btn--ghost:hover {
  background: rgba(11, 29, 58, 0.04);
  border-color: var(--pg-blue);
  box-shadow: none;
}

/* ============ 卡片 ============ */
.pg-card {
  background: var(--pg-white);
  border: 1px solid rgba(11, 29, 58, 0.06);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow);
  padding: clamp(20px, 3vw, 36px);
  transition: box-shadow var(--pg-transition), transform var(--pg-transition);
}

.pg-card:hover {
  box-shadow: var(--pg-shadow-lg);
  transform: translateY(-3px);
}

.pg-card--glass {
  background: linear-gradient(140deg, rgba(11, 29, 58, 0.82), rgba(139, 92, 246, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pg-card--glass h1,
.pg-card--glass h2,
.pg-card--glass h3 {
  color: #fff;
}

/* ============ 章节面板 ============ */
.pg-section {
  position: relative;
  background: var(--pg-white);
  border: 1px solid rgba(11, 29, 58, 0.06);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow);
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 24px;
}

.pg-panel {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(140deg, rgba(11, 29, 58, 0.88), rgba(18, 41, 77, 0.75) 50%, rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pg-radius);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.pg-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--pg-orange), var(--pg-purple));
}

/* ============ 框景首屏 ============ */
.pg-frame {
  position: relative;
  padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, var(--pg-blue), var(--pg-blue-2) 55%, var(--pg-blue-3));
  color: #fff;
  border-radius: var(--pg-radius);
  overflow: hidden;
  box-shadow: var(--pg-shadow-lg);
}

.pg-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-top: 3px solid var(--pg-orange);
  border-left: 3px solid var(--pg-orange);
  border-radius: 6px 0 0 0;
  opacity: 0.8;
}

.pg-frame::after {
  content: '';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-bottom: 3px solid var(--pg-purple);
  border-right: 3px solid var(--pg-purple);
  border-radius: 0 0 6px 0;
  opacity: 0.8;
}

.pg-frame > * {
  position: relative;
  z-index: 1;
}

/* ============ 标题与编号 ============ */
.pg-index-no {
  display: block;
  font-family: var(--pg-font-mono);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 29, 58, 0.25);
  margin-bottom: 8px;
}

.pg-frame .pg-index-no {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.pg-title {
  font-family: var(--pg-font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.2;
  color: var(--pg-blue);
  transform: skewX(-4deg);
  transform-origin: left top;
  margin-bottom: 12px;
}

.pg-frame .pg-title {
  color: #fff;
}

.pg-subtitle {
  font-family: var(--pg-font-mono);
  font-size: 13px;
  color: var(--pg-gray);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.pg-frame .pg-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.pg-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--pg-gray);
  max-width: 640px;
}

.pg-frame .pg-lead {
  color: rgba(255, 255, 255, 0.72);
}

.pg-meta {
  font-family: var(--pg-font-mono);
  font-size: 12px;
  color: var(--pg-gray);
  letter-spacing: 0.04em;
}

/* ============ 分隔线 ============ */
.pg-divider {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--pg-orange), var(--pg-purple), transparent);
  margin-block: 24px;
  border: none;
}

/* ============ 面包屑 ============ */
.pg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: var(--pg-font-mono);
  font-size: 12px;
  color: var(--pg-gray);
  padding-block: 14px 4px;
}

.pg-breadcrumb a {
  color: var(--pg-blue);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pg-breadcrumb a:hover {
  color: var(--pg-orange);
  border-bottom-color: var(--pg-orange);
}

.pg-breadcrumb-sep {
  color: rgba(90, 100, 120, 0.4);
  margin-inline: 6px;
  font-size: 11px;
}

/* ============ 网格 ============ */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============ 图片容器 ============ */
.pg-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--pg-radius);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(11, 29, 58, 0.06) 65%);
  border: 1px solid rgba(11, 29, 58, 0.08);
}

.pg-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(139, 92, 246, 0.09) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(139, 92, 246, 0.09) 25%, transparent 25%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  pointer-events: none;
  z-index: 0;
}

.pg-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pg-media:hover img {
  transform: scale(1.04);
}

.pg-media--wide {
  aspect-ratio: 21 / 9;
}

.pg-media--tall {
  aspect-ratio: 4 / 5;
}

.pg-media--square {
  aspect-ratio: 1 / 1;
}

/* ============ 标签 ============ */
.pg-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--pg-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--tag-color, var(--pg-blue));
  background: color-mix(in srgb, var(--tag-color, var(--pg-blue)) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--pg-blue)) 22%, transparent);
}

/* fallback for color-mix */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .pg-tag {
    background: rgba(11, 29, 58, 0.06);
    border-color: rgba(11, 29, 58, 0.15);
  }
}

/* ============ 滚动显现 ============ */
html.pg-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.pg-js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 焦点可见 ============ */
:focus-visible {
  outline: 2px solid var(--pg-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.pg-skip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

/* ============ 响应式 ============ */
@media (max-width: 1023px) {
  .pg-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-block: 40px 32px;
  }

  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pg-footer::after {
    font-size: 140px;
    bottom: -40px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .pg-header-inner {
    min-height: 58px;
  }

  .pg-announce-inner {
    min-height: 30px;
    gap: 8px;
    font-size: 11px;
  }

  .pg-announce-badge {
    font-size: 9px;
    padding: 1px 6px;
  }

  .pg-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 36px 28px;
  }

  .pg-grid {
    grid-template-columns: 1fr;
  }

  .pg-frame {
    padding-inline: 20px;
  }

  .pg-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .pg-container {
    max-width: calc(100vw - 121px);
  }
}

/* ============ 减少动效 ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.pg-js [data-reveal],
  html.pg-js [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pg-scroll-progress {
    display: none;
  }
}
