/* ==========================================================================
   博鱼指南 · 共享外壳 Site Kit  /assets/site.css
   深海信号台：左侧品牌轨道 + 悬浮胶囊导航 + 海床页脚
   ========================================================================== */

/* ---------- 0. 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, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ---------- 1. Tokens ---------- */
:root {
  --sea-deep: #071E31;
  --sea-blue: #0B2E4A;
  --signal: #12D6C0;
  --coral: #FF6B4A;
  --mist: #F2F5F7;
  --cream: #FBF7F0;
  --ink: #2A2320;
  --slate: #5A7183;
  --shoal: #B8EEE7;
  --amber: #C9861A;
  --line: #D7DEE4;

  --rail-w: 76px;
  --head-h: 74px;
  --r-s: 6px;
  --r-m: 16px;
  --r-l: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 0 rgba(42, 35, 32, .05), 0 8px 22px rgba(11, 46, 74, .07);
  --sh-2: 0 16px 38px rgba(7, 30, 49, .14);
  --sh-3: 0 26px 60px rgba(7, 30, 49, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Source Han Sans SC Heavy", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 2. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--mist);
  background-image:
    radial-gradient(1180px 560px at 86% -8%, rgba(18, 214, 192, .10), transparent 62%),
    radial-gradient(900px 520px at -8% 14%, rgba(255, 107, 74, .07), transparent 66%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.26;
  color: var(--sea-blue);
}
h1 { font-size: clamp(30px, 4.2vw, 40px); }
h2 { font-size: clamp(23px, 2.6vw, 28px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { font-size: 16px; line-height: 1.75; }
strong { font-weight: 700; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }
#main-content { display: block; }

::selection { background: var(--shoal); color: var(--sea-deep); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.site-foot :focus-visible { outline-color: var(--coral); }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.wrap--wide { max-width: 1340px; }
.section { padding: clamp(34px, 5vw, 64px) 0; }
.section--tight { padding: clamp(20px, 3vw, 34px) 0; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--75 { grid-template-columns: 7fr 5fr; align-items: start; }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--75 { grid-template-columns: 1fr; }
}

/* ---------- 4. Label / Button / Crumbs / Prose ---------- */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--signal); }
.label--coral::before { background: var(--coral); }
.label--amber::before { background: var(--amber); }
.label--flat { background: transparent; border-style: dashed; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(255, 107, 74, .28); }
.btn--coral:hover { background: #FF7E60; }
.btn--signal { background: var(--signal); color: #06364A; box-shadow: 0 10px 24px rgba(18, 214, 192, .28); }
.btn--signal:hover { background: #2BE4D0; }
.btn--ghost { background: var(--cream); color: var(--sea-blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--signal); box-shadow: var(--sh-1); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--slate);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--slate); opacity: .55; }
.crumbs a { color: var(--sea-blue); border-bottom: 1px dashed var(--line); }
.crumbs a:hover { border-bottom-color: var(--signal); }
.crumbs [aria-current="page"] { color: var(--coral); }

.prose { max-width: 46em; }
.prose p { max-width: 42em; margin: 0 0 1.05em; }
.prose h2 { margin: 1.7em 0 .6em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; max-width: 42em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--signal); }
.prose ol { list-style: decimal; }
.prose a { color: var(--sea-blue); border-bottom: 1px solid var(--signal); }
.prose a:hover { color: var(--coral); border-bottom-color: var(--coral); }

/* ---------- 5. Card / Steps / Notice / Media / Fold / Tabs / Table ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.card--link:hover, .card--link:focus-visible { transform: translateY(-4px); border-color: var(--signal); box-shadow: var(--sh-2); }
.card[data-open="true"] { border-color: var(--signal); }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--sea-blue); }
.card-text { font-size: 15px; color: var(--slate); max-width: 40em; }
.card-index {
  display: none; flex-direction: column; gap: 6px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--slate);
}
.card[data-open="true"] .card-index { display: flex; }

.steps { padding: 0; }
.step { position: relative; padding: 2px 0 30px 74px; }
.step::before {
  content: ""; position: absolute; left: 26px; top: 36px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--line), rgba(215, 222, 228, .2));
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 54px; height: 34px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--signal);
  transition: background-color .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
}
.step[data-state="done"] .step-num { background: var(--shoal); border-color: var(--signal); color: #06364A; }
.step[data-state="current"] .step-num { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 74, .3); }
.step-title { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--sea-blue); }
.step p { max-width: 42em; margin: 0 0 .6em; }
@media (max-width: 560px) {
  .step { padding-left: 58px; }
  .step::before { left: 21px; }
  .step-num { width: 44px; height: 30px; font-size: 11px; }
}

.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  font-size: 15px;
}
.notice-mark {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--slate);
  border-right: 1px dashed var(--line);
  padding-right: 12px;
}
.notice--tip { background: rgba(184, 238, 231, .34); border-color: rgba(18, 214, 192, .5); }
.notice--tip .notice-mark { color: #0A7F73; border-color: rgba(18, 214, 192, .4); }
.notice--warn { background: rgba(201, 134, 26, .07); border-color: rgba(201, 134, 26, .5); color: #6B4708; }
.notice--warn .notice-mark { color: var(--amber); border-color: rgba(201, 134, 26, .35); }

.media-figure { margin: 0; display: flex; flex-direction: column; }
.media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--sea-blue), var(--sea-deep));
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(184, 238, 231, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 238, 231, .14) 1px, transparent 1px);
  background-size: 28px 28px;
}
.media--plate { aspect-ratio: 4 / 3; }
.media--tall { aspect-ratio: 3 / 4; }
.media--frame { border-color: rgba(18, 214, 192, .55); box-shadow: 0 0 0 3px rgba(18, 214, 192, .14); }
.media-cap { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--slate); }

.fold { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.fold + .fold { margin-top: 10px; }
.fold-sum { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; color: var(--sea-blue); }
.fold-sum:hover { background: rgba(184, 238, 231, .35); }
.fold-mark { margin-left: auto; font-family: var(--font-mono); font-size: 15px; color: var(--signal); transition: transform .24s var(--ease), color .24s var(--ease); }
.fold[open] .fold-mark { transform: rotate(45deg); color: var(--coral); }
.fold-body { padding: 14px 18px 18px; border-top: 1px dashed var(--line); animation: foldIn .24s var(--ease) both; }
@keyframes foldIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  width: max-content; max-width: 100%;
  padding: 6px;
  background: rgba(215, 222, 228, .42);
  border-radius: var(--r-pill);
}
.tab {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--slate);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--sea-blue); }
.tab[aria-selected="true"] { background: var(--cream); color: var(--sea-blue); border-color: var(--line); box-shadow: var(--sh-1); }
[data-panel][hidden] { display: none; }

.table-index {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--cream);
  font-size: 15px;
}
.table-index th, .table-index td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table-index thead th {
  background: var(--shoal); color: #06364A;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.table-index tbody tr:last-child td { border-bottom: 0; }
.table-index tbody tr:hover { background: rgba(184, 238, 231, .28); }

.status-dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--slate); box-shadow: 0 0 0 3px rgba(90, 113, 131, .22);
}
.status-dot.is-live { background: var(--signal); box-shadow: 0 0 0 3px rgba(18, 214, 192, .22); }
.status-dot.is-warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(201, 134, 26, .22); }
.status-dot.is-idle { background: var(--slate); }

/* ---------- 6. Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease) var(--reveal-delay, 0ms), transform .5s var(--ease) var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.has-js) [data-reveal] { opacity: 1; transform: none; }

/* ---------- 7. Skip link ---------- */
.skip-link {
  position: fixed; left: 50%; top: 8px; z-index: 120;
  transform: translate(-50%, -180%);
  padding: 10px 18px;
  background: var(--sea-blue); color: var(--shoal);
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- 8. Header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; padding: 12px 0 10px; }
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(242, 245, 247, .98) 0%, rgba(242, 245, 247, .88) 60%, rgba(242, 245, 247, 0) 100%);
}
.head-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.head-progress-bar {
  display: block; width: 100%; height: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal), var(--coral));
  transition: transform .12s linear;
}

