@import url("iconfont.css");

/* ==================== 基础样式（移动优先） ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: url(../images/head.jpg) 50% 50px no-repeat;
    background-size: 100% auto;	
    min-width: 320px; /* 最小宽度，防止小屏幕变形 */
	overflow-x: hidden; /* 防止水平滚动 */
}

.warpBox {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
	max-width: 100%; 
	overflow-x: hidden;
}

/* 移动端头部（默认显示） */
.wap-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #e8380d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.wap-header .back,
.wap-header .share {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wap-header .back a,
.wap-header .share {
    color: #fff;
    font-size: 50px;
}

.wap-header .title {
    flex: 1;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

/* 桌面端头部（默认隐藏） */
.pc-header {
	display: none; /* 默认隐藏 */
    width: 100%;
    height: 50px;
    background:#0066B3;
}
.nav1 {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px; /* 基础内边距 */
    box-sizing: border-box;
}

.nav1 ul.menu {
    max-width: 840px;
    width: 740px;
    padding-left: 140px;
    background: url('/images/logo-detail.png') left center no-repeat;
    background-size: 40px auto;
    margin-left: 10px;
    height: 48px;
    display: flex;
    align-items: center;
}

.nav1 ul.menu li {
    float: left;
    color: #fff;
    border-left: 1px solid rgba(240, 240, 240, 0.3);
    padding: 0 7px;
    height: 14px;
    margin: 0;
    line-height: 14px;
}

.nav1 ul.menu li.total {
    border: none;
}

.nav1 ul.menu li a {
    font-size: 14px;
    color: #fff;
    height: 14px;
    line-height: 14px;
    display: block;
    overflow: hidden;
    float: left;
    padding: 0 7px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav1 ul.menu li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 搜索框样式 */
.nav1 .nav-search {
    border-bottom: 1px solid rgba(241, 241, 241, 0.3);
    line-height: 40px;
	height:40px;
    width: 240px;
    color: #bbb;
    margin-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
}

.nav1 .nav-search form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    height: 100%;
}

.nav1 .nav-search .layui-icon-search {
    cursor: pointer;
    color: rgba(241, 241, 241, 0.7);
    width: 20px;
    height: 20px;
    display: inline-block;
    position: absolute;
    left: 10px;
    z-index: 1;
    top: 25%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
}

.nav1 .nav-search input {
    border: 0;
    color: #f1f1f1;
    height: 100%;
    width: 100%;
    display: inline-block;
    background-color: transparent;
    padding-left: 35px;
    padding-right: 10px;
    box-sizing: border-box;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav1 .nav-search input:focus {
    outline: 0;
    color: #fff;
}

.nav1 .nav-search input::placeholder {
    color: rgba(241, 241, 241, 0.5);
    font-size: 14px;
    transition: color 0.3s ease;
}
/* 悬停效果 */
.nav1 .nav-search:hover {
    border-bottom-color: rgba(241, 241, 241, 0.6);
}

.nav1 .nav-search:hover .layui-icon-search {
    color: rgba(241, 241, 241, 0.9);
}

.nav1 .nav-search:focus-within {
    border-bottom-color: #fff;
}

.nav1 .nav-search:focus-within .layui-icon-search {
    color: #fff;
}


/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 图片自适应 */
img {
    max-width: 100%;
    height: auto;
    display: block; /* 消除图片底部的空白间隙 */
}

/* 按钮/链接样式 */
a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* ==================== 公共模块样式 ==================== */

/* 首屏分割（index-row1） */
.index-row1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;	
}

.index-row1 .col-l,
.index-row1 .col-c,
.index-row1 .col-r {
    width: 100%;
    margin: 0 0 20px 0;
}

.index_text {
    font-size: 16px;
    line-height: 1.8;
    text-indent: 2em;
    padding: 15px 0;
}

/* 标题样式（g-tit1, g-tit2） */
.g-tit1, .g-tit2 {
	display:flex;
	justify-content:center;
	align-items:center;
    text-align: center;
	margin:50px 0;
}

.g-tit1{
    padding-top:400px;
}


/* 网格布局（ul-imgtxt, list-img） */
.ul-imgtxt, .list-img {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.ul-imgtxt li, .list-img li {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.ul-imgtxt li img, .list-img li img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 保持图片比例，填充容器 */
    transition: transform 0.3s ease;
}

.ul-imgtxt li:hover img, .list-img li:hover img {
    transform: scale(1.05);
}

.ul-imgtxt li p, .list-img li p {
    position: absolute;
    width: 100%;
    background: rgba(68, 68, 68, 0.51);
    height: 48px;
    line-height: 48px;
    color: #fff;
    padding: 0 20px;
    bottom: 0;
    left: 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    text-align: center;
}

/* 轮播图（certify） */
#certify {
    position: relative;
    width: 100%; /* 改为100%自适应 */
    margin: 30px auto 0;
    overflow: hidden; /* 防止内容溢出 */
    padding: 0 20px; /* 增加内边距 */
    box-sizing: border-box;
}

#certify .swiper {
    width: 100%;
    padding-bottom: 60px;
    position: relative;
}

#certify .swiper-wrapper {
    display: flex;
    align-items: center;
}

