/* ==========================================================================
   LM赛场 · /assets/site.css
   共享外壳（刊头 / 页脚）、设计令牌、基础组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(5rem, 12vh, 8rem);
  overflow-x: clip;
}

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

ul, ol { list-style: none; }

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

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --lm-ink: #1A2A3A;
  --lm-ink-2: #0E1926;
  --lm-orange: #FF6B35;
  --lm-orange-soft: #FF8A5C;
  --lm-teal: #00A896;
  --lm-teal-soft: #5FE0D0;
  --lm-cream: #F4F1EA;
  --lm-white: #FFFFFF;
  --lm-mist: #8FA3B8;
  --lm-amber: #FFD166;

  --lm-hair: rgba(143, 163, 184, 0.24);
  --lm-hair-2: rgba(143, 163, 184, 0.46);
  --lm-veil: rgba(14, 25, 38, 0.86);

  --lm-shell: 1260px;
  --lm-r: 24px;
  --lm-r-sm: 14px;
  --lm-pill: 999px;

  --lm-gutter: clamp(1.1rem, 4vw, 3.25rem);
  --lm-space: clamp(1.25rem, 3vw, 2.5rem);
  --lm-section: clamp(3.25rem, 7vw, 6.5rem);

  --lm-font: "Inter", "Inter var", "Source Han Sans SC", "Noto Sans SC",
             "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
             system-ui, -apple-system, "Segoe UI", sans-serif;
  --lm-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas,
             "Liberation Mono", "Courier New", monospace;

  --lm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
body {
  position: relative;
  min-height: 100vh;
  font-family: var(--lm-font);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--lm-cream);
  background-color: var(--lm-ink);
  background-image:
    linear-gradient(to right, rgba(143, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 60% at 12% 0%, rgba(0, 168, 150, 0.10), transparent 62%),
    radial-gradient(80% 55% at 96% 18%, rgba(255, 107, 53, 0.11), transparent 60%);
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--lm-white);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }

p { max-width: 68ch; }

::selection {
  background: var(--lm-orange);
  color: var(--lm-ink-2);
}

:focus-visible {
  outline: 2px solid var(--lm-teal-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content { display: block; position: relative; z-index: 1; }

/* ---------- utilities ---------- */
.lm-mono {
  font-family: var(--lm-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

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

.lm-shell {
  width: 100%;
  max-width: var(--lm-shell);
  margin-inline: auto;
  padding-inline: var(--lm-gutter);
}

.lm-shell--narrow { max-width: 880px; }
.lm-shell--wide { max-width: 1480px; }

/* ---------- skip link ---------- */
.lm-skip {
  position: fixed;
  top: 0;
  left: -999px;
  z-index: 200;
  padding: 0.72rem 1.3rem;
  border-radius: 0 0 var(--lm-r-sm) 0;
  background: var(--lm-orange);
  color: var(--lm-ink-2);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: left 0.18s var(--lm-ease);
}

.lm-skip:focus {
  left: 0;
}

/* ==========================================================================
   刊头
   ========================================================================== */
.lm-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(14, 25, 38, 0.97), rgba(14, 25, 38, 0.9));
  border-bottom: 1px solid var(--lm-hair);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lm-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: rgba(143, 163, 184, 0.16);
}

.lm-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--lm-progress, 0%);
  background: linear-gradient(90deg, var(--lm-teal) 0%, var(--lm-teal-soft) 38%, var(--lm-orange) 100%);
  transition: width 0.12s linear;
}

.lm-header__band {
  padding-block: 0.9rem 0.55rem;
  transition: padding 0.3s var(--lm-ease);
}

.lm-header__bandInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.lm-header__side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.lm-header__side--start { justify-self: start; }
.lm-header__side--end { justify-self: end; }

.lm-header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  text-align: center;
}

.lm-gauge {
  display: block;
  width: 88px;
  height: 9px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(143, 163, 184, 0.8) 0 1px,
    transparent 1px 11px
  );
  opacity: 0.7;
  transition: opacity 0.3s var(--lm-ease);
}

/* ---------- 品牌字标 ---------- */
.lm-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lm-white);
  transition: font-size 0.3s var(--lm-ease);
}

.lm-brand__mark {
  font-family: var(--lm-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lm-orange);
}

