/* ==========================================================================
   酷游客服 · 共享样式  /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, p, ul, ol, li, figure, blockquote, dl, dt, dd {
  margin: 0;
}

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

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

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

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

table { border-collapse: collapse; border-spacing: 0; }

:where(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 变量 ---------- */
:root {
  --c-deep: #050B1A;
  --c-abyss: #0A1730;
  --c-panel: #10243D;
  --c-grid: #1D3A5C;
  --c-blue: #1E6BFF;
  --c-cyan: #22E0FF;
  --c-mist: #8FF3E6;
  --c-warm: #FF8A3D;
  --c-text: #F2F7FF;
  --c-dim: #9FB3CC;
  --c-faint: #6F86A3;
  --c-ok: #3FD9A0;
  --c-warn: #F5C24B;

  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --gap: 24px;
  --r-a: 14px;
  --r-b: 2px;

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

  --t-hero: clamp(2.6rem, 7vw, 5.5rem);
  --t-1: clamp(2.5rem, 5.2vw, 3.5rem);
  --t-2: clamp(1.625rem, 3vw, 2.125rem);
  --t-3: clamp(1.25rem, 1.8vw, 1.375rem);
  --t-body: 17px;
  --t-sm: 14px;
  --t-label: 12px;

  --glow-cyan: 0 0 24px rgba(34, 224, 255, .18);
  color-scheme: dark;
}

/* ---------- 中文基础排版 ---------- */
body {
  background-color: var(--c-deep);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--c-text);
}

h1 { font-size: var(--t-1); }
h2 { font-size: var(--t-2); }
h3 { font-size: var(--t-3); }

::selection {
  background: rgba(34, 224, 255, .28);
  color: #fff;
}

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

/* ---------- 蓝图网格工具 ---------- */
.blueprint {
  position: relative;
  background-color: var(--c-deep);
  isolation: isolate;
}

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(29, 58, 92, .34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 58, 92, .34) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 100% at 18% 0%, #000 32%, transparent 84%);
  mask-image: radial-gradient(120% 100% at 18% 0%, #000 32%, transparent 84%);
}

.blueprint > * {
  position: relative;
  z-index: 1;
}

/* ---------- 章节 ---------- */
.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--abyss { background-color: var(--c-abyss); }
.section--panel { background-color: var(--c-panel); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--c-grid);
}

.section__index {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-faint);
  font-variant-numeric: tabular-nums;
  transition: color .24s ease;
}

.section__title {
  font-size: var(--t-2);
  font-weight: 800;
  letter-spacing: -.02em;
}

.section__lead {
  flex: 1 1 260px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-dim);
  max-width: 62ch;
}

[data-scroll-section][data-active] .section__index { color: var(--c-cyan); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

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

.btn--primary {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.btn--primary:hover { background: #3D84FF; border-color: #3D84FF; }

.btn--ghost {
  background: rgba(16, 36, 61, .6);
  border-color: var(--c-grid);
  color: var(--c-text);
}
.btn--ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.btn--warm {
  background: rgba(255, 138, 61, .08);
  border-color: rgba(255, 138, 61, .55);
  color: var(--c-warm);
}
.btn--warm:hover { background: rgba(255, 138, 61, .18); border-color: var(--c-warm); }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-size: 13px;
  color: var(--c-dim);
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--c-grid);
}

.breadcrumbs a { transition: color .16s ease; }
.breadcrumbs a:hover { color: var(--c-cyan); }

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 72ch;
  font-size: var(--t-body);
  line-height: 1.85;
  color: var(--c-text);
}

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

.prose h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.6em;
}

.prose p { color: var(--c-text); }

.prose ul li {
  position: relative;
  padding-left: 20px;
}

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

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 8px;
  height: 1px;
  background: var(--c-cyan);
}

.prose strong { font-weight: 700; color: #fff; }

.prose a {
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(34, 224, 255, .4);
}

.prose a:hover { border-bottom-color: var(--c-cyan); }

.prose code {
  font-family: var(--f-mono);
  font-size: .9em;
  background: rgba(16, 36, 61, .9);
  border: 1px solid var(--c-grid);
  padding: 2px 6px;
  border-radius: var(--r-b);
}

/* ---------- 面板 / 数据 ---------- */
.panel {
  background: linear-gradient(160deg, rgba(16, 36, 61, .92), rgba(10, 23, 48, .92));
  border: 1px solid var(--c-grid);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  padding: clamp(18px, 2.4vw, 28px);
}

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

.data-table {
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-dim);
  border-bottom: 1px solid var(--c-grid);
  white-space: nowrap;
}

