/* =========================================================
   金宝搏品牌 · 共享站点套件 /assets/site.css
   技术蓝图网格 · 左右分置导航 · 深靛蓝 + 电光青 + 琥珀金
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, 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;
  padding: 0;
  cursor: pointer;
}

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

img { height: auto; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-000: #070B14;
  --ink-100: #0E1628;
  --ink-200: #152036;
  --line: #26344D;
  --white: #FFFFFF;
  --mist: #A9B6CA;
  --cyan: #2DE2E6;
  --amber: #FFB648;
  --coral: #FF6F5E;
  --teal: #0B3B44;

  --font-head: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1320px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --header-h: 72px;

  --dur: .18s;
  --ease: cubic-bezier(.32, .72, .28, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-000);
  background-image:
    linear-gradient(to right, rgba(38, 52, 77, .30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 52, 77, .30) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan);
  color: #04121A;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -90px;
  z-index: 999;
  display: inline-block;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04121A;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid var(--cyan);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

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

.section {
  padding-block: clamp(48px, 7vw, 104px);
}

.rule {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
}

.stack > * + * { margin-top: 18px; }

/* ---------- 6. Typography utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.4;
  color: var(--cyan);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.display {
  font-family: var(--font-head);
  font-size: clamp(34px, 6.2vw, 88px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--white);
}

.headline {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.025em;
  color: var(--white);
}

.subhead {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--white);
}

.lede {
  max-width: 62ch;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--mist);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.6;
  color: rgba(169, 182, 202, .82);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover {
  background: var(--cyan);
  color: #04121A;
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--cyan);
  color: #04121A;
}

.btn--solid:hover {
  background: var(--white);
  border-color: var(--white);
  color: #04121A;
}

.btn--amber {
  border-color: var(--amber);
  color: var(--amber);
}

.btn--amber:hover {
  background: var(--amber);
  color: #1A1103;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--mist);
}

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

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 11, 20, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌区 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cyan);
  background: linear-gradient(140deg, rgba(45, 226, 230, .20), rgba(45, 226, 230, 0) 68%);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.brand-mark:hover .brand-glyph {
  background: var(--cyan);
  color: #04121A;
}

.brand-name {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
  white-space: nowrap;
}

.brand-version {
  padding: 3px 9px;
  border: 1px solid rgba(255, 182, 72, .45);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* 导航 */
.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .9vw, 10px);
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px 9px;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-link::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--line);
  transition: color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--white);
  border-bottom-color: rgba(45, 226, 230, .55);
}

.nav-link:hover::before { color: var(--mist); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-link[aria-current="page"]::before { color: var(--cyan); }

/* 末端悬浮索引按钮 */
.header-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(45, 226, 230, .48);
  background: rgba(11, 59, 68, .40);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(45, 226, 230, .85);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header-index:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121A;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--ink-100);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.2;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: top var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.site-header[data-open] .nav-toggle {
  color: var(--cyan);
  border-color: var(--cyan);
}

.site-header[data-open] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(45, 226, 230, .10);
  overflow: hidden;
  pointer-events: none;
}

.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: transform .1s linear;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 132px);
  background: var(--ink-100);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  display: block;
  height: 14px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  opacity: .9;
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 66px) var(--gutter) 0;
}

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

.footer-ident { display: block; }

.footer-wordmark {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}

.footer-wordmark:hover { color: var(--cyan); }

.footer-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: rgba(169, 182, 202, .7);
}

.footer-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 182, 72, .45);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

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

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

.footer-col-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  color: var(--cyan);
}

.footer-list li + li { margin-top: 8px; }

.footer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.footer-link:hover { color: var(--white); }

.footer-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: rgba(169, 182, 202, .52);
}

.footer-link:hover .footer-num { color: var(--cyan); }

.footer-list--contact li + li { margin-top: 12px; }

.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  line-height: 1.4;
  color: rgba(169, 182, 202, .58);
}

.footer-value {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  word-break: break-word;
}

.footer-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(169, 182, 202, .72);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(169, 182, 202, .74);
}

.footer-copy { color: rgba(169, 182, 202, .9); }

.footer-legal { color: var(--amber); }

.footer-domain { color: rgba(45, 226, 230, .8); }

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  line-height: 1.5;
  color: rgba(169, 182, 202, .7);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb a { transition: color var(--dur) var(--ease); }

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

.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 11. Panel ---------- */
.panel {
  position: relative;
  display: block;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-200);
  border: 1px solid var(--line);
}

.panel::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  pointer-events: none;
}

/* ---------- 12. Index list ---------- */
.index-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.index-item { background: var(--ink-100); }

.index-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.5;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.index-link:hover {
  background: var(--ink-200);
  color: var(--white);
}

.index-link[aria-current] {
  background: var(--ink-200);
  color: var(--cyan);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.index-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--amber);
}

/* ---------- 13. Chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(21, 32, 54, .7);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.5;
}

.chip--cyan {
  border-color: rgba(45, 226, 230, .5);
  color: var(--cyan);
}

.chip--amber {
  border-color: rgba(255, 182, 72, .45);
  color: var(--amber);
}

/* ---------- 14. Media frames ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--ink-200);
  border: 1px solid var(--line);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(45, 226, 230, .13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 226, 230, .13) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .55;
  mix-blend-mode: screen;
}

.media--wide { aspect-ratio: 16 / 8; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: rgba(169, 182, 202, .78);
}

/* ---------- 15. Reveal ---------- */
[data-reveal] {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

html.js [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

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

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .brand-version { display: none; }
}

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

  .header-index { display: none; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    background: var(--ink-100);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -24px #000000;
  }

  .site-header[data-open] .primary-nav { display: block; }

  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 14px var(--gutter) 18px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list::-webkit-scrollbar { height: 3px; }
  .nav-list::-webkit-scrollbar-thumb { background: var(--line); }

  .nav-link {
    padding: 9px 14px;
    border: 1px solid var(--line);
    background: var(--ink-200);
    scroll-snap-align: start;
  }

  .nav-link::before { color: rgba(169, 182, 202, .6); }

  .nav-link[aria-current="page"] {
    background: rgba(45, 226, 230, .10);
    border-color: var(--cyan);
  }

  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 520px) {
  :root { --header-h: 64px; }

  .brand-glyph { width: 30px; height: 30px; font-size: 11.5px; }

  .nav-toggle-text { display: none; }

  .nav-toggle { padding: 10px 12px; }

  .footer-cols { grid-template-columns: 1fr; }

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

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  html.js [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}
