:root {
  --lm-green: #006f65;
  --lm-text: #4b4b4b;
  --lm-muted: #8a8a8a;
  --lm-line: rgba(0, 0, 0, 0.08);
  --lm-width: 1275px;
}

body {
  min-width: 0;
  color: var(--lm-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--lm-text);
}

img {
  max-width: 100%;
}

/* ---------------- 头部 ---------------- */
.lm-header {
  position: relative;
  z-index: 1000;
  padding-top: 26px;
}

.lm-header__inner {
  box-sizing: border-box;
  max-width: 970px;
  height: 68px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  background: url('/images/head.png') no-repeat center center;
  background-size: 960px 68px;
}

.lm-logo {
  flex: 0 0 auto;
  display: block;
  width: 70px;
  margin-left: 80px;
}

.lm-logo img {
  display: block;
  width: 70px;
  height: auto;
}

.lm-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.lm-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  margin: 0 0 0 20px;
  padding: 0;
  width: 550px;
  flex-wrap: wrap;
}

.lm-menu > li {
  position: relative;
}

.lm-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lm-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.lm-menu > li > a > span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.lm-menu > li > a:hover,
.lm-menu > li.is-active > a {
  color: var(--lm-text);
  background: rgba(86, 82, 82, 0.46);
}

.lm-menu > li > a:hover > span,
.lm-menu > li.is-active > a > span {
  border-bottom-color: var(--lm-green);
}

.lm-sub {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 110px;
  padding: 5px 0 0;
  margin: 0;
  list-style: none;
  background: rgba(86, 82, 82, 0.46);
  display: none;
  z-index: 50;
}

.lm-menu > li:hover > .lm-sub {
  display: block;
}

.lm-sub li a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(86, 82, 82, 0.46);
}

.lm-sub li a:hover {
  background: rgba(86, 82, 82, 0.92);
}

.lm-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 120px;
  font-size: 13px;
  color: #afafaf;
  white-space: nowrap;
  flex: 0 0 auto;
}

.lm-lang a {
  color: #afafaf;
  text-decoration: none;
}

.lm-lang a:hover,
.lm-lang a.is-active {
  color: var(--lm-text);
}

.lm-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  flex: 0 0 auto;
}

.lm-burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--lm-text);
  transition: transform 0.25s, opacity 0.25s;
}

.lm-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.lm-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.lm-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lm-nav-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
  z-index: 999;
}

.lm-nav-mask.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------------- 页脚 ---------------- */
.lm-footer {
  margin-top: 40px;
  background: rgba(250, 250, 250, 0.66);
}

.lm-footer__inner {
  box-sizing: border-box;
  max-width: 970px;
  min-height: 50px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.lm-social {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 0 0 65px;
  padding: 0;
}

.lm-qr-wrap {
  position: relative;
  cursor: pointer;
}

.lm-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 55px;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
}

.lm-social__icon--wechat {
  background-image: url('/images/icon1.png');
}

.lm-social__icon--weibo {
  background-image: url('/images/icon2.png');
}

.lm-social__icon--divider {
  background-image: url('/images/icon3.png');
}

.lm-qr-pop {
  position: absolute;
  top: -178px;
  left: -26px;
  width: 144px;
  height: 144px;
  padding: 16px;
  background: url('/images/qrcodebg.png') no-repeat 30px 160px;
  border: 0;
  box-shadow: none;
  display: none;
  z-index: 60;
}

.lm-qr-pop img {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: contain;
}

.lm-qr-wrap:hover .lm-qr-pop {
  display: block;
}

.lm-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 125px 0 0;
  padding: 0;
  font-size: 14px;
}

.lm-footer-links li {
  padding: 0 10px;
  line-height: 25px;
}

.lm-footer-links .lm-br-space {
  display: none;
}

.lm-footer-links a {
  color: #555;
  text-decoration: none;
}

.lm-footer-links a:hover {
  color: var(--lm-green);
}

/* ---------------- 通用页面元素 ---------------- */
.lm-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--lm-green);
  text-align: center;
  letter-spacing: 2px;
}

.lm-prose p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--lm-text);
}

.lm-back-home {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 22px;
  border: 1px solid var(--lm-green);
  color: var(--lm-green);
  text-decoration: none;
  font-size: 14px;
}