.data-table td {
  position: relative;
  padding: 15px 14px;
  font-size: 15px;
  color: var(--c-text);
  border-bottom: 1px solid rgba(29, 58, 92, .55);
  transition: background-color .16s ease;
}

.data-table tbody tr:hover td { background: rgba(34, 224, 255, .05); }

.data-table tbody tr:hover td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-cyan);
}

.stat {
  padding: clamp(18px, 2.2vw, 24px);
  background: rgba(16, 36, 61, .6);
  border: 1px solid var(--c-grid);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
}

.stat__label {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-dim);
}

.stat__value {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--c-cyan);
}

.stat__value--warm { color: var(--c-warm); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--t-label);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  border: 1px solid var(--c-grid);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  color: var(--c-dim);
}

.tag--ok { color: var(--c-ok); border-color: rgba(63, 217, 160, .42); background: rgba(63, 217, 160, .07); }
.tag--warn { color: var(--c-warn); border-color: rgba(245, 194, 75, .42); background: rgba(245, 194, 75, .07); }
.tag--info { color: var(--c-cyan); border-color: rgba(34, 224, 255, .42); background: rgba(34, 224, 255, .07); }

.status-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-dim);
}

.status-dot--ok { background: var(--c-ok); box-shadow: 0 0 0 3px rgba(63, 217, 160, .18); }
.status-dot--warn { background: var(--c-warn); box-shadow: 0 0 0 3px rgba(245, 194, 75, .16); }
.status-dot--info { background: var(--c-cyan); box-shadow: 0 0 0 3px rgba(34, 224, 255, .18); }

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-cyan), rgba(29, 58, 92, .2));
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-deep);
  border: 2px solid var(--c-cyan);
}

.timeline__date {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .08em;
  color: var(--c-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- 页内章节索引 ---------- */
.anchor-index { font-size: 13px; }

.anchor-index__title {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-faint);
  margin-bottom: 14px;
}

.anchor-index__list { display: grid; gap: 2px; }

.anchor-index__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--c-dim);
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-b) var(--r-b) 0;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.anchor-index__link:hover {
  color: var(--c-text);
  background: rgba(16, 36, 61, .7);
}

.anchor-index__link[aria-current="location"] {
  color: var(--c-cyan);
  border-left-color: var(--c-cyan);
  background: rgba(34, 224, 255, .06);
}

/* ---------- 媒体容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-grid);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(34, 224, 255, .10), transparent 55%),
    linear-gradient(150deg, var(--c-panel), var(--c-deep) 72%);
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture > img,
.media-frame > .media-frame__inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(29, 58, 92, .35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 58, 92, .35) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: .25;
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 18px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-dim);
  background: linear-gradient(180deg, transparent, rgba(5, 11, 26, .94));
}

/* ---------- 阅读进度条（JS 注入） ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}

.read-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
  box-shadow: 0 0 12px rgba(34, 224, 255, .55);
  will-change: transform;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  font-size: var(--t-sm);
  font-weight: 700;
  color: #04101F;
  background: var(--c-cyan);
  border-radius: var(--r-b);
  transform: translateY(-180%);
  transition: transform .18s ease;
}

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

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(10, 23, 48, .97) 0%, rgba(5, 11, 26, .95) 100%);
  border-bottom: 1px solid var(--c-grid);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 224, 255, .55) 32%, rgba(34, 224, 255, .12) 72%, transparent);
  opacity: .8;
}

.header-upper {
  border-bottom: 1px solid rgba(29, 58, 92, .6);
}

.header-upper__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  min-height: 44px;
  padding-block: 6px;
  transition: min-height .2s ease, padding .2s ease;
}

.site-header[data-scrolled] .header-upper__inner {
  min-height: 34px;
  padding-block: 2px;
}

.site-header[data-scrolled] .status-item--owner { display: none; }

/* 品牌署名 */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--c-text);
}

