/* =========================================================
   乐竞赛场 · 共享站点样式 /assets/site.css
   夜场记分牌 + 技术手册 双重阅读感
   ========================================================= */

:root {
  --lj-green: #0B3D2E;
  --lj-ink: #061A14;
  --lj-neon: #E8FF3A;
  --lj-white: #F7F9F2;
  --lj-mid: #1F6B4F;
  --lj-red: #D7263D;
  --lj-amber: #F4C430;
  --lj-mist: #A9B8AE;
  --lj-panel: #123A2C;
  --lj-link: #7DE2C3;

  --lj-font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --lj-font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --lj-font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --lj-font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --lj-r-sm: 16px;
  --lj-r-md: 24px;
  --lj-r-lg: clamp(24px, 3vw, 40px);
  --lj-pill: 999px;
  --lj-gap: clamp(16px, 2.2vw, 32px);
  --lj-maxw: 1240px;
  --lj-pad: clamp(16px, 4vw, 40px);
  --lj-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--lj-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--lj-white);
  background-color: var(--lj-green);
  background-image:
    repeating-linear-gradient(90deg, rgba(247, 249, 242, 0.035) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(247, 249, 242, 0.025) 0 1px, transparent 1px 88px),
    radial-gradient(120% 85% at 50% -12%, #14513A 0%, #0B3D2E 44%, #07261C 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, picture, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--lj-link); }
::selection { background: var(--lj-neon); color: var(--lj-ink); }

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

/* ---------- 排版工具 ---------- */
.lj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lj-link);
}
.lj-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lj-neon);
}

.lj-display {
  margin: 0;
  font-family: var(--lj-font-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.lj-title {
  margin: 0 0 0.5em;
  font-family: var(--lj-font-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lj-serif {
  font-family: var(--lj-font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lj-lead {
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: rgba(247, 249, 242, 0.8);
}

.lj-text { font-size: 1rem; line-height: 1.8; }
.lj-muted { color: var(--lj-mist); }
.lj-mono {
  font-family: var(--lj-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.lj-link {
  color: var(--lj-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 226, 195, 0.4);
  transition: color 0.24s var(--lj-ease), border-color 0.24s var(--lj-ease);
}
.lj-link:hover { color: var(--lj-neon); border-color: var(--lj-neon); }

.lj-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lj-divider {
  height: 1px;
  margin: clamp(20px, 3vw, 34px) 0;
  background: linear-gradient(90deg, rgba(232, 255, 58, 0.5), rgba(247, 249, 242, 0.08) 60%, transparent);
  border: 0;
}

/* ---------- 布局工具 ---------- */
.lj-container {
  width: min(calc(100% - 2 * var(--lj-pad)), var(--lj-maxw));
  margin-inline: auto;
}

.lj-main {
  display: block;
  padding-top: clamp(104px, 13vh, 148px);
  padding-bottom: clamp(48px, 7vw, 90px);
}
#main-content { scroll-margin-top: 120px; }
#main-content:focus { outline: none; }

.lj-section { padding-block: clamp(28px, 5vw, 64px); }

.lj-stack { display: grid; gap: clamp(18px, 2.6vw, 34px); }
.lj-stack--tight { gap: clamp(10px, 1.6vw, 18px); }

.lj-grid { display: grid; gap: var(--lj-gap); }
.lj-grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lj-grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.lj-grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lj-grid--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 跳转链接 ---------- */
.lj-skip {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 22px;
  border-radius: var(--lj-pill);
  background: var(--lj-neon);
  color: var(--lj-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -220%);
  transition: transform 0.24s var(--lj-ease);
}
.lj-skip:focus,
.lj-skip:focus-visible { transform: translate(-50%, 0); }

/* ---------- 头部 ---------- */
.lj-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 14px clamp(12px, 3vw, 24px) 0;
  pointer-events: none;
}

.lj-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(6, 26, 20, 0.45);
  pointer-events: none;
}
.lj-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lj-neon), var(--lj-link));
  transition: width 0.12s linear;
}

.lj-header__inner {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: min(100%, var(--lj-maxw));
  padding: 9px 9px 9px 18px;
  border-radius: var(--lj-pill);
  background: rgba(6, 26, 20, 0.84);
  border: 1px solid rgba(247, 249, 242, 0.14);
  box-shadow: 0 22px 46px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(247, 249, 242, 0.08);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.lj-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--lj-white);
  text-decoration: none;
}
.lj-brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lj-neon);
  animation: lj-pulse 2.8s ease-in-out infinite;
}
.lj-brand__mark {
  font-family: var(--lj-font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.lj-brand__tag {
  padding-left: 10px;
  border-left: 1px solid rgba(247, 249, 242, 0.18);
  font-family: var(--lj-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lj-mist);
  white-space: nowrap;
}

@keyframes lj-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 255, 58, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(232, 255, 58, 0); }
}

