/* ============================================================
   PG悦玩 · 共享核心样式
   ============================================================ */

:root {
  --c-space: #0A1128;
  --c-nebula: #101E3A;
  --c-purple: #8B5CF6;
  --c-purple-soft: #A78BFA;
  --c-green: #00FF88;
  --c-white: #E6EEFF;
  --c-mist: #9AAFC5;
  --c-border: #1E3A5F;
  --c-danger: #FF3C5F;

  --f-heading: 'Montserrat', 'Noto Sans SC', sans-serif;
  --f-body: 'Inter', 'Noto Sans SC', sans-serif;

  --container: 1280px;
  --header-h: 72px;
  --radius: 4px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --ease: 180ms ease;
}

/* ===== Reset ===== */

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

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
address,
blockquote,
dl,
dd,
figure,
figcaption,
pre,
caption,
table,
th,
td,
article,
aside,
footer,
header,
nav,
section,
main {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  margin: 0;
  padding-left: 1.5em;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

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

main {
  display: block;
}

/* ===== Base ===== */

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

body {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(1100px 480px at 88% -8%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(900px 420px at -12% 108%, rgba(0, 255, 136, 0.05), transparent 55%),
    var(--c-space);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--c-purple);
  color: var(--c-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-white);
}

h1 {
  font-size: clamp(32px, 4.5vw, 48px);
}

h2 {
  font-size: clamp(26px, 3vw, 36px);
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--c-purple);
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
}

a:hover {
  color: var(--c-purple-soft);
}

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

#main-content {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

/* ===== Container & Utilities ===== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.text-muted {
  color: var(--c-mist);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--c-green);
  color: var(--c-space);
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-lead {
  padding: calc(var(--header-h) + 56px) 0 24px;
}

.content-body {
  max-width: 760px;
}

.content-body h2,
.content-body h3 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-body p {
  color: var(--c-mist);
  margin-bottom: 20px;
}

.content-body a {
  color: var(--c-purple);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--c-border);
}

.content-body a:hover {
  color: var(--c-green);
  text-decoration-color: var(--c-green);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-purple);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-green);
  flex-shrink: 0;
}

.section-title {
  margin-bottom: 16px;
  font-family: var(--f-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-white);
}

.section-note {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mist);
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}

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

.btn--primary {
  background: var(--c-purple);
  border-color: var(--c-purple);
  color: var(--c-space);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--c-purple-soft);
  border-color: var(--c-purple-soft);
  color: var(--c-space);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-white);
}

.btn--ghost:hover {
  border-color: var(--c-purple);
  color: var(--c-purple-soft);
  box-shadow: none;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ===== Grid & Breadcrumb ===== */

.site-grid {
  display: grid;
  gap: 24px;
}

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

.site-grid--3 {
  grid-template-columns: 1fr;
}

.site-grid--4 {
  grid-template-columns: 1fr;
}

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

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

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

@media (min-width: 1024px) {
  .site-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--c-mist);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-border);
}

.breadcrumb a {
  color: var(--c-mist);
}

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

/* ===== Media Frame ===== */

.media-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(139, 92, 246, 0.18), transparent 55%),
    var(--c-nebula);
  border: 1px solid var(--c-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.media-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.media-frame--square::before {
  padding-top: 100%;
}

.media-frame--tall::before {
  padding-top: 125%;
}

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

.media-frame__slot {
  display: grid;
  place-items: center;
  color: var(--c-mist);
  font-family: var(--f-heading);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== Panel Card ===== */

.panel-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, var(--c-nebula), rgba(16, 30, 58, 0.65));
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform var(--ease), filter var(--ease), background var(--ease);
}

.panel-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, #142550, rgba(16, 30, 58, 0.8));
  filter: drop-shadow(0 20px 36px rgba(139, 92, 246, 0.18));
}

.panel-card__title {
  margin-bottom: 8px;
  font-family: var(--f-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.panel-card__meta {
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-purple);
}

.panel-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-mist);
}

/* ===== Skip Link ===== */

.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--c-green);
  border: 2px solid var(--c-white);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color: var(--c-space);
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 16px;
  outline: none;
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
}

body[data-scrolled] .site-header {
  background: rgba(10, 17, 40, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__actions .btn {
  display: none;
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-purple), var(--c-green));
  pointer-events: none;
}

/* ===== Brand ===== */

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--c-white);
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--c-purple), #4C1D95);
  border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  font-family: var(--f-heading);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand__name {
  font-family: var(--f-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-white);
}

.site-brand__tagline {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.site-brand--footer .site-brand__mark {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

/* ===== Navigation ===== */

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 8px 0 16px;
  background: var(--c-space);
  border-bottom: 2px solid var(--c-purple);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.site-nav[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: block;
  padding: 14px 28px;
  border-left: 3px solid transparent;
  color: var(--c-white);
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav__link:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--c-green);
}

.site-nav__link[aria-current="page"] {
  border-left-color: var(--c-purple);
  color: var(--c-green);
}

@media (min-width: 900px) {
  .site-nav {
    position: static;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 4px;
  }

  .site-nav__item {
    position: static;
  }

  .site-nav__link {
    padding: 10px 14px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    color: var(--c-mist);
    font-size: 14px;
  }

  .site-nav__link:hover {
    background: transparent;
    color: var(--c-white);
    border-bottom-color: var(--c-purple);
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--c-green);
    color: var(--c-green);
  }

  .site-header__actions .btn {
    display: inline-flex;
  }
}

/* ===== Nav Toggle ===== */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(10, 17, 40, 0.55);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--c-purple);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--c-white);
  transition: transform 200ms ease, opacity 200ms ease;
}

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

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

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

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* ===== Footer ===== */

.site-footer {
  position: relative;
  margin-top: 72px;
  padding-top: 56px;
  background:
    linear-gradient(180deg, rgba(16, 30, 58, 0.5), rgba(4, 8, 20, 0.95) 260px),
    var(--c-space);
  border-top: 2px solid var(--c-border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-purple), var(--c-green));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer__brand {
  max-width: 380px;
}

.site-footer__trust {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--c-purple);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-mist);
}

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

.site-footer__heading {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.site-footer__links li + li {
  margin-top: 10px;
}

.site-footer__links a {
  color: var(--c-mist);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.site-footer__links a:hover {
  padding-left: 4px;
  color: var(--c-green);
}

.site-footer__contact li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-mist);
}

.site-footer__contact li + li {
  margin-top: 10px;
}

.site-footer__label {
  flex-shrink: 0;
  min-width: 32px;
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-purple);
}

.site-footer__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-mist);
  opacity: 0.85;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--c-border);
}

.site-footer__copyright,
.site-footer__icp {
  margin: 0;
  font-size: 13px;
  color: var(--c-mist);
}

.site-footer__copyright {
  font-weight: 600;
}

.site-footer__icp {
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

/* ===== 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;
    transition-delay: 0s !important;
  }
}
