﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    display: flex;
	width: 83.33333%;
    justify-content: space-between;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 10px;
}

.logo1 {
    width: 25%;
}

.logo2 {
    width: 50%;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: #d61319;
}

.header {
    /* width: 85%; */
	width: 83.33333%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
}

.navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
	font-family: SourceHanSansCN-Regular;
	font-size: 20.32px;
}

.navigation div {
    list-style: none;
    padding: 1.3vw 3vw;
}

.navigation div a {
    text-decoration: none;
    color: #fff;
    letter-spacing: 1px;
}

.navigation div:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search {
	border-radius: 100px;
	padding: 20px;
	padding-top: 8px;
	padding-bottom: 8px;
	background-color: #ffffff3c;
	/* width: 240px; */
}
.search_input{
	color: white;
}
.search_input input{
	font-size: 15.24px;
	font-family: PingFangSC-Regular;
	width: 120px;
}
.search input::placeholder {
    color: #fff;
}


.navbar{
    display: none;
}
.phone_logo{
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 15px;
}
/*屏幕宽度小于991px,改变布局和样式*/
@media screen and (max-width:800px) {

    header{
        display: none;
    }
    .logo{
        display: none;
    }
    .navbar {
    display: block;
	/* 相对定位 */
	position: relative;
	/* 让元素的宽度占浏览器可视区域的宽度 */
	width: 100vm;
	height: 80px;
    /*background: #d61319;*/
	/* 盒子阴影 */
	/*box-shadow: 0 10px 50px #d61319;*/
    z-index: 1000;
}
.navbar input {
	/* 隐藏复选框 */
	display: none;
}
.navbar label {
	/* 绝对定位 */
	position: absolute;
	/* clac方法自动计算 让元素垂直居中 */
	top: calc(50% - 25px);
	right: 20px;
	width: 50px;
	height: 50px;
	/* 圆角属性 */
	border-radius: 6px;
	/* 元素边框 */
	border: 1px solid rgba(198, 217, 237, 0.3);
    background: #d61319;
	/* 盒子阴影 多组值用逗号隔开 */
	box-shadow: 5px 3px 6px 1px rgb(39, 133, 152)#c6d9ed, -5px -3px 6px 1px #fff;
	/* 鼠标移入变小手 */
	cursor: pointer;
	transition: all 0.5s ease-out;
}
/* 先把label元素内的两条线定义一下 */
.navbar label::before,
.navbar label::after {
	content: "";
	/* 利用两个伪元素来定义 */
	position: absolute;
	left: 5px;
	width: 40px;
	height: 4px;
	/* 让两条更佳圆滑 */
	border-radius: 4px;
	background-color: #042a41;
	/* 收回来的动画刚好相反 */
	transition: transform 0.3s ease-out, top 0.3s ease-out 0.3s;
}
/* 分别定义两条线的位置 */
.navbar label::before {
	top: calc(50% - 10px);
}
.navbar label::after {
	top: calc(50% + 6px);
}
/* 然后定义label元素的动画效果 */
/* 对了:checked是判断复选框是否被选中 + 是相邻兄弟选择器 找最近的下一次label元素 */
.navbar input:checked + label {
	/* 加了inset就是内部阴影 啥都不写就是默认的外部阴影(outset) */
	box-shadow: 0 0 0 #fff, 0 0 0 #fff, 5px 3px 6px 1px #c6d9ed inset,
		-5px -3px 6px 1px #fff inset;
}
.navbar input:checked + label::before {
	top: calc(50% - 2px);
	/* 逆时针旋转45度 */
	transform: rotate(-45deg);
	transition: top 0.3s ease-out, transform 0.3s ease-out 0.3s;
}
.navbar input:checked + label::after {
	top: calc(50% - 2px);
	/* 顺时针旋转45度 */
	transform: rotate(45deg);
	/* 定义过渡效果 */
	/* 先执行top的变化 然后在.3s后执行transform转换 ease-out是从快速到慢速的过程 */
	transition: top 0.3s ease-out, transform 0.3s ease-out 0.3s;
}
/* 我们先写移动端的导航栏样式 start */
.navbar ul {
	position: relative;
	/* top: 100px; */
	width: 100%;
	/* 元素的不透明度 为0 就是完全透明 */
	opacity: 0;
	/* 让元素缩放到0 就是直接隐藏 */
	transform: scaleY(0);
	/* 这个属性设置元素缩放的中心点 设置到了最上面的中间位置 */
	transform-origin: 50% 0;
	transition: all 0.5s ease-out;
    background: #d61319;
}
.navbar ul li {
	list-style: none;
	width: 100%;
	height: 66px;
}
.navbar ul li a {
	/* a标签是行内元素 不设置为块级或者行内块就没法设置宽高 */
	display: block;
	width: 100%;
	height: 100%;
	line-height: 66px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	/* 取消文字下划线 */
	text-decoration: none;
	color: #042a41;
	border: 1px solid rgba(198, 217, 237, 0.3);
	box-shadow: 0 15px 20px #c6d9ed;
	transition: all 0.3s ease-out;
}
.navbar ul li a:hover {
	box-shadow: 0 0 0 #fff, 0 15px 20px #c6d9ed inset;
}
.navbar input:checked ~ ul {
	opacity: 1;
	transform: scaleY(1);
}
}

/*屏幕宽度小于600px,改变布局和样式*/
@media screen and (max-width:600px) {
    header .search {
        width: 100%;
    }

    .banner .image {
        margin-top: 30px;
    }
}

