/* 首页样式 */

/* 版心居中 */
.wrapper {
    margin: 0 auto;
    width: 1200px;
}

body {
    background-color: #f3f5f7;
}

/* 头部区域 */
.header {
    height: 100px;
    background-color: #fff;
}

.header .wrapper {
    padding-top: 29px; /* 顶收 */
    display: flex;
}

/* logo */
.logo {
    display: block; /* 转换为块 */
    width: 195px;
    height: 41px;
    background-image: url(../images/logo.png);
    /* 隐藏文字 */
    font-size: 0;
}

/* 导航 */
.nav {
    margin-left: 102px; /* 左阔 */
}

.nav ul {
    display: flex;
}

.nav li {
    margin-right: 24px;
}

.nav li a {
    display: block;
    padding: 6px 8px; /* 上下 左右 收 */
    line-height: 27px; /* 行高 */
    font-size: 19px; /* 字体大小 */
}

/* 字体下划线：首页，以及课程、职业规划鼠标停留时 (两种情况逗号分隔) */
.nav li .active,
.nav li a:hover { /* hover鼠标悬停 */
    border-bottom: 2px solid #00a4ff; /* 下边框线，solid实线 */
}

/* 搜索 */
.search {
    display: flex;
    margin-left: 64px;
    padding-left: 19px;
    padding-right: 12px;
    width: 412px;
    height: 40px;
    background-color: #f3f5f7;
    border-radius: 20px; /* 倒角 */
}

.search input {
    flex: 1; /* 盒子中弹性伸缩比 */
    border: 0; /* 去除边框 */
    background-color: transparent; /* 透明 */
    outline: none; /* 去掉表单控件的焦点框，点中时也不显示边框 */
}

.search input::placeholder {    /* ::placeholder 选择器用于选取带有占位符文本的表单元素，并让您设置占位符文本的样式。 */
    font-size: 14px;
    color: #999;
}

/* 父级search是flex布局，子级变成弹性盒子，加宽高属性生效，否则需要先display: block;转换为块 */
.search a {
    align-self: center; /* 纵向居中 */
    width: 16px;
    height: 16px;
    background-image: url(../images/search.png);
}

.user {
    margin-left: 32px;
    margin-top: 4px;
}

.user img {
    margin-right: 7px;
    vertical-align: middle; /* 行内块和行内垂直方向对齐方式 */
}

.user span {
    font-size: 16px;
    color: #666;
}


/* banner 区域 */
.banner {
    height: 420px;
    background-color: #0092cb;
}

.banner .wrapper {
    display: flex;  /* div转换为弹性盒子 */
    height: 420px;
    justify-content: space-between;    /* 弹性盒子内布局方式：主轴对齐-两端对齐 */
    background-image: url(../uploads/banner.png);
}

/* 侧导航 */
.banner .left {
    padding: 3px 20px;
    height: 420px;
    width: 191px;
    background-color: rgb(0, 0, 0, 0.42);
}

.banner .left a {
    display: block;
    height: 46px;
    background: url(../images/right.png) no-repeat right center;
    line-height: 46px;  /* 行高同盒子块高 */
    font-size: 16px;
    color: #fff;
}

.banner .left a:hover { /* :hover 鼠标移动到的位置 */
    background: url(../images/right-hover.png) no-repeat right center;
    color: #00a4ff;
}

.banner .right {
    margin-top: 60px;
    width: 218px;
    height: 305px;
    background-color: #209dd5;
    border-radius: 10px;
}

.banner .right h3 {
    margin-left: 14px;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    color: #fff;
    font-weight: 400; /* 400为不加粗 */
}

.banner .right .content {
    padding: 14px;
    height: 257px;
    background-color: #fff;
    border-radius: 10px;
}

