﻿/* 清除默认边距 */
*{
    margin: 0;
    padding: 0;
}

/* 整个网页添加背景图片 也可以设置颜色*/
body{
background: rgb(250, 219, 191);
position:relative;
height:auto;
min-height:100%;
}
 
.box{width:100%}

.box>.box-in{
   width:1200px;
   position: relative;
   margin:0 auto 
}


 /*header设置一个外边距 留出页面最上面的距离 */
.header{
    /* height: 900px;   这里设置高度会导致下面的div跟上一个div之间有一段空隙*/
     /*margin-top: 15px;*/}

 


/* logo部分样式 */
.logo{
    width:100%;
    height: 120px;
    background-color: #cf060a;
}


/* 导航条样式 */

.nav{
   width: 100%;
   height: 120px;
   background-color:#e92c2f;
   margin:0 auto; 
}


/* 清除a标签的样式 否则默认是蓝色的会很丑*/

a{
    text-decoration: none;
    color: #101111ce;
}
    


/* 导航条部分 */


.nav>ul{
    margin-left: 310px;  /* 这块想要居中的 但未生效 */
    height: 90px;
}


.nav>ul>li{

    height: 70px;
    padding: 0 15px;
    /* background-color: #e46f71; */
    float: left;
    list-style:  none; /* 否则会有那个小圆点*/
 
}


.nav>ul>li>a{
    font-size: 25px;
    color: white;
    line-height: 70px; /* 等于导航条高度*/

}
/* logo图片设置 */
.header>img{
    width:320px;
    height:60px;
    float: left;
    margin-left: 35px; /* 外边距设置*/
}

/* logo 依法治校 专题网标签设置 */
.logo>p{
font-size: 56px;
margin-left: 600px; 
color:white;  
font-family: "华文行楷";
}
/* 设置导航条下方图片区域格式 先设置大的div 再设置img格式 */

.header>.pic{
    width: 100%;
    height: 80px;
    background-color: #291212;
} 



.header>.pic>img{
    width: 100%; 
    height: 90px;
}



/* 版心部分 */

.container{
    width:80%;
    height:auto;
    margin:0 auto; 
    margin-top:60px; /* margin top 要写在 margin：0 auto下面*/
    /* background-color: rgb(193, 221, 221); */
    /*display: flex; 父元素这样设置 使得子元素left right 可以水平排列*/

}



/* 标题部分 left */
.container>.title{
    width: 200px;
    height: 60px;
    font-size: 25px;
    font-weight: 700;  
    float:left;
    background-color: rgb(170, 9, 9);
    color: white;
    padding: 10px 20px;/*10代表上下，20左右*/
    box-sizing: border-box;
    margin-left: 20px;
    clear:both;
    margin-bottom: 20px;
}
 

/* 正文/列表部分 */

.container>.pic_txt{
        width: 100%; 
      /* background-color: rgb(215, 230, 16);  */
    
}
 
 
.container>.pic_txt>.pic{
    width: 100%; 
    height: auto;
    /* background-color: rgb(49, 163, 15);  */
    list-style: none;
    display: flex; /*让子元素水平排列*/
    flex-wrap: wrap;/*这行排完就换行*/
}

.container>.pic_txt>.pic>li>a img {

    width: 300px; 
    height:  180px; 
}


.container>.pic_txt>.pic>li>h4{
    color:rgb(14, 13, 13);
    font-size: 15px;
    font-weight: 400; 
    text-align:center;
	line-height:60px; }










/*底部*/


.footer{
    width: 100%;
    height: 280px;
    background-color: #eb6112;
    color: white;
    padding: 30px 90px;
    box-sizing: border-box;
    justify-content:space-between; 
    position:absoluted;
bottom:0;
}

.footer>.footer_top{
    width: 100%;
    height: 200px;
    background-color: #f19a67;
    color: white;
    padding: 30px 90px;
    box-sizing: border-box;
    display: flex;
}


.footer_top>.left{
    height: 100%;;
    width: 70%;   /* 左右的占比*/
    /* background-color: #307885; */
   
}

.footer_top>.right{
    height: 100%;;
    width: 30% ;  /* 左右的占比*/
    /* background-color: #e916e9; */
}

.footer_top>.left>.left_word{
width:50%;
height: 100%;
float:left;
}


.footer_top>.left>.left_word{
    width:50%;
    height: 100%;
    float:left;
    }


    /* p的字体要专门写一个来设置 img同理*/
    .footer_top>.left>.left_word p{
        font-size: 18px;
        line-height: 25px;
        }
    

    .footer_top>.rightPic{
        width:50%;
        height: 100%;
        float:right;
        /* background-color: #cf060a; */
        }

        .footer_top>.rightPic img{
           margin-top: 15px;
           margin-left: 145px;
        /* 为什么margin-right不生效呢*/    
            }