.lj-nav { display: flex; margin-left: auto; }
.lj-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.lj-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: var(--lj-pill);
  color: rgba(247, 249, 242, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.24s var(--lj-ease), background 0.24s var(--lj-ease);
}
.lj-nav__link:hover {
  color: var(--lj-white);
  background: rgba(247, 249, 242, 0.09);
}
.lj-nav__link[aria-current="page"] {
  color: var(--lj-neon);
  background: rgba(232, 255, 58, 0.12);
  font-weight: 700;
}
.lj-nav__link[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lj-neon);
  box-shadow: 0 0 10px var(--lj-neon);
  flex: 0 0 auto;
}

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

.lj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--lj-pill);
  border: 1px solid rgba(247, 249, 242, 0.16);
  background: rgba(247, 249, 242, 0.08);
  color: var(--lj-white);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.24s var(--lj-ease), color 0.24s var(--lj-ease), border-color 0.24s var(--lj-ease);
}
.lj-chip:hover {
  background: rgba(232, 255, 58, 0.16);
  border-color: rgba(232, 255, 58, 0.55);
  color: var(--lj-neon);
}
.lj-chip--search { font-weight: 700; }
.lj-chip--status {
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--lj-mist);
}
.lj-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lj-link);
  flex: 0 0 auto;
}
.lj-chip[aria-pressed="true"] {
  background: var(--lj-neon);
  border-color: transparent;
  color: var(--lj-ink);
  font-weight: 700;
}

.lj-navtoggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 249, 242, 0.22);
  background: rgba(247, 249, 242, 0.07);
  color: var(--lj-white);
  cursor: pointer;
}
.lj-navtoggle__bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.24s var(--lj-ease);
}
.lj-navtoggle__bar::before,
.lj-navtoggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--lj-ease), top 0.28s var(--lj-ease);
}
.lj-navtoggle__bar::before { top: -6px; }
.lj-navtoggle__bar::after { top: 6px; }
.lj-navtoggle[aria-expanded="true"] .lj-navtoggle__bar { background: transparent; }
.lj-navtoggle[aria-expanded="true"] .lj-navtoggle__bar::before { top: 0; transform: rotate(45deg); }
.lj-navtoggle[aria-expanded="true"] .lj-navtoggle__bar::after { top: 0; transform: rotate(-45deg); }

