/* ==========================================================================
   乐竞赛事 · Site Kit 共享样式
   1. Reset  2. 设计令牌  3. 基础排版  4. 容器与网格
   5. 通用组件  6. 头部  7. 页脚  8. 返回顶部  9. 无障碍与动效
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

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

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

a { color: inherit; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --lj-ink: #071523;
  --lj-ink-2: #0C2238;
  --lj-cyan: #35F2D0;
  --lj-orange: #FF6B2C;
  --lj-paper: #F6F1E7;
  --lj-violet: #8C86A8;
  --lj-steel: #6B7C8F;
  --lj-carbon: #03080E;
  --lj-warn: #FFD166;
  --lj-ok: #7BE495;

  --lj-line: rgba(246, 241, 231, 0.14);
  --lj-line-strong: rgba(246, 241, 231, 0.28);
  --lj-line-steel: rgba(107, 124, 143, 0.34);
  --lj-paper-dim: rgba(246, 241, 231, 0.7);
  --lj-paper-soft: rgba(246, 241, 231, 0.52);

  --lj-shell: 1200px;
  --lj-gutter: clamp(18px, 4vw, 48px);

  --lj-font-display: "Barlow Condensed", "Oswald", "Noto Sans SC",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lj-font-body: "Noto Sans SC", "Source Han Sans SC", system-ui,
    -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;

  --lj-shadow-hard: 5px 5px 0 rgba(3, 8, 14, 0.78);
  --lj-shadow-cyan: 5px 5px 0 rgba(53, 242, 208, 0.28);
  --lj-shadow-violet: 5px 5px 0 rgba(140, 134, 168, 0.26);
  --lj-radius: 2px;
  --lj-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--lj-ink);
  background-image:
    radial-gradient(1100px 520px at 84% -12%, rgba(53, 242, 208, 0.10), transparent 62%),
    radial-gradient(900px 480px at -12% 4%, rgba(255, 107, 44, 0.09), transparent 58%),
    repeating-linear-gradient(0deg, rgba(107, 124, 143, 0.06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(107, 124, 143, 0.06) 0 1px, transparent 1px 64px);
  color: var(--lj-paper);
  font-family: var(--lj-font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
.site-header,
.site-footer { color: var(--lj-paper); }

::selection {
  background: var(--lj-cyan);
  color: var(--lj-carbon);
}

main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--lj-font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

p { line-height: 1.78; }

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

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 84px);
}

.section__head {
  max-width: 72ch;
  margin-bottom: clamp(20px, 3vw, 38px);
}

.section__title {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--lj-paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--lj-cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lj-orange);
}

.lede {
  margin-top: 12px;
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.78);
}

.rule {
  height: 1px;
  margin-block: clamp(20px, 3vw, 36px);
  border: 0;
  background: linear-gradient(90deg, rgba(53, 242, 208, 0.6), rgba(107, 124, 143, 0.25), transparent);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside {
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
}

/* ---------- 5. 通用组件 ---------- */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--lj-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--lj-radius);
  cursor: pointer;
  transition:
    transform 0.16s var(--lj-ease),
    box-shadow 0.16s var(--lj-ease),
    background-color 0.16s var(--lj-ease),
    color 0.16s var(--lj-ease),
    border-color 0.16s var(--lj-ease);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.btn--primary {
  background: var(--lj-cyan);
  color: var(--lj-carbon);
  border-color: var(--lj-carbon);
  box-shadow: 4px 4px 0 rgba(3, 8, 14, 0.9);
}
.btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(3, 8, 14, 0.9); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(3, 8, 14, 0.9); }

.btn--ghost {
  background: transparent;
  color: var(--lj-paper);
  border-color: rgba(246, 241, 231, 0.3);
}
.btn--ghost:hover {
  color: var(--lj-cyan);
  border-color: var(--lj-cyan);
  background: rgba(53, 242, 208, 0.08);
}

