:root {
  --lm-slate: #274C77;
  --lm-slate-dark: #1A3454;
  --lm-mint: #57CC99;
  --lm-ink: #1C2A38;
  --lm-muted: #5C6D7C;
  --lm-line: #D5E0EA;
  --lm-bg: #F3F7FA;
  --lm-paper: #FFFFFF;
  --lm-radius: 12px;
  --lm-shadow: 0 16px 36px rgba(39, 76, 119, 0.08);
  --lm-wrap: 1140px;
  --lm-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --lm-display: "Source Han Serif SC", "Songti SC","SimSun","Noto Serif SC", "Songti SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--lm-font);
  color: var(--lm-ink);
  background: var(--lm-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }

.lm-wrap {
  width: min(100% - 32px, var(--lm-wrap));
  margin-inline: auto;
}

/* Header */
.lm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lm-line);
}
.lm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.lm-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lm-logo img { height: 42px; width: auto; }
.lm-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--lm-slate), #3A648F);
  display: grid;
  place-items: center;
  color: var(--lm-mint);
  box-shadow: 0 8px 16px rgba(39, 76, 119, 0.22);
}
.lm-logo-mark-sm { width: 34px; height: 34px; }
.lm-logo-cn {
  font-family: var(--lm-display);
  font-size: 18px;
  font-weight: 700;
}
.lm-logo-text { display: flex; flex-direction: column; gap: 2px; }
.lm-logo-text strong {
  font-family: var(--lm-display);
  font-size: 18px;
}
.lm-logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--lm-muted);
}

.lm-nav { display: flex; align-items: center; gap: 16px; }
.lm-nav > ul { display: flex; align-items: center; gap: 2px; }
.lm-nav > ul > li { position: relative; }
.lm-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.lm-nav > ul > li.is-active > a,
.lm-nav > ul > li > a:hover {
  color: var(--lm-slate);
  border-bottom-color: var(--lm-mint);
}
.lm-subnav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--lm-line);
  border-radius: 10px;
  box-shadow: var(--lm-shadow);
}
.lm-nav > ul > li:hover > .lm-subnav { display: block; }
.lm-subnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.lm-subnav a:hover { background: #EAF4EF; color: var(--lm-slate); }

.lm-search {
  display: flex;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.lm-search input {
  border: 0;
  outline: 0;
  width: 140px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  background: transparent;
}
.lm-search button {
  border: 0;
  background: var(--lm-slate);
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lm-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lm-line);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.lm-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--lm-slate);
  transition: transform .2s, opacity .2s;
}
.lm-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 48, 0.45);
  z-index: 90;
}
body.nav-open .lm-nav-mask { display: block; }

/* Split hero + network */
.lm-hero {
  background: linear-gradient(120deg, #1A3454 0%, #274C77 48%, #2F5A84 100%);
  color: #fff;
  padding: 56px 0 60px;
}
.lm-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.lm-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--lm-mint);
  font-weight: 700;
}
.lm-hero-copy h1 {
  font-family: var(--lm-display);
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 14px;
}
.lm-hero-desc {
  margin: 0 0 24px;
  max-width: 480px;
  opacity: 0.86;
  font-size: 15px;
}
.lm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}
.lm-btn:hover { transform: translateY(-1px); }
.lm-btn-primary {
  background: var(--lm-mint);
  color: #0E2A20;
}
.lm-btn-ghost {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}
.lm-btn-ghost:hover { background: rgba(255,255,255,.08); }

.lm-network {
  position: relative;
  min-height: 260px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
.lm-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  border: 1px dashed rgba(87, 204, 153, 0.45);
  animation: lmSpin 18s linear infinite;
}
@keyframes lmSpin {
  to { transform: rotate(360deg); }
}
.lm-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--lm-mint);
  box-shadow: 0 0 0 6px rgba(87, 204, 153, 0.15);
}
.lm-node-c {
  left: 50%;
  top: 46%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255,255,255,.12);
}
.lm-network p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

/* Underline tabs */
.lm-tabs {
  background: #fff;
  border-bottom: 1px solid var(--lm-line);
  position: sticky;
  top: 72px;
  z-index: 80;
}
.lm-tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lm-tabs-inner::-webkit-scrollbar { display: none; }
.lm-tabs a {
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lm-muted);
  border-bottom: 2px solid transparent;
}
.lm-tabs a:hover {
  color: var(--lm-slate);
  border-bottom-color: var(--lm-mint);
}

