/* ============================================
   PG官方中文网 — 共享样式 /assets/site.css
   深空蓝 × 荧光绿 × 电光紫
   ============================================ */

/* ---------- 1. 重置与设计令牌 ---------- */

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

ul[class],
ol[class],
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: inherit;
}

:root {
  --deep-space-blue: #0B1B3D;
  --mid-blue: #1E3A6E;
  --neon-green: #00FF9D;
  --electric-purple: #B537F2;
  --light-gray: #F5F7FA;
  --ink-black: #111827;
  --glass-white: rgba(255, 255, 255, 0.08);
  --pure-white: #FFFFFF;
  --alert-amber: #FFB300;
  --success-green: #00CC88;

  --font-title: 'Archivo Black', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-title-size: clamp(2rem, 4vw, 4rem);
  --font-body-size: clamp(0.9rem, 1vw, 1rem);
  --header-sidebar-width: 300px;
  --header-mobile-height: 72px;
  --content-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--font-body-size);
  line-height: 1.6;
  color: var(--light-gray);
  background-color: var(--deep-space-blue);
  background-image:
    radial-gradient(ellipse 80% 50% at 85% 0%, rgba(181, 55, 242, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0, 255, 157, 0.06), transparent 60%),
    linear-gradient(180deg, var(--deep-space-blue) 0%, var(--deep-space-blue) 40%, #0D1F4D 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 2. 基础排版 ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.8em;
  color: var(--pure-white);
}

p {
  margin-bottom: 1rem;
}

.prose {
  max-width: 72ch;
  color: rgba(245, 247, 250, 0.75);
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose a {
  color: var(--neon-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 3. 通用布局与网格 ---------- */

.container {
  width: min(var(--content-max), 92%);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-bottom: 1rem;
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--neon-green);
}

.section__title {
  font-size: var(--font-title-size);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.section__lead {
  max-width: 64ch;
  font-size: 1.02rem;
  color: rgba(245, 247, 250, 0.65);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid--asym {
  grid-template-columns: 1.4fr 1fr;
}

.grid--asym-rev {
  grid-template-columns: 1fr 1.4fr;
}

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

@media (max-width: 767px) {
  .grid--2,
  .grid--3,
  .grid--asym,
  .grid--asym-rev {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4. 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2px 10px 2px 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 255, 157, 0.5);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(90deg, var(--neon-green), #00B877);
  color: var(--deep-space-blue);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 255, 157, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 255, 157, 0.35);
}

.btn--ghost {
  border-color: rgba(0, 255, 157, 0.4);
  color: var(--neon-green);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(0, 255, 157, 0.08);
  border-color: var(--neon-green);
}

/* ---------- 5. 卡片与标签 ---------- */

.card {
  background: var(--pure-white);
  color: var(--ink-black);
  border-radius: 4px 16px 4px 16px;
  padding: 1.8rem;
  border: 1px solid rgba(181, 55, 242, 0.12);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.2);
}

.tag--purple {
  color: #D391FF;
  background: rgba(181, 55, 242, 0.1);
  border-color: rgba(181, 55, 242, 0.25);
}

.tag--amber {
  color: var(--alert-amber);
  background: rgba(255, 179, 0, 0.1);
  border-color: rgba(255, 179, 0, 0.25);
}

/* ---------- 6. 面包屑与分隔线 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.5);
  margin-bottom: 1.5rem;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.7rem;
  color: var(--electric-purple);
}

.breadcrumb a {
  color: rgba(245, 247, 250, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--neon-green);
}

.breadcrumb [aria-current='page'] {
  color: var(--neon-green);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--neon-green), transparent 70%);
  margin: 2.5rem 0;
}

/* ---------- 7. 图片容器 ---------- */

.img-shell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--mid-blue), var(--deep-space-blue));
  border-radius: 2px 14px 2px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.img-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 55%, rgba(0, 255, 157, 0.1) 100%);
  pointer-events: none;
}

.img-shell--wide {
  aspect-ratio: 16 / 9;
}

.img-shell--square {
  aspect-ratio: 1 / 1;
}

/* ---------- 8. 斜切背景区 ---------- */

.skew-strip {
  position: relative;
  isolation: isolate;
}

.skew-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--mid-blue), transparent 75%);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

/* ---------- 9. 无障碍工具类 ---------- */

.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-green);
  color: var(--deep-space-blue);
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
  z-index: 5000;
  transition: top var(--transition-base);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 3px;
}

#main-content:focus {
  outline: none;
}

/* ---------- 10. 滚动进度条 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 4000;
  background: linear-gradient(90deg, var(--neon-green), var(--electric-purple));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- 11. 头部与框架式导航 ---------- */

