/* 产品与服务下拉：全宽拉长，盖住下方 banner */
.hd_menu_dropdown--product,
.hd_menu_dropdown:has(#headerProductDropdown) {
  padding: 0 !important;
  background: #fff !important;
  box-sizing: border-box;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-shadow: 0 12px 32px rgba(22, 60, 120, 0.1);
}

.header-product-menu.dropdown-product-wrap,
#headerProductDropdown.dropdown-product-wrap {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
  float: none !important;
  width: calc(100% - var(--bo-product-menu-left, 24px) - var(--bo-product-menu-right, 24px)) !important;
  max-width: none !important;
  margin: 0 !important;
  margin-left: var(--bo-product-menu-left, 24px) !important;
  margin-right: var(--bo-product-menu-right, 24px) !important;
  height: auto !important;
  min-height: min(480px, calc(100vh - 90px));
  max-height: min(560px, calc(100vh - 90px));
  background: #fff;
  border: 0 !important;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none !important;
  font-size: 14px;
  white-space: normal !important;
}

/* ===== 左侧分类：玖云 swipervertical 同款 ===== */
.header-product-menu .dropdown-product-left,
#headerProductDropdown .dropdown-product-left {
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  position: relative;
  border-right: 2px solid #fff;
  background: #f7f9fd;
  border-radius: 0;
}

.header-product-menu .dropdown-product-scroll,
#headerProductDropdown .dropdown-product-scroll {
  height: 100%;
  max-height: min(560px, calc(100vh - 90px));
  overflow: auto;
  padding: 8px 0;
}

.header-product-menu .dropdown-product-nav,
#headerProductDropdown .dropdown-product-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-product-menu .dropdown-product-nav li,
#headerProductDropdown .dropdown-product-nav li {
  margin: 0;
  cursor: pointer;
}
.header-product-menu .dropdown-product-nav li a,
#headerProductDropdown .dropdown-product-nav li a {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 16px 20px !important;
  margin-right: -2px;
  color: #181818 !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none !important;
  border-radius: 0;
  background: transparent;
  transition: color 0.2s linear;
  overflow: visible;
  z-index: 1;
}
/* 渐变底：左透明 → 右淡蓝（覆盖 header-v6 的 a:after{display:none}） */
.header-product-menu .dropdown-product-nav li a::before,
#headerProductDropdown .dropdown-product-nav li a::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: linear-gradient(89deg, hsla(0, 0%, 100%, 0), rgba(59, 130, 246, 0.2)) !important;
  opacity: 0 !important;
  transition: opacity 0.3s cubic-bezier(1, 0.05, 0.58, 1) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: none !important;
}
/* 右侧 6px 竖条：自中间上下 scaleY 伸展 */
.header-product-menu .dropdown-product-nav li a::after,
#headerProductDropdown .dropdown-product-nav li a::after {
  content: "" !important;
  display: block !important;
  opacity: 1 !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: 6px !important;
  height: auto !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0052d9 !important;
  background-image: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border-radius: 0 !important;
  transform: scaleY(0) !important;
  transform-origin: center center !important;
  transition: transform 0.3s ease-in-out !important;
  z-index: 2 !important;
  pointer-events: none !important;
}
.header-product-menu .dropdown-product-nav li a > *,
#headerProductDropdown .dropdown-product-nav li a > * {
  position: relative;
  z-index: 1;
}
.header-product-menu .dropdown-product-nav li.active a,
.header-product-menu .dropdown-product-nav li:hover a,
#headerProductDropdown .dropdown-product-nav li.active a,
#headerProductDropdown .dropdown-product-nav li:hover a {
  color: #0052d9 !important;
  font-weight: 700;
  background: transparent;
}
.header-product-menu .dropdown-product-nav li.active a::before,
.header-product-menu .dropdown-product-nav li:hover a::before,
#headerProductDropdown .dropdown-product-nav li.active a::before,
#headerProductDropdown .dropdown-product-nav li:hover a::before {
  opacity: 1 !important;
  display: block !important;
}
.header-product-menu .dropdown-product-nav li.active a::after,
.header-product-menu .dropdown-product-nav li:hover a::after,
#headerProductDropdown .dropdown-product-nav li.active a::after,
#headerProductDropdown .dropdown-product-nav li:hover a::after {
  display: block !important;
  opacity: 1 !important;
  transform: scaleY(1) !important;
  background: #0052d9 !important;
  background-image: none !important;
  width: 6px !important;
  right: 0 !important;
}

/* ===== 右侧详情区 ===== */
.header-product-menu .dropdown-product-right,
.header-product-menu .header-product-right,
#headerProductDropdown .dropdown-product-right {
  float: none !important;
  width: auto !important;
  flex: 1;
  min-width: 0;
  height: auto !important;
  max-height: none !important;
  overflow: auto;
  background: #fff;
}

