/* ==========================================================================
   金宝搏指南 — 共享样式 /assets/site.css
   堆叠面板 · 版本控制台 · 近单色 + 金色能量
   ========================================================================== */

:root {
  --gold: #F2B705;
  --gold-deep: #9A6B00;
  --ink: #0E1B2C;
  --panel-2: #17293F;
  --steel: #24405C;
  --celadon: #2FBF9B;
  --paper: #F6F2E7;
  --sand: #E4DCC8;
  --grey-blue: #8B98AB;
  --ink-black: #10161F;
  --cinnabar: #D2543F;

  --bg: var(--ink);
  --bg-alt: var(--panel-2);
  --fg: var(--paper);
  --fg-dim: var(--grey-blue);
  --line: rgba(228, 220, 200, 0.16);
  --line-strong: rgba(242, 183, 5, 0.42);

  --font-body: "Noto Sans SC", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-head: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;

  --maxw: 1280px;
  --maxw-narrow: 940px;
  --gutter: 24px;
  --gap: 24px;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-panel: 0 20px 50px -28px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-h: 84px;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 620px at 78% -10%, rgba(47, 191, 155, 0.09), transparent 62%),
    radial-gradient(900px 520px at 8% 0%, rgba(242, 183, 5, 0.08), transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; }

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd15c; }

button { font: inherit; color: inherit; }

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

::selection { background: rgba(242, 183, 5, 0.32); color: #fff; }

/* --------------------------- skip link --------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* --------------------------- containers -------------------------------- */
.container,
.container-wide {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container { max-width: var(--maxw-narrow); }

/* --------------------------- typography -------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.display-num {
  font-family: "Barlow Condensed", "Oswald", var(--font-head);
  font-weight: 700;
  font-size: clamp(64px, 11vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.prose { max-width: 42em; font-size: 17px; line-height: 1.85; }
.prose p { max-width: 42ch; }

/* ---------------------------- buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #ffd15c;
  color: var(--ink);
  box-shadow: 0 10px 26px -14px rgba(242, 183, 5, 0.9);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(228, 220, 200, 0.34);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(242, 183, 5, 0.08);
}
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------------------------- header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 27, 44, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--celadon), var(--gold));
  transition: transform 80ms linear;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding-block: 12px;
}

/* brand */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 6px 10px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(16, 22, 31, 0.16);
}
.brand-mark:hover { background: #ffd15c; }
.brand-mark-version {
  font-family: "Barlow Condensed", "Oswald", var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--paper);
  white-space: nowrap;
}
.brand-sub {
  color: var(--grey-blue);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

/* index strip */
.index-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 41, 63, 0.58);
}
.index-strip-label,
.index-strip-snapshot {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey-blue);
  white-space: nowrap;
}
.index-strip-snapshot { color: var(--celadon); }
.index-strip-track {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 183, 5, 0.5) transparent;
  -webkit-overflow-scrolling: touch;
}
.index-strip-track::-webkit-scrollbar { height: 4px; }
.index-strip-track::-webkit-scrollbar-thumb { background: rgba(242, 183, 5, 0.45); border-radius: 2px; }

.index-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.4;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.index-cell-num {
  font-size: 11px;
  color: var(--gold);
  border-bottom: 1px solid rgba(242, 183, 5, 0.55);
}
.index-cell:hover,
.index-cell:focus-visible {
  background: rgba(242, 183, 5, 0.1);
  border-color: var(--line-strong);
  color: var(--gold);
}

/* nav */
.header-nav { min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { list-style: none; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #cfd8e3;
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(255, 255, 255, 0.05); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--celadon);
}

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  padding: 0;
  background: rgba(23, 41, 63, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 180ms var(--ease), opacity 140ms var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.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); }

