/* 顶部承诺条黑色区域（#151515）：高度约为改版前一半，图标 40px、文案 16px 不变 */
table[bgcolor="#151515"] > tbody > tr > td,
table[bgcolor="#151515"] > tr > td,
.yksite-footer-promo-cell {
  height: 120px !important;
  vertical-align: middle;
  padding: 0;
}

table[bgcolor="#151515"] td .dibuby {
  min-height: 40px;
}

table[bgcolor="#151515"] td .dibuby p {
  height: 40px !important;
  line-height: 40px !important;
  background-size: 40px 40px !important;
}

table[bgcolor="#151515"] td .dibuby p span {
  font-size: 16px;
  line-height: 40px;
}

/* 页脚：与 .header_two 同宽（90% + 左右 5% padding），左缘与头部 Logo 对齐 */

.yksite-footer-inner {
  width: 90%;
  padding: 0 5%;
  margin: 0 auto;
  box-sizing: border-box;
}

.yksite-footer-spacer {
  height: 60px;
}

.yksite-footer-spacer--bottom {
  height: 60px;
}

.yksite-footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px 0;
}

.yksite-footer-brand-col {
  flex: 0 0 260px;
  max-width: 260px;
  margin-right: 112px;
  padding-right: 16px;
}

/* 链接列：CSS Grid，避免 flex-wrap 把末列掉到「解决方案」下方 */
.yksite-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 1 420px;
  gap: 8px 28px;
  justify-content: stretch;
  align-content: start;
  min-width: 0;
  margin-left: 0;
  padding-left: 0;
}

.yksite-footer-inner .bottomA,
.yksite-footer-inner .yksite-footer-col {
  margin-left: 0 !important;
  min-width: 0;
  width: auto;
  max-width: none;
}

.yksite-footer-brand {
  width: 100%;
  max-width: 260px;
  padding-right: 0;
  box-sizing: border-box;
}

.yksite-footer-brand__logo {
  display: inline-block;
  margin-bottom: 14px;
}

.yksite-footer-brand__logo img {
  display: block;
  max-width: 200px;
  max-height: 56px;
  width: auto;
  height: auto;
}

.yksite-footer-brand__slogan {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #b8b8b8;
}

.yksite-footer-brand__line {
  height: 0;
  border: none;
  border-top: 1px solid #3d7ab8;
  margin: 0 0 14px;
  opacity: 0.85;
}

.yksite-footer-brand__intro {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.85;
  color: #8a8a8a;
  text-align: justify;
}

.yksite-footer-brand__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  max-width: 100%;
  overflow: visible;
}

.yksite-footer-btn {
  display: inline-block;
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
}

.yksite-footer-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #fff !important;
}