.lm-brand__word {
  color: var(--lm-cream);
}

.lm-brand__sub {
  max-height: 2rem;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--lm-mist);
  white-space: nowrap;
  transition: max-height 0.3s var(--lm-ease), opacity 0.3s var(--lm-ease);
}

/* ---------- 状态胶囊 / 收藏 ---------- */
.lm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid var(--lm-hair-2);
  border-radius: var(--lm-pill);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--lm-teal-soft);
  white-space: nowrap;
}

.lm-chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lm-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.18);
}

.lm-fav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--lm-pill);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--lm-cream);
  white-space: nowrap;
  transition: background-color 0.22s var(--lm-ease), color 0.22s var(--lm-ease),
              border-color 0.22s var(--lm-ease);
}

.lm-fav:hover { background: rgba(255, 255, 255, 0.13); }

.lm-fav__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--lm-orange);
  transition: background-color 0.22s var(--lm-ease), border-color 0.22s var(--lm-ease);
}

.lm-fav__text { display: inline-block; }

.lm-fav[aria-pressed="true"] {
  background: var(--lm-amber);
  border-color: var(--lm-amber);
  color: var(--lm-ink-2);
}

.lm-fav[aria-pressed="true"] .lm-fav__dot {
  background: var(--lm-ink-2);
  border-color: var(--lm-ink-2);
}

/* ---------- 菜单按钮 ---------- */
.lm-navToggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem 0.42rem 0.72rem;
  border: 1px solid var(--lm-hair-2);
  border-radius: var(--lm-pill);
  color: var(--lm-cream);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  transition: border-color 0.22s var(--lm-ease), background-color 0.22s var(--lm-ease);
}

.lm-navToggle:hover { border-color: var(--lm-cream); background: rgba(255, 255, 255, 0.06); }

.lm-navToggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}

.lm-navToggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lm-orange);
  transition: transform 0.24s var(--lm-ease), opacity 0.24s var(--lm-ease);
}

.lm-navToggle[aria-expanded="true"] .lm-navToggle__bars i:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.lm-navToggle[aria-expanded="true"] .lm-navToggle__bars i:nth-child(2) { opacity: 0; }
.lm-navToggle[aria-expanded="true"] .lm-navToggle__bars i:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.lm-navToggle__label { display: inline-block; }

/* ---------- 栏目行 ---------- */
.lm-nav {
  display: block;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--lm-hair);
  background: linear-gradient(180deg, rgba(26, 42, 58, 0.62), rgba(14, 25, 38, 0.2));
}

.lm-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.1rem, 1vw, 0.85rem);
  padding-block: 0.5rem;
}

.lm-nav__item { display: block; }

.lm-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.44rem 0.95rem;
  border-radius: var(--lm-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lm-mist);
  transition: color 0.22s var(--lm-ease), background-color 0.22s var(--lm-ease);
}

.lm-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--lm-orange);
  transform: translateX(-50%);
  transition: width 0.25s var(--lm-ease);
}

.lm-nav__link:hover {
  color: var(--lm-cream);
  background: rgba(255, 255, 255, 0.06);
}

.lm-nav__link:hover::after { width: 1.1rem; }

.lm-nav__link[aria-current="page"] {
  color: var(--lm-ink-2);
  background: var(--lm-orange);
}

.lm-nav__link[aria-current="page"]::after { display: none; }

/* ---------- 滚动收束态 ---------- */
.lm-header.is-condensed .lm-header__band { padding-block: 0.42rem 0.32rem; }
.lm-header.is-condensed .lm-brand { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.lm-header.is-condensed .lm-brand__sub { max-height: 0; opacity: 0; }
.lm-header.is-condensed .lm-gauge { opacity: 0; }

/* ==========================================================================
   右侧快捷胶囊
   ========================================================================== */
.lm-quick {
  position: fixed;
  right: clamp(0.5rem, 1.6vw, 1.25rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0.5rem;
  border: 1px solid var(--lm-hair-2);
  border-radius: 26px;
  background: var(--lm-veil);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.lm-quick__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  border-radius: 18px;
  font-family: var(--lm-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lm-mist);
  transition: color 0.2s var(--lm-ease);
}

.lm-quick__toggle:hover { color: var(--lm-teal-soft); }

.lm-quick__toggleLabel { display: block; }

.lm-quick__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lm-quick__link {
  display: block;
  padding: 0.6rem 0.36rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--lm-cream);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  transition: background-color 0.22s var(--lm-ease), color 0.22s var(--lm-ease);
}

.lm-quick__link:hover {
  background: var(--lm-orange);
  color: var(--lm-ink-2);
}

.lm-quick[data-collapsed] .lm-quick__list { display: none; }

/* ==========================================================================
   页脚
   ========================================================================== */
.lm-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--lm-section);
  background: var(--lm-ink-2);
  border-top: 1px solid var(--lm-hair);
  color: var(--lm-cream);
}

