/* Langem site overrides — layout, contact, performance-friendly tweaks */

/* —— Navbar: full-bleed, contact flush right —— */
.rd-navbar-minimal.rd-navbar-static .rd-navbar-main-outer {
  padding-left: 0;
  padding-right: 0;
}

.rd-navbar-minimal.rd-navbar-static .rd-navbar-main {
  max-width: none;
  width: 100%;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
  box-sizing: border-box;
}

.rd-navbar-minimal.rd-navbar-static .rd-navbar-main-element {
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Stick/clone 时模板会把左右 padding 清零，导致「联系方式」往右跳 */
.rd-navbar-minimal.rd-navbar-static.rd-navbar--is-stuck .rd-navbar-main,
.rd-navbar-minimal.rd-navbar-static.rd-navbar--is-clone .rd-navbar-main {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 20px clamp(16px, 3vw, 48px);
}

.rd-navbar-panel h5 {
  margin: 0 0 0 12px;
  font-size: clamp(14px, 1.4vw, 18px);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 小屏 fixed 布局：联系方式仍走文档流，避免 position:fixed 右偏 */
.rd-navbar-fixed .rd-navbar-main-element {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 17;
  min-width: 0;
  margin-left: 0;
}

.rd-navbar-fixed .rd-navbar-main-element .rd-nav-link {
  color: #151515;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 12px;
  border-radius: 4px;
}

.rd-navbar-minimal .rd-nav-link {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 4px;
}

@media (max-width: 575.98px) {
  .rd-navbar-panel h5 {
    white-space: normal;
    line-height: 1.25;
    max-width: 11em;
  }
}

/* —— Hero split: fills viewport width —— */
.hero-split {
  display: flex;
  width: 100%;
  min-height: min(78vh, 720px);
  background: #f3f4f8;
}

.hero-split-media {
  flex: 0 0 42%;
  max-width: 42%;
  min-height: 360px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-split-content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(32px, 4.5vw, 64px) clamp(28px, 4vw, 64px) clamp(32px, 4.5vw, 64px) clamp(24px, 3vw, 48px);
}

.hero-split-inner {
  width: 100%;
  max-width: none;
}

.hero-split-inner .hero-kicker {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: #5f0187;
  letter-spacing: 0.02em;
  font-weight: 500;
  white-space: nowrap;
}

.hero-split-inner .hero-title {
  margin: 0 0 20px;
  line-height: 1.25;
}

.hero-split-inner .hero-title-line {
  display: block;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 400;
  color: #4a4458;
  white-space: nowrap;
}

.hero-split-inner .hero-title-brand {
  display: block;
  margin-top: 6px;
  font-size: clamp(40px, 4.2vw, 54px);
  font-weight: 700;
  color: #151515;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-split-inner .hero-text {
  margin: 0 0 28px;
  max-width: 42em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: #5c5c66;
}

.hero-split-inner .button {
  margin-top: 0;
}

@media (max-width: 1199.98px) {
  .hero-split-inner .hero-kicker,
  .hero-split-inner .hero-title-line,
  .hero-split-inner .hero-title-brand {
    white-space: normal;
  }
}

@media (max-width: 991.98px) {
  .hero-split {
    flex-direction: column;
    min-height: 0;
  }

  .hero-split-media {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 42vh;
  }

  .hero-split-content {
    flex: none;
    width: 100%;
  }
}

/* —— Contact list alignment —— */
.contact-list {
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
}

.contact-list > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list > li + li {
  margin-top: 16px;
}

.contact-list .icon {
  flex: 0 0 24px;
  width: 24px;
  text-align: center;
  line-height: 1.4;
  margin-top: 2px;
}

.contact-list .link-default,
.contact-list span.contact-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.55;
  white-space: normal;
}

.footer-standard .box-1 {
  max-width: none;
}

.footer-qr {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
  margin-top: 16px;
}

/* 页脚版权 / 备案 / 网安：整体水平居中 */
.footer-standard-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  text-align: center;
  margin-left: 0;
  gap: 14px;
}

.footer-standard-aside > * {
  margin-left: 0;
  margin-bottom: 0;
}

.footer-standard-aside .rights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  text-align: center;
  max-width: 920px;
  line-height: 1.7;
}

.footer-standard-aside .rights img {
  display: inline-block;
  vertical-align: middle;
  height: 20px;
  width: auto;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-standard-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: 0;
  }

  .footer-standard-aside > * {
    margin-left: 0;
  }
}

/* WeChat modal */
#image-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}

#image-modal.is-open {
  display: flex;
}

#image-modal img {
  max-width: 70%;
  max-height: 70%;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

#image-modal .modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Case cards: consistent media crop */
.post-classic-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 370 / 264;
}

.post-classic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
