/* =========================================================
   尚牛竞猜 · 共享 Site Kit
   深空黑 / 霓虹青 / 炽焰橙 / 荧光绿 · 直角 · 精密网格
   ========================================================= */

:root {
  --ink: #070A0F;
  --ink-2: #0E1622;
  --ink-3: #131E2C;
  --steel: #2A3442;
  --cool: #8A96A8;
  --fog: #E8EDF4;

  --cyan: #19E3E6;
  --cyan-deep: #0B8F9E;
  --flame: #FF5A2A;
  --lime: #B6FF3B;
  --amber: #FFB020;

  --line: rgba(138, 150, 168, 0.20);
  --line-strong: rgba(138, 150, 168, 0.38);
  --cyan-line: rgba(25, 227, 230, 0.42);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-geo: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;
  --head-h: 118px;
}

/* ---------------- reset ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, p, ul, ol, figure, 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; }
[hidden] { display: none !important; }

/* ---------------- base ---------------- */
body {
  position: relative;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 52, 66, 0.42) 0 1px, transparent 1px 88px);
  opacity: 0.5;
}

#main-content {
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--head-h) + 16px);
}

::selection {
  background: var(--cyan);
  color: #04181A;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

:focus:not(:focus-visible) { outline: none; }

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

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 96px);
}

.section--panel { background: var(--ink-2); }

.section--edge { border-top: 1px solid var(--line); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

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

/* ---------------- typography ---------------- */
.title-xl {
  font-family: var(--font-geo);
  font-weight: 800;
  font-size: clamp(40px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--fog);
}

.title-lg {
  font-family: var(--font-geo);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fog);
}

.title-md {
  font-family: var(--font-geo);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--fog);
}

.lead {
  max-width: 58ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
  color: var(--cool);
}

.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-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: var(--cyan);
}

/* ---------------- media ---------------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0A1420 0%, #101E2C 55%, #091220 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(25, 227, 230, 0.07) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(25, 227, 230, 0.07) 0 1px, transparent 1px 30px);
}

.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

.media--diag {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12%), 0 100%);
}

.media__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0) 42%, rgba(7, 10, 15, 0.92) 100%);
}

.media__cap {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--fog);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.btn--flame {
  background: var(--flame);
  border-color: var(--flame);
  color: #12060A;
  font-weight: 700;
}

.btn--flame:hover {
  background: #FF7A4E;
  border-color: #FF7A4E;
  box-shadow: 0 0 0 3px rgba(255, 90, 42, 0.22);
}

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

.btn--cyan:hover {
  background: #5BF0F1;
  border-color: #5BF0F1;
  box-shadow: 0 0 0 3px rgba(25, 227, 230, 0.22);
}

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

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------------- tags ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.62em;
  border: 1px solid var(--cyan-line);
  background: rgba(25, 227, 230, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tag--lime {
  background: rgba(182, 255, 59, 0.14);
  border-color: rgba(182, 255, 59, 0.42);
  color: var(--lime);
}

.tag--amber {
  background: rgba(255, 176, 32, 0.14);
  border-color: rgba(255, 176, 32, 0.42);
  color: var(--amber);
}

.tag--flame {
  background: rgba(255, 90, 42, 0.14);
  border-color: rgba(255, 90, 42, 0.45);
  color: #FF8A64;
}

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

/* ---------------- cards ---------------- */
.card {
  position: relative;
  display: block;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--fog);
  text-decoration: none;
  transition: border-color var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease);
}

.card:hover {
  border-color: var(--cyan-line);
  background: #101B29;
}

.card--folder { padding-top: clamp(24px, 3vw, 34px); }

.card--folder::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 76px;
  height: 4px;
  background: var(--cyan);
  transition: width var(--t-mid) var(--ease);
}

.card--folder:hover::before { width: 132px; }

/* ---------------- data ---------------- */
.data-bar {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: var(--ink-2);
}

.data-bar__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--cool);
}

.data-bar__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fog);
}

.data-bar__unit {
  margin-left: 4px;
  font-size: 12px;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--cool);
}

.meter {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(138, 150, 168, 0.18);
}

.meter > i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

/* ---------------- note ---------------- */
.note {
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 176, 32, 0.07);
  font-size: 14px;
  line-height: 1.75;
  color: var(--fog);
}

.note strong { color: var(--amber); }

/* ---------------- panel / details ---------------- */
.panel {
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.panel + .panel { margin-top: -1px; }

.panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fog);
  cursor: pointer;
  list-style: none;
}

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

.panel > summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
  transition: transform var(--t-mid) var(--ease);
}

.panel[open] > summary::after { transform: rotate(45deg); }
.panel[open] > summary { color: var(--cyan); }

.panel__body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--cool);
}

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

.filter-chip {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cool);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.filter-chip:hover {
  color: var(--fog);
  border-color: var(--cyan);
}

.filter-chip.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04181A;
  font-weight: 700;
}

/* ---------------- breadcrumb ---------------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--cool);
}

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

.crumb li + li::before {
  content: "/";
  margin-inline: 9px;
  color: var(--steel);
}

.crumb a {
  text-decoration: none;
  color: var(--cool);
  transition: color var(--t-fast) var(--ease);
}

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

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

/* ---------------- prose ---------------- */
.prose {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.8;
  color: #C6D0DD;
}

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

