/* ==========================================================================
   PG娱乐 · 共享站点样式 /assets/site.css
   夜间控制台 × 版本档案馆
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

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

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

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

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

hr { border: 0; border-top: 1px solid rgba(53, 224, 255, 0.16); margin: 0; }

/* ---------- tokens ---------- */
:root {
  --ink: #071521;
  --panel: #0D2638;
  --teal: #0F3B42;
  --wine: #5C2338;
  --cyan: #35E0FF;
  --coral: #FF6B4A;
  --gold: #E8C98A;
  --paper: #F3F7F6;
  --mist: #B9CBD1;
  --black: #0B141A;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-soft: 14px;

  --line-cyan: rgba(53, 224, 255, 0.18);
  --line-strong: rgba(53, 224, 255, 0.42);

  --shadow-hard: 6px 6px 0 rgba(3, 10, 16, 0.55);
  --shadow-float: 0 18px 40px -18px rgba(0, 0, 0, 0.85);

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: 0.2s ease;
}

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--coral);
  color: #1A0A05;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-float);
  transform: translate(-50%, -180%);
  transition: transform var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px var(--gutter) 0;
  background: linear-gradient(180deg,
    rgba(7, 21, 33, 0.97) 0%,
    rgba(7, 21, 33, 0.82) 62%,
    rgba(7, 21, 33, 0) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 7px 18px 7px 7px;
  border-radius: var(--radius-pill);
  background: var(--panel);
  border: 1px solid var(--line-cyan);
  box-shadow: var(--shadow-float);
  transition: transform var(--ease), border-color var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--cyan) 0%, var(--coral) 100%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.header-tagline {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0.82;
}

