/* ✅ 统一 SMS 产品 与 解决方案 下拉菜单高度与布局 */
.nav-hover {
  position: relative;
  overflow: visible !important;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0 !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 999;
  background: #fff;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* hover 效果 */
.nav-hover:hover > button svg {
  transform: rotate(180deg);
  transition: transform .25s ease;
}

/* hover 显示逻辑（桌面端） */
@media (hover: hover) and (pointer: fine) {
  .nav-hover:hover .nav-dropdown,
  .nav-dropdown:hover {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ====== 统一 SMS 产品 与 解决方案 菜单行距与布局 ====== */
#menuProductsDropdown a,
.nav-dropdown.official-solution .grid a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem !important;
  line-height: 1.3 !important;
  border-radius: 0.4rem;
  transition: all 0.2s ease-in-out;
}

#menuProductsDropdown a:hover,
.nav-dropdown.official-solution .grid a:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
}

#menuProductsDropdown .text-box p {
  margin: 0;
  line-height: 1.3 !important;
}

/* ====== SMS 产品菜单 ====== */
#menuProductsDropdown {
  width: 350px !important;
  min-width: 350px !important;
}
#menuProductsDropdown a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.8rem;
  line-height: 1.5;
  transition: all .25s ease-in-out;
}
#menuProductsDropdown a:hover {
  background-color: #f9fafb;
}
#menuProductsDropdown p {
  white-space: nowrap !important;
}
#menuProductsDropdown .icon-box {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}
#menuProductsDropdown svg {
  width: 22px;
  height: 22px;
  transition: transform .25s;
}
#menuProductsDropdown a:hover svg {
  transform: scale(1.08);
}
#menuProductsDropdown .text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ====== 解决方案菜单 ====== */
.nav-dropdown.official-solution {
  width: 520px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  overflow: hidden;
  z-index: 50;
}
.nav-dropdown.official-solution .grid {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 0.25rem;
  padding: 0.75rem;
  width: 300px;
}
.nav-dropdown.official-solution .grid a {
  font-weight: 500;
  color: #374151;
}
.nav-dropdown.official-solution .preview-box {
  width: 10px;
  background: #f9fafb;
  border-left: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
.nav-dropdown.official-solution .preview-box img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
  transition: transform .3s ease;
}
.nav-dropdown.official-solution .preview-box img:hover {
  transform: scale(1.02);
}
.nav-dropdown.official-solution .preview-box a {
  margin-top: 1rem;
  background: linear-gradient(90deg, #2563EB, #1D4ED8);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0.5rem;    
  transition: background .3s ease;
}
.nav-dropdown.official-solution .preview-box a:hover {
  background: linear-gradient(90deg, #1D4ED8, #2563EB);
}

/* ====== 响应式菜单宽度 ====== */
@media (max-width: 768px) {
  #menuProductsDropdown {
    width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    left: 16px !important;
    right: 16px !important;
  }
}

/* ====== 手机端顶部菜单 ====== */
#mobileMenu {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 50;
  border-top: 1px solid #f1f1f1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
}
#mobileMenu a {
  display: block;
  padding: 12px 20px;
  font-weight: 500;
  border-bottom: 1px solid #f8f8f8;
}

/* ====== 动画效果 ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.3s ease;
}
