/* ============================================
   Dropdown Menu Enhanced Styles
   Products 和 Solutions 下拉菜单优化样式
   ============================================ */

/* ============================================
   整体布局优化
   ============================================ */

.dropdown-menu {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  margin-top: 8px;
}

.dropdown-menu > .container > .flex {
  padding: 24px;
  gap: 0;
}

/* ============================================
   第一列：一级分类优化
   ============================================ */

.category-column {
  padding-right: 24px;
  border-right: 1px solid #e5e7eb;
}

.category-column > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-item {
  position: relative;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #00476b;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.category-item:hover::before,
.category-item.active::before {
  height: 24px;
}

.category-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 71, 107, 0.04);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-item:hover::after,
.category-item.active::after {
  opacity: 1;
}

.category-item a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.category-item:hover a,
.category-item.active a {
  color: #00476b;
}

.category-item .fa-chevron-right {
  font-size: 0.625rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.category-item:hover .fa-chevron-right,
.category-item.active .fa-chevron-right {
  color: #00476b;
  transform: translateX(3px);
}

/* ============================================
   第二列：二级分类优化
   ============================================ */

.subcategory-column {
  padding-left: 24px;
  padding-right: 24px;
  border-right: 1px solid #e5e7eb;
}

.subcategory-content > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subcategory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: transparent;
  transition: all 0.2s ease;
}

.subcategory-link:hover {
  background: rgba(0, 71, 107, 0.04);
  color: #00476b;
  transform: translateX(3px);
}

.subcategory-link .fa-chevron-right {
  font-size: 0.625rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.subcategory-link:hover .fa-chevron-right {
  color: #00476b;
  transform: translateX(3px);
}

/* ============================================
   第三列：产品信息优化
   ============================================ */

.info-column {
  padding-left: 24px;
  padding-right: 24px;
  border-right: 1px solid #e5e7eb;
  width: 500px;
  min-width: 500px;
  max-width: 500px;
  flex-shrink: 0;
}

.info-image-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.info-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.02) 100%);
  pointer-events: none;
}

.info-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.info-image-container:hover .info-image {
  transform: scale(1.02);
}

.info-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.info-description {
  font-size: 0.875rem;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 16px auto;
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  flex-shrink: 0;
}

.stat-card {
  text-align: center;
  padding: 12px 6px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 71, 107, 0.3);
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #00476b;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.stat-label {
  font-size: 0.6rem;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
  white-space: normal;
}

.info-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #00476b 0%, #003350 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.info-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #005a8c 0%, #00476b 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.info-button:hover::before {
  opacity: 1;
}

.info-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 71, 107, 0.3);
}

.info-button svg {
  position: relative;
  z-index: 1;
}

.info-button span {
  position: relative;
  z-index: 1;
}

/* ============================================
   第四列：相关链接优化
   ============================================ */

.related-links-column {
  padding-left: 24px;
}

.related-links-column h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-links-column h4::before {
  content: '\f0c1';
  font-family: 'FontAwesome';
  font-size: 0.875rem;
  color: #00476b;
}

.related-links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-links-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}

.related-links-list li a:hover {
  background: rgba(0, 71, 107, 0.04);
  color: #00476b;
}

.related-links-list li a .fa-chevron-right {
  font-size: 0.625rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.related-links-list li a:hover .fa-chevron-right {
  color: #00476b;
  transform: translateX(3px);
}

/* ============================================
   动画效果
   ============================================ */

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: 
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.content-updating {
  animation: contentFade 0.3s ease;
}

@keyframes contentFade {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* 骨架屏加载效果 */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 8px;
}

.skeleton-image {
  width: 100%;
  height: 180px;
}

/* ============================================
   响应式优化 - 已移至 dropdown-responsive.css
   ============================================ */

/* ============================================
   无障碍优化
   ============================================ */

.category-item:focus-within,
.subcategory-link:focus,
.related-links-list li a:focus,
.info-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 71, 107, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu,
  .category-item,
  .subcategory-link,
  .info-button,
  .stat-card {
    transition: none;
  }
  
  .skeleton {
    animation: none;
  }
}
