*{
    /* 初始化，清除页面元素的内外边距 */
    padding:0;
    margin:0;
    /* 盒子模型 */
    box-sizing: border-box;
}
/* 定义一个:root ，后边所有元素都可以用到 */
:root {
    /* #7AC18B */
    /* #009ECC */
    --primary-color: #036FD4;
    /*主色调*/
    --secondary-color: #e3e3e3;
    --text-color-lightest: #333333;
    --text-color-main: #333333;
    --text-color-darker: #2e2e2e;
    --text-color-dark: #494949;
    --text-color-gray: #8b8b8b;
    --text-color-dark-gray: #727272;
    --text-color-light-gray: #c6c6c6;
    --backdrop-color: rgba(42, 42, 42, 0.69);
    /*遮罩层颜色*/

}
.contact-header {
    width: 100%;
    height: 400px;
    background-image: url('../images/contact-header.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-header-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 600;
}
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-image: url('../images/content-wrapper.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}
section {
    display: grid;
    justify-items: center;
    max-width: 1200px;
    padding: 0 80px;
}
.contact-content {
    padding: 72px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4vw;
    box-sizing: border-box;
    width: 100%;
}
.contact-content-left {
    flex: 1;
    flex-shrink: 0;
    color: #ffffff;
    padding: 40px;
}
.contact-content-left h3{
    font-size: 28px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    position: relative;
}
.contact-content-left h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ffffff;
    content: '';
}
.contact-content-left p {
    font-size: 20px;
    margin-bottom: 32px;
    display: flex;
    align-items:center;
}
.contact-content-left p i{
    margin-right: 24px;
    font-size: 30px;
}
.contact-content-left p span {
    font-size: 20px;
}
.contact-content-left p a {
    font-size: 20px;
    color: #ffffff;
}
.contact{
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:40px;
    min-width: 400px;
    background-color: #191935;
    /* background-image: linear-gradient(88deg, #26a9a4 0%, #7DB36C 270%); */
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}
.contact h2{
    color:#fff;
    margin-bottom:30px;
    font-size: 20px;
}
.contact .contact_box{
    /* 相对位置 */
    position: relative;
    width:100%;
}
.contact .contact_box input,
textarea {
    /* 清除input框自带的边框和轮廓 */
    outline: none;
    border: none;
    width:100%;
    padding: 10px;
    margin-bottom: 40px;
    color:#FFFFFF;
    font-size: 16px;
    border: 1px solid #fff;
    /* 背景颜色为透明色 */
    background-color: transparent;
    border-radius: 6px;
}
.contact .contact_box label{
    position: absolute;
    top: 0;
    left: 10px;
    padding: 10px 0;
    color:#666666;
    /* 默认为auto：可以被点击；设置成none就不可以被点击 */
    pointer-events: none;  
}

/* :focus 选择器是当input获得焦点时触发的样式，“+”是相邻兄弟
选择器，就是去找与input相邻的兄弟label */
/* :valid 选择器试判断input框的内容是否合法，如果合法会执行下面的属性代码，
一种情况：当input中没有required会一直合法，另一种情况：
当input框中有内容才合法 */
.contact .contact_box input:focus+label,
.contact .contact_box input:valid+label {
    transition: all 0.4s;
    top:-40px;
    color: #036FD4;
    font-size: 18px;
}
.contact .contact_box textarea:focus+label,
.contact .contact_box textarea:valid+label {
    transition: all 0.4s;
    top: -40px;
    color: #036FD4;
    font-size: 18px;
}
.contact a{
    overflow:hidden;
    position: relative;
    padding:10px 20px;
    color: #036FD4;
    text-decoration: none;
}
.contact a:hover{
    transition: all 0.5s;
    color:#fff;
    border-radius: 5px;
    background-color: #036FD4;
    box-shadow:0 0 5px #036FD4,0 0 10px #036FD4,0 0 12px #036FD4
    ,0 0 100px #036FD4;
}
.contact a span{
    position: absolute;
}
.contact a span:first-child{
    top:0;
    left:-100%;
    width:100%;
    height:2px;
    background: linear-gradient(to right,transparent,#036FD4);
    animation: move1 1.2s linear infinite;
}
.contact a span:nth-child(2){
    right:0;
    top:-100%;
    width:2px;
    height:100%;
    background: linear-gradient(transparent,#036FD4);
    animation: move2 1.2s linear 0.25s infinite;
}
.contact a span:nth-child(3){
    right:-100%;
    bottom: 0;
    width:100%;
    height:2px;
    background: linear-gradient(to left,transparent,#036FD4);
    animation: move3 1.2s linear 0.5s infinite;
}
.contact a span:last-child{
    left:0;
    bottom: -100%;
    width:2px;
    height:100%;
    background:linear-gradient(#036FD4,transparent);
    animation: move4 1.2s linear 0.75s infinite;
}
@keyframes move1{
    0% {
        left:-100%;
    }
    50%,
    100%{
        left:100%;
    }
}
@keyframes move2{
    0% {
        top:-100%;
    }
    50%,
    100%{
        top:100%;
    }
}
@keyframes move3{
    0% {
        right:-100%;
    }
    50%,
    100%{
        right:100%;
    }
}
@keyframes move4{
    0% {
        bottom:-100%;
    }
    50%,
    100%{
        bottom:100%;
    }
}
