/* ============================================================
   完美电竞官网 / 共享站点样式  /assets/site.css
   夜战指挥舱 × 编辑部目录
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd, hr {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

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

::selection {
  background: rgba(51, 240, 255, 0.28);
  color: #F2F7FF;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #070B14;
  --panel: #0E1626;
  --line: #1B2B3A;
  --cyan: #33F0FF;
  --cyan-deep: #0F6F7A;
  --amber: #FF8A2A;
  --violet: #7A5CFF;
  --paper: #F2F7FF;
  --mist: #8CA0B8;
  --green: #4CFFB0;

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

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 52px);
  --shadow-brut: 6px 6px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 10% -12%, rgba(51, 240, 255, 0.10), transparent 62%),
    radial-gradient(900px 520px at 94% 4%, rgba(122, 92, 255, 0.12), transparent 64%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--paper);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.8;
}

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

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--cyan);
}

hr {
  border: 0;
}

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

[id] {
  scroll-margin-top: 96px;
}

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #14100A;
  background: var(--amber);
  border: 2px solid #14100A;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

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

/* ---------- 6. 页头 ---------- */
.site-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #0A1322 0%, #070B14 82%);
  border-bottom: 1px solid var(--line);
}

.header-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  background-image:
    repeating-linear-gradient(90deg, rgba(51, 240, 255, 0.07) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg, rgba(51, 240, 255, 0.045) 0 1px, transparent 1px 68px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 96%);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 34px);
  padding-block: clamp(14px, 2.2vw, 22px);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #04121A;
  background: linear-gradient(140deg, var(--cyan) 0%, var(--violet) 68%, var(--amber) 100%);
  box-shadow: 0 0 22px rgba(51, 240, 255, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand-mark::after {
  content: "WM";
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(51, 240, 255, 0.07);
  border: 1px solid rgba(51, 240, 255, 0.34);
  padding: 4px 10px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  white-space: nowrap;
}

.quick-note {
  position: relative;
  padding-left: 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

.quick-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.header-nav-row {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(14, 22, 38, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.header-nav-row .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-nav {
  counter-reset: navidx;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: clamp(4px, 1.6vw, 24px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  counter-increment: navidx;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 2px 15px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan-deep);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--amber) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
}

.nav-link:hover::before {
  color: var(--cyan);
}

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

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

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--panel);
  border: 2px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: rgba(51, 240, 255, 0.6);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.18s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), top 0.18s var(--ease);
}

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

.nav-toggle.is-open .nav-toggle-bars {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

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

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--paper);
  background: var(--panel);
  border: 2px solid var(--line);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary {
  color: #14100A;
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 5px 5px 0 rgba(255, 138, 42, 0.22);
}

.btn--primary:hover {
  background: #FFA052;
  border-color: #FFA052;
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 rgba(255, 138, 42, 0.3);
}

.btn--ghost {
  color: var(--cyan);
  background: rgba(51, 240, 255, 0.06);
  border-color: rgba(51, 240, 255, 0.75);
}

.btn--ghost:hover {
  background: rgba(51, 240, 255, 0.16);
  border-color: var(--cyan);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(51, 240, 255, 0.18);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: clamp(14px, 2.4vw, 24px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--cyan-deep);
}

.breadcrumb a {
  color: var(--mist);
  transition: color 0.16s var(--ease);
}

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

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

/* ---------- 9. 章节与正文 ---------- */
.section {
  padding-block: clamp(38px, 6vw, 82px);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 58ch;
  margin-bottom: clamp(22px, 3.2vw, 36px);
}

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

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.section-lede {
  max-width: 38em;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--mist);
}

.prose {
  max-width: 42em;
  font-size: 16.5px;
  line-height: 1.85;
  color: #D8E2F0;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

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

.prose li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(51, 240, 255, 0.42);
  transition: border-color 0.16s var(--ease);
}

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

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 48px);
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ---------- 10. 栅格与面板 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: 1.35fr 0.85fr; }

.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-brut);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(51, 240, 255, 0.08);
  border: 1px solid rgba(51, 240, 255, 0.32);
}

.tag--amber {
  color: var(--amber);
  background: rgba(255, 138, 42, 0.1);
  border-color: rgba(255, 138, 42, 0.42);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.figure-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--panel);
  background-image:
    radial-gradient(120% 100% at 0% 0%, rgba(51, 240, 255, 0.16), transparent 62%),
    radial-gradient(120% 100% at 100% 100%, rgba(255, 138, 42, 0.16), transparent 62%);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-brut);
}

