/* ========================================
   页脚样式 - 参考 Glentham 原始样式
======================================== */

.zs-footer {
  background: var(--zs-white);
  border-top: 1px solid var(--zs-border);
}

.zs-footer a {
  color: inherit;
  text-decoration: none;
}

.zs-footer p {
  font-size: 1.1em;
  color: var(--zs-primary);
  margin: 0.4em 0;
}

.zs-footer h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--zs-primary);
  margin-bottom: 0.5rem;
}

.zs-footer-container {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  padding: 3rem 2rem 0;
  margin: 0 auto;
}

/* 上部区域 */
.zs-footer-upper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 2rem;
}

/* 左侧品牌区域 */
.zs-footer-left {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-width: 320px;
}

.zs-footer-logo img {
  width: 16rem;
  height: auto;
}

.zs-footer-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--zs-gray);
  margin: 1rem 0;
}

/* 认证标志 */
.zs-footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.zs-footer-badges > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
}

.zs-footer-badges img {
  height: 1.8rem;
  width: auto;
  max-width: 1.8rem;
  object-fit: contain;
}

.zs-footer-badges p {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.zs-footer-badge-text {
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* 右侧信息区域 */
.zs-footer-right {
  display: flex;
  flex: 1;
  max-width: 60%;
}

.zs-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  width: 100%;
}

.zs-footer-panel {
  width: 100%;
}

.zs-footer-panel p {
  margin: 0.4em 0;
  font-size: 1.1em;
}

.zs-footer-panel a {
  color: var(--zs-gray);
  text-decoration: underline;
}

.zs-footer-panel a:hover {
  color: var(--zs-secondary);
}

/* Call Us 网格布局 */
.zs-footer-panel.zs-grid > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
}

/* 下部区域 */
.zs-footer-lower {
  display: flex;
  flex-direction: row;
  padding: 1.5rem 0;
}

.zs-footer-lower p {
  font-size: 0.85rem;
  margin: 0;
}

.zs-footer-lower-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  position: relative;
}

.zs-footer-lower-inner::before {
  content: "";
  background: var(--zs-border);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 15px;
}

.zs-footer-lower-inner > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.zs-footer-copyright {
  color: var(--zs-gray);
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.zs-footer-copyright p {
  font-size: 0.85rem;
  color: var(--zs-gray);
}

.zs-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.zs-footer-links > a {
  color: var(--zs-gray);
  font-size: 0.85rem;
  text-decoration: underline;
}

.zs-footer-links > a:hover {
  color: var(--zs-secondary);
}

/* 社交媒体图标 */
.zs-footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0.5rem;
}

.zs-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.zs-footer-social img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* 响应式 */
@media (max-width: 1024px) {
  .zs-footer-upper {
    flex-direction: column;
    gap: 2rem;
  }

  .zs-footer-left {
    max-width: 100%;
  }

  .zs-footer-right {
    max-width: 100%;
  }

  .zs-footer-badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .zs-footer-lower-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .zs-footer-lower-inner > div {
    padding: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .zs-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

  .zs-footer-badges {
    flex-direction: column;
  }

  .zs-footer-lower-inner {
    text-align: center;
    align-items: center;
  }

  .zs-footer-lower-inner > div {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .zs-footer-container {
    padding: 2.5rem 1rem 0;
  }

  .zs-footer-logo img {
    width: 12rem;
  }

  .zs-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .zs-footer-copyright,
  .zs-footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .zs-footer-social {
    margin-left: 0;
  }
}

.zs-float-tools {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zs-float-tools__item {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 76, 151, 0.2);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  text-decoration: none;
}

.zs-float-tools__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 76, 151, 0.28);
}

.zs-float-tools__item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.zs-float-tools__item--email {
  background: linear-gradient(135deg, #0f4c97 0%, #317dc9 100%);
}

.zs-float-tools__item--whatsapp {
  background: linear-gradient(135deg, #16c65b 0%, #25d366 100%);
}

.zs-float-tools__item--top {
  background: linear-gradient(135deg, #4e647f 0%, #23364d 100%);
}

@media (max-width: 768px) {
  .zs-float-tools {
    display: none;
  }
}
