/* 布吉岛模板网页脚组件，仅作用于自定义主题。 */
.bjd-footer {
  margin-top: 0;
  padding: 52px 0 0;
  border-top: 4px solid var(--bjd-accent);
  background: var(--bjd-footer);
  color: #aaa399;
}

.bjd-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) minmax(130px, .65fr) minmax(210px, 1fr) 130px;
  gap: 58px;
  align-items: start;
  padding-bottom: 42px;
}

.bjd-footer-brand > a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #f4f1ea;
}

.bjd-footer-brand > a:hover,
.bjd-footer-brand > a:focus {
  color: #fff;
  text-decoration: none;
}

.bjd-footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.bjd-footer-brand span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bjd-footer-brand strong {
  font-size: 18px;
  letter-spacing: .06em;
}

.bjd-footer-brand small {
  color: #8f8a81;
  font-size: 10px;
  letter-spacing: .08em;
}

.bjd-footer-brand > p {
  max-width: 340px;
  margin: 22px 0 0;
  color: #8f8a81;
  line-height: 1.8;
}

.bjd-footer-group h3 {
  margin: 5px 0 22px;
  color: #f4f1ea;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.bjd-footer-group > a,
.bjd-footer-group > p {
  display: block;
  margin: 0 0 12px;
  color: #aaa399;
  font-size: 12px;
  line-height: 1.6;
}

.bjd-footer-group > a:hover,
.bjd-footer-group > a:focus {
  color: #f4f1ea;
  text-decoration: none;
}

.bjd-footer-wechat {
  text-align: center;
}

.bjd-footer-wechat img {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  padding: 5px;
  background: #fff;
  object-fit: contain;
}

.bjd-footer-wechat p {
  margin: 12px 0 0;
  color: #8f8a81;
  font-size: 11px;
  letter-spacing: .06em;
}

.bjd-footer-bottom {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #403d37;
  position: relative;
}

.bjd-footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #817c73;
  font-size: 11px;
  letter-spacing: .02em;
}

.bjd-footer-legal i {
  color: #57534c;
  font-style: normal;
}

.bjd-footer-legal a {
  color: #aaa399;
}

.bjd-footer-statistical {
  position: absolute;
  right: 0;
}

/* 首页友情链接与页脚保持连续，不重复分隔。 */
.link_box {
  margin: 0;
  background: var(--bjd-footer);
  color: #817c73;
}

.link_box .container {
  padding-top: 8px;
  padding-bottom: 10px;
}

.link_title,
.link_list a {
  color: #817c73;
}

.link_list a:hover,
.link_list a:focus {
  color: #f4f1ea;
}

#link_btn {
  color: var(--bjd-accent);
}

@media screen and (max-width: 991px) {
  .bjd-footer-main {
    grid-template-columns: 1.5fr 1fr 110px;
    gap: 36px;
  }

  .bjd-footer-nav {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .bjd-footer {
    padding: 36px 0 50px;
  }

  .bjd-footer-main {
    grid-template-columns: 1fr auto;
    gap: 30px 20px;
    padding-bottom: 28px;
  }

  .bjd-footer-brand {
    grid-column: 1 / -1;
  }

  .bjd-footer-brand img {
    width: 48px;
    height: 48px;
  }

  .bjd-footer-brand > p {
    margin-top: 14px;
  }

  .bjd-footer-wechat img {
    width: 92px;
    height: 92px;
  }

  .bjd-footer-bottom {
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 12px 0;
  }

  .bjd-footer-legal {
    gap: 9px;
    flex-wrap: wrap;
  }
}