.figure-frame img,
.figure-frame picture,
.figure-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame img {
  filter: saturate(0.85) contrast(1.06) brightness(0.92);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(120deg, rgba(51, 240, 255, 0.24) 0%, transparent 48%, rgba(255, 138, 42, 0.22) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.26) 0 1px, transparent 1px 4px);
}

.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--square { aspect-ratio: 1 / 1; }

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 110px);
  color: var(--mist);
  background: linear-gradient(180deg, #0A1220 0%, #070B14 58%);
  border-top: 2px solid var(--line);
}

.footer-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  background-image:
    repeating-linear-gradient(135deg, rgba(51, 240, 255, 0.055) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(45deg, rgba(122, 92, 255, 0.05) 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
}

.footer-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  padding-top: clamp(34px, 6vw, 62px);
}

.pair-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pair-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 13px 13px 0 rgba(0, 0, 0, 0.42);
}

.pair-card--help {
  border-color: rgba(51, 240, 255, 0.5);
  background-image: linear-gradient(150deg, rgba(51, 240, 255, 0.12) 0%, rgba(14, 22, 38, 0.98) 58%);
}

.pair-card--reach {
  border-color: rgba(255, 138, 42, 0.55);
  background-image: linear-gradient(150deg, rgba(255, 138, 42, 0.14) 0%, rgba(14, 22, 38, 0.98) 58%);
}

.pair-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.pair-card--help .pair-card-eyebrow { color: var(--cyan); }
.pair-card--reach .pair-card-eyebrow { color: var(--amber); }

.pair-card-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.pair-card-text {
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

.pair-card .btn {
  margin-top: 6px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.25fr;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-col--brand {
  gap: 14px;
}

.footer-col--contact {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
  font-size: 9px;
  box-shadow: 0 0 14px rgba(51, 240, 255, 0.32);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--mist);
}

.footer-addr {
  max-width: 22em;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--mist);
}

.footer-col-label {
  padding-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}

.footer-links a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 2px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(27, 43, 58, 0.9);
}

.contact-label {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.contact-value {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-value--plain {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
  background: rgba(51, 240, 255, 0.07);
  border: 1px solid rgba(51, 240, 255, 0.4);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.copy-btn:hover {
  background: rgba(51, 240, 255, 0.18);
  border-color: var(--cyan);
}

.copy-btn.is-copied {
  color: var(--green);
  background: rgba(76, 255, 176, 0.14);
  border-color: var(--green);
  animation: copy-pulse 0.5s var(--ease);
}

@keyframes copy-pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 255, 176, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(76, 255, 176, 0); }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-block: clamp(20px, 3vw, 28px) clamp(28px, 4vw, 44px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 11.5px;
}

.footer-icp {
  padding: 2px 9px;
  color: var(--cyan);
  border: 1px solid rgba(51, 240, 255, 0.3);
  background: rgba(51, 240, 255, 0.05);
}

.footer-note {
  flex: 1 1 100%;
  max-width: 62em;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--mist);
}

/* ---------- 13. 阅读进度条（JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--amber) 100%);
  box-shadow: 0 0 12px rgba(51, 240, 255, 0.45);
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .footer-col--contact {
    grid-column: 1 / -1;
  }
  .contact-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
  }
}

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

@media (max-width: 880px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-meta {
    justify-content: flex-start;
    width: 100%;
  }

  .header-nav-row .wrap {
    gap: 12px;
  }

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

  .site-nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
    padding-bottom: 10px;
    overflow: visible;
    border-top: 1px solid var(--line);
  }

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

  .nav-link {
    padding: 13px 4px;
    font-size: 15.5px;
    border-bottom: 1px solid rgba(27, 43, 58, 0.9);
  }

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

  .nav-link[aria-current="page"] {
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(51, 240, 255, 0.14), transparent 72%);
  }

  .footer-pair {
    grid-template-columns: 1fr;
  }

  .pair-card:hover {
    transform: none;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 700px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-col--brand,
  .footer-col--contact { grid-column: auto; }
  .quick-note { display: none; }
  .brand-line { letter-spacing: 0.1em; }
  .footer-legal { gap: 8px 16px; }
}

@media (max-width: 460px) {
  .meta-chip { font-size: 10px; padding: 3px 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 10px; }
  .btn { width: 100%; }
  .pair-card .btn { width: auto; }
}

/* ---------- 15. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .quick-note::before {
    opacity: 1;
  }
}
