/* ============================================================
   尚牛数据台 · 共享样式表 /assets/site.css
   1 基础重置  2 变量  3 排版  4 网格  5 头部  6 导航  7 命令面板
   8 按钮链接  9 面包屑  10 卡片  11 图片容器  12 正文区块
   13 交互反馈  14 页脚  15 响应式  16 减弱动效
   ============================================================ */

/* ---------- 1 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background-color: #0B0E13;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #0B0E13;
  color: #F2F5F8;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, dl, dd, blockquote {
  margin: 0;
}

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

input {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #23E0D6;
  outline-offset: 2px;
}

/* ---------- 2 变量 ---------- */
:root {
  --ink-0: #0B0E13;
  --ink-1: #12161F;
  --ink-2: #171D29;
  --line: #1E2534;
  --line-soft: rgba(30, 37, 52, 0.7);
  --red: #FF3B4E;
  --cyan: #23E0D6;
  --yellow: #E8FF3A;
  --violet: #5C4BE0;
  --green: #3BE08C;
  --text: #F2F5F8;
  --muted: #8C97A8;
  --body-text: #C9D2DE;

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

  --shell-max: 1280px;
  --gap: 24px;
  --header-h: 76px;
  --z-header: 90;
  --z-palette: 95;
  --z-overlay: 200;

  /* 蓝图网格与扫描线底纹 */
  --grid-lines:
    repeating-linear-gradient(90deg, rgba(30, 37, 52, 0.55) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(30, 37, 52, 0.55) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px);
}

/* ---------- 3 排版与页面底纹 ---------- */
body {
  background-image:
    radial-gradient(120% 70% at 50% -12%, rgba(92, 75, 224, 0.20), transparent 62%),
    var(--grid-lines);
  background-attachment: fixed, scroll;
  background-position: center top, center top, center top;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--text);
}

.display--sm {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
}

.lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body-text);
  max-width: 62ch;
}

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

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

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

/* ---------- 4 网格与容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 40px;
}

.section {
  padding-block: 72px;
}

.section--tight {
  padding-block: 44px;
}

.blueprint {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 5 头部 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: var(--z-overlay);
  transform: translateY(-240%);
  padding: 11px 16px;
  background: var(--red);
  color: #0B0E13;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.16s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 14, 19, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-rail {
  height: 36px;
  overflow: hidden;
  border-bottom: 1px dashed var(--line);
  transition: height 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.site-header[data-scrolled] .header-rail {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
}

.rail-note {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 8px rgba(59, 224, 140, 0.85);
}

.rail-utils {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.util-btn,
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.util-btn::before { content: "["; color: rgba(140, 151, 168, 0.6); }
.util-btn::after { content: "]"; color: rgba(140, 151, 168, 0.6); }

.util-btn:hover,
.util-link:hover,
.util-btn[aria-expanded="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.header-bar {
  position: relative;
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.18s ease;
}

.site-header[data-scrolled] .bar-inner {
  height: 60px;
}

/* 品牌标识（纯 CSS） */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1A2130, #0D111A);
}

.brand-mark::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 54%, 54% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-top: 1px solid rgba(35, 224, 214, 0.5);
  border-left: 1px solid rgba(35, 224, 214, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-line {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

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

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

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(140, 151, 168, 0.6);
  transition: color 0.16s ease;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(35, 224, 214, 0.06);
  border-left-color: rgba(35, 224, 214, 0.4);
}

.nav-list a[aria-current="page"] {
  color: var(--text);
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(255, 59, 78, 0.16), rgba(255, 59, 78, 0));
}

.nav-list a[aria-current="page"] .nav-index {
  color: var(--red);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--red);
  transition: transform 0.16s ease, top 0.16s ease;
}

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

.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);
}

/* ---------- 7 快速跳转命令面板 ---------- */
.palette {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: var(--z-palette);
  background: rgba(18, 22, 31, 0.985);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.palette-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 22px 26px;
}

.palette-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.palette-input {
  width: 100%;
  padding: 13px 14px;
  background: #0D111A;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.palette-input::placeholder {
  color: rgba(140, 151, 168, 0.75);
}

.palette-input:focus {
  border-color: var(--cyan);
  background: #0A0E15;
  outline: none;
}

.palette-input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.palette-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.palette-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--ink-1);
  font-size: 14px;
  color: var(--body-text);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.palette-list a span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(140, 151, 168, 0.7);
}

.palette-list a:hover {
  background: #182031;
  color: var(--text);
}

.palette-list a:hover span {
  color: var(--cyan);
}

.palette-empty {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red);
}

/* ---------- 8 按钮与内联链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease;
}

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

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #0B0E13;
  font-weight: 700;
}

.btn--primary:hover {
  background: #FF5566;
  border-color: #FF5566;
}

.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
  font-weight: 700;
}

.btn--cyan:hover {
  background: #5AECE4;
  border-color: #5AECE4;
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(35, 224, 214, 0.07);
}

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

.btn--arrow::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(35, 224, 214, 0.35);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
}

.link-arrow:hover {
  color: #6BF2EB;
  border-bottom-color: #6BF2EB;
}

/* ---------- 9 面包屑 ---------- */
.crumbs {
  padding-block: 26px 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.crumbs li + li::before {
  content: "/";
  color: #2B3446;
}

.crumbs a {
  color: var(--muted);
  transition: color 0.16s ease;
}

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

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

/* ---------- 10 卡片 ---------- */
.panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 29, 41, 0.92), rgba(18, 22, 31, 0.92));
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--accent, var(--line));
}

