.footer-friends {
  height: 44px;
  display: flex;
  align-items: center;
  background: #EEEAE0;
  border-top: 1px solid #DCD5C6;
  border-bottom: 1px solid #DCD5C6;
  box-sizing: border-box;
}
.footer-friends[hidden] { display: none; }
.footer-friends .frame {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-friends strong {
  flex: 0 0 auto;
  color: #52605A;
  font-size: 13px;
  font-weight: 700;
}
.footer-friends nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.footer-friends a {
  position: relative;
  font-size: 12.5px;
  line-height: 24px;
  transition: color .2s ease;
}
.footer-friends a + a { margin-left: 30px; }
.footer-friends a + a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: #CFC7B8;
  transform: translateY(-50%);
}
.footer-friends a:hover { color: #2F5B4A; }

/* 全站底页精简：保留品牌说明与联系方式，联系方式居中展示 */
footer > .frame > .grid > .col-span-2 { display: none; }
footer > .frame > .grid > .col-span-4:last-child {
  grid-column: 5 / span 4;
}
footer > .frame > .grid > .col-span-4:last-child > .mt-5 { display: none; }
footer > .frame > .grid > [data-footer-contact] {
  grid-column: 5 / span 4 !important;
  grid-row: 1 !important;
}
footer > .frame > .grid > [data-footer-contact] > .mt-5 { display: none; }
footer > .frame > .grid > [data-footer-qr-panel] {
  grid-column: 9 / span 4 !important;
  grid-row: 1 !important;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

/* 底部只保留三块信息，改为三列布局，避免隐藏栏目留下空列。 */
footer > .frame > .grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr) minmax(280px, 1.1fr) !important;
  column-gap: 56px !important;
  row-gap: 0 !important;
  align-items: start;
}
footer > .frame > .grid > .col-span-4:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
footer > .frame > .grid > [data-footer-contact] {
  grid-column: 2 !important;
  grid-row: 1 !important;
}
footer > .frame > .grid > [data-footer-qr-panel] {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-content: center;
}
footer > .frame > .grid > [data-footer-contact] {
  justify-self: end;
  width: max-content;
  max-width: 100%;
}
footer > .frame > .grid > [data-footer-qr-panel] {
  justify-self: start;
  justify-content: flex-start;
  padding-left: 40px;
  box-sizing: border-box;
}
.footer-qr-item {
  display: flex;
  flex: 0 0 96px;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #C9D5D3;
  font-size: 12px;
  text-align: center;
}
.footer-qr-box {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #F7F3E9;
  border: 1px solid rgba(255,255,255,.46);
  box-sizing: border-box;
}
.footer-qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-qr-placeholder {
  color: #7A8D91;
  font-size: 11px;
  letter-spacing: .08em;
}
.footer-qr-label { white-space: nowrap; }

@media (max-width: 900px) {
  .footer-friends { height: auto; min-height: 44px; padding: 10px 0; }
  .footer-friends .frame { height: auto; align-items: flex-start; flex-wrap: wrap; gap: 6px 18px; }
  .footer-friends nav { flex-wrap: wrap; row-gap: 4px; }
  footer > .frame > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 32px !important;
  }
  footer > .frame > .grid > .col-span-4:first-child { grid-column: 1 !important; grid-row: auto !important; }
  footer > .frame > .grid > .col-span-4:last-child { grid-column: span 12; }
  footer > .frame > .grid > [data-footer-contact] { grid-column: 1 !important; grid-row: auto !important; }
  footer > .frame > .grid > [data-footer-qr-panel] {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: center;
    justify-content: center;
    padding-left: 0;
  }
}

/* Footer v13：新增24小时热线后，联系我们仍保持在三列布局的正中位置 */
@media (min-width: 901px) {
  footer > .frame > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 64px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  footer > .frame > .grid > .col-span-2,
  footer > .frame > .grid > [data-footer-quick] {
    display: none !important;
  }
  footer > .frame > .grid > .col-span-4:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    transform: none !important;
  }
  footer > .frame > .grid > [data-footer-contact] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 360px !important;
    transform: none !important;
    text-align: left !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 260px !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    align-items: center !important;
  }
  footer > .frame > .grid > [data-footer-contact]::before,
  footer > .frame > .grid > [data-footer-qr-panel]::before {
    top: 0 !important;
    width: 0 !important;
    height: 148px !important;
    background: transparent !important;
    border-left: 1px dashed rgba(101, 113, 111, .82) !important;
  }
  footer > .frame > .grid > [data-footer-contact]::before { left: -130px !important; }
  footer > .frame > .grid > [data-footer-qr-panel]::before { left: -70px !important; }
}