.lm-home-body {
  padding: 32px 0 56px;
  display: grid;
  gap: 24px;
}
.lm-block {
  background: var(--lm-paper);
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 24px;
  box-shadow: var(--lm-shadow);
}
.lm-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.lm-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--lm-mint);
  font-weight: 700;
}
.lm-section-hd h2 {
  font-family: var(--lm-display);
  font-size: 24px;
}
.lm-more {
  font-size: 13px;
  color: var(--lm-slate);
  font-weight: 600;
}
.lm-more:hover { color: var(--lm-mint); }

/* 3-col news */
.lm-news3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lm-news3 a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 10px;
  background: #F5F9FC;
  border: 1px solid transparent;
  min-height: 160px;
  transition: transform .2s, border-color .2s, background .2s;
}
.lm-news3 a:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: color-mix(in srgb, var(--lm-mint) 40%, var(--lm-line));
}
.lm-news3 time {
  font-size: 12px;
  color: var(--lm-mint);
  font-weight: 700;
}
.lm-news3 h3 { font-size: 16px; }
.lm-news3 p {
  margin: 0;
  font-size: 13px;
  color: var(--lm-muted);
  flex: 1;
}

/* Split timeline + practice */
.lm-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
.lm-timeline { display: grid; gap: 0; position: relative; }
.lm-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--lm-mint), transparent);
  opacity: 0.45;
}
.lm-timeline a {
  display: grid;
  grid-template-columns: 12px 52px 1fr;
  gap: 12px;
  padding: 14px 0;
  align-items: start;
}
.lm-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--lm-mint);
  box-shadow: 0 0 0 4px rgba(87, 204, 153, 0.18);
  position: relative;
  z-index: 1;
}
.lm-timeline time {
  font-size: 12px;
  font-weight: 700;
  color: var(--lm-slate);
  padding-top: 2px;
}
.lm-timeline h3 { font-size: 15px; margin-bottom: 4px; }
.lm-timeline p { margin: 0; font-size: 13px; color: var(--lm-muted); }
.lm-timeline a:hover h3 { color: var(--lm-slate); }

.lm-service {
  background: linear-gradient(165deg, #1A3454, #274C77);
  color: #fff;
  border-color: transparent;
}
.lm-service .lm-eyebrow { color: var(--lm-mint); }
.lm-service .lm-more { color: rgba(255,255,255,.85); }
.lm-practice { display: grid; gap: 10px; }
.lm-practice a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--lm-mint);
}
.lm-practice a:hover { background: rgba(255,255,255,.12); }
.lm-practice h3 { font-size: 15px; }
.lm-practice p { margin: 0; font-size: 13px; opacity: 0.78; }
.lm-practice time { font-size: 12px; opacity: 0.55; }

/* Inner */
.lm-crumb {
  background: #fff;
  border-bottom: 1px solid var(--lm-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--lm-muted);
}
.lm-crumb a:hover { color: var(--lm-slate); }
.lm-crumb span { margin: 0 6px; opacity: 0.5; }

.lm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 56px;
  align-items: start;
}
.lm-panel {
  background: #fff;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 22px;
  box-shadow: var(--lm-shadow);
}
.lm-panel-hd {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid color-mix(in srgb, var(--lm-mint) 40%, var(--lm-line));
}
.lm-panel-hd h3 {
  font-family: var(--lm-display);
  font-size: 17px;
}
.lm-page-title {
  font-family: var(--lm-display);
  font-size: 26px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lm-line);
}

.lm-article-list { display: grid; gap: 14px; }
.lm-article-list li a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--lm-line);
  transition: border-color .2s, box-shadow .2s;
}
.lm-article-list li a:hover {
  border-color: color-mix(in srgb, var(--lm-mint) 40%, var(--lm-line));
  box-shadow: 0 10px 22px rgba(39, 76, 119, 0.08);
}
.lm-article-list img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  background: #EAF4EF;
}
.lm-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.lm-article-list p { margin: 0 0 10px; color: var(--lm-muted); font-size: 14px; }
.lm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--lm-muted);
}
.lm-meta.center { justify-content: center; margin: 12px 0 22px; }
.lm-empty { padding: 40px 16px; text-align: center; color: var(--lm-muted); }

