/* =========================================================
   365平台登录 · 共享样式表  /assets/site.css
   深靛蓝底 + 电光青高亮 + 信号橙语义标签
   ========================================================= */

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --ink-950: #070E22;
  --ink-900: #0C1633;
  --ink-800: #132048;
  --grid-line: #24356F;
  --grid-faint: rgba(36, 53, 111, 0.42);

  --cyan-400: #2FE3E8;
  --cyan-200: #9BF4F4;

  --signal-500: #FF8A2B;
  --signal-200: #FFC489;
  --signal-deep: #B34A00;

  --text-100: #EAF1FF;
  --text-400: #93A6CE;

  --surface-light: #F4F7FD;
  --ink-on-light: #0C1633;

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

  --shell: 1320px;
  --gutter: 20px;
  --radius: 2px;

  --t-fast: 120ms;
  --t-base: 220ms;
  --t-slow: 320ms;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--text-100);
  background-color: var(--ink-950);
  background-image:
    linear-gradient(to right, var(--grid-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-100);
}

h1 { font-size: clamp(32px, 5vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 32px); }
h4 { font-size: 22px; }
h5 { font-size: 17px; }
h6 { font-size: 14px; }

p { margin-bottom: 1.4em; }

a {
  color: var(--cyan-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

[data-year] { font-variant-numeric: tabular-nums; }

/* 锚点滚动避开吸顶头部 */
[id] { scroll-margin-top: 112px; }

/* ---------- 工具类 ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-400);
}

.muted { color: var(--text-400); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t-fast) ease,
    color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

.btn-sm { padding: 10px 14px; font-size: 13px; }

.btn-primary {
  color: var(--ink-950);
  background: linear-gradient(135deg, var(--cyan-200), var(--cyan-400) 52%, #1BB9C4);
  border-color: rgba(47, 227, 232, 0.7);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #D8FDFD, #4DE9EE 45%, var(--cyan-400));
  box-shadow: 0 0 0 1px rgba(47, 227, 232, 0.55), 0 12px 28px -14px rgba(47, 227, 232, 0.95);
}

.btn-ghost {
  color: var(--cyan-200);
  background: rgba(47, 227, 232, 0.06);
  border-color: rgba(47, 227, 232, 0.45);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--ink-950);
  background: var(--cyan-400);
  border-color: var(--cyan-400);
}

.btn-signal {
  color: #1B0C00;
  background: linear-gradient(135deg, var(--signal-200), var(--signal-500));
  border-color: rgba(255, 138, 43, 0.7);
}
.btn-signal:hover,
.btn-signal:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 138, 43, 0.55), 0 12px 28px -14px rgba(255, 138, 43, 0.95);
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 32, 72, 0.72), rgba(12, 22, 51, 0.9));
}

.panel-num {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan-200);
  background: var(--ink-800);
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 227, 232, 0.45);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan-200);
  background: rgba(47, 227, 232, 0.1);
}

.tag--signal {
  color: var(--signal-200);
  border-color: rgba(255, 138, 43, 0.5);
  background: rgba(255, 138, 43, 0.12);
}

/* ---------- 索引 / 面包屑 ---------- */
.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-400);
  transition:
    color var(--t-fast) ease,
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.toc a:hover { color: var(--text-100); background: rgba(47, 227, 232, 0.06); }

.toc a[aria-current="true"],
.toc a.is-active {
  color: var(--cyan-200);
  border-left-color: var(--cyan-400);
  background: rgba(47, 227, 232, 0.09);
}

.toc-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
  opacity: 0.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-400);
}

.breadcrumb a { color: var(--text-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-200); }

.breadcrumb-sep { color: rgba(147, 166, 206, 0.45); }

/* ---------- 长文 ---------- */
.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.9;
}

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul,
.prose ol { margin: 0 0 1.4em; padding-left: 1.2em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }

.surface-light {
  background-color: var(--surface-light);
  background-image:
    linear-gradient(to right, rgba(12, 22, 51, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 22, 51, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  border-top: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  color: var(--ink-on-light);
}

.surface-light h1,
.surface-light h2,
.surface-light h3,
.surface-light h4 { color: var(--ink-on-light); }

.surface-light .lead,
.surface-light .muted { color: #4A5B80; }

.surface-light a { color: #0B6E77; }

.surface-light .tag {
  color: var(--signal-deep);
  border-color: rgba(179, 74, 0, 0.35);
  background: rgba(179, 74, 0, 0.08);
}

.surface-light .panel {
  background: #FFFFFF;
  border-color: rgba(12, 22, 51, 0.14);
}

.surface-light .panel-num {
  color: var(--ink-on-light);
  background: rgba(12, 22, 51, 0.06);
  border-color: rgba(12, 22, 51, 0.14);
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  background: var(--ink-800);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(47, 227, 232, 0.16), rgba(7, 14, 34, 0.42));
}

.media[data-index]::before {
  content: attr(data-index);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan-200);
  background: rgba(7, 14, 34, 0.85);
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}

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

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

/* ---------- 折叠问答 ---------- */
.qa {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  background: rgba(12, 22, 51, 0.7);
}

.qa + .qa { margin-top: 10px; }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan-400);
}

.qa[open] summary::after { content: "–"; }

.qa-body {
  padding: 0 18px 18px;
  font-size: 15px;
  color: var(--text-400);
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(47, 227, 232, 0.5), rgba(36, 53, 111, 0.7));
}

.timeline li {
  position: relative;
  padding: 0 0 26px 30px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 9px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--grid-line);
  background: var(--ink-950);
}

.timeline li.is-current::before {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(47, 227, 232, 0.15);
}