.banner .right .content dl {
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.banner .right .content dt {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.banner .right .content dd {
    margin-bottom: 8px;
    font-size: 12px;    
    line-height: 16px;
}

.banner .right .content span {
    color: #00a4ff;
}

.banner .right .content strong {
    color: #7d7d7d;
    font-weight: 400;
}

.banner .right .content a {
    display: block;
    height: 32px;   
    background-color: #00a4ff;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    color: #fff;
    border-radius: 15px;
}

/* 精品推荐 */
.recomment {
    margin-top: 11px;
    padding: 0 20px;
    height: 60px;
    background-color: #fff;
    box-shadow: 0px 1px 2px 0px rgb(211,211,211,0.5); /* 盒子阴影 */
    display: flex;

}

.recomment h3 {
    line-height: 60px;
    font-size: 18px;
    color: #00a4ff;
    font-weight: 400;
}

.recomment ul {
    /* 除去h3标题+修改兴趣的尺寸，父级剩余尺寸都给ul，实现把修改兴趣挤到最右侧 */
    flex: 1;
    display: flex;
}

.recomment ul li a {
    padding: 0 24px;
    border-right: 1px solid #e0e0e0;
    font-size: 18px;
    line-height: 60px;

}

.recomment ul li a:hover {
    color: #00a4ff;
}

/* 过滤器 最后一个a标签右边框没有实线 */
.recomment ul li:last-child a {
    border-right: 0;
}

.recomment .modify {
    display: block;
    line-height: 60px;
    color: #00a4ff;
    font-size: 16px;
}

/* 推荐课程 */
.course {
    margin-top: 15px;
}

/* 标题 公共类 */
.hd {
    display: flex;
    justify-content: space-between;
    height: 60px;
    line-height: 60px;
}

.wrapper .hd h3 {
    font-size: 21px;
    font-weight: 400;
}

.more {
    padding-right: 20px;
    font-size: 14px;
    color: #999;
    background: url(../images/more.png) no-repeat right center;
}

/* 课程内容 公共类 start */
.bd ul {
    display: flex;
    flex-wrap: wrap;    /* 弹性盒子换行 */
    justify-content: space-between;
}

/* 课程内容 公共类 end */
.bd li {
    margin-bottom: 15px;
    width: 228px;
    height: 271px;
    background-color: pink;
}

.bd li .pic {
    height: 156px;
}

.bd li .text {
    padding: 20px;
    height: 115px;
    background-color: #fff;
}

.bd li .text h4 {
    margin-bottom: 13px;
    height: 40px;
    line-height: 20px;  /* 两行 */
    font-size: 14px;
    font-weight: 400;
    overflow: hidden;   /* 溢出隐藏 */
}

.bd li .text p {
    font-size: 14px;
    line-height: 20px;
    color: #999;
}

.bd li .text p span {
    color: #fa6400;
}

.bd li .text p i {
    font-style:normal;
}

.wrapper .hd ul {
    display: flex;
}

.wrapper .hd li {
    margin-right: 60px;
    font-size: 16px;
}

.wrapper .hd li .active,
.wrapper .hd li a:hover {
    color: #00a4ff;
}

.wrapper .bd {
    display: flex;
    justify-content: space-between;
}

.bd .left {
    width: 228px;
    /* background-color: pink; */
}

.bd .right {
    width: 957px;
    /* background-color: pink; */
}

.bd .right .top {
    margin-bottom: 15px;
    height: 100px;
}

/* 版权 */
.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 60px;
    height: 273px;background-color: #fff;
}

.footer .left {
    width: 440px;
    /* background-color: pink; */
}

.footer .left p {
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 17px;
    color: #666;
}

.footer .left .download {
    display: block;
    width: 120px;
    height: 36px;
    border: 1px solid #00a4ff;
    color: #00a4ff;
    line-height: 34px;
    text-align: center;
}

.footer .right {
    display: flex;
    /* justify-content: space-between; */
}

.footer .right dl {
    margin-left: 130px;
}

.footer .right dt {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 23px;
}

.footer .right dd a {
    font-size: 14px;
    line-height: 24px;
    color: #666;
}