.panel--red { --accent: var(--red); }
.panel--cyan { --accent: var(--cyan); }
.panel--violet { --accent: var(--violet); }
.panel--yellow { --accent: var(--yellow); }

.panel > * + * {
  margin-top: 12px;
}

/* ---------- 11 图片容器基础规则 ---------- */
.media-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--ink-1);
  background-image:
    linear-gradient(135deg, rgba(35, 224, 214, 0.09), rgba(92, 75, 224, 0.14)),
    repeating-linear-gradient(90deg, rgba(30, 37, 52, 0.9) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(30, 37, 52, 0.9) 0 1px, transparent 1px 40px);
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}

.media-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 19, 0) 52%, rgba(11, 14, 19, 0.72) 100%);
}

.media-box--wide { aspect-ratio: 16 / 9; }
.media-box--portrait { aspect-ratio: 3 / 4; }
.media-box--square { aspect-ratio: 1 / 1; }
.media-box--banner { aspect-ratio: 21 / 9; }

.media-box__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(11, 14, 19, 0.88);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- 12 正文区块 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--body-text);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(35, 224, 214, 0.35);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose code {
  padding: 2px 6px;
  background: var(--ink-1);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--yellow);
}

/* ---------- 13 交互反馈组件 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: calc(var(--z-header) + 5);
  pointer-events: none;
  background: rgba(30, 37, 52, 0.8);
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--yellow) 55%, var(--cyan));
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: calc(var(--z-header) - 10);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 31, 0.95);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.to-top::before {
  content: "↑";
  color: var(--cyan);
}

.to-top:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.to-top[hidden] {
  display: none;
}

/* ---------- 14 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 110px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.35) 0%, #0C1017 26%, #090C11 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(420px, 55%);
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--violet) 55%, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) minmax(320px, 1.7fr) minmax(230px, 1fr);
  gap: 40px;
  padding-block: 60px 44px;
}

.footer-brand .brand--footer {
  gap: 12px;
}

.brand--footer .brand-mark {
  width: 34px;
  height: 34px;
}

.brand--footer .brand-line {
  font-size: 21px;
}

.footer-tag {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-note {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

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

.footer-h {
  position: relative;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 5px;
  height: 5px;
  background: var(--red);
}

.footer-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: #C4CDD9;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(35, 224, 214, 0.5);
}

.contact-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #CFD8E4;
  word-break: break-word;
}

.copy-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.copy-btn::before {
  content: "⌗";
  color: var(--cyan);
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(35, 224, 214, 0.06);
}

.copy-btn[data-copied] {
  color: var(--green);
  border-color: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 42px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-legal {
  color: #7F8A9B;
}

.footer-meta {
  color: #7F8A9B;
}

.footer-meta span[data-year] {
  color: var(--cyan);
}

/* ---------- 15 响应式 ---------- */
@media (max-width: 1180px) {
  .shell { padding-inline: 28px; }

  .footer-inner {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr);
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .contact-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1080px) {
  .nav-list a {
    padding: 10px 9px;
    font-size: 13px;
    gap: 6px;
  }
}

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

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #0F131B;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-list a {
    justify-content: flex-start;
    padding: 15px 20px;
    border-left-width: 3px;
    font-size: 15px;
  }

  .nav-list + .nav-list {
    border-top: 1px solid var(--line);
  }

  .palette-list {
    grid-template-columns: 1fr;
  }

  .blueprint {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-12 {
    grid-column: span 6;
  }

  .section { padding-block: 56px; }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
    background-image:
      radial-gradient(120% 60% at 50% -8%, rgba(92, 75, 224, 0.22), transparent 62%),
      var(--grid-lines);
    background-size: auto, 48px 48px, 48px 48px, auto;
  }

  .shell { padding-inline: 18px; }

  :root {
    --header-h: 64px;
  }

  .header-rail { height: 32px; }
  .rail-inner { height: 32px; gap: 10px; }
  .rail-note { font-size: 10px; letter-spacing: 0.1em; }
  .rail-utils { gap: 12px; }
  .util-btn, .util-link { font-size: 10px; letter-spacing: 0.1em; }

  .bar-inner { gap: 12px; height: 64px; }
  .site-header[data-scrolled] .bar-inner { height: 56px; }

  .brand-line { font-size: 17px; }
  .brand-sub { display: none; }

  .nav-toggle { padding: 0 10px; }
  .nav-toggle-label { display: none; }

  .palette-inner { padding-block: 16px 20px; }
  .palette-input { font-size: 13px; padding: 11px 12px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 44px 32px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .footer-contact {
    grid-column: auto;
    padding-top: 24px;
  }

  .contact-list { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 16px 36px;
    font-size: 10px;
  }

  .site-footer { margin-top: 72px; }

  .to-top {
    right: 14px;
    bottom: 14px;
    padding: 9px 11px;
    font-size: 10px;
  }

  .section { padding-block: 44px; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
  .eyebrow { font-size: 10px; letter-spacing: 0.14em; }
}

/* ---------- 16 减弱动效 ---------- */
@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;
  }

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

  .btn:hover,
  .nav-toggle:hover {
    transform: none;
  }

  .scroll-progress__bar {
    transition: none;
  }
}
