/* components/footer/footer.css */
/* ==== LZU Footer ==== */
.lzu-footer {
  background: url("https://static.igem.wiki/teams/5550/pic/footer/bottom-background.webp") center/cover no-repeat;

  --badge-size: clamp(120px, 10.5vw, 170px);
  --badge-gap: clamp(40px, 6.5vw, 110px);
  --icon-size: clamp(52px, 5.5vw, 72px);
  --social-top: clamp(150px, 12.3vw, 220px);
  --content-down: clamp(75px, 11vw, 150px);
  --right-offset: calc(var(--icon-size) + var(--social-top) + clamp(8px, 1vw, 12px));

  font-family: "Montserrat", "Poppins", "Inter", "Segoe UI Variable", "Segoe UI", "Noto Sans", "Microsoft YaHei", "PingFang SC", Helvetica, Arial, sans-serif;
  color: #0b0b0b;
  position: relative;
  width: 100%;
  min-height: clamp(400px, 33vw, 670px);
  padding: 24px 24px 30px;
  overflow: hidden;
  box-sizing: border-box;
}

/* ====== 主栅格 ====== */
.lzu-footer .footer-wrap {
  max-width: clamp(980px, 85vw, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 3.2vw, 48px);
  align-items: end;
  min-height: 320px;
}

/* ====== 右上角社交图标 ====== */
.lzu-footer .footer-social {
  position: absolute;
  top: var(--social-top);
  right: clamp(20px, 18vw, 350px);
  gap: clamp(16px, 2.6vw, 35px);
  display: flex;
  z-index: 3;
}

.lzu-footer .si-img {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  border-radius: 50%;
  object-fit: contain;
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
}

.lzu-footer .si-img:hover {
  transform: translateY(-1px) scale(2.0);
  transform-origin: center;
}

/* ====== 左侧内容 ====== */
.lzu-footer .footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.8vw, 16px);
  margin-top: var(--content-down);
}

.lzu-footer .badges {
  display: flex;
  align-items: center;
  gap: var(--badge-gap);
  margin-bottom: clamp(6px, 1.2vw, 10px);
}

.lzu-footer .badge {
  width: var(--badge-size);
  height: var(--badge-size);
  object-fit: contain;
  display: block;
}

.lzu-footer .copy {
  line-height: 1.15;
}

.lzu-footer .title {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: clamp(30px, 4.8vw, 50px);
  letter-spacing: .4px;
}

.lzu-footer .subtitle {
  margin: 0;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.3;
}

/* ====== 右侧内容 ====== */
.lzu-footer .footer-right {
  justify-self: end;
  max-width: clamp(420px, 40vw, 520px);
  margin-top: calc(var(--right-offset) + clamp(18px, 2vw, 28px));
  font-weight: 800;
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.3;
}

.lzu-footer .footer-right h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 1000;
}

.lzu-footer .footer-right p {
  margin: 0 0 10px;
}

.lzu-footer .footer-right .line {
  width: clamp(88px, 10vw, 120px);
  height: clamp(2px, 0.3vw, 3px);
  background: currentColor;
  opacity: .85;
  margin: clamp(6px, 0.8vw, 8px) 0 clamp(8px, 1vw, 10px);
}

/* ====== 移动端响应式 ====== */
@media (max-width: 768px) {
  .lzu-footer {
    min-height: auto;
    padding: 20px 16px 10px;
  }

  .lzu-footer .footer-wrap {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
    min-height: auto;
  }

  .lzu-footer .footer-left {
    margin-top: 80px;
    align-items: center;
    text-align: center;
  }

  .lzu-footer .badges {
    gap: 30px;
  }

  .lzu-footer .badge {
    width: 100px;
    height: 100px;
  }

  .lzu-footer .title {
    font-size: 28px;
  }

  .lzu-footer .subtitle {
    font-size: 18px;
    line-height: 1.4;
  }

  .lzu-footer .footer-right {
    justify-self: center;
    margin-top: 0;
    text-align: center;
    max-width: none;
  }

  .lzu-footer .footer-right .line {
    margin: 8px auto 12px;
  }

  /* 移动端社交图标调整 */
  .lzu-footer .footer-social {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
  }

  .lzu-footer .si-img {
    width: 45px;
    height: 45px;
  }

  .lzu-footer .si-img:hover {
    transform: translateY(-1px) scale(1.6);
  }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
  .lzu-footer {
    padding: 16px 12px 32px;
  }

  .lzu-footer .footer-left {
    margin-top: 60px;
  }

  .lzu-footer .badges {
    flex-direction: column;
    gap: 20px;
  }

  .lzu-footer .badge {
    width: 90px;
    height: 90px;
  }

  .lzu-footer .title {
    font-size: 24px;
  }

  .lzu-footer .subtitle {
    font-size: 16px;
  }
}