.btn--orange {
  background: var(--lj-orange);
  color: var(--lj-carbon);
  border-color: var(--lj-carbon);
  box-shadow: 4px 4px 0 rgba(3, 8, 14, 0.9);
}
.btn--orange:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(3, 8, 14, 0.9); }

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.14em;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: var(--lj-radius);
}
.tag--cyan { color: var(--lj-cyan); background: rgba(53, 242, 208, 0.12); }
.tag--orange { color: var(--lj-orange); background: rgba(255, 107, 44, 0.12); }
.tag--warn { color: var(--lj-warn); background: rgba(255, 209, 102, 0.12); }
.tag--ok { color: var(--lj-ok); background: rgba(123, 228, 149, 0.12); }
.tag--violet { color: var(--lj-violet); background: rgba(140, 134, 168, 0.18); }
.tag--solid { color: var(--lj-carbon); background: var(--lj-cyan); border-color: var(--lj-cyan); }

/* 面板 */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--lj-ink-2);
  border: 1px solid var(--lj-line-steel);
  border-radius: var(--lj-radius);
  box-shadow: var(--lj-shadow-hard);
}
.panel--cyan {
  border-color: rgba(53, 242, 208, 0.55);
  box-shadow: var(--lj-shadow-cyan);
}
.panel--violet {
  border-color: rgba(140, 134, 168, 0.55);
  box-shadow: var(--lj-shadow-violet);
  background: linear-gradient(160deg, rgba(140, 134, 168, 0.18), rgba(12, 34, 56, 0.92));
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--lj-line-steel);
  border-radius: var(--lj-radius);
  background:
    linear-gradient(135deg, rgba(53, 242, 208, 0.14), rgba(255, 107, 44, 0.1)),
    var(--lj-ink-2);
  box-shadow: 6px 6px 0 rgba(3, 8, 14, 0.72);
}
.media-frame__img,
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--bare { box-shadow: none; border-color: transparent; }
.media-frame::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--lj-cyan);
  border-bottom: 2px solid var(--lj-cyan);
  opacity: 0.7;
  pointer-events: none;
}
.media-frame--bare::after { display: none; }
.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lj-paper);
  background: rgba(3, 8, 14, 0.8);
  border-top: 1px solid rgba(53, 242, 208, 0.45);
}

/* 面包屑 */
.breadcrumb { font-size: 12px; letter-spacing: 0.1em; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lj-steel);
}
.breadcrumb__item:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--lj-steel);
  border-top: 1px solid var(--lj-steel);
  transform: rotate(45deg);
}
.breadcrumb__link {
  color: var(--lj-paper-dim);
  text-decoration: none;
  transition: color 0.16s var(--lj-ease);
}
.breadcrumb__link:hover { color: var(--lj-cyan); }
.breadcrumb__current { color: var(--lj-paper); }

/* 纵向注释与大数字 */
.annot {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--lj-steel);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.figure {
  font-family: var(--lj-font-display);
  font-variant-numeric: tabular-nums;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(12, 34, 56, 0.97), rgba(7, 21, 35, 0.97));
  border-bottom: 1px solid var(--lj-line-strong);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.lj-skip {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--lj-carbon);
  background: var(--lj-cyan);
  border: 2px solid var(--lj-carbon);
  border-radius: var(--lj-radius);
  transition: top 0.18s var(--lj-ease);
}
.lj-skip:focus { top: 12px; }

.header-top {
  border-bottom: 1px solid var(--lj-line);
  background: linear-gradient(90deg,
    rgba(53, 242, 208, 0.10),
    rgba(7, 21, 35, 0) 42%,
    rgba(255, 107, 44, 0.10));
}

.header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: var(--lj-shell);
  margin-inline: auto;
  padding: 7px var(--lj-gutter);
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(246, 241, 231, 0.72);
}

.brand-line__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--lj-cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(53, 242, 208, 0.18);
  animation: lj-pulse 2.8s ease-in-out infinite;
}

@keyframes lj-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(53, 242, 208, 0.18);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 6px rgba(53, 242, 208, 0.06);
  }
}

