/* ==========================================================
   必博BIBO · 共享样式表 /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: 120px;
}

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --c-space: #0A1626;
  --c-graphite: #14181D;
  --c-panel: #1B2A3A;
  --c-orange: #FF5A1F;
  --c-lime: #C7F24A;
  --c-paper: #E7D8AE;
  --c-gray: #8B95A3;
  --c-white: #F5F2EC;
  --c-blue: #3D7BFF;
  --c-error: #D9432F;

  --text: #E9EEF4;
  --text-soft: #B4BFCC;
  --text-muted: #8B95A3;

  --line: rgba(139, 149, 163, .30);
  --line-soft: rgba(139, 149, 163, .16);
  --line-strong: rgba(139, 149, 163, .55);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --shell: 1280px;
  --gutter: 20px;
  --cut: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 420ms;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 44px; } }

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-space);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(61, 123, 255, .10), transparent 62%),
    radial-gradient(900px 460px at 92% 4%, rgba(255, 90, 31, .07), transparent 66%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1200px) { body { font-size: 17px; } }

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

.btn:focus-visible,
.copy-chip:focus-visible,
.dock__top:focus-visible,
.nav-toggle:focus-visible {
  clip-path: none;
}

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

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.grid-12 { display: grid; gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-12 > * { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 1200px) {
  .grid-12 > .span-2 { grid-column: span 2; }
  .grid-12 > .span-3 { grid-column: span 3; }
  .grid-12 > .span-4 { grid-column: span 4; }
  .grid-12 > .span-5 { grid-column: span 5; }
  .grid-12 > .span-6 { grid-column: span 6; }
  .grid-12 > .span-7 { grid-column: span 7; }
  .grid-12 > .span-8 { grid-column: span 8; }
  .grid-12 > .span-9 { grid-column: span 9; }
  .grid-12 > .span-12 { grid-column: span 12; }
}

.grid-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(139, 149, 163, .10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 149, 163, .09) 1px, transparent 1px);
  background-size: 96px 96px;
}

.grid-layer--strong { opacity: 1.35; }

@media (max-width: 767px) {
  .grid-layer { background-size: 48px 48px; }
}

/* ---------- 5. Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--c-white);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--c-white);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--c-gray);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.72;
  color: var(--text-soft);
}

.prose { max-width: 68ch; color: #D3DBE4; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.02em; color: var(--c-white); }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-lime); }
.prose strong { color: var(--c-white); }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--c-gray);
}

.code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .84em;
  font-weight: 500;
  padding: 1px 6px;
  color: var(--c-paper);
  background: rgba(231, 216, 174, .12);
  border: 1px solid rgba(231, 216, 174, .30);
  border-radius: 3px;
}

/* ---------- 6. Section head / dividers ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: clamp(20px, 2.6vw, 34px);
}

.section-head__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--c-orange);
}

.section-head__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -.02em;
  color: var(--c-white);
}

.rule {
  position: relative;
  height: 1px;
  border: 0;
  background: linear-gradient(to right, var(--line) 0 calc(100% - 44px), transparent calc(100% - 44px));
}

.rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -1px;
  width: 44px;
  height: 3px;
  background: repeating-linear-gradient(115deg, var(--c-orange) 0 5px, transparent 5px 10px);
}

/* ---------- 7. Buttons / tags / chips ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .88rem;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

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

.btn--primary { --btn-bg: var(--c-orange); --btn-fg: #0A1626; --btn-bd: var(--c-orange); }
.btn--primary:hover { --btn-bg: #FF7A45; --btn-bd: #FF7A45; }

.btn--ghost { --btn-bg: rgba(245, 242, 236, .04); --btn-fg: var(--c-white); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-fg: var(--c-lime); --btn-bd: var(--c-lime); }

.btn--lime { --btn-bg: var(--c-lime); --btn-fg: #0A1626; --btn-bd: var(--c-lime); }
.btn--lime:hover { --btn-bg: #D6F96A; --btn-bd: #D6F96A; }

.btn--sm { padding: 8px 14px; font-size: .8rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .42em .62em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .7rem;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--c-gray);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.tag--version { color: #10161F; background: var(--c-paper); border-color: var(--c-paper); }
.tag--paper { color: var(--c-paper); border-color: rgba(231, 216, 174, .45); }
.tag--lime { color: #10161F; background: var(--c-lime); border-color: var(--c-lime); }
.tag--signal { color: var(--c-orange); border-color: rgba(255, 90, 31, .55); }
.tag--warn { color: var(--c-error); border-color: rgba(217, 67, 47, .55); background: rgba(217, 67, 47, .10); }

.copy-chip {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}

.copy-chip:hover,
.copy-chip[data-copied] {
  color: #0A1626;
  background: var(--c-lime);
  border-color: var(--c-lime);
}

/* ---------- 8. Panels / media / lists ---------- */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(160deg, rgba(27, 42, 58, .90), rgba(20, 24, 29, .92));
  border: 1px solid var(--line-soft);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.panel:hover { border-color: rgba(255, 90, 31, .85); }

