/* nav导航栏 */

.nav {
    width: 1200px;
    height: 520px;
    overflow: hidden;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 30px 50px;
    /* 撑开页面 */
    /* margin-bottom: 500px; */
}

.nav-left {
    float: left;
    width: 195px;
    height: 460px;
    background-color: lightblue;
}

.nav-middle {
    float: left;
    width: 690px;
    height: 460px;
    margin: 0 10px;
    background-color: pink;
}

.nav-right {
    float: left;
    width: 195px;
    height: 460px;
    margin-right: -50px;
    background-color: lightgreen;
}


/* 轮播图区域制作 */

.lunbo {
    overflow: hidden;
    position: relative;
    width: 690px;
    height: 460px;
}


/* 主要图片的样式 */

.lunbo .picture {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    /* width: 400%;宽度由js动态确定 */
    height: 460px;
    background-color: pink;
}

.lunbo .picture li {
    float: left;
}

.lunbo .picture img {
    width: 690px;
    height: 460px;
}


/* 底部小点的样式 */

.lunbo .dian {
    position: absolute;
    bottom: 12px;
    left: 50%;
    /* 由js控制宽度和负边距
    margin-left: -32px;
    width: 64px; */
    height: 10px;
}

.lunbo .dian li {
    width: 12px;
    height: 12px;
    margin: 2px;
    opacity: 0.5;
    background-color: #272636;
    border-radius: 50%;
    float: left;
}


/* 箭头的样式 */

.lunbo .left,
.lunbo .right {
    display: none;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    width: 40px;
    background-color: rgb(255, 255, 255, 0.2);
    opacity: 0.8;
}

.lunbo .left {
    left: 0px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.lunbo .right {
    right: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.lunbo .right:hover,
.left:hover {
    opacity: 0.7;
    background-color: rgb(255, 255, 255, 0.7);
}


/* nav 导航栏 左右区域显示 */

.nav-left,
.nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-left {
    background: linear-gradient(rgb(255, 232, 236), rgb(255, 157, 190));
}

.nav-right {
    background: linear-gradient(rgb(226, 240, 245), rgb(97, 213, 252));
}

.nav-left h1,
.nav-right h1 {
    position: relative;
    color: #333;
    text-transform: uppercase;
    font-size: 40px;
}

.nav-left h1::after,
.nav-right h1::after {
    color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #ffff21, #ffba3a, #ffff3f);
    background-clip: text;
    -webkit-background-clip: text;
    clip-path: circle(25px at 0% 50%);
}

.nav-left h1::after {
    content: '前端';
    animation: light 6s infinite;
}

.nav-right h1::after {
    content: '摄影';
    animation: light 6s infinite;
}

@keyframes light {
    0% {
        clip-path: circle(25px at 0% 50%);
    }
    50% {
        clip-path: circle(25px at 100% 50%);
    }
    100% {
        clip-path: circle(25px at 0% 50%);
    }
}


/* section主要内容分区 */

.section {
    margin-bottom: 10px;
}

.section .content {
    width: 1200px;
    margin: 0 auto;
    box-shadow: 7px 2px 5px #ccc;
}

.tab ul {
    width: 1300px;
}

.tab {
    overflow: hidden;
    height: 60px;
    margin: 14px auto;
    box-shadow: 7px 2px 5px #ccc;
}

.tab li:nth-child(odd) {
    float: left;
    height: 60px;
    width: 400px;
    line-height: 60px;
    text-align: center;
    font-size: 20px;
}

.tab li:nth-child(even) {
    float: left;
    height: 40px;
    margin: 10px 0;
    width: 2px;
    background-color: rgb(26, 79, 177);
}

.tab li a {
    display: block;
    height: 100%;
    width: 100%;
    color: rgb(35, 178, 226);
    transition: all 1s;
}

.tab li a:hover {
    background-color: rgb(35, 178, 226);
    color: #fff;
}


/* box是不包括tab的section一样大的盒子 */

.box {
    overflow: hidden;
    padding: 30px 80px;
}


/* 事件锦集模块 */

.box .hd {
    height: 45px;
}

.box .hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}

.box .hd a {
    float: right;
    margin-top: 10px;
    margin-right: 30px;
    font-size: 12px;
    color: #a5a5a5;
}


/* 浮动模块 */

.box .bd {
    padding: 0;
}

.box .bd ul {
    width: 1235px;
}

.box .bd ul li {
    float: left;
    position: relative;
    width: 240px;
    height: 310px;
    background-color: #fafafa;
    margin-right: 20px;
    margin-bottom: 25px;
    padding-top: 0;
    border-bottom: 1px solid #a5a5a5;
    box-shadow: 0px 3px 6px 2px #e4e4e4;
    /* 动画 */
    transition: all 0.2s;
}

.box .bd ul li:hover {
    box-shadow: 1px 4px 8px 2px #ccc;
}

.box .bd ul>li>a {
    display: block;
    width: 240px;
    height: 310px;
}

.box .bd ul li a h4:hover {
    text-decoration: underline;
}

.box .bd ul li em {
    position: absolute;
    top: 5px;
    right: 0;
    color: red;
    background-color: yellow;
    padding: 0 10px;
    font-weight: 800;
    font-size: large;
    text-decoration: none;
}

.box .bd ul li img {
    width: 240px;
    height: 160px;
}

.box .bd ul li h4 {
    height: 50px;
    width: 200px;
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    line-height: 25px;
    font-weight: 400;
    color: #050505;
    /* 多行文本溢出省略号显示 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.box .bd .info {
    height: 25px;
    width: 200px;
    margin: 0 20px 20px 25px;
    font-size: 12px;
    color: #999;
    /* 溢出省略号显示 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.box .bd .info span {
    color: #ff7c2d;
}