/* ---------- 面板 / 卡片 ---------- */
.lj-panel {
  position: relative;
  padding: clamp(22px, 3.2vw, 44px);
  border-radius: var(--lj-r-lg);
  background: linear-gradient(180deg, rgba(18, 58, 44, 0.96), rgba(12, 44, 33, 0.96));
  border: 1px solid rgba(247, 249, 242, 0.1);
  box-shadow: 0 34px 64px -44px rgba(0, 0, 0, 0.95);
}
.lj-panel--light {
  background: var(--lj-white);
  border-color: rgba(11, 61, 46, 0.14);
  color: #082A20;
}
.lj-panel--light .lj-lead,
.lj-panel--light .lj-text { color: rgba(8, 42, 32, 0.78); }
.lj-panel--light .lj-muted { color: #4B6B5E; }
.lj-panel--ink {
  background: linear-gradient(180deg, rgba(6, 26, 20, 0.98), rgba(6, 26, 20, 0.9));
  border-color: rgba(247, 249, 242, 0.12);
}
.lj-panel--flat {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

.lj-slip {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 22px;
  background: rgba(247, 249, 242, 0.05);
  border: 1px solid rgba(247, 249, 242, 0.12);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.26s var(--lj-ease), background 0.26s var(--lj-ease), transform 0.26s var(--lj-ease);
}
.lj-slip:hover {
  border-color: rgba(232, 255, 58, 0.5);
  background: rgba(232, 255, 58, 0.07);
  transform: translateY(-3px);
}
.lj-slip__num {
  font-family: var(--lj-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lj-link);
}
.lj-slip__title {
  margin: 0;
  font-family: var(--lj-font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.lj-slip__meta {
  margin: 0;
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--lj-mist);
}

/* ---------- 状态贴纸 ---------- */
.lj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--lj-pill);
  border: 1px solid rgba(247, 249, 242, 0.16);
  background: rgba(31, 107, 79, 0.55);
  color: var(--lj-white);
  font-family: var(--lj-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lj-tag--neon { background: var(--lj-neon); border-color: transparent; color: var(--lj-ink); }
.lj-tag--amber { background: var(--lj-amber); border-color: transparent; color: var(--lj-ink); }
.lj-tag--red { background: var(--lj-red); border-color: transparent; color: #fff; }
.lj-tag--muted { background: rgba(247, 249, 242, 0.08); border-color: rgba(247, 249, 242, 0.12); color: var(--lj-mist); }

/* ---------- 按钮 ---------- */
.lj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--lj-pill);
  font-family: var(--lj-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s var(--lj-ease), background 0.24s var(--lj-ease), color 0.24s var(--lj-ease), border-color 0.24s var(--lj-ease);
}
.lj-btn:hover { transform: translateY(-2px); }
.lj-btn--primary {
  background: var(--lj-neon);
  color: var(--lj-ink);
  box-shadow: 0 18px 34px -20px rgba(232, 255, 58, 0.85);
}
.lj-btn--primary:hover { background: #F2FF6B; }
.lj-btn--ghost {
  background: transparent;
  border-color: rgba(247, 249, 242, 0.3);
  color: var(--lj-white);
}
.lj-btn--ghost:hover { border-color: var(--lj-neon); color: var(--lj-neon); }
.lj-btn--quiet {
  background: rgba(247, 249, 242, 0.08);
  color: var(--lj-white);
}
.lj-btn--quiet:hover { background: rgba(247, 249, 242, 0.16); }

/* ---------- 面包屑 ---------- */
.lj-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: 0;
  list-style: none;
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lj-mist);
}
.lj-crumbs li { display: flex; align-items: center; gap: 8px; }
.lj-crumbs li + li::before { content: "/"; color: rgba(247, 249, 242, 0.3); }
.lj-crumbs a { color: var(--lj-link); text-decoration: none; }
.lj-crumbs a:hover { color: var(--lj-neon); text-decoration: underline; }
.lj-crumbs [aria-current="page"] { color: var(--lj-white); }

/* ---------- 图片容器（页面阶段放入 <img>） ---------- */
.lj-media {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(160deg, #1F6B4F 0%, #0B3D2E 58%, #061A14 100%);
}
.lj-media > img,
.lj-media > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}
.lj-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 20, 0.12) 0%, rgba(6, 26, 20, 0.72) 100%);
}
.lj-media--wide { aspect-ratio: 21 / 9; }
.lj-media--portrait { aspect-ratio: 4 / 5; }
.lj-media--square { aspect-ratio: 1 / 1; }

.lj-media__fill {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(232, 255, 58, 0.06) 0 18px, transparent 18px 36px),
    radial-gradient(70% 92% at 28% 8%, #2A7A58 0%, #0B3D2E 68%, #061A14 100%);
}
.lj-media__pin {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--lj-pill);
  background: rgba(6, 26, 20, 0.74);
  border: 1px solid rgba(232, 255, 58, 0.55);
  color: var(--lj-neon);
  font-family: var(--lj-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lj-media__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  margin: 0;
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(247, 249, 242, 0.9);
}

/* ---------- 横向赛程带 ---------- */
.lj-band { position: relative; overflow: hidden; }
.lj-band__track {
  display: flex;
  gap: 14px;
  padding: 4px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 255, 58, 0.4) transparent;
  cursor: grab;
}
.lj-band__track::-webkit-scrollbar { height: 6px; }
.lj-band__track::-webkit-scrollbar-thumb {
  background: rgba(232, 255, 58, 0.35);
  border-radius: var(--lj-pill);
}
.lj-band__track[data-dragging] {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.lj-band__item {
  flex: 0 0 clamp(210px, 26vw, 280px);
  scroll-snap-align: start;
}

/* ---------- 字段说明表 ---------- */
.lj-tablewrap {
  overflow-x: auto;
  border-radius: var(--lj-r-md);
  border: 1px solid rgba(247, 249, 242, 0.1);
  background: rgba(6, 26, 20, 0.3);
}
.lj-fieldtable {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.lj-fieldtable caption {
  padding: 14px 16px 6px;
  text-align: left;
  font-family: var(--lj-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lj-mist);
}
.lj-fieldtable th,
.lj-fieldtable td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(247, 249, 242, 0.12);
}
.lj-fieldtable th {
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lj-link);
  white-space: nowrap;
}
.lj-fieldtable tbody tr:hover { background: rgba(247, 249, 242, 0.04); }
.lj-fieldtable tbody tr:last-child th,
.lj-fieldtable tbody tr:last-child td { border-bottom: 0; }

