/* ============================================================
   全站导航栏 · 后台标签驱动 v6
   - 顶部导航内容全部由 {pboot:nav}/{pboot:2nav} 标签调用，名称与后台一致
   - 核心业务(data-scode=2)下拉：三行三列品牌卡片（图标 + 名称 + 说明）
   - 其他下拉（新闻中心等）：简洁文字列表
   - 移动端抽屉沿用现代风格
   主题色：#2258d0
   ============================================================ */

/* ------------------------------------------------------------
   1. 顶部桌面导航基础
   ------------------------------------------------------------ */
.top{height:80px;background:#fff!important;box-shadow:0 1px 0 rgba(20,50,120,.06),0 6px 24px rgba(20,50,120,.06)!important}
.top_l{display:flex;align-items:center;height:80px}
.top_l img{max-height:58px;height:auto;width:auto;transition:transform .3s}
.top_l a:hover img{transform:scale(1.03)}

.top_n{margin-left:32px!important}
.top_n .nav ul li{width:auto!important;min-width:86px;margin-left:24px!important}
.top_n .nav ul li .nav-link{
  font-size:16px;font-weight:600;letter-spacing:.3px;color:#2b3040;
  display:inline-flex;align-items:center;gap:6px;padding:0 2px;position:relative;
  transition:color .25s;
}
.top_n .nav ul li .nav-link::after{
  content:"";position:absolute;left:50%;bottom:16px;transform:translateX(-50%);
  width:0;height:3px;border-radius:3px;background:linear-gradient(90deg,#2258d0,#4a90ff);transition:width .28s;
}
.top_n .nav ul li:hover .nav-link,
.top_n .nav ul li.active .nav-link{color:#2258d0}
.top_n .nav ul li:hover .nav-link::after,
.top_n .nav ul li.active .nav-link::after{width:76%}

/* 下拉箭头 */
.nav-caret{display:inline-flex;align-items:center;justify-content:center;transition:transform .25s}
.nav-caret svg{width:10px;height:6px;stroke:#7c8aa0;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.top_n .nav ul li:hover .nav-caret,
.top_n .nav ul li.active .nav-caret{transform:rotate(180deg)}
.top_n .nav ul li:hover .nav-caret svg,
.top_n .nav ul li.active .nav-caret svg{stroke:#2258d0}

/* ------------------------------------------------------------
   2. 下拉公共样式
   ------------------------------------------------------------ */
.top_n .nav li .c2{
  background:#fff!important;border:1px solid #e6eef9;border-radius:12px;
  box-shadow:0 16px 40px rgba(34,88,208,.14);padding:8px 0;top:72px;overflow:hidden;
  animation:c2-in .22s ease;
}
@keyframes c2-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* 下拉项：图标 + 名称 + 说明（后台标签输出） */
.top_n .nav li .c2 .dd-item{
  display:flex;align-items:center;gap:11px;padding:8px 14px;margin:0!important;
  color:#33435c!important;text-decoration:none;transition:background .2s,color .2s;
  border-radius:9px;
}
.top_n .nav li .c2 .dd-item:hover{background:#f2f7ff;color:#2258d0!important}
.top_n .nav li .c2 .dd-item .dd-ico{
  width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none;
  background:#f3f7fe;border:1px solid #e9f0fa;overflow:hidden;
}
.top_n .nav li .c2 .dd-item .dd-ico img{width:30px;height:30px;object-fit:contain;display:block}
.top_n .nav li .c2 .dd-item .dd-txt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;text-align:left}
.top_n .nav li .c2 .dd-item .dd-name{display:block;font-size:14px;font-weight:800;color:#1d2b45;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top_n .nav li .c2 .dd-item .dd-desc{display:block;font-size:11.5px;color:#8b9ab0;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ------------------------------------------------------------
   3. 普通栏目下拉（新闻中心等 data-scode != 2）：简洁文字列表
   ------------------------------------------------------------ */
.top_n .nav li:not([data-scode="2"]) .c2{min-width:130px;padding:8px 0!important}
.top_n .nav li:not([data-scode="2"]) .c2 .nm-head,
.top_n .nav li:not([data-scode="2"]) .c2 .nm-foot{display:none}
.top_n .nav li:not([data-scode="2"]) .c2 .nm-grid{display:block}
.top_n .nav li:not([data-scode="2"]) .c2 .dd-item{
  height:40px;line-height:40px;padding:0 20px!important;justify-content:center;gap:0;
  font-size:14px;text-align:center;
}
.top_n .nav li:not([data-scode="2"]) .c2 .dd-item .dd-ico{display:none}
.top_n .nav li:not([data-scode="2"]) .c2 .dd-item .dd-desc{display:none}
.top_n .nav li:not([data-scode="2"]) .c2 .dd-item .dd-name{font-size:14px;font-weight:600}

/* ------------------------------------------------------------
   4. 核心业务 mega（data-scode=2）：三行三列卡片
   ------------------------------------------------------------ */
.top_n .nav li[data-scode="2"] .c2{
  position:absolute;left:50%;top:74px;transform:translateX(-50%);
  width:706px!important;max-width:88vw;padding:16px!important;
  border-radius:18px;box-shadow:0 26px 64px rgba(34,88,208,.18);z-index:9999;
  animation:nm-in .25s ease;
}
@keyframes nm-in{from{opacity:0;transform:translateX(-50%) translateY(-8px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
.top_n .nav li[data-scode="2"] .c2 .nm-head{
  display:flex;align-items:center;gap:12px;padding:2px 6px 12px;margin-bottom:12px;border-bottom:1px solid #edf2fa;
}
.top_n .nav li[data-scode="2"] .c2 .nm-head>span{font-size:17px;font-weight:800;color:#1d2b45;position:relative;padding-left:14px}
.top_n .nav li[data-scode="2"] .c2 .nm-head>span::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:3px;background:linear-gradient(180deg,#2258d0,#4a90ff)}
.top_n .nav li[data-scode="2"] .c2 .nm-head small{font-size:12.5px;color:#8b9ab0}
.top_n .nav li[data-scode="2"] .c2 .nm-head>a{margin-left:auto;font-size:13px;font-weight:700;color:#2258d0;text-decoration:none}
.top_n .nav li[data-scode="2"] .c2 .nm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.top_n .nav li[data-scode="2"] .c2 .nm-grid .dd-item{
  width:auto!important;height:66px!important;line-height:1.3!important;margin-left:0!important;float:none!important;
  padding:10px 12px;border:1px solid #e9f0fa;border-radius:11px;background:#fff;
  transition:transform .22s,border-color .22s,box-shadow .22s,background .22s;overflow:hidden;box-sizing:border-box;
}
.top_n .nav li[data-scode="2"] .c2 .nm-grid .dd-item:hover{transform:translateY(-3px);border-color:#a9c6f2;box-shadow:0 12px 26px rgba(34,88,208,.15);background:#f7faff}
.top_n .nav li[data-scode="2"] .c2 .nm-grid .dd-item .dd-name{font-size:14px}
.top_n .nav li[data-scode="2"] .c2 .nm-foot{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px 16px;
  background:linear-gradient(90deg,#f3f7ff,#f8faff);border-radius:12px;
}
.top_n .nav li[data-scode="2"] .c2 .nm-foot span{font-size:13px;color:#6b7b95}
.top_n .nav li[data-scode="2"] .c2 .nm-foot a{font-size:14px;font-weight:800;color:#2258d0;text-decoration:none}

/* ------------------------------------------------------------
   5. 响应式
   ------------------------------------------------------------ */
@media (max-width:1200px){
  .top_n .nav ul li{min-width:auto;margin-left:16px!important}
  .top_n .nav ul li .nav-link{font-size:14px}
  .top_n .nav li[data-scode="2"] .c2{width:620px!important}
}
@media (max-width:900px){
  .top,.top_n{display:none}
}

/* ============================================================
   6. 移动端导航 · 现代抽屉
   ============================================================ */
@media (max-width:900px){
  .header{height:56px!important;background:#fff!important;box-shadow:0 1px 0 rgba(20,50,120,.06),0 6px 20px rgba(20,50,120,.06)!important;padding:0 14px;box-sizing:border-box}
  .header .logo{height:56px!important;display:flex;align-items:center}
  .header .logo img{height:42px!important;padding:0!important;max-width:150px}
  .header .nav_ico{
    width:42px;height:42px;right:14px;top:7px;background:none!important;z-index:1000;border-radius:11px;transition:background .2s;
  }
  .header .nav_ico::before,
  .header .nav_ico::after{content:"";position:absolute;left:10px;width:22px;height:2.5px;border-radius:3px;background:#2258d0}
  .header .nav_ico::before{top:13px;box-shadow:0 8px 0 #2258d0}
  .header .nav_ico::after{top:29px}
  .header .navclose{
    width:42px;height:42px;right:14px;top:7px;background:none!important;z-index:1002;border-radius:11px;
  }
  .header .navclose::before,
  .header .navclose::after{
    content:"";position:absolute;left:11px;top:20px;width:20px;height:2.5px;border-radius:3px;background:#fff;
  }
  .header .navclose::before{transform:rotate(45deg)}
  .header .navclose::after{transform:rotate(-45deg)}
  .header .navbg{background:rgba(15,30,60,.45)!important;filter:none!important;-moz-opacity:1!important;-khtml-opacity:1!important;opacity:1!important;backdrop-filter:blur(2px)}
  .header .nav{
    width:82%!important;max-width:340px;right:0;left:auto;top:0;background:#fff!important;
    box-shadow:-12px 0 40px rgba(15,30,60,.18);padding:0!important;display:none;
    border-radius:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
    animation:mnav-in .28s cubic-bezier(.22,.61,.36,1);
  }
  @keyframes mnav-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
  .header .nav::before{content:"";display:block;height:56px;background:linear-gradient(135deg,#2258d0,#4a90ff)}
  .header .nav ul{margin-top:4px!important;padding:0 0 24px}
  .header .nav ul>li{border-bottom:1px solid #f0f3f8!important;text-indent:0!important;text-align:left!important;position:relative}
  .header .nav ul>li>a{
    display:block!important;color:#222b3a!important;font-size:15px!important;font-weight:600;
    height:auto!important;line-height:1.4!important;padding:14px 46px 14px 20px!important;transition:color .2s,background .2s;
  }
  .header .nav ul>li>a:hover,.header .nav ul>li.active>a{color:#2258d0!important;background:#f7faff}
  .header .nav ul li i{
    display:block!important;width:9px!important;height:9px!important;position:absolute;right:20px;top:20px;background:none!important;
    border-right:2px solid #9aa8bd;border-bottom:2px solid #9aa8bd;transform:rotate(45deg);transition:transform .25s,border-color .25s;
  }
  .header .nav ul li i.i{transform:rotate(225deg);border-color:#2258d0}
  .header .nav ul .c2{display:none;padding:2px 0 8px!important;background:#f7faff!important}
  .header .nav ul .c2 .c2list{
    display:block!important;border-top:1px solid #eef3fa!important;margin-left:20px!important;margin-right:12px;
    text-indent:0!important;background-image:none!important;position:relative;padding:0!important;
  }
  .header .nav ul .c2 .c2list>a{color:#45536a!important;font-size:14px!important;font-weight:500;padding:11px 40px 11px 12px!important;height:auto!important;line-height:1.4!important}
  .header .nav ul li .c2 font{
    display:block!important;width:8px!important;height:8px!important;position:absolute;right:14px;top:14px;background:none!important;
    border-right:2px solid #aab7c9;border-bottom:2px solid #aab7c9;transform:rotate(45deg);transition:transform .25s,border-color .25s;
  }
  .header .nav ul li .c2 font.font{transform:rotate(225deg);border-color:#2258d0}
  .header .nav ul .c2 .c22{display:none;padding:0 0 4px!important}
  .header .nav ul .c2 .c22 .c22list{
    display:block!important;border-top:1px solid #eef3fa!important;margin-left:12px!important;text-indent:0!important;
    background-image:none!important;padding:0!important;
  }
  .header .nav ul .c2 .c22 .c22list a{color:#73829a!important;font-size:13px!important;padding:9px 12px 9px 20px!important;height:auto!important;line-height:1.4!important}
}
