467 lines
9.9 KiB
CSS
467 lines
9.9 KiB
CSS
/* -moz-:代表firefox(火狐)浏览器私有属性
|
||
-ms-:代表ie浏览器私有前缀
|
||
-webkit-:代表safari、chrome私有属性
|
||
-o-:代表Opera私有属性
|
||
*/
|
||
/* 清空所有标签的内外边距 */
|
||
* {
|
||
padding: 0;
|
||
margin: 0;
|
||
/* css3盒子模型 */
|
||
box-sizing: border-box;
|
||
}
|
||
body {
|
||
/* 抗锯齿性-让文字显示的更加清晰 */
|
||
-webkit-font-smoothing: antialiased;
|
||
background-color: #FFFFFF;
|
||
font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
|
||
color: #333333;
|
||
}
|
||
/* em 和 i 斜体的文字不倾斜 */
|
||
em,
|
||
i {
|
||
font-style: normal;
|
||
}
|
||
|
||
/* 去掉li 的小圆点 */
|
||
ul,
|
||
ol,
|
||
li {
|
||
list-style: none;
|
||
}
|
||
|
||
button {
|
||
/* 当我们鼠标经过button按钮的时候,鼠标变成小手 */
|
||
cursor: pointer;
|
||
}
|
||
img {
|
||
/* 照顾低版本浏览器 如果图片外面包含了链接会有边框的问题 */
|
||
border: 0;
|
||
/* 取消图片底侧有空白缝隙的问题 ① */
|
||
vertical-align: middle;
|
||
/* 取消图片底侧有空白缝隙的问题 ② */
|
||
display: block;
|
||
object-fit: cover;
|
||
}
|
||
/* 去掉a标签的下划线,并修改字体颜色 */
|
||
a {
|
||
color: #333333;
|
||
text-decoration: none;
|
||
/* 手机端去除a标签点击时的背景样式 */
|
||
-webkit-tap-highlight-color: transparent;
|
||
/* 去除边距 */
|
||
display: inline-block;
|
||
}
|
||
/* a:hover {
|
||
color: #c81623;
|
||
} */
|
||
/* 禁用长按时弹出的菜单 */
|
||
img , a {
|
||
-webkit-touch-callout: none;
|
||
}
|
||
button,
|
||
input,
|
||
textarea{
|
||
/* "\5B8B\4F53" 就是宋体的意思 这样浏览器兼容性比较好 */
|
||
font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
|
||
/* 取消轮廓 */
|
||
outline: none;
|
||
/* 去掉默认外观 */
|
||
/* -webkit-appearance: none; */
|
||
/* 去掉点击时的默认外观 */
|
||
outline-style: none;
|
||
}
|
||
textarea {
|
||
/* 禁止自定义拉伸 */
|
||
resize: none;
|
||
}
|
||
|
||
.hide,
|
||
.none {
|
||
display: none
|
||
}
|
||
/* 清楚浮动 */
|
||
.clearfix:after {
|
||
visibility: hidden;
|
||
clear: both;
|
||
display: block;
|
||
content: ".";
|
||
height: 0
|
||
}
|
||
|
||
.clearfix {
|
||
*zoom: 1
|
||
}
|
||
|
||
.logo h1 a {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.w100{ width: 100%; margin: auto;}
|
||
.w1300{ width: 1320px; margin: auto;}
|
||
|
||
.clips1{
|
||
display: inline-block;
|
||
white-space: nowrap;
|
||
width: 100%;
|
||
overflow: hidden;
|
||
text-overflow:ellipsis;
|
||
}
|
||
.clips2{display: -webkit-box;-webkit-line-clamp: 2;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;}
|
||
.clips3{display: -webkit-box;-webkit-line-clamp: 3;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;}
|
||
.clips4{display: -webkit-box;-webkit-line-clamp: 4;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;}
|
||
.clips5{display: -webkit-box;-webkit-line-clamp: 5;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;}
|
||
.clips6{display: -webkit-box;-webkit-line-clamp: 6;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;}
|
||
.clips7{display: -webkit-box;-webkit-line-clamp: 7;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;}
|
||
|
||
|
||
/* 头部 */
|
||
body.active{
|
||
margin-right: 270px;
|
||
}
|
||
.header{
|
||
height: 90px;
|
||
background-color: rgba(255,255,255,0.75);
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
z-index: 99;
|
||
}
|
||
.index-header{
|
||
background: none;
|
||
}
|
||
.head{
|
||
width: 90%;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
.head .logo{
|
||
width: 30%;
|
||
}
|
||
.head .logo img{
|
||
height: 55px;
|
||
}
|
||
.head .nav{
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
.head .nav .nav-logo,
|
||
.head .nav-bg{
|
||
display: none;
|
||
}
|
||
.head .nav li{
|
||
margin-left: 55px;
|
||
height: 90px;
|
||
position: relative;
|
||
}
|
||
.head .nav li>a{
|
||
display: block;
|
||
padding: 0 2px;
|
||
font-size: 18px;
|
||
line-height: 2;
|
||
margin-top: 27px;
|
||
color: #262626;
|
||
transition: all .8s;
|
||
}
|
||
.head .nav li.active>a{
|
||
font-weight: bold;
|
||
color: #72C152;
|
||
border-bottom: 3px solid #72C152;
|
||
}
|
||
.head .nav li:hover>a{
|
||
transform: rotateY(360deg);
|
||
transition: all .8s;
|
||
}
|
||
.head .nav li.active:hover>a{
|
||
transform: none;
|
||
}
|
||
|
||
.head .nav li .sub-nav{
|
||
height: 0;
|
||
width: 173px;
|
||
border-radius: 3px;
|
||
background-color: rgba(255,255,255,0.75);
|
||
position: absolute;
|
||
left: -25px;
|
||
top: 86px;
|
||
z-index: 9;
|
||
transition: all .4s;
|
||
overflow: hidden;
|
||
}
|
||
.head .nav li .sub-nav>a{
|
||
display: block;
|
||
padding: 0 22px;
|
||
line-height: 44px;
|
||
font-size: 15px;
|
||
color: #585858;
|
||
}
|
||
.head .nav li .sub-nav>a.active{
|
||
background-color: #ebf2e9;
|
||
color: #72C152;
|
||
}
|
||
.head .nav li:hover .sub-nav{
|
||
height: auto;
|
||
padding: 7px 9px;
|
||
box-shadow: 0 0 8px 3px rgba(224,224,224,0.32);
|
||
transition: all .4s;
|
||
}
|
||
|
||
.head .head-btn{ display: none; width: 24px; float: right; position: relative; cursor: pointer; margin-top: 5px;}
|
||
.head .head-btn i{ display: block; width: 100%; height: 2px; float: left; background-color: #262626; border-radius: 50px;
|
||
transition: all .5s ease 0s;
|
||
-webkit-transition: all .5s ease 0s;
|
||
-moz-transition: all .5s ease 0s;
|
||
}
|
||
.head .head-btn i.bar-top{ margin-top: 0;}
|
||
.head .head-btn i.bar-cen{ margin-top: 5px;}
|
||
.head .head-btn i.bar-bom{ margin-top: 5px;}
|
||
.head .head-btn.cur i{background-color: #FFFFFF;}
|
||
.head .head-btn.cur i.bar-cen{ opacity: 0;}
|
||
.head .head-btn.cur i.bar-top{ -webkit-transform:rotate(45deg) translate(6px, 6px);transform:rotate(45deg) translate(6px, 6px);}
|
||
.head .head-btn.cur i.bar-bom{ -webkit-transform: rotate(-45deg) translate(5.5px, -5px);transform: rotate(-45deg) translate(5.5px, -5px);}
|
||
|
||
/* 尾部 */
|
||
/* 留言板 */
|
||
.index-seek{
|
||
padding-top: 114px;
|
||
background-image: url(../imgs/seek-bg.jpg);
|
||
background-repeat: no-repeat;
|
||
background-position: top;
|
||
background-size: cover;
|
||
}
|
||
|
||
.seek{
|
||
display: flex;
|
||
background: linear-gradient(rgba(123,188,43,0.8),rgba(33,165,60,0.8));
|
||
}
|
||
.seek .left{
|
||
width: 38.1%;
|
||
padding: 30px 4%;
|
||
border-right: 1px solid rgba(255,255,255,0.1);
|
||
color: #FFFFFF;
|
||
text-align: center;
|
||
}
|
||
.seek .left img{
|
||
width: 130px;
|
||
margin: 0 auto;
|
||
}
|
||
.seek .left strong{
|
||
display: block;
|
||
font-family: "douyu-font";
|
||
font-size: 42px;
|
||
line-height: 1.5;
|
||
margin-top: 10px;
|
||
font-weight: normal;
|
||
}
|
||
.seek .left p{
|
||
font-size: 26px;
|
||
line-height: 1.2;
|
||
}
|
||
.seek .left span{
|
||
display: block;
|
||
font-size: 15px;
|
||
line-height: 1.8;
|
||
margin-top: 12px;
|
||
}
|
||
|
||
.seek .right{
|
||
width: 61.9%;
|
||
padding: 44px 50px;
|
||
}
|
||
.seek .right .form-top{
|
||
display: flex;
|
||
justify-content: space-between;
|
||
flex-wrap: wrap;
|
||
}
|
||
.seek .right .form-top input{
|
||
width: 49%;
|
||
line-height: 44px;
|
||
padding: 0 10px;
|
||
margin-bottom: 15px;
|
||
background: none;
|
||
border: 1px solid rgba(255,255,255,0.5);
|
||
font-size: 14px;
|
||
color: rgba(255,255,255,0.7);
|
||
}
|
||
.seek .right .form-top input::-webkit-input-placeholder,
|
||
.seek .right .form-top textarea::-webkit-input-placeholder
|
||
{
|
||
color: rgba(255,255,255,0.7);
|
||
}
|
||
.seek .right .form-top input::-ms-input-placeholder,
|
||
.seek .right .form-top textarea::-ms-input-placeholder{
|
||
color: rgba(255,255,255,0.7);
|
||
}
|
||
.seek .right .form-top input::-moz-input-placeholder,
|
||
.seek .right .form-top textarea::-ms-input-placeholder{
|
||
color: rgba(255,255,255,0.7);
|
||
}
|
||
.seek .right .form-top input::-o-input-placeholder,
|
||
.seek .right .form-top textarea::-ms-input-placeholder{
|
||
color: rgba(255,255,255,0.7);
|
||
}
|
||
.seek .right .form-top input::input-placeholder,
|
||
.seek .right .form-top textarea::-ms-input-placeholder{
|
||
color: rgba(255,255,255,0.7);
|
||
}
|
||
.seek .right .form-top textarea{
|
||
width: 100%;
|
||
height: 82px;
|
||
padding: 10px;
|
||
line-height: 24px;
|
||
background: none;
|
||
border: 1px solid rgba(255,255,255,0.5);
|
||
font-size: 14px;
|
||
color: rgba(255,255,255,0.7);
|
||
}
|
||
.seek .right button{
|
||
display: block;
|
||
width: 140px;
|
||
height: 48px;
|
||
background-color: rgba(255,255,255,0.7);
|
||
border: 0;
|
||
font-size: 17px;
|
||
color: #212121;
|
||
margin: 30px auto 0;
|
||
}
|
||
|
||
/* 联系方式 */
|
||
.index-contact{
|
||
padding: 28px 0;
|
||
background-color: #3a3e39;
|
||
}
|
||
.contact{
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.contact .left,
|
||
.contact .middle{
|
||
width: 32%;
|
||
display: flex;
|
||
justify-content: flex-start;
|
||
}
|
||
.contact .left>img,
|
||
.contact .middle>img{
|
||
height: 58px;
|
||
margin-right: 17px;
|
||
}
|
||
.contact .left p,
|
||
.contact .middle p{
|
||
font-size: 14px;
|
||
line-height: 29px;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
.contact .middle{
|
||
width: 46%;
|
||
}
|
||
|
||
|
||
.contact .right{
|
||
width: 22%;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
}
|
||
.contact .right>.section{
|
||
display: flex;
|
||
justify-content: flex-start;
|
||
}
|
||
.contact .right>.section p{
|
||
width: 16px;
|
||
margin-right: 14px;
|
||
font-size: 14px;
|
||
line-height: 25.5px;
|
||
color: rgba(255,255,255,0.8);
|
||
}
|
||
.contact .right>.section>img{
|
||
height: 102px;
|
||
}
|
||
|
||
/* 友情链接 */
|
||
.links{
|
||
padding: 20px 0;
|
||
}
|
||
.links-item li{
|
||
display: inline-block;
|
||
font-size: 15px;
|
||
line-height: 2;
|
||
color: #262626;
|
||
margin-right: 24px;
|
||
cursor: pointer;
|
||
transition: all .8s;
|
||
}
|
||
.links-item li.active{
|
||
color: #72C152;
|
||
transition: all .8s;
|
||
}
|
||
.links-list{
|
||
margin-top: 10px;
|
||
}
|
||
.links-list li{
|
||
display: none;
|
||
}
|
||
.links-list li>a{
|
||
font-size: 14px;
|
||
line-height: 2.2;
|
||
color: #585858;
|
||
margin-right: 20px;
|
||
}
|
||
.links-list li.active{
|
||
display: block;
|
||
}
|
||
|
||
/* 版权备案 */
|
||
.footer .foot{
|
||
border-top: 1px solid #eeefef;
|
||
}
|
||
.footer .foot p{
|
||
font-size: 14px;
|
||
line-height: 54px;
|
||
color: #585858;
|
||
}
|
||
.footer .foot p>a{
|
||
color: #585858;
|
||
margin: 0 9px;
|
||
}
|
||
|
||
/* 侧边咨询 */
|
||
.index-sider{
|
||
width: 106px;
|
||
height: auto;
|
||
position: fixed;
|
||
right: 0;
|
||
bottom: 80px;
|
||
text-align: center;
|
||
z-index: 999;
|
||
}
|
||
.index-sider .top{
|
||
height: 95px;
|
||
background-color: #72C152;
|
||
padding-top: 16px;
|
||
font-size: 15px;
|
||
line-height: 1.4;
|
||
color: #FFFFFF;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
.index-sider .bottom{
|
||
border: 1px solid #c7e1bc;
|
||
background-color: rgba(255,255,255,1);
|
||
}
|
||
.index-sider .bottom p{
|
||
font-size: 13px;
|
||
color: #72C152;
|
||
line-height: 1.2;
|
||
}
|
||
.index-sider .bottom img{
|
||
max-width: 90px;
|
||
margin: 10px auto;
|
||
}
|
||
.index-sider .bottom strong{
|
||
font-size: 12px;
|
||
line-height: 1.2;
|
||
color: #72C152;
|
||
} |