/* 页脚部分样式 */

#site-footer {
  background-color: var(--color-footer);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-top {
  display: grid;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  grid-template-columns: repeat(2, 1fr);
}

.footer-logo {
  margin-bottom: var(--spacing-lg);
}

.footer-logo img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.social-link img {
  filter: brightness(0) invert(1);
  max-width: 32px;
}

.social-link:hover {
  background-color: var(--color-secondary);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.footer-newsletter {
  max-width: 400px;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-button {
  padding: 0.75rem 1rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.footer-newsletter-button:hover {
  background-color: var(--color-accent-dark);
}

.footer-cols {
  display: grid;
  grid-template-columns: 20% 20% auto;
  gap: var(--spacing-lg);
}

.footer-col-title,
.footer-newsletter-title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  opacity: 0.7;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  opacity: 1;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: var(--spacing-lg) 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.email-form {
  margin-bottom: var(--spacing-lg);
  display: grid;
  grid-template-columns: 70% 30%;
  gap: unset;
  align-content: center;
  justify-content: center;
}

.email-button {
  height: 40px;
  border-radius: 5px;
  padding: 0 10px;
  transition: all 0.3s ease;
}

.email-input {
  height: 38px;
  padding: 0 10px;
  border: 1px var(--color-border) solid;
  border-radius: 5px;
  outline: none;
  margin-top: 1px;
}

/* 返回顶部 */
.back-to-top {
  position: absolute;
  width: 48px;
  height: 48px;
  background-color: var(--color-footer);
  right: 60px;
  top: -68px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.back-to-top span {
  position: absolute;
  width: 24px;
  height: 2px;
  left: 5px;
  top: 21px;
  background-color: var(--color-white);
}

.back-to-top span:nth-child(1) {
  transform: rotate(45deg);
  left: 20px;
}

.back-to-top span:nth-child(2) {
  transform: rotate(-45deg);
}

/* Cookie 协议 */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  padding: 2rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-consent-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* 响应式样式 */
@media (max-width: 1200px) {
  .email-form {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .email-button.btn-secondary {
    max-width: 40%;
    margin-top: var(--spacing-sm);
  }
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-newsletter {
    max-width: 100%;
  }

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

@media (max-width: 768px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .cookie-consent {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }

  .back-to-top {
    display: none;
  }
}