.header-status {
  width: 100%;
  max-width: var(--shell);
  text-align: right;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(185, 203, 209, 0.68);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid rgba(53, 224, 255, 0.3);
  box-shadow: var(--shadow-float);
  transition: border-color var(--ease), background var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  background: #103044;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: background var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* nav island */
.nav-island {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-nav {
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(13, 38, 56, 0.88);
  border: 1px solid var(--line-cyan);
  box-shadow: var(--shadow-float);
}

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

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
  transition: color var(--ease), background var(--ease), transform var(--ease), border-color var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(53, 224, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.btn--primary {
  background: var(--coral);
  color: #1A0A05;
  border-color: var(--coral);
  box-shadow: 0 6px 0 -2px rgba(255, 107, 74, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 -2px rgba(255, 107, 74, 0.24);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(53, 224, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(53, 224, 255, 0.12);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn--quiet {
  background: rgba(185, 203, 209, 0.1);
  color: var(--paper);
  border-color: rgba(185, 203, 209, 0.28);
}

.btn--quiet:hover {
  background: rgba(185, 203, 209, 0.18);
  transform: translateY(-2px);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(180deg, #04101A 0%, #071B2A 46%, #0A2434 100%);
  border-top: 2px solid rgba(53, 224, 255, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(460px, 62vw);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--coral), var(--gold));
}

.site-footer::after {
  content: "ARCHIVE";
  position: absolute;
  right: -10px;
  bottom: -26px;
  font-family: var(--font-mono);
  font-size: clamp(64px, 12vw, 168px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(53, 224, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(24px, 4vw, 36px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 4px;
  align-content: start;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--cyan) 0%, var(--coral) 100%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-hard);
}

.footer-name {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-statement {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col { min-width: 0; }

.footer-heading {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(53, 224, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links--plain { gap: 10px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.footer-link:hover {
  color: var(--paper);
  border-bottom-color: var(--coral);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
  word-break: break-word;
}

.footer-key {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 1px 6px;
  border: 1px solid rgba(232, 201, 138, 0.35);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(185, 203, 209, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(185, 203, 209, 0.72);
}

.footer-copy { color: var(--mist); }

.footer-icp {
  padding: 3px 12px;
  border: 1px solid rgba(232, 201, 138, 0.3);
  border-radius: var(--radius-pill);
  color: var(--gold);
}

.footer-note {
  margin-left: auto;
  max-width: 52ch;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(185, 203, 209, 0.62);
}

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

.container--narrow { max-width: 820px; }

.section {
  padding-block: clamp(40px, 6vw, 88px);
}

.section--paper {
  background: var(--paper);
  color: var(--black);
}

.section--paper .lead { color: #3C4A50; }

.stack > * + * { margin-top: var(--stack-gap, 18px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }

/* ---------- type ---------- */
.display {
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 250;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.35;
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--mist);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.link-cyan {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 224, 255, 0.4);
  transition: border-color var(--ease), color var(--ease);
}

.link-cyan:hover {
  border-bottom-color: var(--cyan);
  color: var(--paper);
}

/* ---------- exhibit tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 255, 0.32);
  background: rgba(53, 224, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--cyan);
}

.tag--gold {
  border-color: rgba(232, 201, 138, 0.4);
  background: rgba(232, 201, 138, 0.1);
  color: var(--gold);
}

.tag--coral {
  border-color: rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.12);
  color: var(--coral);
}

.tag--wine {
  border-color: rgba(196, 108, 138, 0.45);
  background: rgba(92, 35, 56, 0.55);
  color: #F2C6D3;
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* ---------- panels ---------- */
.panel {
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-cyan);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
}

.panel--paper {
  background: var(--paper);
  color: var(--black);
  border-color: rgba(11, 20, 26, 0.14);
  box-shadow: 8px 8px 0 rgba(4, 16, 26, 0.5);
}

.panel--teal {
  background: var(--teal);
  border-color: rgba(53, 224, 255, 0.26);
}

.panel--wine {
  background: var(--wine);
  border-color: rgba(232, 201, 138, 0.28);
}

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-cyan);
  background: linear-gradient(160deg, #0D2638 0%, #071521 100%);
  box-shadow: var(--shadow-hard);
}

.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 21, 33, 0.82);
  border: 1px solid rgba(53, 224, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(185, 203, 209, 0.4);
}

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

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

/* ---------- disclosure ---------- */
.disclosure {
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-soft);
  background: rgba(13, 38, 56, 0.72);
  overflow: hidden;
}

.disclosure + .disclosure { margin-top: 10px; }

.disclosure__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--paper);
  list-style: none;
  cursor: pointer;
  transition: background var(--ease);
}

.disclosure__summary::-webkit-details-marker { display: none; }

.disclosure__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
}

.disclosure[open] .disclosure__summary::after { content: "–"; }

.disclosure__summary:hover { background: rgba(53, 224, 255, 0.08); }

.disclosure__body {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- scroll progress (injected by JS) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--coral), var(--gold));
  pointer-events: none;
}

/* ---------- header scroll state ---------- */
.site-header[data-scrolled] .brand,
.site-header[data-scrolled] .primary-nav,
.site-header[data-scrolled] .nav-toggle {
  border-color: var(--line-strong);
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .header-tagline { display: none; }
  .nav-link { padding: 8px 11px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .site-header { padding-bottom: 12px; }
  .header-status { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-island {
    position: absolute;
    top: calc(100% - 4px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-left: 0;
    padding: 16px;
    border-radius: 24px;
    background: rgba(9, 28, 42, 0.98);
    border: 1px solid rgba(53, 224, 255, 0.24);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .nav-island[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px;
    border-radius: 18px;
  }

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

  .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-soft);
    font-size: 15px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-actions .btn { width: 100%; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-note { margin-left: 0; }
}

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

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

@media (max-width: 560px) {
  .brand { padding: 6px 14px 6px 6px; }
  .brand-mark { width: 32px; height: 32px; font-size: 12px; }
  .brand-name { font-size: 14px; }
  .header-shell { gap: 8px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { gap: 10px 16px; font-size: 11px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .media-frame { aspect-ratio: 4 / 3; }
}

/* ---------- motion preferences ---------- */
@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;
  }

  .nav-island { transition: none; }
  .scroll-progress { display: none; }
}
