/* ========== 全局页脚样式 ========== */
:root {
  /* 页脚专属变量：不与全局（style.css）冲突 */
  --footer-bg: #141414;
  --footer-text: #ccc;
  --footer-border: #2b2b2b;
  --animate-speed: 0.32s ease;
}

/* 电脑端顶部黑色衔接条 */
.footer-top-black {
  display: none;
  width: 100%;
  height: 50px;
  background-color: var(--footer-bg);
}

@media (min-width: 1025px) {
  .footer-top-black {
    display: block;
  }
}

.site-footer {
  width: 100%;
  background: var(--footer-bg);
  color: var(--footer-text);
  margin: 0;
  padding: 0;
}

/* 容器内边距统一为 20px */
.site-footer .vmc-footer-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

/* 四栏主区域：About | Main Menu | Products | Contact */
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1.4fr;
  gap: 48px;
  padding: 65px 0 70px;  /* 主区域内边距紧凑 */
  border-bottom: 1px solid #2a2a2a;
}

.footer-col h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 28px;
  border-left: 4px solid var(--main-color);
  padding-left: 10px;
  line-height: 1.2;
  color: #ffffff;
}

/* 公司简介文字 */
.footer-col-about p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 20px;
  color: var(--footer-text);
}

/* Logo 样式（统一类名） */
.footer-logo-img {
  height: 80px;
  width: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

/* 社交图标（下方为各平台官方品牌色：Facebook/YouTube/LinkedIn/WhatsApp，非主题配色，保持原样） */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.25s ease;
  overflow: hidden;
}
.footer-social a[aria-label="Facebook"] {
  background: #1877F2;
  border-color: #1877F2;
}
.footer-social a[aria-label="YouTube"] {
  background: #FF0000;
  border-color: #FF0000;
}
.footer-social a[aria-label="LinkedIn"] {
  background: #0A66C2;
  border-color: #0A66C2;
}
.footer-social a[aria-label="WhatsApp"] {
  background: #25D366;
  border-color: #25D366;
}
.footer-social a i {
  color: #fff;
}
.footer-social a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* 菜单列表 */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--footer-border);
  font-size: 14px;
}

.footer-menu li a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-menu li a:hover {
  color: var(--main-color);
}

/* 保持最后一项间距（按要求不动） */
.footer-menu li:last-child {
  padding-bottom: 22px;
  margin-bottom: 0;
  border-bottom: none;
}

/* 联系方式 */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--footer-border);
  line-height: 1.6;
}

.contact-item:last-child {
  padding-bottom: 22px;
  margin-bottom: 0;
  border-bottom: none;
}

.contact-item.contact-address {
  align-items: flex-start;
}

.contact-icon {
  color: var(--main-color);
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  text-align: center;
}

/* 版权区域 */
.footer-bottom {
  padding: 35px 0;
  font-size: 13px;
  text-align: center;
  color: #999;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom-links a {
  color: #999;
  margin: 0 8px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: var(--main-color);
}

/* 平板：三栏 */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 70px;
  }

  .footer-col h3 {
    margin-bottom: 24px;
  }

  .footer-menu li:last-child,
  .contact-item:last-child {
    padding-bottom: 18px;
  }
}

/* 手机端：单列堆叠 + 手风琴折叠（About 列常开） */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 35px 0;
  }

  .footer-col {
    width: 100%;
    border-bottom: 1px solid #282828;
  }

  .footer-col h3 {
    font-size: 16px;
    margin-bottom: 0;
  }

  .footer-col-about .footer-col-content {
    padding: 15px 10px 20px;
  }

  /* 非 About 列：手风琴折叠 */
  .footer-col:not(.footer-col-about) h3 {
    cursor: pointer;
    position: relative;
    padding: 14px 10px;
    margin: 0;
  }

  /* 手风琴箭头 */
  .footer-col:not(.footer-col-about) h3::after {
    content: "\f107";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
    transition: transform var(--animate-speed);
  }

  .footer-col.open h3::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .footer-col:not(.footer-col-about) .footer-col-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--animate-speed);
    padding: 0 10px;
  }

  .footer-col.open .footer-col-content {
    max-height: 2000px;
    padding: 15px 10px 20px;
  }

  .footer-menu li:last-child,
  .contact-item:last-child {
    padding-bottom: 0;
  }
}