/*
 * edm.251w.com 站点补丁样式
 * Author: 缘境 (yvsm@zunyunkeji.com)
 */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text small {
  font-size: 11px;
  font-weight: 500;
  opacity: .75;
  letter-spacing: .04em;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0066ff, #001b5e);
  color: #fff;
  font-size: 18px;
}

.hero-bg,
.hero--home .hero-bg,
.hero--about .hero-bg,
.hero--contact .hero-bg,
.hero--cases .hero-bg {
  background-image: none !important;
  background: linear-gradient(145deg, #001b5e 0%, #0a3a9a 48%, #0066ff 100%) !important;
}
.cta-banner-photo,
.cta-banner-bg {
  background-image: none !important;
  background: linear-gradient(120deg, #001b5e, #0066ff) !important;
}

.article-side h3 {
  margin: 0 0 12px;
  color: #001b5e;
  font-size: 16px;
}
.side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5ebf5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.side-nav a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f8;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover,
.side-nav a.active {
  background: #f5f8fd;
  color: #0066ff;
}
.article-body {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 16px;
  padding: 28px 32px;
  line-height: 1.85;
  color: #1f2937;
}
.article-body h2,
.article-body h3 { color: #001b5e; margin-top: 1.4em; }
.article-back { margin-top: 28px; padding-top: 18px; border-top: 1px solid #eef2f8; }

.edm-pkg.is-recommend {
  border-color: #0066ff;
  box-shadow: 0 12px 32px rgba(0, 102, 255, .12);
}

/* 页脚二维码：强制正方形正常展示 */
.footer-grid--qr {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(260px, auto) !important;
  align-items: start;
}
.footer-qr-col {
  min-width: 260px;
}
.footer-qr-list {
  display: flex !important;
  flex-direction: row !important;
  gap: 18px !important;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-qr {
  margin: 0 !important;
  width: 120px !important;
  flex: 0 0 120px !important;
  text-align: center;
  writing-mode: horizontal-tb !important;
}
.footer-qr img {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  object-fit: contain !important;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  display: block;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.footer-qr figcaption {
  margin-top: 8px;
  font-size: .75rem;
  color: rgba(255, 255, 255, .7);
  writing-mode: horizontal-tb !important;
  letter-spacing: normal;
}

/* 联系区：无表单，展示二维码 */
.contact-layout--qr {
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}
.contact-scan-panel {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-scan-panel h3 {
  margin: 0 0 8px;
  color: #001b5e;
  font-size: 1.2rem;
}
.contact-scan-panel p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.contact-scan-panel img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5ebf5;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}
.contact-scan-panel .wx-id {
  margin-top: 14px;
  font-size: 15px;
  color: #334155;
}
.contact-scan-panel .btn {
  margin-top: 16px;
}

/* 微信弹层 */
.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
}
.wx-modal.open {
  opacity: 1;
  visibility: visible;
}
.wx-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}
.wx-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 36px 40px 28px;
  text-align: center;
  max-width: 360px;
  width: 92%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  transform: translateY(16px) scale(.96);
  transition: all .25s;
}
.wx-modal.open .wx-modal-box {
  transform: translateY(0) scale(1);
}
.wx-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.wx-modal-box h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #001b5e;
}
.wx-qr img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5ebf5;
  padding: 8px;
  box-sizing: border-box;
  margin: 0 auto;
}
.wx-id {
  margin: 14px 0 6px;
  color: #334155;
}
.wx-tip {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 1200px) {
  .footer-grid--qr {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .footer-qr-col {
    grid-column: 1 / -1;
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .contact-layout--qr { grid-template-columns: 1fr; }
  .footer-grid--qr {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  .footer-grid--qr {
    grid-template-columns: 1fr !important;
  }
}


/* 文章布局：帮助=左目录右正文；技巧=左正文右相关 */
.article-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}
.article-layout--help {
  grid-template-columns: 280px minmax(0, 1fr);
}
.article-layout--tips {
  grid-template-columns: minmax(0, 1fr) 280px;
}
.article-layout .article-body {
  min-width: 0;
  width: 100%;
}
.article-layout .article-side {
  min-width: 0;
}
@media (max-width: 900px) {
  .article-layout--help,
  .article-layout--tips {
    grid-template-columns: 1fr;
  }
  .article-layout--tips .article-side { order: 2; }
  .article-layout--help .article-side { order: 0; }
}