.prose h2 {
  margin-top: 1.9em;
  font-family: var(--font-geo);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fog);
}

.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-geo);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fog);
}

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

.prose strong { color: var(--fog); }

.prose li {
  position: relative;
  padding-left: 1.1em;
}

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

/* ---------------- toast ---------------- */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: min(92vw, 460px);
  padding: 11px 18px;
  border: 1px solid var(--cyan);
  background: var(--ink-2);
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.site-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- skip link ---------------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: #0A1200;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform var(--t-fast) var(--ease);
}

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

/* =========================================================
   头部
   ========================================================= */
.site-head {
  position: relative;
  z-index: 50;
  background: var(--ink);
}

.head-strip {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.head-strip__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 8px;
}

.strip-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--cool);
}

.strip-pip {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.16);
  animation: pipPulse 2.6s ease-in-out infinite;
}

@keyframes pipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.strip-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--cool);
  white-space: nowrap;
  opacity: 0.85;
}

.strip-mark__sep {
  width: 14px;
  height: 1px;
  background: var(--cyan);
}

.head-rail {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(7, 10, 15, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-rail__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 48px);
  padding-block: 14px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--flame));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 90ms linear;
  pointer-events: none;
  will-change: transform;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-width: 0;
}

.nav-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--cyan);
  white-space: nowrap;
}

.nav-kicker::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--cyan);
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  color: var(--cool);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-mid) var(--ease);
}

.nav-link:hover { color: var(--fog); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--fog); }

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
}

/* 右端 */
.head-end {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  margin-left: auto;
  flex: none;
}

.util-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.util-link,
.util-btn {
  padding: 4px 0;
  color: var(--cool);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}

.util-link:hover { color: var(--cyan); }
.util-btn:hover { color: var(--lime); }

.head-cta {
  padding: 0.62rem 0.95rem;
  font-size: 13px;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fog);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--cyan) 0 50%, var(--flame) 50% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

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

.brand-name {
  font-family: var(--font-geo);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fog);
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--cool);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: var(--fog);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(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(-5px) rotate(-45deg);
}

/* =========================================================
   页脚
   ========================================================= */
.site-foot {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 104px);
  padding-top: clamp(40px, 6vw, 72px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(138, 150, 168, 0.07) 0 1px,
    transparent 1px 72px
  );
}

.site-foot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 14%,
    var(--flame) 14% 21%,
    rgba(138, 150, 168, 0.28) 21% 100%
  );
}

.foot-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.foot-mark {
  font-family: var(--font-geo);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--fog);
}

.foot-tagline {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.foot-copy {
  display: grid;
  gap: 9px;
  margin-top: clamp(22px, 3vw, 34px);
}

.copy-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}

.copy-key {
  min-width: 32px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cool);
  opacity: 0.8;
}

.copy-val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--fog);
  word-break: break-all;
}

.copy-btn {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  color: var(--cool);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.copy-btn:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.copy-btn.is-done {
  color: #0A1200;
  background: var(--lime);
  border-color: var(--lime);
}

.foot-note {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--cool);
  opacity: 0.88;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-content: start;
}

.foot-group__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.foot-list {
  display: grid;
  gap: 9px;
}

.foot-list a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--cool);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.foot-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-mid) var(--ease);
}

.foot-list a:hover { color: var(--fog); }
.foot-list a:hover::after { transform: scaleX(1); }

.foot-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--cool);
}

.foot-base__legal { font-family: var(--font-mono); }
.foot-base__copy { color: var(--cool); }
.foot-base__meta { letter-spacing: 0.16em; opacity: 0.72; }

/* =========================================================
   视口显现
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

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

@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1150px) {
  .util-list { display: none; }
  .brand-sub { display: none; }
}

@media (min-width: 901px) {
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .span-10 { grid-column: span 10; }
  .span-12 { grid-column: span 12; }
}

@media (max-width: 900px) {
  :root { --head-h: 66px; }

  .head-rail__in {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 11px;
  }

  .head-end {
    order: 1;
    width: 100%;
    gap: 10px;
    margin-left: 0;
  }

  .brand {
    order: -1;
    margin-right: auto;
  }

  .brand-name { font-size: 15px; }
  .brand-mark { width: 24px; height: 24px; }
  .head-cta { padding: 0.52rem 0.66rem; font-size: 12px; }

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

  .site-nav {
    order: 2;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .site-nav[data-open] { display: flex; }

  .nav-kicker { display: none; }

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

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid rgba(138, 150, 168, 0.12);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--cyan);
    background: rgba(25, 227, 230, 0.08);
  }

  .scroll-progress { display: none; }

  .foot-main { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .head-strip__in { min-height: 34px; }
  .strip-text { font-size: 11px; letter-spacing: 0.03em; }
  .strip-mark { display: none; }

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

  .foot-nav { grid-template-columns: 1fr; }
  .foot-base { justify-content: flex-start; }
  .foot-base__meta { display: none; }

  .copy-row { align-items: flex-start; }
}

/* =========================================================
   减少动效
   ========================================================= */
@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 !important;
    transform: none !important;
  }

  .strip-pip { animation: none; }
}