/* ---------- 手风琴（原生 details） ---------- */
.lj-acca {
  margin: 0;
  padding: 4px 6px;
  border-radius: 22px;
  border: 1px solid rgba(247, 249, 242, 0.12);
  background: rgba(247, 249, 242, 0.04);
  transition: border-color 0.26s var(--lj-ease), background 0.26s var(--lj-ease);
}
.lj-acca + .lj-acca { margin-top: 12px; }
.lj-acca[open] {
  border-color: rgba(232, 255, 58, 0.42);
  background: rgba(232, 255, 58, 0.06);
}
.lj-acca__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.lj-acca__q::-webkit-details-marker { display: none; }
.lj-acca__q::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--lj-neon);
  border-bottom: 2px solid var(--lj-neon);
  transform: rotate(45deg);
  transition: transform 0.3s var(--lj-ease);
}
.lj-acca[open] .lj-acca__q::after { transform: rotate(-135deg); }
.lj-acca__body {
  padding: 0 18px 18px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: rgba(247, 249, 242, 0.8);
}
.lj-acca__body > :first-child { margin-top: 0; }
.lj-acca__body > :last-child { margin-bottom: 0; }

/* ---------- 章节跟随目录 ---------- */
.lj-toc {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--lj-r-md);
  border: 1px solid rgba(247, 249, 242, 0.1);
  background: rgba(6, 26, 20, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lj-toc__title {
  margin: 0 0 8px;
  font-family: var(--lj-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lj-mist);
}
.lj-toc__list { display: grid; gap: 2px; list-style: none; }
.lj-toc__link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--lj-pill);
  color: rgba(247, 249, 242, 0.7);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.22s var(--lj-ease), background 0.22s var(--lj-ease);
}
.lj-toc__link:hover { color: var(--lj-white); background: rgba(247, 249, 242, 0.08); }
.lj-toc__link[aria-current="true"] {
  background: var(--lj-neon);
  color: var(--lj-ink);
  font-weight: 700;
}

/* ---------- 检索与筛选 ---------- */
.lj-input {
  width: 100%;
  padding: 14px 22px;
  border-radius: var(--lj-pill);
  border: 1px solid rgba(247, 249, 242, 0.2);
  background: rgba(6, 26, 20, 0.55);
  color: var(--lj-white);
  font-family: var(--lj-font-body);
  font-size: 0.95rem;
}
.lj-input::placeholder { color: rgba(169, 184, 174, 0.85); }
.lj-input:focus {
  outline: none;
  border-color: var(--lj-neon);
  box-shadow: 0 0 0 3px rgba(232, 255, 58, 0.2);
}
.lj-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.lj-empty {
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--lj-r-md);
  border: 1px dashed rgba(232, 255, 58, 0.4);
  color: var(--lj-amber);
  font-family: var(--lj-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.lj-empty[hidden] { display: none; }

/* ---------- 显现动效 ---------- */
.lj-anim [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.lj-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s var(--lj-ease), transform 0.42s var(--lj-ease);
}

/* ---------- 返回顶部 ---------- */
.lj-totop {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--lj-pill);
  border: 1px solid rgba(232, 255, 58, 0.5);
  background: rgba(6, 26, 20, 0.9);
  color: var(--lj-neon);
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.24s var(--lj-ease), color 0.24s var(--lj-ease), transform 0.24s var(--lj-ease);
}
.lj-totop::before { content: "▲"; font-size: 0.6rem; }
.lj-totop:hover {
  background: var(--lj-neon);
  color: var(--lj-ink);
  transform: translateY(-2px);
}
.lj-totop[hidden] { display: none; }