.lm-detail h1 {
  font-family: var(--lm-display);
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
}
.lm-richtext { font-size: 16px; line-height: 1.9; color: #243444; }
.lm-richtext p { margin: 0 0 1em; }
.lm-richtext img { margin: 1em auto; border-radius: 8px; }
.lm-pagerow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--lm-line);
  font-size: 14px;
}
.lm-pagerow a:hover { color: var(--lm-slate); }

.lm-rank { counter-reset: lmrank; display: grid; gap: 10px; }
.lm-rank li {
  counter-increment: lmrank;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}
.lm-rank li::before {
  content: counter(lmrank);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #EAF4EF;
  color: var(--lm-slate);
}
.lm-rank li:nth-child(-n+3)::before {
  background: var(--lm-slate);
  color: var(--lm-mint);
}
.lm-rank a { font-size: 14px; }
.lm-rank a:hover { color: var(--lm-slate); }

.lm-side-list { display: grid; gap: 10px; }
.lm-side-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--lm-line);
  font-size: 14px;
}
.lm-side-list a:hover { color: var(--lm-slate); }
.lm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #EAF4EF;
  color: var(--lm-slate-dark);
  font-size: 12px;
}
.lm-tags a:hover { background: var(--lm-slate); color: #fff; }
.lm-ad { font-size: 14px; color: var(--lm-muted); line-height: 1.7; }

.lm-pagination { margin-top: 22px; }
.lm-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.lm-page a, .lm-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--lm-line);
  background: #fff;
  font-size: 13px;
}
.lm-page .active a,
.lm-page a:hover {
  background: var(--lm-slate);
  border-color: var(--lm-slate);
  color: #fff;
}

/* Footer */
.lm-footer {
  background: #14283F;
  color: rgba(255,255,255,.84);
  padding: 48px 0 28px;
  margin-top: 12px;
}
.lm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.lm-foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.lm-foot-brand h3 {
  font-family: var(--lm-display);
  font-size: 18px;
  color: #fff;
}
.lm-footer h4 { margin-bottom: 12px; color: #fff; font-size: 15px; }
.lm-footer p { margin: 0 0 8px; font-size: 14px; opacity: 0.85; }
.lm-foot-links { display: grid; gap: 8px; }
.lm-foot-links a { font-size: 14px; opacity: 0.85; }
.lm-foot-links a:hover { opacity: 1; color: var(--lm-mint); }
.lm-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}
.lm-friendlinks a:hover { color: var(--lm-mint); }
.lm-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  opacity: 0.7;
}
.lm-copy a { color: inherit; }

@media (max-width: 960px) {
  .lm-hero-grid,
  .lm-news3,
  .lm-split,
  .lm-layout { grid-template-columns: 1fr; }
  .lm-footer-grid { grid-template-columns: 1fr; }
  .lm-article-list li a { grid-template-columns: 120px 1fr; }
}

@media (max-width: 768px) {
  .lm-nav-toggle { display: inline-flex; }
  .lm-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    z-index: 110;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 72px 18px 24px;
    gap: 16px;
    transform: translateX(105%);
    transition: transform .25s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,.12);
  }
  .lm-nav.is-open { transform: translateX(0); }
  .lm-nav > ul { flex-direction: column; align-items: stretch; }
  .lm-nav > ul > li > a { border-bottom: 0; border-radius: 8px; }
  .lm-nav > ul > li.is-active > a,
  .lm-nav > ul > li > a:hover { background: #EAF4EF; }
  .lm-subnav {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
  }
  .lm-nav > ul > li.is-open > .lm-subnav { display: block; }
  .lm-search { width: 100%; }
  .lm-search input { width: 100%; flex: 1; }
  .lm-tabs { top: 0; }
  .lm-article-list li a { grid-template-columns: 1fr; }
  .lm-article-list img { height: 160px; }
  .lm-pagerow { flex-direction: column; }
  body.nav-open { overflow: hidden; }
  body.nav-open .lm-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .lm-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .lm-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