.lm-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lm-teal), transparent 46%, var(--lm-orange));
}

.lm-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.lm-footer__col { min-width: 0; }

.lm-footer__brand {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

.lm-footer__note {
  margin-top: 0.9rem;
  max-width: 32ch;
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(244, 241, 234, 0.6);
}

.lm-footer__title {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--lm-teal-soft);
}

.lm-footer__list li + li { margin-top: 0.6rem; }

.lm-footer__link {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(244, 241, 234, 0.76);
  transition: color 0.2s var(--lm-ease);
}

.lm-footer__link:hover { color: var(--lm-orange-soft); }

.lm-footer__label {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--lm-mist);
}

.lm-footer__val {
  display: block;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.84);
  word-break: break-word;
}

.lm-footer__base {
  border-top: 1px solid var(--lm-hair);
  padding-block: 1.1rem;
}

.lm-footer__baseInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.lm-footer__seal {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--lm-mist);
}

/* ==========================================================================
   通用组件
   ========================================================================== */
.lm-section {
  position: relative;
  padding-block: var(--lm-section);
}

.lm-chapter {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.lm-chapter__num {
  display: block;
  font-family: var(--lm-mono);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(143, 163, 184, 0.42);
  transition: color 0.45s var(--lm-ease), -webkit-text-stroke-color 0.45s var(--lm-ease);
}

.lm-chapter.is-active .lm-chapter__num {
  color: var(--lm-orange);
  -webkit-text-stroke-color: var(--lm-orange);
}

.lm-eyebrow {
  display: inline-block;
  font-family: var(--lm-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lm-teal-soft);
}

.lm-lead {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.88);
}

.lm-prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(244, 241, 234, 0.86);
}

.lm-prose > * + * { margin-top: 1rem; }
.lm-prose h2 { margin-top: 2.2rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.lm-prose h3 { margin-top: 1.8rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.lm-prose strong { color: var(--lm-white); }

/* ---------- 标签 ---------- */
.lm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.72rem;
  border-radius: var(--lm-pill);
  background: var(--lm-amber);
  color: var(--lm-ink-2);
  font-family: var(--lm-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  white-space: nowrap;
}

.lm-tag--teal { background: var(--lm-teal); color: var(--lm-ink-2); }

.lm-tag--ghost {
  background: transparent;
  border: 1px solid var(--lm-hair-2);
  color: var(--lm-mist);
}

/* ---------- 卡片 ---------- */
.lm-card {
  position: relative;
  display: block;
  padding: clamp(1.15rem, 2.4vw, 1.9rem);
  border: 1px solid var(--lm-hair);
  border-radius: var(--lm-r);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: border-color 0.25s var(--lm-ease), background-color 0.25s var(--lm-ease);
}

.lm-card:hover { border-color: var(--lm-hair-2); }

.lm-card--light {
  background: var(--lm-white);
  border-color: rgba(26, 42, 58, 0.1);
  color: var(--lm-ink);
}

.lm-card--light h2,
.lm-card--light h3,
.lm-card--light .lm-card__title { color: var(--lm-ink); }

.lm-card--cream {
  background: var(--lm-cream);
  border-color: rgba(26, 42, 58, 0.1);
  color: var(--lm-ink);
}

.lm-card--cream h2,
.lm-card--cream h3,
.lm-card--cream .lm-card__title { color: var(--lm-ink); }

.lm-card__title {
  margin-top: 0.75rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--lm-white);
}

.lm-card__text {
  margin-top: 0.6rem;
  max-width: 46ch;
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(244, 241, 234, 0.72);
}

.lm-card--light .lm-card__text,
.lm-card--cream .lm-card__text { color: rgba(26, 42, 58, 0.74); }

/* ---------- 数据 ---------- */
.lm-data {
  display: block;
  font-family: var(--lm-mono);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--lm-orange);
}