.head-deck {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(10px, 2vw, 28px);
  width: 100%; max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.6vw, 34px);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: max-width .32s var(--ease), gap .32s var(--ease), padding .32s var(--ease),
              background-color .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease);
}
.site-head[data-scrolled="true"] .head-deck {
  max-width: 1080px; gap: 0; padding: 0;
  background: rgba(251, 247, 240, .95);
  border-color: var(--line);
  box-shadow: var(--sh-2);
  backdrop-filter: blur(10px);
}

.head-capsule {
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 8px 18px;
  background: rgba(251, 247, 240, .93);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
  backdrop-filter: blur(8px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.head-capsule--brand { padding-right: 20px; }
.head-capsule--nav { padding-left: 12px; }
.site-head[data-scrolled="true"] .head-capsule {
  background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none;
  padding: 8px 20px;
}
.site-head[data-scrolled="true"] .head-capsule--nav {
  border-left-color: var(--line);
  padding-right: 14px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--sea-blue); }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--sea-blue), #0E4468);
  color: var(--signal);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(18, 214, 192, .45);
}
.brand-words { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--slate); }

.coord {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--slate);
  white-space: nowrap;
}
.head-signal {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(18, 214, 192, .16);
  animation: signalPulse 2.6s var(--ease) infinite;
}
@keyframes signalPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.84); }
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  color: var(--sea-blue);
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
  background: var(--signal);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .26s var(--ease);
}
.nav-link:hover { background: rgba(184, 238, 231, .5); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { background: var(--shoal); color: #06364A; }
.nav-link[aria-current="page"]::after { display: none; }
.nav-link[aria-current="page"]::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 74, .2);
}