.yksite-footer-btn--blue { background: #3b7dd8; }
.yksite-footer-btn--green { background: #3dad6e; }
.yksite-footer-btn--orange { background: #e8913a; }
.yksite-footer-btn--purple { background: #8b6fc0; }

.yksite-footer-brand__social {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

.yksite-footer-social {
  display: block;
  text-decoration: none !important;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.yksite-footer-wechat-wrap {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.yksite-footer-wechat-pop {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 10050;
  background: #fff;
  padding: 12px 12px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  text-align: center;
  min-width: 140px;
}

.yksite-footer-wechat-pop.is-open {
  display: block;
}

.yksite-footer-wechat-pop::after {
  content: '';
  position: absolute;
  left: 14px;
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: #fff;
}

.yksite-footer-wechat-pop img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.yksite-footer-wechat-pop p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  white-space: nowrap;
}

.yksite-footer-social__icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3a3a3a;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  transition: background-color 0.2s;
}

.yksite-footer-social:hover .yksite-footer-social__icon {
  background-color: #4a4a4a;
}

.yksite-footer-social__icon--qq {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d0d0d0'%3E%3Cpath d='M12 2C6.48 2 2 6.03 2 10.72c0 2.83 1.56 5.34 4 6.88l-.82 2.45 2.65-1.4c1.17.32 2.41.49 3.17.49 5.52 0 10-4.03 10-8.72S17.52 2 12 2z'/%3E%3C/svg%3E");
}

.yksite-footer-social__icon--mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d0d0d0'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.yksite-footer-social__icon--wechat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d0d0d0'%3E%3Cpath d='M8.5 4C4.91 4 2 6.46 2 9.5c0 1.58.8 2.99 2.05 3.95L3 18l4.55-1.2c.77.22 1.58.34 2.45.34 3.59 0 6.5-2.46 6.5-5.5S12.09 4 8.5 4zm10 2c-3.04 0-5.5 2.01-5.5 4.5s2.46 4.5 5.5 4.5c.75 0 1.47-.13 2.12-.36L22 16l-.98-3.28C21.84 11.68 22.5 10.2 22.5 8.5 22.5 6.01 20.04 6 18.5 6z'/%3E%3C/svg%3E");
}

.yksite-footer-social--wechat:hover .yksite-footer-social__icon {
  background-color: #4a4a4a;
}

/* 右侧：社交图标 + 下方快捷按钮（按钮单行） */
.yksite-footer-contact {
  flex: 0 1 auto;
  max-width: none;
  margin-left: auto;
  padding-left: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.yksite-footer-contact__social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.yksite-footer-contact__actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.yksite-footer-contact__actions .yksite-footer-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.yksite-footer-contact__social .yksite-footer-wechat-pop {
  left: auto;
  right: 0;
}

.yksite-footer-contact__social .yksite-footer-wechat-pop::after {
  left: auto;
  right: 14px;
}

.yksite-footer-inner--bar {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #363636;
}

.yksite-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #6a6a6a;
}

.yksite-footer-bar a {
  color: #6a6a6a;
  text-decoration: none;
}

.yksite-footer-bar a:hover {
  color: #9a9a9a;
}

.yksite-footer-bar__right {
  color: #a8a8a8;
  white-space: nowrap;
}

@media (max-width: 1399px) {
  .yksite-footer-brand-col {
    margin-right: 48px;
  }

  .yksite-footer-links {
    gap: 8px 20px;
  }

  .yksite-footer-contact {
    padding-left: 16px;
  }
}

@media (max-width: 1199px) {
  .yksite-footer-brand-col {
    flex: 1 1 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .yksite-footer-links {
    flex: 1 1 100%;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .yksite-footer-contact {
    flex: 1 1 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding-left: 0;
    align-items: flex-start;
  }

  .yksite-footer-contact__social,
  .yksite-footer-contact__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .yksite-footer-inner {
    width: 94%;
    padding: 0 3%;
  }

  .yksite-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .yksite-footer-contact {
    padding-left: 0;
    margin-top: 8px;
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  table[bgcolor="#151515"] > tbody > tr > td,
  table[bgcolor="#151515"] > tr > td,
  .yksite-footer-promo-cell {
    height: auto !important;
    min-height: 80px;
    padding: 16px 0;
  }

  table[bgcolor="#151515"] td .dibuby {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding: 0 12px;
  }

  table[bgcolor="#151515"] td .dibuby p {
    width: calc(50% - 12px) !important;
    min-width: 140px;
    max-width: 100%;
    float: none !important;
    height: auto !important;
    min-height: 40px;
    line-height: 1.4 !important;
    padding: 8px 0 8px 44px !important;
    box-sizing: border-box;
    background-position: left 8px !important;
  }

  table[bgcolor="#151515"] td .dibuby p span {
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: block;
    white-space: normal;
  }

  .yksite-footer-spacer,
  .yksite-footer-spacer--bottom {
    height: 32px;
  }

  .yksite-footer-brand-col {
    margin-right: 0;
    padding-right: 0;
  }

  .yksite-footer-brand__actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .yksite-footer-contact__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .yksite-footer-btn {
    white-space: nowrap;
    text-align: center;
  }

  .yksite-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .yksite-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
  }

  .yksite-footer-bar__left,
  .yksite-footer-bar__right {
    white-space: normal;
    width: 100%;
    line-height: 1.6;
  }
}

@media (max-width: 479px) {
  table[bgcolor="#151515"] td .dibuby p {
    width: 100% !important;
  }

  .yksite-footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
