/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration:none;
   
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    min-width:1440px;
}

a { text-decoration: none;color:#333;  }
ul li {
list-style:none;

}



/* 同时保留原有的hover显示规则，增强兼容性 */
.navli:hover .navsub { display: block; }
.navsub li:hover .navsub-third { display: block; }
/* 头部样式 */

/* 一级导航核心样式 */
.mainnav #nav { margin: 0; padding: 0; list-style: none; display: flex; }
.navli { position: relative;} /* 父容器相对定位，作为子菜单定位基准 */
.navli h3 a { display: block;line-height: 45px; /* 与二级菜单top:45px对齐 */ text-decoration: none; color: #333;  }
.navli h3 a:hover { color: #0066cc; }

/* 二级菜单样式（已优化，适配三级导航） */
.navsub { 
  position: absolute; top: 45px; left: 0;  
  margin: 0; padding: 0; list-style: none; 
    display: none; z-index: 9999; 
}
.navsub li { position: relative; width:100px; } /* 二级li相对定位，作为三级菜单基准 */
.navsub li a { display: block; color: #666; text-decoration: none; font-size: 14px; }
.navsub li a:hover { background: #f5f8ff; color: #0066cc; }
.navli:hover .navsub { display: block; } /* hover一级li，显示二级菜单 */

/* 三级菜单样式（新增） */
.navsub-third { 
  background:#221f1fb3;
  position: absolute; top: 0; left: 100%; /* 靠右对齐二级菜单 */
   margin: 0; padding: 0; list-style: none;
  display: none; z-index: 9999; /* 与二级菜单同层级，避免被覆盖 */
}
.navsub-third li a { padding: 10px 20px; font-size: 13px; } /* 三级菜单文字略小 */
.navsub li:hover .navsub-third { display: block; } /* hover二级li，显示三级菜单 */

/* 修复banner轮播样式（确保轮播项正确显示） */
.banner { position: relative; width: 100%; height:550px; overflow: hidden; }
.bd { width: 100%; height: 100%; }
.bd ul { margin: 0; padding: 0; list-style: none; width: 100%; height: 100%; }
.bd li { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; }
.bd li.active { display: block; }
.bd li img { width: 100%; height: 100%; object-fit: cover; }

/* banner指示器和按钮样式 */
.hd { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; }
.hd ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 10px; }
.hd li { width: 32px; height: 32px; line-height: 32px; text-align: center; background: rgba(255,255,255,0.8); border-radius: 50%; color: #333; cursor: pointer; font-size: 14px; }
.hd li.active { color: #fff; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 66px; background: rgba(0,0,0,0.3); color: #fff; text-align: center; line-height: 66px; text-decoration: none; font-size: 28px; z-index: 10; }
.prev { left: 30px; }
.next { right: 30px; }
.prev:hover, .next:hover {  }



.title-container {
    flex: 1;
}

.title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: white;
    width:260px;
}


/* 内容区域样式 */
.content-section {
    padding: 0;
    width:1400px;

    margin:0 auto;
}

.bag {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;

}

.xydt, .tzgg {
    width: 49%;
 
    overflow: hidden;
    margin-bottom: 0;
}

.xydt_title, .tzgg_title, .link_title {
  
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #003b75;
}

.xydt_title a:first-child, .tzgg_title a:first-child, .link_title a {
    font-size: 22px;

    color: #003b75;
    text-decoration: none;
}

.xydt_title a:last-child, .tzgg_title a:last-child {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.xydt_title a:last-child:hover, .tzgg_title a:last-child:hover {
    color: #003b75;
}

/* 学院动态和培训动态的内容区域 */
.xydt_content {
    display: flex;
    flex-direction: row;
    padding: 12px;
}

.xydt_pic {
    width:450px;
    height: 300px;
  
    margin-right: 15px;
    overflow: hidden;
}

.xydt_pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xydt_text, .tzgg_text, .link_text {
    flex: 1;
    padding: 0;
}

.xydt_text ul, .tzgg_text ul {
    list-style: none;
    margin: 0;
}

.xydt_text li, .tzgg_text li {
    padding: 8px 0;
 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.xydt_text li:last-child, .tzgg_text li:last-child {
    border-bottom: none;
}

.xydt_text a, .tzgg_text a {
    color: #333;
    text-decoration: none;
    flex: 1;
    margin-right: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xydt_text a:hover, .tzgg_text a:hover {
    color: #003b75;
}

.xydt_text span, .tzgg_text span {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 10px;
}

/* 在线服务样式 */
.service-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 20px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    background-color: transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.service-item:hover {
    background-color: #e0e0e0;
}

.service-item img {
    width: 36px;
    height: 36px;
    margin-right: 15px;
}

.service-item p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #003b75;
}

/* 快速链接样式 */
.link {
    margin-top: 20px;
}

.link_text {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px 20px;
}

.link_text a {
    color: #003b75;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 0;
    transition: all 0.3s;
    font-size: 14px;
}

.link_text a:hover {
 

}

/* 页脚样式 */
footer {
    background-color: #003b75;
    padding: 15px 20px;
  
    margin-top: 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info {
    margin-bottom: 10px;
}

.footer-info p {
    margin: 3px 0;
    font-size: 14px;
 color:#fff;
float:left;
}

.footer-contact {
    margin-top: 10px;
}

.footer-contact p {
    margin: 3px 0;
    font-size: 14px;
    color:#fff;
float:left;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;

    font-size: 14px;
    color: white;
}
.left{
    width:200px;
    float:left;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .bag {
     
    }
    
    .xydt, .tzgg {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
    }
    
    .nav li {
        margin-right: 15px;
        margin-bottom: 5px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
        margin-top: 20px;
    }
}