/* --------------------------- panels ------------------------------------ */
.panel {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}
.panel-solid { background: var(--ink); }
.panel-glass {
  background: rgba(23, 41, 63, 0.62);
  border: 1px solid rgba(228, 220, 200, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-body { padding: 24px; }

/* status + tags */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-blue);
  flex: 0 0 auto;
}
.status-dot--ok { background: var(--celadon); box-shadow: 0 0 0 3px rgba(47, 191, 155, 0.16); }
.status-dot--warn { background: var(--cinnabar); box-shadow: 0 0 0 3px rgba(210, 84, 63, 0.16); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.tag--ok { color: var(--celadon); border-color: rgba(47, 191, 155, 0.45); background: rgba(47, 191, 155, 0.1); }
.tag--warn { color: #f0a294; border-color: rgba(210, 84, 63, 0.45); background: rgba(210, 84, 63, 0.1); }

/* ---------------------------- grid ------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ------------------------- breadcrumbs --------------------------------- */
.breadcrumbs { padding-block: 18px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey-blue);
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(139, 152, 171, 0.65);
}
.breadcrumb-item a { color: var(--grey-blue); }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-item[aria-current="page"] { color: var(--paper); }

/* --------------------------- media frames ------------------------------ */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 64, 92, 0.85), rgba(23, 41, 63, 0.95)),
    repeating-linear-gradient(0deg, rgba(228, 220, 200, 0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(228, 220, 200, 0.06) 0 1px, transparent 1px 28px);
  aspect-ratio: 16 / 10;
}
.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey-blue);
}

/* ---------------------------- route bar -------------------------------- */
.route-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(23, 41, 63, 0.55);
}
.route-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.route-step .mono { color: var(--gold); }
.route-arrow { color: var(--grey-blue); font-family: var(--font-mono); }

/* --------------------------- back to index ----------------------------- */
.back-to-index {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(14, 27, 44, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.back-to-index:hover { background: var(--gold); color: var(--ink); }

/* ----------------------------- reveal ---------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ----------------------------- footer ---------------------------------- */
.site-footer {
  margin-top: 80px;
  background: #0A1420;
  border-top: 1px solid var(--line-strong);
  color: var(--paper);
}
.footer-inner { padding-block: 56px 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 40px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-col { min-width: 0; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.brand-lockup--footer { flex-wrap: wrap; }
.footer-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey-blue);
  max-width: 34ch;
}
.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-link {
  color: #c6d0dc;
  font-size: 14px;
  line-height: 1.6;
  transition: color 160ms var(--ease);
}
.footer-link:hover { color: var(--gold); }
.footer-link--inline { font-size: 13px; }

.footer-contact .footer-list { gap: 8px; }
.copy-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 4px 6px;
  margin-left: -6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  color: #c6d0dc;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.copy-line:hover { background: rgba(242, 183, 5, 0.08); border-color: var(--line-strong); color: var(--paper); }
.copy-line-label {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(242, 183, 5, 0.35);
  border-radius: 2px;
  padding: 1px 5px;
}
.copy-line-value { min-width: 0; }
.copy-line.is-copied { color: var(--celadon); border-color: rgba(47, 191, 155, 0.5); background: rgba(47, 191, 155, 0.08); }
.footer-hours { margin-top: 14px; font-size: 12px; }

.footer-baseline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 22px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey-blue);
}
.footer-meta .mono { font-size: 11px; color: var(--grey-blue); }
.footer-meta--right { gap: 12px; }
.footer-meta-sep { color: rgba(139, 152, 171, 0.5); }

/* --------------------------- responsive -------------------------------- */
@media (max-width: 1180px) {
  .index-strip { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-nav { justify-self: end; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    gap: 10px 16px;
    padding-block: 12px;
  }
  .brand-lockup { grid-area: brand; }
  .nav-toggle { grid-area: toggle; display: inline-flex; justify-self: end; }
  .header-nav {
    grid-area: nav;
    display: none;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .site-header[data-open="true"] .header-nav { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    display: block;
    padding: 12px 12px;
    font-size: 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
  }
  .nav-link::after { left: 12px; right: auto; width: 26px; bottom: 7px; }
  .nav-link[aria-current="page"] { background: rgba(242, 183, 5, 0.08); border-color: rgba(242, 183, 5, 0.24); }
  .nav-link[aria-current="page"]::before { top: 50%; right: 12px; transform: translateY(-50%); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
    grid-column: span 12;
  }
  .grid-12 { gap: 18px; }
  .display-num { font-size: clamp(56px, 18vw, 86px); }
  .panel-body { padding: 18px; }
  .panel-head { padding: 14px 18px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 40px 22px; }
  .site-footer { margin-top: 56px; }
  .footer-baseline { flex-direction: column; align-items: flex-start; }
  .back-to-index { right: 10px; bottom: 12px; padding: 9px 13px; font-size: 11px; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .brand-mark { min-width: 52px; padding: 5px 8px; }
  .brand-mark-version { font-size: 17px; }
  .brand-name { font-size: 15px; }
  .btn { width: 100%; justify-content: space-between; }
}

/* ------------------------- reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress-fill { transition: none; }
}
