/* =============================================================
   电脑端导航美化 — 方案 C（2026-11-24）
   作用域：仅 >=992px，手机端完全不受影响
   回滚：删除本文件 + 模板里对应的 <link> 那一行
   ============================================================= */

@media (min-width: 992px) {

  /* ---------- 顶部信息条：深色细条 ---------- */
  body.wide.multipage .header .top-line,
  body.wide.multipage .header.shrink .top-line,
  body.boxed.multipage .header .top-line { background-color: #1f2b3a; }
  .header .top-line .container {
    display: flex; align-items: center; justify-content: space-between; height: 32px;
  }
  .header .top-line .hot-line {
    height: 32px; line-height: 32px; float: none; order: 1;
    color: #c8d2de; font-size: 12px; overflow: visible;
  }
  .header .top-line .hot-line .adword { color: #c8d2de; }
  .header .top-line .hot-line .top-tel { color: #fff; font-weight: 600; }
  .header .top-line .hot-line .top-tel .fa { color: #ffb4a2; }
  .header .top-line .hot-line .top-email { color: #8fa1b5; }
  .header .top-line .hot-line .top-email .fa { color: #8fa1b5; }

  /* 申请试用：由隐藏改为红色圆角按钮 */
  .header .top-line .user-menu {
    display: flex !important; float: none; order: 2; margin: 0; border: 0; align-items: center;
  }
  .header .top-line .user-menu li { line-height: 1; float: none; border: 0; padding: 0; }
  .header .top-line .user-menu li a,
  .header .top-line .user-menu li a.i_two_a {
    display: inline-block; padding: 4px 14px; background: #e60012; color: #fff !important;
    border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 20px;
    transition: background .18s;
  }
  .header .top-line .user-menu li a:hover { background: #c5000f; color: #fff !important; }

  /* ---------- 主头部布局 ---------- */
  /* 页面原先按旧头部高度预留 123/124px，头部实测 112px（32 信息条 + 80 导航），
     这里改成 112px，避免导航下方露出页面底色的横条 */
  #index-slider { margin-top: 112px !important; }
  .breadcrumb-wrapper { margin-top: 112px !important; }

  /* 头部条固定 80px：去掉主题/皮肤给 header 的上下内边距（滚动收缩态也要一致） */
  .header.fixed,
  .header.fixed.shrink,
  body.wide.multipage .header,
  body.wide.multipage .header.shrink,
  body.boxed.multipage .header > .container,
  body.boxed.multipage .header.shrink > .container {
    padding-top: 0 !important; padding-bottom: 0 !important;
  }
  .header .header-wrapper,
  body.multipage .header .header-wrapper,
  body.multipage .header.shrink .header-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 !important; height: 80px; min-height: 80px;
  }
  /* LOGO 容器撑满 80px 并垂直居中，抵消主题的 margin-top/-5px 偏移 */
  .header .header-wrapper .logo,
  body.multipage .logo,
  body.multipage .shrink .logo {
    float: none; display: flex; align-items: center; height: 80px; margin: 0 !important;
  }
  .header .header-wrapper .logo a,
  body.multipage .logo a,
  body.multipage .shrink .logo a {
    display: flex; align-items: center; margin: 0 !important; line-height: 1;
  }
  .header .header-wrapper .logo img { height: 48px; width: auto; display: block; }
  .header .header-wrapper .navigation { float: none; width: auto; }

  .header .sf-menu,
  .header .sf-menu.nav,
  body.multipage .sf-menu,
  body.multipage .shrink .sf-menu {
    margin-top: 0 !important; display: flex; align-items: stretch; height: 80px;
    font-size: 14px; white-space: nowrap;
  }

  /* ---------- 一级菜单：胶囊悬停 ---------- */
  .header #navigation > li.Lev1 {
    margin-left: 2px; position: relative; float: none;
    display: flex; align-items: center; height: 80px; white-space: nowrap;
  }
  .header #navigation > li.Lev1 > a.menu1 {
    display: flex; align-items: center; height: 40px; padding: 0 12px !important;
    border-radius: 6px; color: #1f2937; font-size: 14px; white-space: nowrap;
    transition: background .18s, color .18s;
  }
  .header #navigation > li.Lev1 > a.menu1:hover { background: #fff2f0; color: #e60012; }
  .header #navigation > li.Lev1.active > a.menu1 { background: #e60012; color: #fff; font-weight: 600; }
  .header #navigation > li.Lev1.active > a.menu1:hover { background: #c5000f; color: #fff; }

  /* 宽屏时再放宽一点间距 */
  @media (min-width: 1281px) {
    .header #navigation > li.Lev1 > a.menu1 { padding: 0 15px !important; font-size: 14.5px; }
  }

  /* 有子菜单的项：文字与角标作为一体，在胶囊内水平+垂直居中 */
  .header #navigation > li.Lev1 > a.menu1.sf-with-ul {
    padding: 0 12px !important; gap: 6px; justify-content: center;
  }
  /* 角标改为参与 flex 排布的内联元素（主题原本是绝对定位的三角形/字形） */
  .header #navigation > li.Lev1 > a.menu1.sf-with-ul:after {
    position: static; top: auto; right: auto; bottom: auto; left: auto; margin: 0;
    content: '\f107'; font-family: fontawesome; font-size: 13px; line-height: 1;
    color: currentColor; border: 0; width: auto; height: auto;
  }
  @media (min-width: 1281px) {
    .header #navigation > li.Lev1 > a.menu1.sf-with-ul { padding: 0 15px !important; gap: 7px; }
  }

  /* ---------- 下拉：大圆角白卡片 + 图标位 ---------- */
  .header #navigation .sub-menu2,
  .header #navigation ul.dr-menu {
    position: absolute; top: 100%; left: 0; margin: 0 !important; min-width: 280px;
    background: #fff !important; border-radius: 12px; padding: 10px;
    border: 1px solid #eff1f4;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .05);
    display: none; z-index: 60;
  }
  /* 悬停即显，不做淡入/位移动画 */
  .header #navigation > li.Lev1:hover > .sub-menu2,
  .header #navigation > li.Lev1.sfHover > .sub-menu2 {
    display: block;
  }
  /* 没有子项的菜单不弹空白框 */
  .header #navigation .sub-menu2:not(:has(> li)) { display: none !important; }
  /* 没有子项的一级菜单不显示下拉箭头（superfish 会按 li>ul 是否存在注入 sf-with-ul） */
  .header #navigation.sf-arrows > li.Lev1:not(:has(> ul > li)) > a.sf-with-ul:after { display: none !important; content: none !important; }

  /* 主题给下拉 li 加了深色底，这里清掉 */
  .header #navigation .sub-menu2 > li.Lev2,
  .header #navigation .sub-menu2 > li.Lev2:hover,
  .header #navigation .sub-menu2 > li.Lev2.active {
    margin: 0; float: none; background: transparent !important;
  }
  .header #navigation .sub-menu2 > li.Lev2 > a.menu2 {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px !important;
    border-radius: 8px; color: #33475b !important; font-size: 13.5px;
    background: transparent; transition: background .15s, color .15s;
  }
  .header #navigation .sub-menu2 > li.Lev2 > a.menu2::before {
    content: "\f105"; font-family: FontAwesome; font-size: 12px;
    width: 26px; height: 26px; flex: 0 0 26px;
    display: flex; align-items: center; justify-content: center;
    background: #fff2f0; color: #e60012; border-radius: 7px;
    transition: background .15s, color .15s;
  }
  .header #navigation .sub-menu2 > li.Lev2 > a.menu2:hover {
    background: #f7f9fc; color: #e60012 !important;
  }
  .header #navigation .sub-menu2 > li.Lev2 > a.menu2:hover::before { background: #e60012; color: #fff; }
}