.header-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.quick-link {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: rgba(246, 241, 231, 0.72);
  border: 1px solid transparent;
  border-radius: var(--lj-radius);
  transition:
    color 0.18s var(--lj-ease),
    border-color 0.18s var(--lj-ease),
    background-color 0.18s var(--lj-ease);
}
.quick-link:hover,
.quick-link:focus-visible {
  color: var(--lj-cyan);
  border-color: rgba(53, 242, 208, 0.45);
}

.quick-link--accent {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lj-cyan);
  border-color: rgba(53, 242, 208, 0.55);
}
.quick-link--accent:hover,
.quick-link--accent:focus-visible {
  color: var(--lj-carbon);
  background: var(--lj-cyan);
  border-color: var(--lj-cyan);
}

.header-main { position: relative; }

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  max-width: var(--lj-shell);
  margin-inline: auto;
  padding: 10px var(--lj-gutter);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.18s var(--lj-ease);
}
.brand:hover { transform: translateY(-1px); }

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--lj-font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--lj-carbon);
  background: var(--lj-cyan);
  border: 2px solid var(--lj-carbon);
  box-shadow: 4px 4px 0 rgba(3, 8, 14, 0.85);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 86% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--lj-font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--lj-paper);
}

.brand__sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--lj-steel);
}

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

.site-nav__list {
  display: flex;
  align-items: center;
}

.site-nav__item { position: relative; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px clamp(8px, 1.1vw, 14px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: rgba(246, 241, 231, 0.74);
  border-bottom: 2px solid transparent;
  transition:
    color 0.18s var(--lj-ease),
    background-color 0.18s var(--lj-ease),
    border-color 0.18s var(--lj-ease);
}
.site-nav__link:hover {
  color: var(--lj-paper);
  background: linear-gradient(180deg, rgba(53, 242, 208, 0.14), rgba(53, 242, 208, 0));
}
.site-nav__link[aria-current="page"] { color: var(--lj-cyan); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: var(--lj-cyan);
  box-shadow: 0 0 12px rgba(53, 242, 208, 0.75);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 42px;
  padding: 0;
  background: var(--lj-ink);
  border: 1px solid rgba(53, 242, 208, 0.45);
  border-radius: var(--lj-radius);
  cursor: pointer;
  transition: background-color 0.18s var(--lj-ease), border-color 0.18s var(--lj-ease);
}
.nav-toggle:hover { background: rgba(53, 242, 208, 0.12); }

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lj-cyan);
  transition: transform 0.22s var(--lj-ease), opacity 0.18s var(--lj-ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-cta { white-space: nowrap; }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(107, 124, 143, 0.18);
  pointer-events: none;
}
.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lj-cyan), var(--lj-orange));
  box-shadow: 0 0 10px rgba(53, 242, 208, 0.55);
  transition: width 0.1s linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
  background: var(--lj-carbon);
  border-top: 2px solid var(--lj-cyan);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(107, 124, 143, 0.08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(107, 124, 143, 0.08) 0 1px, transparent 1px 48px);
  opacity: 0.9;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.45fr 0.9fr 1.15fr;
  align-items: start;
  gap: clamp(20px, 2.6vw, 32px);
  max-width: var(--lj-shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--lj-gutter) clamp(24px, 3vw, 36px);
}

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

.footer-col--brand .footer-col__text { max-width: 34ch; }

.footer-col__title {
  position: relative;
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-family: var(--lj-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--lj-paper);
  border-bottom: 1px solid rgba(107, 124, 143, 0.32);
}
.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--lj-orange);
}

.footer-col__text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.66);
}

.footer-col--anchor {
  position: relative;
  padding: 18px 18px 20px;
  background: linear-gradient(155deg, rgba(53, 242, 208, 0.14), rgba(12, 34, 56, 0.7) 62%);
  border: 1px solid rgba(53, 242, 208, 0.65);
  border-radius: var(--lj-radius);
  box-shadow: 5px 5px 0 rgba(53, 242, 208, 0.2);
}
.footer-col--anchor .footer-col__title {
  border-bottom-color: rgba(53, 242, 208, 0.35);
  color: var(--lj-cyan);
}
.footer-col--anchor .footer-col__title::after {
  width: 54px;
  background: var(--lj-cyan);
  box-shadow: 0 0 10px rgba(53, 242, 208, 0.7);
}
.footer-col--anchor .footer-col__text { color: rgba(246, 241, 231, 0.86); }

