/* ===================================
   Footer 页脚样式
   =================================== */
.footer {
  background-color: #1f60e9;
  color: #fff;
  padding: 26px 0 14px;
}

.footer a {
  color: inherit;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(120px, 0.65fr)) auto;
  gap: 20px 20px;
  align-items: stretch;
}

.footer-company {
  grid-column: 1;
  grid-row: 1;
  display: block;
  min-width: 0;
}

.footer-company::before {
  content: "";
  display: block;
  width: 320px;
  height: 72px;
  background: url("../images/kaiqilogo.png") no-repeat left center / contain;
}

.footer-company > h3,
.footer-company > p {
  display: none;
}

.footer-qr {
  grid-column: 5;
  grid-row: 1 / span 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin-top: 0;
}

.footer-qr .ewmlist,
.footer-qr .footer-ewm-list {
  display: flex !important;
  align-items: center !important;
  gap: 16px;
  padding-left: 0;
}

.footer-qr .ewmlist > div,
.footer-qr .footer-ewm-item {
  margin: 0 !important;
}

.footer-qr .ewmlist img,
.footer-qr .footer-ewm-item img {
  width: 104px !important;
  height: 104px !important;
  display: block;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}

.footer-qr .ewmlist p,
.footer-qr .footer-ewm-item p {
  flex: none;
  margin-top: 6px !important;
  text-align: center;
  font-size: 12px !important;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: flex-start;
  gap: 8px 18px;
}

.footer-contact h4,
.footer-links h4 {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  /* padding: 5px 0px; */
}

.footer-contact-list,
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-list {
  flex: 1 1 auto;
}

.footer-contact-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.footer-contact-list a:hover,
.footer-links a:hover {
  color: #dce8ff;
}

.footer-contact-icon {
  color: #dce8ff;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  min-width: 0;
}

.footer-links-column,
.footer-links-friends {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 0;
}

.footer-links-quick {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.footer-links-news {
  grid-column: 3;
  grid-row: 1 / span 3;
}

.footer-links-about {
  grid-column: 4;
  grid-row: 1 / span 3;
}

.footer-links-friends {
  grid-column: 1;
  grid-row: 3;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 14px;
}

.footer-links-column h4,
.footer-links-friends h4 {
  flex: 0 0 auto;
  line-height: 1.6;
}

.footer-contact h4 {
  white-space: nowrap;
}

.footer-links-column ul,
.footer-links-friends ul {
  display: flex !important;
}

.footer-links-column ul {
  flex-direction: column;
  gap: 8px 0;
  width: 100%;
}

.footer-links-column,
.footer-links-column h4,
.footer-links-column ul,
.footer-links-column li {
  text-align: center;
}

.footer-links-column {
  align-items: center;
}

.footer-links-friends ul {
  gap: 4px 0;
}

.footer-links-column li,
.footer-links-friends li {
  margin: 0;
}

.footer-links-column h4 {
  padding: 0;
}

.footer-links-column a {
  display: inline-block;
  line-height: 1.6;
}

.footer-links-friends ul {
  flex-wrap: wrap;
  align-items: baseline;
}

.footer-links-friends li {
  padding-right: 20px;
}

.footer-links-column a,
.footer-links-friends a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 992px) {
  .footer {
    padding: 22px 0 12px;
  }

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

  .footer-company,
  .footer-contact,
  .footer-links-friends,
  .footer-links-quick,
  .footer-links-news,
  .footer-links-about,
  .footer-qr {
    grid-column: 1 / -1;
  }

  .footer-company {
    grid-row: auto;
  }

  .footer-contact {
    grid-row: auto;
  }

  .footer-links-friends {
    grid-row: auto;
  }

  .footer-links-quick {
    grid-row: auto;
  }

  .footer-links-news,
  .footer-links-about {
    grid-row: auto;
  }

  .footer-qr {
    grid-row: auto;
    justify-content: flex-start;
  }

  .footer-qr .ewmlist,
  .footer-qr .footer-ewm-list {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 18px 0 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-company::before {
    width: 260px;
    height: 60px;
  }

  .footer-qr .ewmlist,
  .footer-qr .footer-ewm-list {
    width: auto;
    gap: 12px;
  }

  .footer-qr {
    justify-content: flex-start;
  }

  .footer-contact {
    gap: 8px 14px;
  }

  .footer-links-friends {
    align-items: flex-start;
  }

  .footer-links-quick,
  .footer-links-news,
  .footer-links-about {
    grid-column: auto;
    text-align: center;
    align-items: center;
  }

  .footer-links-quick {
    grid-column: 1;
  }

  .footer-links-news {
    grid-column: 2;
  }

  .footer-links-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer-qr .ewmlist,
  .footer-qr .footer-ewm-list {
    flex-direction: row;
    align-items: center !important;
    flex-wrap: nowrap;
  }

  .footer-links-column ul,
  .footer-links-friends ul {
    gap: 10px 0;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-company,
  .footer-contact,
  .footer-links-friends,
  .footer-qr {
    grid-column: 1 / -1;
  }

  .footer-links-quick,
  .footer-links-news,
  .footer-links-about {
    grid-row: auto;
    grid-column: auto;
  }

  .footer-links-quick {
    grid-column: 1;
  }

  .footer-links-news {
    grid-column: 2;
  }

  .footer-links-about {
    grid-column: 3;
  }

  .footer-links-friends li {
    padding-right: 12px;
  }

  .footer-bottom {
    text-align: left;
  }
}