#certify .swiper-slide {
    width: 280px; /* 默认小尺寸 */
    height: 187px; /* 默认小尺寸 */
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.7; /* 非活动卡片半透明 */
	top:30px;
}

#certify .swiper-slide-active,
#certify .swiper-slide-duplicate-active {
    transform: scale(1.2, 1.2);
    z-index: 30;
    opacity: 1;
}

#certify .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#certify .swiper-slide p {
    line-height: 60px;
    height: 60px;
    color: #fff;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 21, 21, 0.42);
    padding: 0 20px;
}

#certify .swiper-button-prev {
	position:absolute;
	left: 0px;
	top:45%;
	z-index:100;
	background: rgba(3,66,183, 0.42);
	width: 45px;
	height: 45px;
	border-radius:50%;
	line-height:45px;
	text-align:center;
	color:#fff;
}

#certify .swiper-button-prev i {
	font-size:25px;
	color:#fff;
}

#certify .swiper-button-prev:hover {
	background: rgba(3,66,183, 0.8);
}

#certify .swiper-button-next {
	position:absolute;
	top:45%;
	right: 0px;
	z-index:100;
	width: 45px;
	height: 45px;
	background: rgba(3,66,183, 0.42);
	border-radius:50%;
	line-height:45px;
	text-align:center;
	color:#fff;
}

#certify .swiper-button-next:hover {
	background: rgba(3,66,183, 0.8);
}

#certify .swiper-button-next i {
	font-size:25px;
	color:#fff;
}
	
	

/* 导航菜单（menus） - 移动端默认样式 */
.menus ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menus ul li {
    border-radius: 8px; /* 方块 */
    text-align: center;
    color: #fff;
    font-size: 14px;
    width: 100%;
    height: 60px;
	padding:40px 0;
    transition: all .3s;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #73cbf5; /* 默认背景色 */
}