.footer-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--lj-carbon);
  background: var(--lj-cyan);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(246, 241, 231, 0.7);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--lj-ease), border-color 0.16s var(--lj-ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--lj-cyan);
  border-bottom-color: rgba(53, 242, 208, 0.5);
}

.footer-link--legal {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 231, 0.6);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--lj-carbon);
  background: var(--lj-cyan);
  border: 1px solid var(--lj-carbon);
  border-radius: var(--lj-radius);
  box-shadow: 3px 3px 0 rgba(3, 8, 14, 0.9);
  transition: transform 0.16s var(--lj-ease), box-shadow 0.16s var(--lj-ease);
}
.footer-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(3, 8, 14, 0.9);
}

.footer-contact {
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.72);
}
.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.footer-contact__label {
  min-width: 2.6em;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--lj-steel);
}
.footer-contact__value {
  color: rgba(246, 241, 231, 0.82);
  overflow-wrap: anywhere;
}

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 28px;
  max-width: var(--lj-shell);
  margin-inline: auto;
  padding: 18px var(--lj-gutter) 28px;
  border-top: 1px solid rgba(107, 124, 143, 0.28);
}

.footer-base__meta {
  display: grid;
  gap: 6px;
  max-width: 64ch;
}

.footer-icp {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(246, 241, 231, 0.55);
}

.footer-note {
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(107, 124, 143, 0.95);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

/* ---------- 8. 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 150;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--lj-cyan);
  background: var(--lj-ink-2);
  border: 1px solid rgba(53, 242, 208, 0.6);
  border-radius: var(--lj-radius);
  box-shadow: 4px 4px 0 rgba(3, 8, 14, 0.8);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.22s var(--lj-ease),
    transform 0.22s var(--lj-ease),
    background-color 0.18s var(--lj-ease);
}
.back-top[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-top:hover { background: rgba(53, 242, 208, 0.15); }

.back-top__icon {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- 9. 无障碍与动效 ---------- */
:focus-visible {
  outline: 2px solid var(--lj-cyan);
  outline-offset: 3px;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) and (min-width: 1081px) {
  .site-nav__link {
    padding-inline: 9px;
    font-size: 13.5px;
  }
}

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    margin-left: 0;
    padding: 6px var(--lj-gutter) 18px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    background: linear-gradient(180deg, #0C2238, #071523);
    border-bottom: 2px solid rgba(53, 242, 208, 0.55);
    box-shadow: 0 18px 36px rgba(3, 8, 14, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 0.2s var(--lj-ease),
      transform 0.2s var(--lj-ease),
      visibility 0.2s linear;
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav__item { border-bottom: 1px dashed rgba(107, 124, 143, 0.28); }
  .site-nav__item:last-child { border-bottom: 0; }
  .site-nav__link {
    padding: 14px 14px;
    font-size: 15px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    background: none;
  }
  .site-nav__link[aria-current="page"] {
    border-left-color: var(--lj-cyan);
    background: linear-gradient(90deg, rgba(53, 242, 208, 0.16), transparent);
  }
  .site-nav__link[aria-current="page"]::after { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--anchor { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid--2,
  .grid--3,
  .grid--aside { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 128px; }

  .header-cta { display: none; }

  .header-top__inner { padding-block: 6px; }
  .brand-line { font-size: 10.5px; letter-spacing: 0.1em; gap: 8px; }
  .quick-link { padding: 3px 8px; font-size: 11px; letter-spacing: 0.06em; }

  .header-main__inner { padding-block: 8px; }
  .brand__mark { width: 38px; height: 38px; font-size: 21px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.24em; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }
  .footer-legal { gap: 6px 14px; }
}

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

  .brand-line__dot { animation: none; }
  .scroll-meter__bar { transition: none; }
}