/* Footer v15：简介文本与网站名称文字左边缘对齐，首行缩进两个汉字 */
@media (min-width: 901px) {
  footer > .frame > .grid > .col-span-4:first-child > p {
    padding-left: 52px !important;
    text-indent: 2em !important;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  footer > .frame > .grid > [data-footer-contact] {
    transform: none !important;
    text-align: left !important;
  }
}

/* Footer v11：移除快速入口整列，剩余三块等分布局 */
footer > .frame > .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 56px !important;
  row-gap: 0 !important;
  align-items: start !important;
}
footer > .frame > .grid > .col-span-2 {
  display: none !important;
}
footer > .frame > .grid > .col-span-4:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
}
footer > .frame > .grid > [data-footer-contact] {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  width: 100% !important;
  max-width: 360px !important;
}
footer > .frame > .grid > [data-footer-qr-panel] {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  width: 240px !important;
  max-width: 100% !important;
  padding-left: 0 !important;
}
.footer-qr-list {
  gap: 32px !important;
}
footer > .frame > .grid > [data-footer-contact] {
  transform: translateX(-28px);
}
footer > .frame > .grid > .col-span-4:first-child {
  transform: translateX(48px);
}
footer > .frame > .grid > [data-footer-contact],
footer > .frame > .grid > [data-footer-qr-panel] {
  position: relative;
}
footer > .frame > .grid > [data-footer-contact]::before,
footer > .frame > .grid > [data-footer-qr-panel]::before {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 128px;
  background: rgba(201, 213, 211, .34);
  pointer-events: none;
}
footer > .frame > .grid > [data-footer-contact]::before {
  left: -56px;
}
footer > .frame > .grid > [data-footer-qr-panel]::before {
  left: -48px;
}

@media (max-width: 900px) {
  footer > .frame > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 28px !important;
  }
  footer > .frame > .grid > .col-span-4:first-child,
  footer > .frame > .grid > [data-footer-contact],
  footer > .frame > .grid > [data-footer-qr-panel] {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
    width: 100% !important;
    max-width: none !important;
  }
  footer > .frame > .grid > [data-footer-contact] {
    transform: none;
  }
  footer > .frame > .grid > .col-span-4:first-child {
    transform: none;
  }
  footer > .frame > .grid > [data-footer-contact]::before,
  footer > .frame > .grid > [data-footer-qr-panel]::before {
    display: none;
  }
}

/* Footer v12：三列等距布局，分割线置于列间正中，避免视觉偏右 */
@media (min-width: 901px) {
  footer > .frame > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 64px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  footer > .frame > .grid > .col-span-2,
  footer > .frame > .grid > [data-footer-quick] {
    display: none !important;
  }
  footer > .frame > .grid > .col-span-4:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    transform: none !important;
  }
  footer > .frame > .grid > [data-footer-contact] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 360px !important;
    transform: none !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 260px !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    align-items: center !important;
  }
  footer > .frame > .grid > [data-footer-contact]::before,
  footer > .frame > .grid > [data-footer-qr-panel]::before {
    top: 0;
    left: -32px;
    width: 0;
    height: 128px;
    background: transparent;
    border-left: 1px dashed rgba(101, 113, 111, .82);
  }
  footer > .frame > .grid > [data-footer-contact]::before {
    left: -130px;
  }
  footer > .frame > .grid > [data-footer-qr-panel]::before {
    left: -70px;
  }
}

/* 页脚版权区分隔线使用深灰色，避免未生成的 border-white/12 回退为白线 */
footer > .frame > .mt-10 {
  border-top-color: rgba(101, 113, 111, .82) !important;
}

