/* ========= 页脚产品菜单样式 ========= */
.footer-product-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  position: relative;
  display: inline-block;
  width: auto;
}
.footer-col-product {
  flex: 0 0 auto;
  width: 19%;
}
.footer-product-menu .menu-title {
  font-weight: bold;
  font-size: 1rem;
  padding: 0 0 8px 0;
  color: #212529;
  border-bottom: 2px solid rgba(0,0,0,0.1);
  margin-bottom: 8px;
}
.footer-product-menu li {
  position: relative;
}
.footer-product-menu li a {
  display: block;
  padding: 6px 0;
  color: #212529;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.footer-product-menu li a:hover {
  background: rgba(0,0,0,0.05);
}
/* 子菜单：桌面端悬停向右弹出 */
.footer-product-menu .dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: -3px;          /* 使第一项文字与父级对齐 */
  background: #fff;
  border: 1px solid #ddd;
  min-width: 120px;   /* 调整宽度避免遮挡右侧列 */
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 9999;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}
.footer-product-menu li.has-children:hover > .dropdown {
  display: block;
}
.footer-product-menu .dropdown li a {
  padding: 8px 12px;
  color: #212529;
  white-space: nowrap;
}
.footer-product-menu .dropdown li a:hover {
  background: #f0f0f0;
}

/* 父级容器防止裁剪 */
.footer-product-menu-wrapper,
.widget {
  overflow: visible !important;
}

/* 手机端适配 */
@media (max-width: 991.98px) {
  .footer-product-menu {
    display: block;
    width: 100%;
  }
  .footer-product-menu-wrapper {
    display: none;
    margin-top: 10px;
  }
  .footer-product-menu-wrapper.show {
    display: block;
  }
  .footer-product-menu .dropdown {
    position: static;
    display: none;
    border: none;
    padding-left: 16px;
    box-shadow: none;
    top: auto;
    z-index: auto;
  }
.footer-product-menu li.has-children > a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 6px 0 !important;
}
.sub-arrow {
  opacity: 0.5;
  font-size: 0.8em;
  margin-left: auto;
}
  .footer-product-menu li.has-children.open > .dropdown {
    display: block;
  }
  .footer-menu-toggle {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    text-decoration: none;
    color: #212529;
    font-size: 0.9rem;
  }
}
@media (min-width: 992px) {
  .footer-menu-toggle {
    display: none;
  }
}