/* ---------- 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-400);
  background: rgba(19, 32, 72, 0.6);
  cursor: pointer;
  transition:
    color var(--t-fast) ease,
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.filter-btn:hover {
  color: var(--text-100);
  border-color: rgba(47, 227, 232, 0.4);
}

.filter-btn[aria-pressed="true"] {
  color: var(--ink-950);
  background: var(--cyan-400);
  border-color: var(--cyan-400);
}

[data-filter-item][hidden] { display: none !important; }

/* ---------- 显现 ---------- */
body.has-reveal .reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal {
  transition: opacity var(--t-base) ease, transform var(--t-base) ease;
}

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

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

.surface-light :focus-visible {
  outline-color: #0B6E77;
}

/* =========================================================
   头部
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 14, 34, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grid-line);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -68px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-950);
  background: var(--cyan-400);
  transition: top var(--t-fast) ease;
}

.skip-link:focus { top: 12px; }

/* 命令栏 */
.command-bar {
  border-bottom: 1px solid var(--grid-faint);
  background:
    linear-gradient(90deg, rgba(47, 227, 232, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(19, 32, 72, 0.9), rgba(7, 14, 34, 0.55));
  font-size: 12px;
  color: var(--text-400);
}

.cmd-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-height: 38px;
}

.cmd-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.02em;
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(47, 227, 232, 0.12), 0 0 12px 1px rgba(47, 227, 232, 0.75);
  animation: status-breathe 3.2s ease-in-out infinite;
}

@keyframes status-breathe {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(47, 227, 232, 0.12), 0 0 12px 1px rgba(47, 227, 232, 0.75);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 3px rgba(47, 227, 232, 0.05), 0 0 4px 0 rgba(47, 227, 232, 0.3);
  }
}

.cmd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cmd-links a {
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  text-decoration: none;
  color: var(--text-400);
  transition:
    color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    background-color var(--t-fast) ease;
}

.cmd-links a:hover {
  color: var(--cyan-200);
  border-color: rgba(47, 227, 232, 0.35);
  background: rgba(47, 227, 232, 0.08);
}

.cmd-version {
  margin-left: auto;
  padding-left: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(155, 244, 244, 0.65);
}

/* 品牌区 + 导航 */
.masthead { position: relative; }

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  padding: 7px 9px;
  border: 1px solid rgba(47, 227, 232, 0.55);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cyan-200);
  background: linear-gradient(140deg, rgba(47, 227, 232, 0.22), rgba(47, 227, 232, 0.02) 70%);
  box-shadow: inset 0 0 14px -6px rgba(47, 227, 232, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-100);
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-400);
}

.primary-nav { margin-left: auto; }

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

.nav-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
  color: var(--text-400);
  transition:
    color var(--t-fast) ease,
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.nav-list a:hover {
  color: var(--text-100);
  border-color: rgba(47, 227, 232, 0.3);
  background: rgba(47, 227, 232, 0.08);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan-200);
  border-color: rgba(47, 227, 232, 0.45);
  background: rgba(47, 227, 232, 0.1);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
  opacity: 0.65;
}

.masthead-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 227, 232, 0.4);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-100);
  background: rgba(47, 227, 232, 0.06);
  cursor: pointer;
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.nav-toggle:hover { background: rgba(47, 227, 232, 0.14); }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-fast) ease, opacity var(--t-fast) ease;
}

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

.nav-toggle-label { line-height: 1; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan-400), var(--cyan-200));
  box-shadow: 0 0 10px rgba(47, 227, 232, 0.65);
  transition: width 80ms linear;
}

/* 平板压缩 */
@media (max-width: 1120px) and (min-width: 900px) {
  .masthead-inner { gap: 12px; }
  .nav-list a { padding: 8px 8px; font-size: 13px; }
  .nav-index { display: none; }
}

/* 移动端 */
@media (max-width: 899px) {
  .masthead-inner { gap: 12px; min-height: 56px; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(7, 14, 34, 0.985);
    border-bottom: 1px solid var(--grid-line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 14px 16px;
  }

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

  .nav-list a {
    padding: 14px 4px;
    border: 0;
    font-size: 15px;
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    background: transparent;
    border: 0;
    color: var(--cyan-200);
  }

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

@media (max-width: 640px) {
  .cmd-links { display: none; }
  .cmd-inner { min-height: 34px; gap: 8px; }
}

@media (max-width: 560px) {
  .masthead-actions .btn-primary { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { padding: 6px 7px; font-size: 12px; }
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 72px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--grid-line);
  background: linear-gradient(180deg, rgba(12, 22, 51, 0.85), rgba(7, 14, 34, 1) 70%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 227, 232, 0.7), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.8fr));
  gap: 36px 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--grid-faint);
}

.footer-brand .brand { margin-bottom: 18px; }

.footer-tag {
  max-width: 34ch;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--text-400);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 53, 111, 0.55);
  font-size: 13px;
  line-height: 1.7;
}

.fc-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(47, 227, 232, 0.78);
}

.fc-val {
  color: var(--text-400);
  word-break: break-word;
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan-200);
}

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

.footer-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-400);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.footer-links a:hover {
  color: var(--text-100);
  border-bottom-color: rgba(47, 227, 232, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-400);
}

.footer-legal-line { letter-spacing: 0.02em; }

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(147, 166, 206, 0.85);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .site-footer { padding-top: 40px; margin-top: 56px; }
  .footer-contact li { grid-template-columns: 68px minmax(0, 1fr); }
}

/* =========================================================
   响应式细调与动效降级
   ========================================================= */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .section { padding-block: 40px; }
  [id] { scroll-margin-top: 96px; }
}

@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;
  }

  body.has-reveal .reveal {
    opacity: 1;
    transform: none;
  }

  .status-dot { animation: none; }
}
