/* ================================================================
   PG游戏中文官方站 · 共享样式
   夜色蓝 × 荧光绿 × 金属金 · 极简文字建筑
   ================================================================ */

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-navy-deep);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-gold);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.04em;
}

main#main-content {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}

/* ---------- Design Tokens ---------- */
:root {
  --color-navy-deep: #0B1026;
  --color-navy-mid: #101B3D;
  --color-navy-light: #1A2B5E;
  --color-accent: #00FF9C;
  --color-accent-soft: #5FF5B6;
  --color-gold: #FFD700;
  --color-gold-soft: #FFE866;
  --color-text-main: #F0F5FF;
  --color-text-sub: #A6B8D9;
  --color-glass: rgba(255, 255, 255, 0.06);
  --radius-pill: 100px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --font-heading: "Orbitron", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content-width: 1200px;
  --ts-fast: 0.2s ease;
  --ts-base: 0.3s ease;
  --ts-slow: 0.6s ease;
  --shadow-float: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 60px rgba(0, 0, 0, 0.45);
  --glow-green: 0 0 12px rgba(0, 255, 156, 0.6);
  --glow-gold: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* ---------- Typography ---------- */
::selection {
  background: rgba(0, 255, 156, 0.25);
  color: var(--color-text-main);
}

.body-copy {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-sub);
}

.body-copy p {
  margin-bottom: 1.2em;
}

.body-copy strong {
  color: var(--color-text-main);
  font-weight: 700;
}

.body-copy a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.body-copy h2,
.body-copy h3 {
  margin: 2em 0 0.5em;
  color: var(--color-text-main);
}

.body-copy ul {
  list-style: none;
  margin: 1em 0;
}

.body-copy ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5em;
}

.body-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
}

/* ---------- Layout & Container ---------- */
.container {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head__index {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--color-gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid > * {
  grid-column: span 4;
}

.grid > .span-6 {
  grid-column: span 6;
}

.grid > .span-8 {
  grid-column: span 8;
}

.grid > .span-12 {
  grid-column: span 12;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

/* ---------- Hero（首屏基础） ---------- */
.hero {
  min-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 96px;
  position: relative;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  max-width: 12em;
  text-transform: uppercase;
}

.hero__lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-sub);
  max-width: 560px;
  margin-top: 24px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* ---------- Skip Link & Accessibility ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 300;
  padding: 10px 22px;
  background: var(--color-accent);
  color: #0B1026;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  transition: top 0.25s ease;
  pointer-events: auto;
}

.skip-link:focus {
  top: 20px;
}

.visually-hidden {
  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(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 999;
  pointer-events: none;
}

/* ---------- Header & Floating Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 20px 0;
  pointer-events: none;
  transition: padding 0.35s ease;
}

.nav-floating {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  background: rgba(11, 16, 38, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(0, 255, 156, 0.06);
  pointer-events: auto;
  transition: padding 0.35s ease, border-radius 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
}

.site-header.is-scrolled .nav-floating {
  padding: 8px 18px;
  border-radius: 60px;
  background: rgba(11, 16, 38, 0.92);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 255, 156, 0.12);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  color: var(--color-text-main);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--color-text-main);
}

.brand__cube {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  box-shadow: var(--glow-green);
  flex-shrink: 0;
}

.brand__cube::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(0, 255, 156, 0.3);
  border-radius: 7px;
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand--footer .brand__cube {
  width: 18px;
  height: 18px;
}

.brand--footer .brand__name {
  font-size: 1.375rem;
}

/* ---------- Primary Navigation ---------- */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--color-text-sub);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
  background: rgba(0, 255, 156, 0.12);
}

.nav-link[aria-current="page"]::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  margin-left: 8px;
  vertical-align: 2px;
  box-shadow: var(--glow-gold);
}