.header-product-menu .dropdown-product-body,
#headerProductDropdown .dropdown-product-body {
  height: auto !important;
  min-height: min(480px, calc(100vh - 90px));
  padding: 32px 40px !important;
  box-sizing: border-box;
  white-space: normal !important;
}

.header-product-menu .dropdown-product-ct,
#headerProductDropdown .dropdown-product-ct {
  display: none;
  min-height: 0 !important;
  overflow: visible !important;
}
.header-product-menu .dropdown-product-ct.dropdown-show,
#headerProductDropdown .dropdown-product-ct.dropdown-show {
  display: block;
}

.header-product-panel-title {
  margin: 0 0 8px;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.header-product-panel-desc {
  margin: 0 0 18px;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  max-width: 36em;
}
.header-product-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 0;
  background: #0052d9;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.header-product-panel-cta:hover {
  background: #003ec5;
}

/* ===== 商品卡片：无描边、柔和色块 + 右侧竖条伸展 ===== */
.header-product-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  min-width: 0;
}
.header-product-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 92px;
  padding: 18px 20px 18px 22px;
  background: #eef4ff;
  background-image: linear-gradient(135deg, #eef4ff 0%, #f5f8fc 55%, #e8f0fa 100%);
  border: 0 !important;
  outline: none !important;
  border-radius: 0;
  box-shadow: none !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  white-space: normal !important;
  text-decoration: none !important;
}
/* 左侧细色条：常态淡显，悬停加深 */
.header-product-card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 18% !important;
  bottom: 18% !important;
  right: auto !important;
  width: 3px !important;
  height: auto !important;
  margin: 0 !important;
  background: #0052d9 !important;
  background-image: none !important;
  opacity: 0.28 !important;
  transform: none !important;
  transition: top 0.3s ease, bottom 0.3s ease, opacity 0.3s ease !important;
  pointer-events: none !important;
  z-index: 2 !important;
  border-radius: 0 !important;
}
/* 右侧 6px 竖条：自中间上下伸展 */
.header-product-card::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 4px !important;
  height: auto !important;
  margin: 0 !important;
  background: #0052d9 !important;
  background-image: none !important;
  transform: scaleY(0) !important;
  transform-origin: center center !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}
.header-product-card:hover {
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 8px 24px rgba(0, 82, 217, 0.1) !important;
  transform: translateY(-2px) !important;
  border: 0 !important;
  outline: none !important;
  border-radius: 0 !important;
}
.header-product-card:hover::before {
  top: 0 !important;
  bottom: 0 !important;
  opacity: 1 !important;
  width: 3px !important;
}
.header-product-card:hover::after {
  transform: scaleY(1) !important;
  display: block !important;
}
.header-product-card-tit {
  margin: 0;
  color: #181818;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}
.header-product-card:hover .header-product-card-tit,
.header-product-card:hover .home-pro-card-tit-text {
  color: #0052d9;
}
.header-product-card .home-pro-card-tit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 36px;
}
.header-product-card .home-pro-card-tit-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-product-card-des {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
  padding-right: 18px;
}
.header-product-card:hover .header-product-card-des {
  color: #595959;
}
/* 悬停时右下角箭头暗示可点 */
.header-product-card .home-pro-card-tit::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid #0052d9;
  border-top: 1.5px solid #0052d9;
  transform: rotate(45deg) translateX(-4px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.header-product-card:hover .home-pro-card-tit::after {
  opacity: 1;
  transform: rotate(45deg) translateX(0);
}
.header-product-card .home-pro-card-tag-ribbon {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 3;
  width: auto;
  min-width: 36px;
  height: 18px;
  padding: 0 8px;
  pointer-events: none;
  transform: none;
  background: rgba(0, 82, 217, 0.1);
  box-shadow: none;
  border-radius: 0;
}
.header-product-card .home-pro-card-tag-ribbon__text {
  display: block;
  color: #0052d9;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
}
.header-product-empty,
.header-product-loading {
  padding: 24px 8px;
  color: #8c8c8c;
  font-size: 14px;
  line-height: 1.6;
}

.header-product-menu .home-pro-card-flag,
.jc_hd .home-pro-card-flag,
#home-pro-section .home-pro-card-flag {
  display: none !important;
}

@media (max-width: 1400px) {
  .header-product-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .header-product-menu.dropdown-product-wrap,
  #headerProductDropdown.dropdown-product-wrap {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .header-product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .header-product-cards {
    grid-template-columns: 1fr;
  }
}
