.video-list { max-width: 1320px; margin: 0 -10px; } .video-list .item { width: 25%; padding: 7px 10px 50px; } .video-list .item:nth-child(4n+1) { clear: left; } .video-list .box { max-width: 315px; margin: 0 auto; text-align: center; } .video-list .pic { position: relative; overflow: hidden; max-width: 315px; margin: 0 auto 10px; } .video-list .box:hover .pic { border-color: #A7B450; } .video-list .pic:before { content: ""; background: rgba(0,0,0,0.7); display: block; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; right: 0; opacity: 0; transition: all 0.3s; } .video-list .box:hover .pic:before { background-position: 50% 50%; opacity: 1; } .video-list .name { color: #3c3c3c; font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; height: 25px; } .video-list a:hover .name { color: #da0000; } .video-list .date, .video-header .date { display: block; border: 1px solid #ddd; border-width: 1px 0; width: 104px; margin: 5px auto 15px; color: #eee; font-size: 14px; font-weight: bold; line-height: 26px; } .video-header { text-align: center; border-bottom: 1px solid #d8d8d8; padding-bottom: 5px; } .video-header .title { max-width: 1300px; margin: 10px auto 10px; color: #4a4a4a; font-size: 23px; line-height: 1.5; display: inline-block; font-weight: bold; } .video-detail { border-bottom: 1px solid #d8d8d8; padding: 25px 0; margin-bottom: 50px; } .video-detail .editor { max-width: 1300px; margin: 0 auto; } .video-detail .pic iframe{ width: 100%; height: 480px; max-width: 840px; } .video-detail .pic{ text-align: center; background: #141831; padding: 30px 20px; } @media screen and (max-width: 1025px) { .video-list .item{ width: 33.33%; } .video-list .item:nth-child(4n+1) { clear: none; } .video-list .item:nth-child(3n+1) { clear: left; } } @media screen and (max-width: 760px) { .video-detail .pic iframe{ height: 420px; } } @media screen and (max-width: 680px) { .video-list .item{ width: 50%; padding: 7px 10px 30px; } .video-list .item:nth-child(3n+1) { clear: none; } .video-list .item:nth-child(2n+1) { clear: left; } } @media screen and (max-width: 640px) { .video-detail .pic iframe{ height: 360px; } } @media screen and (max-width: 767px) { .video-detail { padding: 25px 0; } } @media screen and (max-width: 450px) { .video-detail .pic iframe{ height: 220px; } } @media screen and (max-width: 440px) { .video-list .item{ width: 100%; } .video-list .item:nth-child(n) { clear: none; } }