/* ---------- Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text-main);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
  color: #0B1026;
  box-shadow: 0 4px 24px rgba(0, 255, 156, 0.25);
}

.btn--primary:hover {
  color: #0B1026;
  box-shadow: 0 8px 36px rgba(0, 255, 156, 0.45);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-main);
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-soft));
  color: #0B1026;
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.25);
}

.btn--gold:hover {
  color: #0B1026;
  box-shadow: 0 8px 36px rgba(255, 215, 0, 0.4);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--color-text-sub);
}

.breadcrumb a {
  color: var(--color-text-sub);
  transition: color 0.2s ease;
}

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

.breadcrumb__sep {
  color: rgba(166, 184, 217, 0.4);
  user-select: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-main);
  font-weight: 600;
}

/* ---------- Pills & Tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-sub);
  white-space: nowrap;
}

.pill--green {
  background: rgba(0, 255, 156, 0.12);
  color: var(--color-accent);
}

.pill--gold {
  background: rgba(255, 215, 0, 0.12);
  color: var(--color-gold);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-gold);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 255, 156, 0.25);
}

.glass-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.glass-card__text {
  color: var(--color-text-sub);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Data Row ---------- */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-row:last-child {
  border-bottom: none;
}

.data-row__label {
  color: var(--color-text-sub);
  font-size: 0.875rem;
}

.data-row__value {
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-align: right;
}

.data-row__value--accent {
  color: var(--color-accent);
}

.data-row__value--gold {
  color: var(--color-gold);
}

/* ---------- Note Box & Accent Line ---------- */
.note-box {
  border-left: 3px solid var(--color-gold);
  background: rgba(255, 215, 0, 0.06);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9375rem;
  color: var(--color-text-sub);
}

.note-box--green {
  border-left-color: var(--color-accent);
  background: rgba(0, 255, 156, 0.06);
}

.accent-line {
  height: 1px;
  border: none;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 156, 0.4), rgba(255, 215, 0, 0.4), transparent);
}

/* ---------- Media Container ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-navy-mid), var(--color-navy-light));
}

.media::after {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.media--square::after {
  padding-bottom: 100%;
}

.media--portrait::after {
  padding-bottom: 125%;
}

.media--cover img,
.media--cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(240, 245, 255, 0.3);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.media__placeholder::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 255, 156, 0.25), rgba(255, 215, 0, 0.25));
  box-shadow: 0 0 40px rgba(0, 255, 156, 0.15);
}

/* ---------- Fake Data / Image Frame Decorative ---------- */
.orbit-ring {
  position: relative;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 156, 0.15);
  pointer-events: none;
}

.orbit-ring::before {
  width: 240px;
  height: 240px;
  top: -60px;
  right: -80px;
}

.orbit-ring::after {
  width: 120px;
  height: 120px;
  top: 20px;
  right: -20px;
  border-color: rgba(255, 215, 0, 0.2);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  background: #060A1C;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__container {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding: 72px 0 48px;
}

.site-footer__brand .brand {
  margin-bottom: 20px;
}

.site-footer__note {
  color: var(--color-text-sub);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 16px;
}

.site-footer__trust {
  color: var(--color-text-sub);
  font-size: 0.875rem;
  line-height: 1.7;
  border-left: 3px solid var(--color-gold);
  padding-left: 16px;
}

.site-footer__trust a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__trust a:hover {
  color: var(--color-gold);
}

.site-footer__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--color-text-sub);
  font-size: 0.9375rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-links--contact {
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-sub);
}

.footer-label {
  display: inline-block;
  color: var(--color-gold);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 8px;
  min-width: 28px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: rgba(166, 184, 217, 0.7);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer__copyright,
.site-footer__icp {
  margin: 0;
}

/* ---------- Reveal Animation ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body {
    padding-top: 88px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 16, 38, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-link[aria-current="page"] {
    background: rgba(0, 255, 156, 0.15);
  }

  .grid > * {
    grid-column: span 6;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 56px 0 40px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 80px;
  }

  .nav-floating {
    padding: 10px 16px;
    border-radius: 60px;
  }

  .site-header.is-scrolled .nav-floating {
    padding: 8px 14px;
  }

  .brand__name {
    font-size: 1rem;
  }

  .grid > * {
    grid-column: span 12;
  }

  .site-footer__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .btn {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Reduced Motion ---------- */
@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;
  }

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

  .scroll-progress {
    transition: none;
  }
}
