/* Shared client header, matching the redesigned home page. */
#head {
  --header-blue: #0A2D61;
  position: relative;
  background: #fff;
}

#head .z_top {
  width: 1200px;
  max-width: none;
  height: 107px;
  background: none;
}

#head .z_top .logo img {
  content: url(../qitu/homelogo.png);
  width: 320px;
  height: 60px;
  max-height: none;
  object-fit: contain;
}

#head .z_top .login {
  order: 3;
  width: 140px;
  height: 42px;
  box-sizing: border-box;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #EFF5FF;
  color: var(--header-blue);
  font-size: 14px;
}

#head .z_top .login img {
  width: 16px;
  margin-right: 8px;
}

#head .z_top .login a {
  color: var(--header-blue);
}

#head .z_nav {
  position: absolute;
  top: 0;
  left: 50%;
  width: 660px;
  height: 107px;
  margin-left: -237px;
  float: none;
  z-index: 5;
  background: transparent;
}

#head .z_nav .ul {
  width: 100%;
  justify-content: space-between;
  padding-bottom: 10px;
}

#head .z_nav .ul > .li:last-child {
  display: none;
}

#head .z_nav ul li {
  width: auto;
}

#head .z_nav ul li a {
  /*padding: 0 8px;*/
  color: #444;
  font-size: 16px;
  font-weight: 500;
}

#head .z_nav ul li.active,
#head .z_nav ul li:hover {
  background: transparent;
}

#head .z_nav ul li.active a,
#head .z_nav ul li:hover > a {
  color: var(--header-blue);
}

#head .z_nav ul li ul {
  top: 107px;
  left: 50%;
  width: 130px;
  transform: translateX(-50%);
  background: var(--header-blue);
}

#head .z_nav ul li ul li {
  width: 100%;
}

#head .z_nav ul li ul li a,
#head .z_nav ul li.active ul li a {
  color: #fff;
  font-weight: normal;
}

#head .z_nav ul li ul li:hover > a,
#head .z_nav ul li ul li.active > a,
#head .z_nav ul li.active ul li:hover > a,
#head .z_nav ul li.active ul li.active > a {
  color: #fff;
}

.submenu-item {
  white-space: normal;        /* 覆盖原来的 nowrap */
  word-break: keep-all;       /* 禁止在词语中间断开 */
  line-break: strict;
  text-align: center;
  width: 96px;                /* 固定列宽，让长文本自然折行 */
}


/* 菜单容器：固定宽度，决定折行位置 */
.submenu {
  width: 110px;                /* 按你的设计稿调整，原菜单大概 96~110px */
}

/* 每个菜单项 */
.submenu-item1 {
  display: flex;
  align-items: center;         /* 垂直居中 */
  justify-content: center;     /* 水平居中 */
  min-height: 40px;            /* 用 min-height，两行时自动撑高 */
  padding: 8px 10px;
  box-sizing: border-box;
  white-space: normal;         /* 关键：允许换行（覆盖 nowrap） */
  word-break: break-all;       /* 中文在任意位置折行，保证不溢出 */
  line-break: strict;          /* 避免行首出现 ）》（ 等标点 */
  text-align: center;
  line-height: 1.5;
}