/* Footer v8：四区信息架构，补足空白并保持内容层级清晰 */
footer > .frame > .grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(150px, .7fr) minmax(0, 1.15fr) minmax(230px, .95fr) !important;
  column-gap: 36px !important;
  row-gap: 0 !important;
  align-items: start !important;
}
footer > .frame > .grid > .col-span-2 {
  display: none !important;
}
footer > .frame > .grid > [data-footer-quick] {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
}
footer > .frame > .grid > .col-span-4:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
footer > .frame > .grid > [data-footer-contact] {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  width: auto !important;
  max-width: none !important;
}
footer > .frame > .grid > [data-footer-contact] > .mt-5 {
  display: none !important;
}
footer > .frame > .grid > [data-footer-qr-panel] {
  grid-column: 4 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding-left: 0 !important;
  box-sizing: border-box;
}
footer > .frame > .grid > [data-footer-quick] h3,
.footer-qr-heading {
  margin: 0;
  color: #F5F1E8;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
footer > .frame > .grid > [data-footer-quick] ul {
  margin-top: 16px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 10px;
}
footer > .frame > .grid > [data-footer-quick] ul > li {
  margin-top: 0 !important;
  white-space: nowrap;
}
footer > .frame > .grid > [data-footer-quick] a {
  color: #C9D5D3;
  font-size: 13px;
  line-height: 1.6;
}
footer > .frame > .grid > [data-footer-quick] a:hover { color: #FFFFFF; }
footer [data-footer-contact] ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 16px !important;
}
footer [data-footer-contact] ul > li {
  width: 100% !important;
  margin-top: 0 !important;
  white-space: normal !important;
}
.footer-qr-list {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

@media (max-width: 900px) {
  footer > .frame > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 28px !important;
  }
  footer > .frame > .grid > .col-span-4:first-child,
  footer > .frame > .grid > [data-footer-quick],
  footer > .frame > .grid > [data-footer-contact],
  footer > .frame > .grid > [data-footer-qr-panel] {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    align-items: flex-start !important;
  }
}

/* Footer v14：最终覆盖旧版规则，确保联系人位于三列中间 */
@media (min-width: 901px) {
  footer > .frame > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 64px !important;
  }
  footer > .frame > .grid > .col-span-2,
  footer > .frame > .grid > [data-footer-quick] {
    display: none !important;
  }
  footer > .frame > .grid > .col-span-4:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    transform: none !important;
  }
  footer > .frame > .grid > [data-footer-contact] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 360px !important;
    transform: none !important;
    text-align: left !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 260px !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    align-items: center !important;
  }
  footer > .frame > .grid > [data-footer-contact]::before,
  footer > .frame > .grid > [data-footer-qr-panel]::before {
    top: 0 !important;
    width: 0 !important;
    height: 148px !important;
    background: transparent !important;
    border-left: 1px dashed rgba(101, 113, 111, .82) !important;
  }
  footer > .frame > .grid > [data-footer-contact]::before { left: -130px !important; }
  footer > .frame > .grid > [data-footer-qr-panel]::before { left: -70px !important; }
}

/* Footer v16：分割线回到两列之间的正中，不侵入内容区域 */
@media (min-width: 901px) {
  footer > .frame > .grid > [data-footer-contact] {
    width: 100% !important;
    max-width: none !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    width: 100% !important;
    max-width: none !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] .footer-qr-list {
    justify-content: center !important;
  }
}

/* Footer v17：三列使用完整列宽，内容与列间分割线严格对齐 */
@media (min-width: 901px) {
  footer > .frame > .grid > [data-footer-contact]::before {
    left: -32px !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel]::before {
    left: -32px !important;
  }
}

/* Footer v18：版权、备案与许可证信息整体水平居中 */
footer > .frame > .mt-10 {
  justify-content: center !important;
}
footer > .frame > .mt-10 > span[data-footer-copyright] {
  text-align: center !important;
}

/* Footer v19：三块内容采用真正等分列，取消额外列间空隙 */
@media (min-width: 901px) {
  footer > .frame > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
  }
  footer > .frame > .grid > .col-span-4:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }
  footer > .frame > .grid > [data-footer-contact] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  footer > .frame > .grid > [data-footer-contact] > h3,
  footer > .frame > .grid > [data-footer-contact] > ul {
    width: max-content !important;
    max-width: 100% !important;
  }
  footer > .frame > .grid > [data-footer-contact] > ul {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-items: center !important;
  }
  footer > .frame > .grid > [data-footer-contact]::before {
    left: 0 !important;
  }