.brand-mark__glyph {
  flex: none;
  width: 11px;
  height: 11px;
  background: var(--c-cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 14px rgba(34, 224, 255, .75);
}

.brand-mark__name { white-space: nowrap; }

.brand-mark__sep { color: var(--c-grid); }

.brand-mark__sub {
  font-weight: 500;
  font-size: 13px;
  color: var(--c-dim);
  white-space: nowrap;
}

/* 状态条 */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--c-dim);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  color: var(--c-ok);
  background: rgba(63, 217, 160, .07);
  border: 1px solid rgba(63, 217, 160, .32);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  white-space: nowrap;
}

.status-item { white-space: nowrap; }
.status-item--icp { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }
.status-item--owner { color: var(--c-faint); }

/* 第二层 */
.header-lower__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 58px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 9px 14px;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-text);
  border: 1px solid var(--c-grid);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  background: rgba(16, 36, 61, .6);
  transition: border-color .16s ease, color .16s ease;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color .2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}

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

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 主栏目 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.site-nav__list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--c-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.site-nav__list a:hover { color: var(--c-text); }

.site-nav__list a[aria-current="page"] {
  color: var(--c-text);
  border-bottom-color: var(--c-cyan);
}

/* 页头 CTA */
.cta-edge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-warm);
  background: rgba(255, 138, 61, .06);
  border: 1px solid rgba(255, 138, 61, .55);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}

.cta-edge::after {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cta-edge:hover {
  background: rgba(255, 138, 61, .18);
  border-color: var(--c-warm);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px) 28px;
  background: linear-gradient(180deg, var(--c-abyss) 0%, var(--c-deep) 100%);
  border-top: 1px solid var(--c-grid);
  font-size: var(--t-sm);
  color: var(--c-dim);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(29, 58, 92, .3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 58, 92, .3) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.site-footer > .wrap { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(110px, .8fr)) minmax(228px, 1.35fr);
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(29, 58, 92, .7);
}

.footer-brand__line {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-faint);
}

.footer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}

.footer-status__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--c-dim);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-mist);
}

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

.footer-links a {
  color: var(--c-dim);
  transition: color .16s ease;
}

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

.contact-list li + li { margin-top: 16px; }

.contact-list__k {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-faint);
}

.contact-list__v {
  display: block;
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.contact-list__v--text {
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-dim);
  word-break: normal;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-cyan);
  background: rgba(34, 224, 255, .05);
  border: 1px solid rgba(34, 224, 255, .35);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.copy-btn:hover { background: rgba(34, 224, 255, .14); }

.copy-btn[data-copied] {
  color: var(--c-ok);
  border-color: rgba(63, 217, 160, .6);
  background: rgba(63, 217, 160, .12);
}

.footer-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--c-faint);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-faint);
  font-variant-numeric: tabular-nums;
}

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

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__line { max-width: 54ch; }
}

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

  .anchor-index__list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .anchor-index__list::-webkit-scrollbar { display: none; }

  .anchor-index__link {
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--r-b);
    white-space: nowrap;
  }

  .anchor-index__link[aria-current="location"] {
    border-left-color: transparent;
    border-bottom-color: var(--c-cyan);
  }
}

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

  .header-lower__inner {
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    flex: none;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 23, 48, .99), rgba(5, 11, 26, .99));
    border-bottom: 1px solid var(--c-grid);
    transition: max-height .24s ease;
  }

  .site-header[data-open] .site-nav {
    max-height: 380px;
    overflow-y: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 18px;
  }

  .site-nav__list a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(29, 58, 92, .55);
  }

  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--c-cyan); }

  .cta-edge {
    padding: 9px 13px;
    font-size: 13px;
  }

  .status-item--owner { display: none; }
}

@media (max-width: 760px) {
  :root {
    --t-body: 16px;
  }

  .header-upper__inner {
    gap: 6px 16px;
    min-height: 40px;
  }

  .brand-mark { font-size: 14px; }
  .brand-mark__sub { font-size: 12px; }
  .status-strip { font-size: 12px; gap: 6px 12px; }
  .status-item--icp { font-size: 11px; }
  .header-lower__inner { min-height: 52px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .section__head { gap: 6px 14px; }

  .data-table th,
  .data-table td { padding-inline: 10px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .status-pill { padding: 2px 8px; }
  .cta-edge { padding: 8px 10px; }
  .nav-toggle { padding: 8px 11px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .read-progress__fill { box-shadow: none; }
}