.nav-route {
  display: none; align-items: center; gap: 8px;
  margin-left: 8px; padding: 8px 14px 8px 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--sea-blue);
}
.site-head[data-scrolled="true"] .nav-route { display: inline-flex; }
.nav-route-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 74, .16); }
.nav-route:hover { color: var(--coral); }

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  padding: 9px 15px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--sea-blue);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] { background: var(--sea-blue); color: var(--shoal); border-color: var(--sea-blue); }
.nav-bars { display: grid; gap: 3px; width: 16px; }
.nav-bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle-words { display: inline-flex; }
.t-close { display: none; }
.nav-toggle[aria-expanded="true"] .t-open { display: none; }
.nav-toggle[aria-expanded="true"] .t-close { display: inline; }

/* ---------- 9. Brand rail ---------- */
.rail { display: none; }
.rail-cap, .rail-word, .rail-coord { font-family: var(--font-mono); }

@media (min-width: 1240px) {
  body { padding-left: var(--rail-w); }
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 55;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    width: var(--rail-w);
    padding: 20px 0 22px;
    background: linear-gradient(180deg, var(--sea-blue), var(--sea-deep) 68%, #051724);
    border-right: 1px solid rgba(18, 214, 192, .22);
    overflow: hidden;
  }
  .rail::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(184, 238, 231, .06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(184, 238, 231, .06) 1px, transparent 1px);
    background-size: 19px 19px;
  }
  .rail-cap, .rail-line, .rail-word, .rail-dots, .rail-link, .rail-coord { position: relative; z-index: 1; }
  .rail-cap { font-size: 10px; letter-spacing: .28em; color: var(--signal); }
  .rail-line { width: 1px; height: 26px; background: linear-gradient(180deg, transparent, rgba(18, 214, 192, .6), transparent); }
  .rail-word { writing-mode: vertical-rl; font-size: 10px; letter-spacing: .34em; color: rgba(184, 238, 231, .62); }
  .rail-dots { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
  .rail-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(184, 238, 231, .22);
    box-shadow: inset 0 0 0 1px rgba(184, 238, 231, .3);
    opacity: 0;
    animation: railLight .34s var(--ease) forwards;
  }
  .rail-dot:nth-child(1) { animation-delay: .04s; }
  .rail-dot:nth-child(2) { animation-delay: .10s; }
  .rail-dot:nth-child(3) { animation-delay: .16s; }
  .rail-dot:nth-child(4) { animation-delay: .22s; }
  .rail-dot:nth-child(5) { animation-delay: .28s; }
  .rail-dot:nth-child(6) { animation-delay: .34s; }
  .rail-dot.is-on { background: var(--signal); box-shadow: 0 0 10px rgba(18, 214, 192, .7); }
  .rail-link {
    margin-top: auto;
    writing-mode: vertical-rl;
    padding: 12px 6px;
    border: 1px solid rgba(18, 214, 192, .28);
    border-radius: var(--r-s);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
    color: var(--shoal);
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  }
  .rail-link:hover { background: rgba(18, 214, 192, .16); color: #fff; border-color: var(--signal); }
  .rail-coord { writing-mode: vertical-rl; font-size: 10px; letter-spacing: .16em; color: rgba(184, 238, 231, .5); }
}
@keyframes railLight {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 10. Footer ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: linear-gradient(175deg, var(--sea-blue) 0%, var(--sea-deep) 56%, #04121E 100%);
  color: #DCE9F0;
  overflow: hidden;
}
.site-foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 238, 231, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 238, 231, .06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.foot-glow {
  position: absolute; top: -220px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 214, 192, .3), rgba(18, 214, 192, 0) 68%);
  pointer-events: none;
}
.foot-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px) 26px;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(22px, 3vw, 42px); }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col--brand { gap: 14px; max-width: 36ch; }
.foot-logo { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.foot-logo .brand-mark {
  background: linear-gradient(150deg, rgba(18, 214, 192, .24), rgba(18, 214, 192, .04));
  color: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(18, 214, 192, .5);
}
.foot-logo .brand-name { color: #fff; }
.foot-logo .brand-sub { color: rgba(184, 238, 231, .6); }
.foot-text { font-size: 15px; color: rgba(220, 233, 240, .82); }

.foot-status { display: flex; flex-direction: column; gap: 9px; }
.foot-status-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(220, 233, 240, .82); }
.foot-status-val { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: rgba(184, 238, 231, .58); }
.foot-legal { font-family: var(--font-mono); font-size: 12px; line-height: 2; letter-spacing: .06em; color: rgba(220, 233, 240, .72); }

.foot-title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--signal);
}
.foot-title::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--signal); }
.foot-list { display: flex; flex-direction: column; gap: 2px; }
.foot-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
  color: rgba(220, 233, 240, .88);
  font-size: 15px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.foot-link::before {
  content: ""; width: 6px; height: 1px; background: rgba(184, 238, 231, .5);
  transition: width .24s var(--ease), background-color .24s var(--ease);
}
.foot-link:hover { color: #fff; transform: translateX(3px); }
.foot-link:hover::before { width: 14px; background: var(--coral); }

.foot-contact { display: flex; flex-direction: column; gap: 10px; }
.foot-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 15px; }
.foot-key {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: rgba(184, 238, 231, .62);
}
.foot-value { color: #EAF4F8; word-break: break-word; }
.foot-note {
  max-width: 44ch;
  padding-left: 11px;
  border-left: 2px solid var(--amber);
  font-size: 13px; line-height: 1.7;
  color: rgba(220, 233, 240, .66);
}

.foot-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(184, 238, 231, .18);
}
.foot-copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: rgba(220, 233, 240, .68); }

