.head{
   width: 100%; 
   height: 80px;
   
   background-color: #fff;
   box-shadow: 0px 0px 20px 0px rgba(43,59,119,0.15);
}
.head-container{
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}


.head-container a{
    color:inherit
}

.head-nav {
    flex:1;
    margin-left:58px;
    height: 80px;
    line-height: 80px;
}
.nav-list{
    display: flex;
    align-items: center;
    height: 100%;
    gap: 42px;
}
/* .nav-item a.item:hover {
    border-bottom: 2px solid #3F83FE;
} */
.nav-list .nav-item .item{
    display: inline-flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    padding-bottom: 8px;
    position: relative;
    white-space: nowrap;
    transition: color .2s ease;
}
.nav-list .nav-item .item::after{
    content:"";
    position:absolute; left:50%; right:50%; bottom:18px; height:2px;
    background:linear-gradient(90deg,#3F83FE,#5b6cff);
    border-radius:2px;
    transition: left .22s ease, right .22s ease;
}
.nav-item:hover > .item,
.nav-list .nav-item .item.active{
    color:#3F83FE;
}
.nav-item:hover > .item::after,
.nav-list .nav-item .item.active::after{
    left:0; right:0;
}
.nav-item{
    
    position: relative;
    height: 100%;
}
.nav-list .active-icon > .item,
.nav-list .nav-item--solution > .item{
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-list .active-icon > .item::before,
.nav-list .nav-item--solution > .item::before{
    content: "";
    order: 2;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: .54;
    transform: rotate(45deg);
    transition: transform .22s ease, opacity .22s ease;
}

.nav-list .active-icon:hover > .item::before,
.nav-list .active-icon:focus-within > .item::before,
.nav-list .nav-item--solution:hover > .item::before,
.nav-list .nav-item--solution:focus-within > .item::before{
    opacity: 1;
    transform: rotate(225deg);
}

.sub-box{
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(520px, calc(100vw - 32px));
    background-color: #fff;
    border: 1px solid #e2eaf6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27, 50, 92, .05), 0 18px 42px rgba(27, 50, 92, .10);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 3200;
}

.sub-box::before{
    content: "";
    position: absolute;
    top: -18px;
    left: -36px;
    right: -36px;
    height: 18px;
}

.nav-item:hover > .sub-box,
.nav-item:focus-within > .sub-box{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.sub-nav{
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 5px;
}
.sub-nav li{
    line-height: normal;
    min-width: 0;
}
.sub-nav li a{
    line-height: initial;
}

/* 右侧按钮 */
.head-right{
    display: flex;
    align-items: center;
    gap: 42px;
}
.head-right button{
    cursor: pointer;
}

@media (max-width: 1100px) {
    .head-container {
        width: calc(100% - 24px);
    }
    .head-nav {
        margin-left: 18px;
    }
    .nav-list {
        gap: 14px;
    }
    .head-right {
        gap: 8px;
    }
}
.btnBox .login-btn{
    display:inline-block;
    height:34px; line-height:34px; padding:0 12px;
    color:#3F83FE; background:#fff; border:1px solid #cfe0ff; border-radius:18px;
    font-size:14px; text-decoration:none; transition:all .2s ease;
}
.btnBox .login-btn:hover{ border-color:#3F83FE; box-shadow:0 4px 12px rgba(63,131,254,.18); }
.btnBox .register-btn{
    display:inline-block;
    height:36px; line-height:36px; padding:0 16px;
    color:#fff; background:linear-gradient(135deg,#3F83FE,#5b6cff); border:none;
    border-radius:18px; font-size:14px; font-weight:600; cursor:pointer;
    box-shadow:0 6px 16px rgba(63,131,254,.32); transition:all .2s ease; margin-left:6px;
}
.btnBox .register-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(63,131,254,.42); }



/* 模态框 */
/* .modal-box{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}
.modal-container{
    position: absolute;
    width: 1800px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
} */

/* ============ A-4 移动端汉堡菜单（纯 CSS，随 header 公共件全站生效） ============ */
.nav-toggle-cb{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle-btn{
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
}
.nav-toggle-btn span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-navy, #1B325C);
  border-radius: 2px;
  transition: transform .3s var(--ease, ease), opacity .3s var(--ease, ease);
}
.nav-toggle-cb:checked ~ .nav-toggle-btn span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle-cb:checked ~ .nav-toggle-btn span:nth-child(2){ opacity: 0; }
.nav-toggle-cb:checked ~ .nav-toggle-btn span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px){
  .head{ position: relative; }
  .nav-toggle-btn{ display: flex; }
  .head-nav{
    flex: 0 0 auto;
    margin-left: 0;
    height: auto;
    line-height: normal;
  }
  .nav-list{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    padding: 8px 0;
    z-index: 999;
    max-height: min(70vh, calc(100vh - 80px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-toggle-cb:checked ~ .head-nav .nav-list{ display: flex; }
  .nav-list .nav-item{ width: 100%; height: auto; }
  .nav-list .nav-item .item{
    display: block;
    height: auto;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-list .nav-item .item::after{ display: none; }
  .nav-item:hover > .item{ border-bottom: 1px solid #f0f0f0; }
  .sub-box,
  .sub-box--solution{
    position: static;
    width: auto;
    max-width: none;
    background: #fafafa;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    display: none;
  }
  /* Reset desktop hover/focus translation on the mobile accordion. */
  .nav-item:hover > .sub-box,
  .nav-item:focus-within > .sub-box,
  .nav-item:hover > .sub-box--solution,
  .nav-item:focus-within > .sub-box--solution{
    transform: none;
  }
  .sub-box::before{ display: none; }
  .nav-item.open > .sub-box,
  .nav-item.open > .sub-box--solution{ display: block; }
  .sub-nav,
  .sol-sub-nav{
    width: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 8px 8px 34px;
  }
  .sub-nav li,
  .sol-sub-nav li{ margin-bottom: 0; }
  .sub-nav a,
  .sol-sub-nav a{
    padding: 11px 16px;
    border-radius: 0;
  }
  .head-right{ display: none; }
}

/* ============ 首页顶部透明导航（复刻环球慧思） ============ */
/* 仅首页（body.page-home）桌面端：header 浮于 hero 之上，顶部透明全白，滚动恢复白底 */
@media (min-width: 861px) {
    .page-home .head {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 3000;              /* 必须高于 .banner 的 z-index:1000 */
        background: transparent;
        box-shadow: none;
        transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
    }
    /* 顶部态：透明 + 全白（logo 反相、文字、下划线、右侧按钮） */
    .page-home .head.head--top {
        background: transparent;
        box-shadow: none;
    }
    .page-home .head.head--top .nav-list .nav-item .item { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
    .page-home .head.head--top .nav-list .item.active { color: #fff; border-bottom-color: #fff; }
    .page-home .head.head--top .nav-item:hover > .item { color: #fff; opacity: .86; border-bottom-color: #fff; }
    .page-home .head.head--top .nav-list .item.active::after,
    .page-home .head.head--top .nav-item:hover > .item::after { background: #fff; }
    .page-home .head.head--top .js-header-logo { filter: brightness(0) invert(1); }
    /* 顶部透明态：登录按钮改为透明底 + 白描边，避免白底白字不可见 */
    .page-home .head.head--top .login-btn {
        color: #fff;
        background: transparent;
        border-color: rgba(255, 255, 255, 0.70);
        box-shadow: none;
    }
    .page-home .head.head--top .login-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.16);
        border-color: #fff;
        box-shadow: none;
    }
    /* 滚动态：恢复白底深字（其余由 .head 默认样式接管） */
    .page-home .head.head--scrolled {
        background-color: #fff;
        box-shadow: 0px 0px 20px 0px rgba(43,59,119,0.15);
    }
    /* 下拉菜单在 fixed header 下需高于 hero */
    .page-home .sub-box { z-index: 3100; }
}

/* ============ 统一 Dropdown 宽度（解决方案信息更多，使用双列） ============ */
.sub-box--solution {
    width: min(720px, calc(100vw - 32px));
}

.sol-sub-nav{
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
}
.sol-sub-nav li{
    min-width: 0;
    line-height: normal;
}
.sub-nav a,
.sol-sub-nav a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    padding: 10px 12px;
    color: #33475f;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 7px;
    transition: background-color .18s ease, color .18s ease;
}
.sub-nav a::after,
.sol-sub-nav a::after{
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: .30;
    transform: rotate(-45deg);
    transition: opacity .18s ease, transform .18s ease;
}
.sub-nav a:hover,
.sol-sub-nav a:hover{
    background: #f2f7ff;
    color: #1664ff;
}
.sub-nav a:hover::after,
.sol-sub-nav a:hover::after{
    opacity: 1;
    transform: translateX(2px) rotate(-45deg);
}

@media (max-width: 860px) {
    .nav-list .active-icon > .item::before,
    .nav-list .nav-item--solution > .item::before{
        display: none;
    }

    .sub-box--solution{
        width: auto;
        max-width: none;
    }

    .sol-sub-nav{
        grid-template-columns: 1fr;
        gap: 0;
        padding: 6px 8px 8px 34px;
    }

    .sub-nav a,
    .sol-sub-nav a{
        padding: 11px 16px;
        border-radius: 0;
    }
}
