/* =========================================================
   金博中国站 · 共享样式 /assets/site.css
   夜间监控台 × 展览画册：深墨蓝承重，信号橙锚点，青玉绿状态
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #07111F;
  --ink-800: #0C1B2E;
  --ink-700: #12263D;
  --ink-600: #1B3A57;
  --edge: #2A4560;

  --orange: #FF6A2B;
  --orange-soft: #FF9B66;
  --jade: #2FD6A6;
  --jade-deep: #169E76;
  --amber: #FFC857;

  --white: #F4F7FA;
  --steel: #9FB3C8;

  --font-display: "Archivo Narrow", "Oswald", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Menlo,
    Consolas, monospace;

  --shell: 1240px;
  --pad: clamp(18px, 4vw, 40px);
  --radius-pill: 999px;
  --radius-card: 16px;

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.42);
  --shadow-hard: 7px 7px 0 0 rgba(42, 69, 96, 0.62);
  --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(880px 520px at 88% -6%, rgba(47, 214, 166, 0.07), transparent 62%),
    radial-gradient(720px 440px at -8% 10%, rgba(255, 106, 43, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

::selection {
  background: var(--orange);
  color: #08111D;
}

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

.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;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 0 0 12px 12px;
  background: var(--orange);
  color: #08111D;
  font-weight: 700;
  font-size: 15px;
  transition: top 0.18s ease;
}

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

/* ---------- 5. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jade);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--jade);
}

.h-display {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(46px, 10vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--white);
}

.h-1 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.h-2 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.h-3 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 34em;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.8;
  color: var(--steel);
}

.prose {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.78;
  color: #D6E1EC;
}

.prose + .prose { margin-top: 1.1em; }

/* ---------- 6. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

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

.section {
  padding-top: clamp(52px, 8vw, 110px);
  padding-bottom: clamp(52px, 8vw, 110px);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--rail { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.7fr); }

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

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--orange);
  color: #08111D;
  box-shadow: 0 14px 34px rgba(255, 106, 43, 0.3);
}

.btn--primary:hover {
  background: var(--orange-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(12, 27, 46, 0.66);
  border-color: var(--edge);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--jade);
  color: var(--jade);
  transform: translateY(-2px);
}

.btn--quiet {
  padding: 12px 4px;
  color: var(--steel);
  font-weight: 600;
}

.btn--quiet:hover { color: var(--orange-soft); }

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--steel);
}

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

.breadcrumb li::after {
  content: "/";
  color: var(--ink-600);
}

.breadcrumb li:last-child::after { content: ""; }

.breadcrumb a { color: var(--steel); transition: color 0.18s ease; }
.breadcrumb a:hover { color: var(--orange-soft); }
.breadcrumb [aria-current="page"] { color: var(--jade); }

/* ---------- 9. Cards ---------- */
.card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--ink-800);
  box-shadow: var(--shadow-card);
}

.card--edge { box-shadow: var(--shadow-hard); }

.card--lift {
  transition: transform 0.24s ease, box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.card--lift:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 214, 166, 0.5);
}

.card--jade { border-top: 3px solid var(--jade); }
.card--orange { border-top: 3px solid var(--orange); }

/* ---------- 10. Media frame ---------- */
.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background:
    linear-gradient(140deg, var(--ink-700) 0%, var(--ink-800) 68%, #0A1828 100%);
  aspect-ratio: 16 / 10;
}

.media-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--edge);
  border-right: 2px solid var(--edge);
  border-radius: 0 6px 0 0;
  pointer-events: none;
}

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

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

.media-frame__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 11px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(7, 17, 31, 0.8);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- 11. Status chips ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-chip--live { color: var(--jade); background: rgba(47, 214, 166, 0.1); }
.status-chip--pending { color: var(--amber); background: rgba(255, 200, 87, 0.1); }
.status-chip--new { color: var(--orange-soft); background: rgba(255, 155, 102, 0.1); }

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 17, 31, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 69, 96, 0.72);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--pad);
  transition: padding 0.24s ease;
}

.site-header[data-scrolled] .header-shell {
  padding-top: 7px;
  padding-bottom: 7px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--white);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  border-radius: 11px;
  background: var(--ink-800);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 43, 0.16);
}

.brand-mark::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 106, 43, 0.55);
  animation: pulse-orange 2.6s ease-out infinite;
}

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

.brand-name {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--steel);
}

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(18, 38, 61, 0.82);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* capsule nav */
.nav-capsule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(18, 38, 61, 0.74);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

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

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(27, 58, 87, 0.92);
}

.nav-link[aria-current="page"] {
  background: var(--white);
  color: var(--ink-900);
  font-weight: 700;
}

.header-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--edge);
}

.mini-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.mini-link--query {
  border: 1px solid rgba(255, 106, 43, 0.52);
  color: var(--orange);
}

.mini-link--query:hover {
  background: rgba(255, 106, 43, 0.14);
  color: var(--orange-soft);
}

.mini-link--enter {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #08111D;
  box-shadow: 0 10px 24px rgba(255, 106, 43, 0.28);
}

.mini-link--enter:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--jade);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  animation: pulse-jade 2.4s ease-out infinite;
}

@keyframes pulse-jade {
  0% { box-shadow: 0 0 0 0 rgba(47, 214, 166, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(47, 214, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 214, 166, 0); }
}

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 106, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0); }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  margin-top: clamp(60px, 9vw, 120px);
  border-top: 1px solid var(--edge);
  background: var(--ink-800);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--pad) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
}

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

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-title + .footer-links { margin-bottom: 24px; }

.footer-brand-name {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer-note {
  max-width: 30em;
  margin: 10px 0 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--steel);
}

.footer-meta {
  display: grid;
  gap: 9px;
}

.footer-meta li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--steel);
}

.meta-key {
  flex: 0 0 46px;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--jade);
}

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

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--white);
  transition: color 0.18s ease;
}

.footer-links a:hover { color: var(--orange-soft); }

.footer-col--snapshot {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--ink-700);
  box-shadow: var(--shadow-hard);
}

.snapshot-list {
  display: grid;
  gap: 2px;
}

.snapshot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(42, 69, 96, 0.7);
}

.snapshot-item:last-child { border-bottom: 0; }

.snapshot-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.18s ease;
}

.snapshot-link:hover { color: var(--orange-soft); }

.snapshot-state {
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.state-jade { color: var(--jade); background: rgba(47, 214, 166, 0.1); }
.state-amber { color: var(--amber); background: rgba(255, 200, 87, 0.1); }
.state-orange { color: var(--orange-soft); background: rgba(255, 155, 102, 0.1); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 20px;
  border-top: 1px solid rgba(42, 69, 96, 0.72);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--steel);
}

/* ---------- 14. Scroll progress & to-top ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--jade));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 120;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: rgba(12, 27, 46, 0.95);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease,
    visibility 0.22s ease, color 0.2s ease, border-color 0.2s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--jade);
  color: var(--jade);
}

/* ---------- 15. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal][data-shown] {
  opacity: 1;
  transform: none;
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-col--snapshot { grid-column: 1 / -1; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }

  .nav-capsule {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--pad);
    right: var(--pad);
    z-index: 95;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-left: 0;
    padding: 16px;
    border-radius: 20px;
    background: #0C1B2E;
    box-shadow: var(--shadow-float);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .nav-capsule[data-open] { display: flex; }

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

  .nav-link {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  .header-mini {
    flex-wrap: wrap;
    margin-left: 0;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--edge);
  }

  .brand-sub { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .snapshot-item {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---------- 17. Reduced motion ---------- */
@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;
  }

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