.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(184, 238, 231, .06);
  border: 1px solid rgba(184, 238, 231, .32);
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--shoal);
  transition: opacity .24s var(--ease), transform .24s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.to-top[data-visible="false"] { opacity: 0; transform: translateY(6px); pointer-events: none; }
.to-top:hover { background: rgba(18, 214, 192, .18); color: #fff; }
.to-top-mark { display: inline-block; }

/* ---------- 11. Header responsive ---------- */
@media (max-width: 960px) {
  :root { --head-h: 66px; }
  .site-head { padding: 10px 0 8px; }
  .head-deck { padding: 0 12px; gap: 10px; }
  .head-capsule { min-height: 46px; padding: 7px 12px; gap: 9px; }
  .head-capsule--brand { padding-right: 13px; }
  .head-capsule--nav { padding-left: 9px; }
  .coord, .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head[data-scrolled="true"] .head-deck { padding: 0 10px; }
  .site-head[data-scrolled="true"] .head-capsule { padding: 7px 12px; }
  .site-head[data-scrolled="true"] .head-capsule--nav { padding-right: 9px; }

  .nav {
    position: fixed;
    top: calc(var(--head-h) + 10px);
    left: 12px; right: 12px;
    z-index: 70;
    display: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    max-height: calc(100vh - var(--head-h) - 30px);
    overflow-y: auto;
    padding: 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    box-shadow: var(--sh-3);
  }
  .nav[data-open="true"] { display: flex; animation: navDrop .24s var(--ease) both; }
  .nav[data-open="false"] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px dashed var(--line); }
  .nav-link { justify-content: space-between; padding: 13px 6px; border-radius: 0; font-size: 17px; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { background: transparent; color: var(--coral); }
  .nav-route { display: none; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 12. Reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .card--link:hover, .btn:hover, .foot-link:hover { transform: none; }
}

@media print {
  .site-head, .rail, .skip-link, .to-top { display: none !important; }
  body { padding-left: 0; background: #fff; }
}