/* 每个菜单项的背景色 */
.menus ul li.i1 { background: #73cbf5; }
.menus ul li.i2 { background: #f6b37f; }
.menus ul li.i3 { background: #58cdca; }
.menus ul li.i4 { background: #89c997; }
.menus ul li.i5 { background: #7da7d9; }


.menus ul li:hover, .menus ul li.current {
    box-shadow: 0 0 12px rgba(68, 68, 68, 0.85);
    transform: translateY(-2px);
}

.menus ul li i {
    display: block;
	font-size:30px;
}

.menus ul li a {
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 5px;
}

/* 页脚（footer） */
.footer {
    background: #f5f5f5;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* ==================== 响应式媒体查询（平板及以上） ==================== */
@media screen and (min-width: 768px) {
    /* 调整容器宽度 */
    .warpBox {
		max-width: 100%;
		padding: 0 20px;
    }
	
	.nav1 {
		flex-wrap: wrap; /* 如果空间实在不够，允许换行 */
		padding: 0 10px; /* 减少两侧留白 */
	}	
	
	.nav1 ul.menu {
		/* 移除固定宽度和过大的左内边距 */
		width: auto; 
		padding-left: 45px; /* 大幅减小 Logo 的间距，原值为 140px */
		background-size: 30px; /* 适当缩小 Logo 图标尺寸 */
		margin-left: 0;

		/* 使用 Flex 布局让菜单项自动排列，不换行 */
		display: flex;
		flex-wrap: nowrap; 
		overflow-x: auto; /* 防止极端情况下内容溢出 */
	}

	/* 3. 优化菜单项的间距 */
	.nav1 ul.menu li {
		flex-shrink: 0; /* 防止菜单项被压缩变形 */
		margin: 0 5px;  /* 增加菜单项之间的间距 */
	}

	.nav1 ul.menu li a {
		font-size: 13px; /* 稍微缩小字体以适应更紧凑的空间 */
		padding: 0 6px;
	}

	/* 4. 调整搜索框宽度 */
	.nav1 .nav-search {
		width: 100px; /* 适当缩小搜索框 */
		margin-right: 0;
	}

	.nav1 .nav-search input {
	
	}
	
	/* 隐藏移动端头部，显示桌面端头部 */
    .wap-header {
        display: none !important;
    }

    .pc-header {
        display: block !important;
    }
	
	.g-tit1{
		padding-top:150px;
	}	
	
    .index-row1 {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 两列等宽 */
        grid-template-rows: auto auto; /* 两行，第一行自动高度，第二行自动高度 */
        grid-gap: 20px; /* 行列间距 */
    }	
	
    /* 视频区域 - 第一列 */
    .index-row1 .col-l {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        width: 100%;
        height: 100%; /* 高度自适应 */
        margin: 0;
    }
    
    /* 文字区域 - 第二列 */
    .index-row1 .col-c {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        width: 100%;
        margin: 0;
    }
    
    /* 菜单区域 - 横跨两列，放在第二行 */
    .index-row1 .col-r {
        grid-column: 1 / 3; /* 横跨两列 */
        grid-row: 2 / 3;    /* 第二行 */
        width: 100%;
        margin: 0;
    }

   .index_text {
        height: auto;
        padding: 0;
    }
    
    /* 调整视频高度 */
    .index-row1 .col-l {
        height: 250px;
    }
	

    /* 网格布局（2列→3列） */
    .ul-imgtxt, .list-img {
        grid-template-columns: repeat(3, 1fr);
    }

    .ul-imgtxt li img, .list-img li img {
        height: 180px;
    }

    /* 轮播图调整 */    
    #certify .swiper-slide {
        width: 300px;
        height: 200px;
    }
    #certify .swiper-slide p {
        line-height: 45px;
        height: 45px;
        font-size: 15px;
    }
	
    /* 调整圆形菜单为一行排列，大小相同 */
    .menus ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        position: static;
        height: auto;
    }
    
    .menus ul li {
        position: static;
        width: 100%;
        height: 100px;
        border-radius: 8px; /* 圆形 */
        margin: 0;
    }
    
    .menus ul li.i1 {
        width: 100%;
        height: 100px;
        border-radius: 8px; /* 同样大小 */
    }
}

@media screen and (min-width: 1024px) {
    /* 调整容器宽度 */
    .warpBox {
        max-width: 100%;
        padding: 0 30px;
    }
	
	.nav1 {
		max-width: 1024px;
		padding: 0 20px;
	}

	.nav1 ul.menu {
		width: 680px;
		padding-left: 120px;
	}

	.nav1 ul.menu li a {
		font-size: 13px;
		padding: 0 6px;
	}

	.nav1 .nav-search {
		width: 220px;
		margin-right: 15px;
	}
	
	.g-tit1{
		padding-top:200px;
	}
	
   .index-row1 {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 两列等宽 */
        grid-template-rows: auto auto; /* 两行，第一行自动高度，第二行自动高度 */
        grid-gap: 20px; /* 行列间距 */
    }	
	
    /* 视频区域 - 第一列 */
    .index-row1 .col-l {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        width: 100%;
        height: 100%; /* 高度自适应 */
        margin: 0;
    }
    
    /* 文字区域 - 第二列 */
    .index-row1 .col-c {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        width: 100%;
        margin: 0;
    }
    
    /* 菜单区域 - 横跨两列，放在第二行 */
    .index-row1 .col-r {
        grid-column: 1 / 3; /* 横跨两列 */
        grid-row: 2 / 3;    /* 第二行 */
        width: 100%;
        margin: 0;
    }

   .index_text {
        height: auto;
        padding: 0;
    }
	
    .ul-imgtxt li img, .list-img li img {
        height: 240px;
    }

    /* 轮播图调整 */
    #certify {
        max-width: 1000px;
        margin: 50px auto 0;
    }
    
    #certify .swiper-slide {
        width: 350px;
        height: 233px;
    }
	
    #certify .swiper-slide p {
        line-height: 50px;
        height: 50px;
        font-size: 16px;
    }
	
    /* 导航菜单 */
    .menus ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        position: static;
        height: auto;
    }
    
    .menus ul li {
        position: static;
        width: 100%;
        height: 100px;
        border-radius: 8px;
        margin: 0;
    }
    
    .menus ul li.i1 {
        width: 100%;
        height: 100px;
    }
    
    .ul-imgtxt li img, .list-img li img {
        height: 200px;
    }
}