.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #10203A 0%, var(--c-space) 55%, #0D1622 100%);
  border: 1px solid var(--line-soft);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px),
                     calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 16px 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--c-paper);
  background: linear-gradient(0deg, rgba(10, 22, 38, .92), rgba(10, 22, 38, 0));
}

.media-frame--21x9 { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--3x2 { aspect-ratio: 3 / 2; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

@media (max-width: 767px) {
  .media-frame--21x9 { aspect-ratio: 16 / 9; }
}

.list-check { list-style: none; display: grid; gap: 10px; }

.list-check li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 10px;
  border: 1px solid var(--c-lime);
  transform: rotate(45deg);
}

.datalist { border-top: 1px solid var(--line-soft); }

.datalist__row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  gap: 10px 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
  color: var(--text-soft);
}

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--c-gray);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(139, 149, 163, .5);
}

.breadcrumb a { color: inherit; transition: color .16s var(--ease); }
.breadcrumb a:hover { color: var(--c-lime); }
.breadcrumb [aria-current="page"] { color: var(--c-paper); }

/* ---------- 10. Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 11. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: #0A1626;
  background: var(--c-lime);
  border-radius: 0 0 8px 8px;
  transition: top .2s var(--ease);
}

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

/* ---------- 12. Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 22, 38, .98), rgba(10, 22, 38, .93));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.masthead .grid-layer { opacity: .6; }

.masthead__inner { position: relative; z-index: 1; }

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px dashed var(--line-soft);
}

.masthead__version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.masthead__brand { padding: 15px 0 6px; text-align: center; }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: opacity .18s var(--ease);
}

.brand:hover { opacity: .88; }

.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: .04em;
  color: var(--c-white);
}

.brand__latin {
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--c-orange);
  border: 1px solid rgba(255, 90, 31, .5);
}

.brand__line {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--c-gray);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav-toggle__bars { position: relative; width: 16px; height: 10px; flex: none; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease), top .22s var(--ease);
}

.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] { color: var(--c-lime); border-color: var(--c-lime); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.site-nav { position: relative; z-index: 1; padding-bottom: 6px; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 30px;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  background: var(--c-orange);
  transform: scaleX(0);
  transition: transform .22s var(--ease);
}

.site-nav__link:hover { color: var(--c-white); }
.site-nav__link:hover::after { transform: scaleX(.5); }
.site-nav__link[aria-current="page"] { color: var(--c-white); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.masthead__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.masthead__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-orange) 55%, var(--c-lime));
}

/* 紧凑态：≥768px 收成窄条 */
@media (min-width: 768px) {
  .masthead[data-compact] .masthead__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 28px;
    padding-block: 8px;
  }

  .masthead[data-compact] .masthead__bar { display: contents; }
  .masthead[data-compact] .masthead__version { display: none; }

  .masthead[data-compact] .masthead__brand {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    text-align: left;
  }

  .masthead[data-compact] .brand__line { display: none; }
  .masthead[data-compact] .brand__mark { font-size: 1.35rem; }

  .masthead[data-compact] .site-nav {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 0;
  }

  .masthead[data-compact] .site-nav__list { justify-content: flex-end; }

  .masthead[data-compact] .masthead__actions { grid-column: 3; grid-row: 1; }
}