body {
  padding-left: 0;
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--header-sidebar-width);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-sidebar-width);
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  background: rgba(11, 27, 61, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(0, 255, 157, 0.12);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.2);
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-green), var(--deep-space-blue) 35%, var(--electric-purple));
  opacity: 0.5;
  pointer-events: none;
}

.site-header__inner {
  width: 100%;
  height: 100%;
  padding: 2.2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  position: relative;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--neon-green), var(--electric-purple));
  color: var(--deep-space-blue);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 4px 12px 4px 12px;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
  transform: rotate(-3deg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.brand:hover .brand__logo {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 0 28px rgba(0, 255, 157, 0.5);
}

.brand__name {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--pure-white);
  letter-spacing: 0.02em;
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(245, 247, 250, 0.45);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* 导航 */

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: rgba(245, 247, 250, 0.6);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 900;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    padding-left var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link__num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(0, 255, 157, 0.5);
  min-width: 1.6rem;
}

.nav-link__label {
  position: relative;
  z-index: 1;
}

.nav-link__beam {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--neon-green);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--neon-green);
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.08), transparent);
  border-left-color: rgba(0, 255, 157, 0.4);
  padding-left: 1.35rem;
  transform: translateX(4px);
}

.nav-link:hover .nav-link__beam,
.nav-link[aria-current='page'] .nav-link__beam {
  width: 100%;
}

.nav-link[aria-current='page'] {
  color: var(--neon-green);
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.12), rgba(0, 255, 157, 0.02));
  border-left-color: var(--neon-green);
}

.nav-link[aria-current='page'] .nav-link__num {
  color: var(--neon-green);
}

/* 导航开关按钮 */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: border-color var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--neon-green);
}

.nav-toggle__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--neon-green);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 头部 meta 状态区 */

.site-header__meta {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.meta-orbit {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: metaPulse 2.4s ease-in-out infinite;
}

.meta-text {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.4);
}

@keyframes metaPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ---------- 12. 移动端头部抽屉 ---------- */

@media (max-width: 1023.98px) {
  .site-header {
    width: 100%;
    height: var(--header-mobile-height);
    bottom: auto;
    right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 157, 0.15);
  }

  .site-header::after {
    top: auto;
    bottom: 0;
    right: auto;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--electric-purple));
    opacity: 0.7;
  }

  .site-header__inner {
    height: 100%;
    padding: 0 1.25rem;
    gap: 0;
    justify-content: center;
  }

  .site-header__top {
    padding-bottom: 0;
    border-bottom: none;
    width: 100%;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .brand__sub {
    font-size: 0.58rem;
  }

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

  .site-header__meta {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-mobile-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    flex: none;
    display: block;
    padding: 2.5rem 2rem;
    background: rgba(11, 27, 61, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition:
      transform 0.35s ease-in-out,
      visibility 0.35s;
  }

  .site-nav[data-open] {
    visibility: visible;
    transform: translateX(0);
  }

  .nav-link {
    padding: 1rem 1.1rem;
  }

  .nav-link:hover {
    transform: none;
  }
}

/* ---------- 13. 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: 4rem;
  padding: 3.5rem 1.5rem 1.5rem;
  background: rgba(7, 18, 44, 0.92);
  border-top: 1px solid rgba(0, 255, 157, 0.15);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-green), var(--electric-purple));
  opacity: 0.8;
  pointer-events: none;
}

.site-footer__grid {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand__logo {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--neon-green);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.footer-brand__title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pure-white);
  margin-bottom: 0.9rem;
  letter-spacing: 0.03em;
}

.footer-brand__desc {
  font-size: 0.88rem;
  color: rgba(245, 247, 250, 0.55);
  max-width: 30ch;
  line-height: 1.7;
}

.footer-brand__trust {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  color: rgba(245, 247, 250, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--electric-purple);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

.footer-col__title {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-green);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-col__list,
.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col__list a {
  color: rgba(245, 247, 250, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col__list a:hover {
  color: var(--neon-green);
  padding-left: 4px;
}

.footer-contact__list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: rgba(245, 247, 250, 0.65);
  line-height: 1.5;
}

.footer-contact__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 255, 157, 0.55);
}

.site-footer__bottom {
  max-width: var(--content-max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(245, 247, 250, 0.55);
}

.footer-bottom__copyright {
  margin-bottom: 0;
}

.footer-bottom__icp {
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 2.5rem 1.2rem 1.2rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }
}

/* ---------- 14. 响应式细节 ---------- */

@media (max-width: 767px) {
  body {
    background-attachment: scroll;
  }
}

/* ---------- 15. 减少动效支持 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