.lm-back-home:hover {
  background: var(--lm-green);
  color: #fff;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .lm-header__inner {
    max-width: 100%;
    padding: 0 12px;
    background-size: 100% 68px;
  }

  .lm-logo {
    width: 56px;
    margin-left: 0;
  }

  .lm-logo img {
    width: 56px;
  }

  .lm-menu {
    width: auto;
    margin-left: 8px;
    justify-content: flex-start;
  }

  .lm-menu > li > a {
    padding: 15px 12px;
    font-size: 13px;
  }

  .lm-lang {
    margin-right: 0;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .lm-header {
    padding-top: 0;
  }

  .lm-header__inner {
    position: sticky;
    top: 0;
    max-width: 100%;
    height: auto;
    padding: 8px 14px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    background-image: none;
    backdrop-filter: none;
  }

  .lm-logo {
    width: 46px;
    margin-left: 0;
  }

  .lm-logo img {
    width: 46px;
    height: 46px;
  }

  .lm-burger {
    display: block;
    margin-left: auto;
  }

  .lm-nav {
    position: fixed;
    top: 0;
    right: -100%;
    visibility: hidden;
    box-sizing: border-box;
    width: 78%;
    max-width: 340px;
    height: 100vh;
    padding: 76px 20px 30px;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    transition: right 0.28s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  .lm-nav.is-open {
    right: 0;
    visibility: visible;
  }

  .lm-menu {
    display: block;
    width: 100%;
    margin: 0;
  }

  .lm-menu > li > a > span {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .lm-menu > li {
    width: 100%;
  }

  .lm-menu > li > a {
    display: block;
    height: auto;
    padding: 14px 2px;
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid #eee;
    box-shadow: none;
  }

  .lm-menu > li.is-active > a {
    color: var(--lm-green);
    background: transparent;
  }

  .lm-menu > li > a {
    position: relative;
  }

  .lm-menu > li.has-sub > a::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    transform: rotate(45deg);
    transition: transform 0.2s;
  }

  .lm-menu > li.has-sub.is-open > a::after {
    transform: rotate(-135deg);
    margin-top: -2px;
  }

  .lm-sub {
    position: static;
    transform: none;
    display: none;
    width: 100%;
    padding: 4px 0 10px 14px;
    background: #f6f6f6;
  }

  .lm-menu > li.is-open > .lm-sub {
    display: block;
  }

  .lm-sub li a {
    color: var(--lm-text);
    padding: 10px 12px;
    font-size: 14px;
  }

  .lm-sub li a:hover {
    background: rgba(0, 111, 101, 0.08);
    color: var(--lm-green);
  }

  /* 移动端：语言切换居中固定在头部中间，与原站一致 */
  .lm-lang {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 15px;
    gap: 8px;
    justify-content: center;
    z-index: 1;
  }

  .lm-lang a,
  .lm-lang span {
    padding: 0 1px;
  }

  .lm-footer {
    margin-top: 28px;
    background: #fafafa;
    border-top: 1px solid rgba(0, 111, 101, 0.08);
  }

  .lm-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 20px 16px 22px;
  }

  .lm-social {
    margin: 0 auto;
    justify-content: center;
  }

  .lm-social__icon {
    width: 34px;
    height: 38px;
  }

  .lm-social__divider {
    display: none;
  }

  .lm-footer-links {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, auto);
    justify-content: center;
    column-gap: 32px;
    row-gap: 4px;
    margin: 0;
    font-size: 13px;
    text-align: center;
  }

  .lm-footer-links li {
    padding: 0;
    line-height: 1.8;
  }

  /* 中文页脚四个链接排成一行 */
  body.lang-zh_CN .lm-footer-links,
  body.lang-zh_TW .lm-footer-links {
    grid-template-columns: repeat(4, auto);
    column-gap: 14px;
  }

  .lm-footer-links .lm-br {
    display: none;
  }

  .lm-footer-links .lm-br-space {
    display: inline;
  }

  .lm-footer-links li:last-child {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 12px;
    color: #8a8a8a;
    white-space: nowrap;
  }

  .lm-qr-pop {
    left: 50%;
    transform: translateX(-50%);
    top: -188px;
  }
}

@media (max-width: 480px) {
  .lm-menu > li > a {
    font-size: 14px;
  }

}