/* 移动端 */
@media (max-width: 767px) {
  .masthead__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
    padding-block: 10px;
  }

  .masthead__bar {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-block: 0 10px;
    margin-bottom: 10px;
  }

  .masthead__version { display: none; }
  .masthead__actions { flex-wrap: wrap; }

  .masthead__brand {
    grid-column: 1;
    padding: 0;
    text-align: left;
  }

  .brand__line {
    margin-top: 2px;
    font-size: .64rem;
    letter-spacing: .1em;
  }

  .nav-toggle { grid-column: 2; display: inline-flex; }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    padding: 8px 0 14px;
    border-top: 1px dashed var(--line-soft);
    margin-top: 12px;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item { border-bottom: 1px solid var(--line-soft); }
  .site-nav__item:last-child { border-bottom: 0; }

  .site-nav__link {
    display: block;
    padding: 13px 2px;
    font-size: .98rem;
  }

  .site-nav__link::after {
    left: 2px;
    bottom: 8px;
    width: 20px;
    margin-left: 0;
  }
}

/* ---------- 13. Footer ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: clamp(48px, 6vw, 76px);
  background: linear-gradient(180deg, #0D1A2B 0%, var(--c-graphite) 78%, #101418 100%);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.site-foot .grid-layer { opacity: .55; }

.site-foot__inner { position: relative; z-index: 1; }

.site-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 900px) {
  .site-foot__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr); gap: 56px; }
}

.site-foot__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--c-white);
}

.site-foot__latin {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--c-orange);
}

.site-foot__intro {
  max-width: 42ch;
  margin-top: 12px;
  font-size: .94rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.site-foot__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.site-foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 24px;
}

.foot-col__title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -.01em;
  color: var(--c-white);
}

.foot-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: var(--c-orange);
}

.foot-col__list { list-style: none; display: grid; gap: 9px; }

.foot-col__list a {
  display: inline-block;
  font-size: .9rem;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), transform .16s var(--ease);
}

.foot-col__list a:hover { color: var(--c-lime); transform: translateX(3px); }

.site-foot__contact {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.site-foot__contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

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

.site-foot__note { font-size: .84rem; color: var(--text-muted); }

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--c-gray);
}

.site-foot__legal, .site-foot__icp { font-family: inherit; }

/* ---------- 14. Bottom dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(20, 24, 29, .95), rgba(10, 22, 38, .99));
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), visibility 320ms linear;
}

.dock[data-visible] { transform: none; opacity: 1; visibility: visible; }

.dock__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-block: 11px;
}

.dock__label { font-size: .68rem; letter-spacing: .16em; color: var(--c-gray); }

.dock__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  flex: 1 1 200px;
}

.dock__list a {
  font-size: .85rem;
  color: var(--text-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.dock__list a:hover { color: var(--c-lime); border-bottom-color: var(--c-lime); }

.dock__actions { display: flex; gap: 8px; }

.dock__top {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.dock__top:hover { color: var(--c-lime); border-color: var(--c-lime); }

@media (max-width: 767px) {
  .dock__label { display: none; }
  .dock__list { gap: 6px 14px; font-size: .8rem; }
}

/* ---------- 15. 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;
  }

  .reveal { opacity: 1; transform: none; transition-delay: 0ms !important; }

  .btn:hover,
  .foot-col__list a:hover { transform: none; }
}
