/* ============ 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, figcaption, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; 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; }

/* ============ 1. Tokens ============ */
:root {
  --ink-900: #070B14;
  --ink-850: #0B1220;
  --ink-800: #101A2C;
  --ink-700: #16233A;
  --cyan: #37F5E4;
  --cyan-ink: #061015;
  --lava: #FF6B35;
  --lava-ink: #1A0902;
  --violet: #9B5CFF;
  --rock: #8A95A6;
  --paper: #E6EBEF;
  --paper-ink: #0B1220;
  --fog: #F2F5F7;
  --clay: #D8CDBB;
  --moss: #6F8F6A;
  --moss-soft: #B9D3B4;

  --line: rgba(230, 235, 239, 0.14);
  --line-strong: rgba(230, 235, 239, 0.26);

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --header-h: 74px;
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
}

/* ============ 2. Base / 中文排版 ============ */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(60vw 42vw at 84% -10%, rgba(55, 245, 228, 0.10), transparent 70%),
    radial-gradient(52vw 40vw at 2% 4%, rgba(155, 92, 255, 0.10), transparent 72%),
    radial-gradient(70vw 50vw at 50% 108%, rgba(255, 107, 53, 0.06), transparent 74%),
    linear-gradient(180deg, #070B14 0%, #08101C 58%, #070B14 100%);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0.008em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--fog);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

strong { font-weight: 700; color: var(--fog); }

::selection {
  background: rgba(55, 245, 228, 0.28);
  color: var(--fog);
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ============ 3. Focus ============ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.22);
}

/* ============ 4. Header ============ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--cyan-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 14px 34px rgba(7, 11, 20, 0.65);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 210;
  background: rgba(230, 235, 239, 0.07);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--lava) 100%);
  transition: transform 0.12s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.72) 68%, rgba(7, 11, 20, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: calc(var(--wrap) + 90px);
  margin: 0 auto;
  padding: 8px var(--gutter) 12px;
  transition: padding 0.22s var(--ease);
}

.site-header[data-scrolled="true"] .header-shell {
  padding-top: 4px;
  padding-bottom: 8px;
}

/* --- 品牌浮岛 --- */
.brand-island {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 28px rgba(4, 8, 16, 0.5), inset 0 1px 0 rgba(242, 245, 247, 0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 11px;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s var(--ease);
}

.brand-link:hover { background: rgba(55, 245, 228, 0.08); }

.brand-mark {
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  align-content: center;
  justify-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(55, 245, 228, 0.2), rgba(155, 92, 255, 0.3));
  box-shadow: inset 0 0 0 1px rgba(55, 245, 228, 0.4);
}

.brand-mark-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
  transform: skewX(-18deg);
}

.brand-mark-bar:nth-child(1) { width: 15px; }
.brand-mark-bar:nth-child(2) { width: 10px; background: var(--fog); }
.brand-mark-bar:nth-child(3) { width: 15px; background: var(--lava); }

.brand-copy { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.04rem;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--fog);
  white-space: nowrap;
}

.brand-note {
  display: block;
  max-height: 1.4em;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  color: var(--rock);
  white-space: nowrap;
  transition: max-height 0.22s var(--ease), opacity 0.22s var(--ease);
}

.site-header[data-scrolled="true"] .brand-note {
  max-height: 0;
  opacity: 0;
}

/* --- 导航胶囊 --- */
.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px;
  background: rgba(16, 26, 44, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px rgba(4, 8, 16, 0.5), inset 0 1px 0 rgba(242, 245, 247, 0.05);
}

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

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.012em;
  color: rgba(242, 245, 247, 0.78);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--fog);
  background: rgba(55, 245, 228, 0.1);
  box-shadow: inset 0 0 0 1px rgba(55, 245, 228, 0.24);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(55, 245, 228, 0.14);
  box-shadow: inset 0 0 0 1px rgba(55, 245, 228, 0.4);
}

.nav-link[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-foot { display: none; }

.nav-foot-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.nav-foot-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(111, 143, 106, 0.22);
}

.nav-foot-cta { flex: 0 0 auto; }

/* --- 右侧操作区 --- */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 205, 187, 0.3);
  background: rgba(216, 205, 187, 0.1);
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(111, 143, 106, 0.22);
}

.status-chip:hover {
  color: var(--fog);
  border-color: rgba(216, 205, 187, 0.55);
  background: rgba(216, 205, 187, 0.18);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(16, 26, 44, 0.92);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: rgba(55, 245, 228, 0.5);
  background: rgba(55, 245, 228, 0.1);
}

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

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

.nav-toggle-bar:nth-child(2) { width: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ 5. 通用按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.btn-primary {
  background: var(--cyan);
  color: var(--cyan-ink);
  box-shadow: 0 8px 22px rgba(55, 245, 228, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(55, 245, 228, 0.28), 0 0 0 1px rgba(55, 245, 228, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--fog);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: rgba(55, 245, 228, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(4, 8, 16, 0.55);
}

.btn-lava {
  background: var(--lava);
  color: var(--lava-ink);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.2);
}

.btn-lava:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 107, 53, 0.3);
}