/* ---------- 页脚 ---------- */
.lj-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 88px) 0 clamp(24px, 3vw, 34px);
  margin-top: clamp(40px, 6vw, 80px);
  color: var(--lj-white);
  background:
    radial-gradient(85% 120% at 88% 0%, #0E3225 0%, #061A14 62%),
    var(--lj-ink);
  border-top: 1px solid rgba(232, 255, 58, 0.2);
}
.lj-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lj-neon), transparent);
  opacity: 0.55;
}
.lj-footer__inner {
  width: min(calc(100% - 2 * var(--lj-pad)), var(--lj-maxw));
  margin-inline: auto;
}
.lj-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.lj-footer__eyebrow {
  margin: 0 0 12px;
  font-family: var(--lj-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lj-link);
}
.lj-footer__wordmark {
  margin: 0 0 16px;
  font-family: var(--lj-font-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: rgba(232, 255, 58, 0.14);
  -webkit-text-stroke: 1.4px rgba(232, 255, 58, 0.55);
}
.lj-footer__note {
  max-width: 44ch;
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(247, 249, 242, 0.7);
}
.lj-footer__nav { margin-top: 6px; }
.lj-footer__navlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.lj-footer__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--lj-pill);
  border: 1px solid rgba(247, 249, 242, 0.16);
  background: rgba(247, 249, 242, 0.05);
  color: rgba(247, 249, 242, 0.86);
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 0.24s var(--lj-ease), color 0.24s var(--lj-ease), background 0.24s var(--lj-ease);
}
.lj-footer__link:hover {
  border-color: var(--lj-neon);
  color: var(--lj-neon);
  background: rgba(232, 255, 58, 0.1);
}
.lj-footer__file {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--lj-r-md);
  border: 1px solid rgba(247, 249, 242, 0.14);
  background: rgba(247, 249, 242, 0.045);
}
.lj-footer__filetitle {
  margin: 0 0 4px;
  font-family: var(--lj-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lj-mist);
}
.lj-field {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(247, 249, 242, 0.14);
}
.lj-field:last-child { padding-bottom: 0; border-bottom: 0; }
.lj-field__key {
  font-family: var(--lj-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lj-link);
}
.lj-field__val {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(247, 249, 242, 0.88);
  word-break: break-word;
}
.lj-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(247, 249, 242, 0.12);
  font-family: var(--lj-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--lj-mist);
}
.lj-footer__copy { margin: 0; }
.lj-footer__legallist {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}
.lj-footer__legallist a {
  color: rgba(247, 249, 242, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--lj-ease), border-color 0.22s var(--lj-ease);
}
.lj-footer__legallist a:hover { color: var(--lj-neon); border-color: var(--lj-neon); }
.lj-footer__icp { margin: 0; }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .lj-brand__tag { display: none; }
  .lj-chip--status { display: none; }
  .lj-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 10px;
    border-radius: 26px;
    border: 1px solid rgba(247, 249, 242, 0.16);
    background: rgba(8, 33, 25, 0.98);
    box-shadow: 0 34px 64px -32px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--lj-ease), transform 0.28s var(--lj-ease), visibility 0.28s var(--lj-ease);
  }
  .lj-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .lj-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .lj-nav__link {
    display: flex;
    width: 100%;
    padding: 13px 18px;
    border-radius: var(--lj-r-sm);
    font-size: 1rem;
  }
  .lj-header__actions { margin-left: auto; }
  .lj-navtoggle { display: inline-flex; }
  .lj-grid--7-5,
  .lj-grid--8-4,
  .lj-grid--halves { grid-template-columns: minmax(0, 1fr); }
  .lj-footer__top { grid-template-columns: minmax(0, 1fr); }
  .lj-toc { position: static; top: auto; }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  .lj-header { padding-top: 10px; }
  .lj-header__inner { padding: 7px 7px 7px 14px; gap: 8px; }
  .lj-brand__mark { font-size: 1.02rem; }
  .lj-chip--search { display: none; }
  .lj-display { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .lj-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .lj-footer__legal { justify-content: flex-start; gap: 12px; }
  .lj-footer__legallist { gap: 14px; }
  .lj-totop { padding: 11px 15px; font-size: 0.68rem; }
  .lj-field { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
}

/* ---------- 降低动效 ---------- */
@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;
  }
  .lj-brand__dot { animation: none; }
  .lj-anim [data-reveal] { opacity: 1; transform: none; }
  .lj-slip:hover,
  .lj-btn:hover,
  .lj-totop:hover { transform: none; }
}