@media screen and (min-width: 1400px) {
    /* 调整容器宽度 */
    .warpBox {
        max-width: 1400px;
    }
    .nav1 {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .nav1 ul.menu {
        width: 840px;
        padding-left: 140px;
    }
    
    .nav1 ul.menu li a {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .nav1 .nav-search {
        width: 280px;
    }	
	
	.g-tit1{
		padding-top:400px;
	}	
	
    .index-row1 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .index-row1 .col-l {
        width: 550px;
        height: 367px;
        margin: 0;
    }
    
    .index-row1 .col-c {
        width: 450px;
        margin: 0 50px 0 0;
    }
    
    .index-row1 .col-r {
        width: 300px;
        margin: 0;
    }

	
    .ul-imgtxt {
        grid-template-columns: repeat(3, 1fr);
    }	

    .list-img {
        grid-template-columns: repeat(4, 1fr);
    }	
	
    .ul-imgtxt li img, .list-img li img {
        height: 300px;
    }
	
    .list-img li img {
        height: 240px;
    }	

    /* 轮播图调整 */
    #certify {
        max-width: 1400px;
        margin: 50px auto 0;
    }
    
    #certify .swiper-slide {
        width: 520px;
        height: 347px;
    }
	
    #certify .swiper-slide p {
        line-height: 60px;
        height: 60px;
        font-size: 18px;
    }	

    /* 导航菜单 */
   .menus ul {
        display: block;
        position: relative;
        height: 400px;
    }
    
    .menus ul li {
        position: absolute;
        width: 130px;
        height: 130px;
        border-radius: 50%;
		font-size:18px;
    }
    
    .menus ul li.i1 {
        background: #73cbf5;
        border: 10px solid #bbe9fc;
        width: 150px;
        height: 150px;
		border-radius: 50%;
        left: 0;
    }
    
    .menus ul li.i2 {
        background: #f6b37f;
        border: 10px solid #f6ebe3;
        right: 0;
        top: -50px;
    }
    
    .menus ul li.i3 {
        background: #58cdca;
        border: 10px solid #c1ebeb;
        left: -20px;
        top: 160px;
    }
    
    .menus ul li.i4 {
        background: #89c997;
        border: 10px solid #e0f1e6;
        right: 1px;
        top: 100px;
    }
    
    .menus ul li.i5 {
        background: #7da7d9;
        border: 10px solid #dfebf5;
        left: 110px;
        top: 240px;
    }
}

/* ==================== 超小屏幕优化（手机） ==================== */

@media screen and (max-width: 767px) {
    /* 隐藏桌面导航，显示移动端头部 */
    .pc-header {
        display: none !important;
    }
    
    .wap-header {
        display: flex !important;
    }
    
    /* 调整容器宽度 */
    .warpBox {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* 调整首页布局 */
    .index-row1 {
        flex-direction: column;
    }
    
    .index-row1 .col-l,
    .index-row1 .col-c,
    .index-row1 .col-r {
        width: 100%;
        margin: 0 0 10px 0;
    }
    
    .index_text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* 调整标题 */
    .g-tit1 {
        padding-top: 150px;
    }
    
    .g-tit1, .g-tit2 {
        margin: 30px 0;
    }
    
    /* 调整网格布局 */
    .ul-imgtxt, .list-img {
        grid-template-columns: repeat(2, 1fr);
    }
		
    
    .ul-imgtxt li img, .list-img li img {
        height: 250px;
    }
    
    /* 调整轮播图 */
    #certify {
        width: 100%;
        margin: 30px auto 0;
    }
    
    #certify .swiper-slide {
        width: 320px;
        height: 213px;
    }
    
    #certify .swiper-slide p {
        font-size: 14px;
        line-height: 50px;
        height: 50px;
    }
    

    
    /* 调整按钮 */
    .g-tit2 .btn-more li {
        width: 120px;
        font-size: 14px;
        margin: 0 5px;
    }
    
    /* 为固定头部留空间 */
    body {
        padding-top: 50px;
    }
}

@media screen and (max-width: 480px) {	
	.g-tit1{
		padding-top:60px;
	}	
	.g-tit1 img,.g-tit2 img{
		width:150px;
		height:auto;
	}		

    /* 网格布局（2列→1列） */
    .ul-imgtxt {
        grid-template-columns: 1fr;
    }
    .list-img {
        grid-template-columns: repeat(2, 1fr);
    }
    .ul-imgtxt li img{
        height: 220px;
    }
    .list-img li img {
        height: 120px;
    }
	
    #certify .swiper-slide {
        width: 200px;
        height: 133px;
    }
        
    #certify .swiper-button-prev,
    #certify .swiper-button-next {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    
    #certify .swiper-button-prev i,
    #certify .swiper-button-next i {
        font-size: 18px;
    }	
}

/* ==================== 打印样式 ==================== */
@media print {
    .wap-header,
    .wrapper,
    .footer {
        display: none !important;
    }

    body {
        padding-top: 0;
    }
}