/* ============ 6. 布局与内容组件 ============ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(36px, 6vw, 76px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.section-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(55, 245, 228, 0.3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fog);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lede {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.9;
  color: rgba(242, 245, 247, 0.78);
}

.breadcrumbs {
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--rock);
}

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

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(138, 149, 166, 0.6);
}

.breadcrumbs a { color: rgba(242, 245, 247, 0.72); transition: color 0.18s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--clay); }

.card {
  background: rgba(16, 26, 44, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: inset 0 1px 0 rgba(242, 245, 247, 0.05);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 245, 228, 0.4);
  box-shadow: 0 18px 38px rgba(4, 8, 16, 0.55), inset 0 1px 0 rgba(55, 245, 228, 0.16);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fog);
}

.card-text {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(242, 245, 247, 0.74);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(138, 149, 166, 0.1);
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-cyan { color: var(--cyan); border-color: rgba(55, 245, 228, 0.42); background: rgba(55, 245, 228, 0.1); }
.tag-lava { color: var(--lava); border-color: rgba(255, 107, 53, 0.45); background: rgba(255, 107, 53, 0.12); }
.tag-moss { color: var(--moss-soft); border-color: rgba(111, 143, 106, 0.45); background: rgba(111, 143, 106, 0.14); }
.tag-violet { color: #C6A7FF; border-color: rgba(155, 92, 255, 0.45); background: rgba(155, 92, 255, 0.14); }

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

.data-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

/* --- 图片容器（页面阶段放占位图） --- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #16233A 0%, #0B1220 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, rgba(55, 245, 228, 0.07) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.media-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(0deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0) 100%);
}

.media-overlay .tag {
  background: rgba(7, 11, 20, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--rock);
}

/* --- 侧边快捷轨道（页面阶段可选） --- */
.quick-rail {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(16, 26, 44, 0.82);
  box-shadow: 0 14px 32px rgba(4, 8, 16, 0.5);
}

.quick-rail-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(242, 245, 247, 0.7);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.quick-rail-link:hover {
  color: var(--fog);
  background: rgba(155, 92, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(155, 92, 255, 0.42);
}

.quick-rail-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(55, 245, 228, 0.14);
  box-shadow: inset 0 0 0 1px rgba(55, 245, 228, 0.38);
}

/* ============ 7. Footer ============ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.4) 0%, rgba(7, 11, 20, 0.97) 42%, #05080F 100%);
  color: var(--fog);
}

.footer-rule {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--clay) 0%,
    var(--clay) 24%,
    var(--cyan) 24%,
    var(--cyan) 40%,
    var(--violet) 40%,
    var(--violet) 52%,
    var(--lava) 52%,
    var(--lava) 64%,
    rgba(138, 149, 166, 0.45) 64%,
    rgba(138, 149, 166, 0.45) 100%
  );
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 72px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 52px);
}

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

.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.footer-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
}

.footer-brand-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fog);
  transition: color 0.18s var(--ease);
}

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

.footer-summary {
  max-width: 40ch;
  margin-top: 16px;
  font-size: 0.96rem;
  line-height: 1.9;
  color: rgba(242, 245, 247, 0.72);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(111, 143, 106, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(111, 143, 106, 0.12);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  color: var(--moss-soft);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(111, 143, 106, 0.26);
}

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

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

.footer-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--rock);
}

.footer-column-index {
  font-size: 0.74rem;
  color: var(--cyan);
}

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

.footer-list a {
  display: inline-block;
  padding-block: 2px;
  border-bottom: 1px solid transparent;
  font-size: 0.95rem;
  color: rgba(242, 245, 247, 0.8);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(55, 245, 228, 0.42);
}

.footer-text {
  display: inline-block;
  padding-block: 2px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: rgba(242, 245, 247, 0.66);
  word-break: break-word;
}

.footer-contact-note {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--rock);
}

.footer-base {
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.72);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--rock);
}

.footer-copy { line-height: 1.7; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-legal a {
  color: rgba(242, 245, 247, 0.72);
  transition: color 0.18s var(--ease);
}

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

.footer-icp { line-height: 1.7; }

/* ============ 8. Responsive ============ */
@media (max-width: 1080px) {
  .nav-link { padding: 9px 11px; font-size: 0.86rem; }
  .status-chip { padding: 7px 12px; font-size: 0.68rem; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }

  .site-header { padding-top: 8px; }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px var(--gutter) 10px;
  }

  .nav-pill {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 95;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(11, 18, 32, 0.98);
    border-color: var(--line-strong);
    box-shadow: 0 26px 60px rgba(4, 8, 16, 0.7), inset 0 1px 0 rgba(55, 245, 228, 0.12);
  }

  .nav-pill[data-open="true"] { display: flex; }

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

  .nav-link {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
  }

  .nav-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
  }

  .nav-toggle { display: inline-flex; }

  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-summary { max-width: 56ch; }
}

@media (max-width: 760px) {
  .status-chip { display: none; }
  .header-cta { display: none; }
  .brand-note { display: none; }
  .brand-link { padding: 7px 16px 7px 10px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-name { font-size: 0.98rem; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .footer-base-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .quick-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    border-radius: var(--radius-lg);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .card:hover,
  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-lava:hover { transform: none; }
}