.lm-data--teal { color: var(--lm-teal-soft); }
.lm-data--amber { color: var(--lm-amber); }

.lm-dataLabel {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--lm-mist);
}

/* ---------- 按钮 ---------- */
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--lm-pill);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: background-color 0.22s var(--lm-ease), color 0.22s var(--lm-ease),
              border-color 0.22s var(--lm-ease);
}

.lm-btn--primary { background: var(--lm-orange); color: var(--lm-ink-2); }
.lm-btn--primary:hover { background: var(--lm-orange-soft); }

.lm-btn--teal { background: var(--lm-teal); color: var(--lm-ink-2); }
.lm-btn--teal:hover { background: var(--lm-teal-soft); }

.lm-btn--ghost {
  border-color: var(--lm-hair-2);
  color: var(--lm-cream);
}

.lm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--lm-cream);
}

/* ---------- 面包屑 ---------- */
.lm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--lm-mist);
}

.lm-crumbs a {
  color: var(--lm-mist);
  transition: color 0.2s var(--lm-ease);
}

.lm-crumbs a:hover { color: var(--lm-teal-soft); }

.lm-crumbs__sep { opacity: 0.55; }

.lm-crumbs [aria-current="page"] { color: var(--lm-cream); }

/* ---------- 网格 ---------- */
.lm-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

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

/* ---------- 图片容器 ---------- */
.lm-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--lm-hair);
  border-radius: var(--lm-r);
  background-color: var(--lm-ink-2);
  background-image:
    radial-gradient(120% 120% at 12% 8%, rgba(0, 168, 150, 0.22), transparent 55%),
    radial-gradient(100% 100% at 88% 92%, rgba(255, 107, 53, 0.24), transparent 60%),
    linear-gradient(150deg, #16324A 0%, #0E1926 72%);
}

.lm-media--tall { aspect-ratio: 3 / 4; }
.lm-media--square { aspect-ratio: 1 / 1; }
.lm-media--ultra { aspect-ratio: 21 / 9; }

.lm-media__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(143, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
}

.lm-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lm-media__tag {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  z-index: 2;
}

.lm-media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--lm-cream);
  background: linear-gradient(to top, rgba(14, 25, 38, 0.94), transparent);
}

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--lm-ease), transform 0.4s var(--lm-ease);
}

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

html:not(.lm-js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .lm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .lm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .lm-navToggle { display: inline-flex; }
  .lm-gauge { display: none; }
  .lm-header__side--end .lm-chip { display: none; }

  .lm-brand__sub {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .lm-nav { display: none; }
  .lm-nav[data-open] { display: block; }

  .lm-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.22rem;
    padding-block: 0.75rem;
  }

  .lm-nav__link {
    display: block;
    padding: 0.72rem 1rem;
    border-radius: var(--lm-r-sm);
    background: rgba(255, 255, 255, 0.035);
    font-size: 1rem;
  }

  .lm-nav__link::after { display: none; }

  .lm-quick {
    top: auto;
    bottom: 0.9rem;
    right: 0.75rem;
    flex-direction: row;
    align-items: center;
    padding: 0.35rem;
    border-radius: var(--lm-pill);
  }

  .lm-quick__toggle { display: none; }

  .lm-quick__list { flex-direction: row; }

  .lm-quick[data-collapsed] .lm-quick__list { display: flex; }

  .lm-quick__link {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 0.5rem 0.85rem;
    border-radius: var(--lm-pill);
  }

  .lm-chapter__num { -webkit-text-stroke-width: 1px; }
}

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

  .lm-footer__grid { grid-template-columns: 1fr; }

  .lm-footer__baseInner { flex-direction: column; align-items: flex-start; }

  .lm-fav__text { display: inline; }
}

/* ---------- 动效退让 ---------- */
@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;
    transform: none;
  }

  .lm-chapter__num {
    color: var(--lm-orange);
    -webkit-text-stroke-color: var(--lm-orange);
  }
}