footer > .frame > .grid > [data-footer-qr-panel]::before {
    left: 0 !important;
  }
}

/* Footer v20：左侧简介左右留白对称，避免文字贴近分割线 */
@media (min-width: 901px) {
footer > .frame > .grid > .col-span-4:first-child > p {
    padding-left: 52px !important;
    padding-right: 52px !important;
    box-sizing: border-box !important;
  }
}

/* Footer v21：左侧分割线向右微调，平衡简介与联系我们之间的留白 */
@media (min-width: 901px) {
  footer > .frame > .grid > [data-footer-contact]::before {
    left: 32px !important;
  }
}

/* Footer v22：联系我们与小程序入口在各自列内左对齐 */
@media (min-width: 901px) {
  footer > .frame > .grid > [data-footer-contact] {
    align-items: flex-start !important;
    padding-left: 32px !important;
    box-sizing: border-box !important;
  }
  footer > .frame > .grid > [data-footer-contact] > h3,
  footer > .frame > .grid > [data-footer-contact] > ul {
    width: 100% !important;
    max-width: none !important;
  }
  footer > .frame > .grid > [data-footer-contact] > ul {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    align-items: flex-start !important;
    padding-left: 32px !important;
    box-sizing: border-box !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] .footer-qr-list {
    justify-content: flex-start !important;
  }
}

/* Footer v23：分割线固定在列边界，左右两列内容统一左内边距 */
@media (min-width: 901px) {
  footer > .frame > .grid > [data-footer-contact]::before,
  footer > .frame > .grid > [data-footer-qr-panel]::before {
    left: 0 !important;
  }
}

/* Footer v24：备案信息独立深色底，分割线横跨整个视口 */
footer > .frame > .mt-10 {
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  margin-top: 10px !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
  justify-content: center !important;
  border-top: 1px solid rgba(182, 197, 197, 0.34) !important;
  background: #29404E !important;
  padding: 22px 24px 20px !important;
}

footer > .frame > .mt-10 > span[data-footer-copyright] {
  display: block !important;
  width: min(100%, 1280px) !important;
  text-align: center !important;
}

/* Footer v25：裁掉视口滚动条带来的 100vw 微小溢出 */
footer {
  overflow-x: hidden !important;
  background-color: #355463 !important;
}

/* Footer v26：根节点裁剪横向溢出，但不能创建滚动容器，否则主导航 sticky 会失效。 */
html,
body {
  overflow-x: clip !important;
}

/* Footer v28：移除页脚容器底部多余留白，让备案深色区成为最底部 */
footer > .frame {
  padding-bottom: 0 !important;
}

/* Footer v27：联系我们与小程序入口在各自列内居中，左右留白一致 */
@media (min-width: 901px) {
  footer > .frame > .grid > [data-footer-contact] {
    display: grid !important;
    grid-template-columns: max-content !important;
    justify-content: center !important;
    align-content: start !important;
    align-items: start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  footer > .frame > .grid > [data-footer-contact] > h3,
  footer > .frame > .grid > [data-footer-contact] > ul {
    width: auto !important;
    max-width: none !important;
  }
  footer > .frame > .grid > [data-footer-contact] > ul {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] {
    display: grid !important;
    grid-template-columns: max-content !important;
    justify-content: center !important;
    align-content: start !important;
    align-items: start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] > .footer-qr-heading {
    width: auto !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] .footer-qr-list {
    width: max-content !important;
    justify-content: flex-start !important;
  }
  footer > .frame > .grid > [data-footer-qr-panel] .footer-qr-item:last-child {
    transform: translateX(30px) !important;
  }
  /* Footer v29：联系我们与小程序入口整体右移30px */
  footer > .frame > .grid > [data-footer-contact],
  footer > .frame > .grid > [data-footer-qr-panel] {
    position: relative !important;
    left: 30px !important;
  }
}

@media (max-width: 900px) {
  footer > .frame > .mt-10 {
    left: 50% !important;
    width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }
}

/* Footer v30：主内容区上下留白对称，备案栏保持独立贴底。 */
@media (min-width: 901px) {
  footer > .frame {
    padding-top: 38px !important;
  }
  footer > .frame > .grid {
    padding-bottom: 28px !important;
    box-sizing: border-box !important;
  }
}
