.home-layout { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 30px; padding-right: 30px; } .ov { overflow: hidden; } .home_1 { position: relative; } .home_1 > div { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); color: transparent; z-index: 100; } .home_1 > div > div{ position: absolute; top: 50%; transform: translateY(-50%); text-align: center; width: 100%; color: #fff; left: 0; box-sizing: border-box; padding: 0 30px; } .home_1 img { width: 100%; } .home_1 > div > div h1 { font-size: 40px; font-weight: 500; } .home_1 > div > div p { padding-top: 24px; font-size: 20px; font-weight: 300; } .home_1 video { top: 0; width: 100%; left: 0; z-index: 99; transition: all 1s ease-in; -o-object-fit: cover; object-fit: cover; -o-object-position: center center; object-position: center center; } .home_2 { margin: 30px auto 30px; } .home_2 h2 { margin-bottom: 35px; text-align: center; } .h_2_layout > a { position: relative; overflow: hidden; } .h_2_layout > a:hover .img { transform: scale(1.1) } .h-m-1 > .img, .h-m-2 > .img, .h-m-3 > .img { height: 320px; display: block; width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; transition: all .3s linear; } .h-m-1 > .img::after, .h-m-2 > .img::after, .h-m-3 > .img::after { position: absolute; content: ''; left: 0; right: 0; top: 0; bottom: 0; background: no-repeat center center; background-size: cover; transition: transform .3s ease-out; } .h-m-1 > .img::after { background-image: url('http://video.cgaii.com/new4dage/images/images/home_2_a.jpg') } .h-m-2 > .img::after { background-image: url('http://video.cgaii.com/new4dage/images/images/home_2_b.jpg') } .h-m-3 > .img::after { background-image: url('http://video.cgaii.com/new4dage/images/images/home_2_c.jpg') } .h_2_layout > a::after { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(0,0,0,0.2); z-index: 0; transition: all .3s linear; } .h_2_layout > a:hover::after { background-color: rgba(0,0,0,0.4); } .h_2_layout .info { position: absolute; left: 0; right: 0; bottom: 0; margin: 20px; z-index: 2; height: 70px; overflow: hidden; transition: all .3s linear; } .h_2_layout > a:hover .info { height: 120px; } .h_2_layout h3 { font-size: 18px; color: #fff; margin: 15px 0 10px; } .h_2_layout p { font-size: 14px; color: #fff; line-height: 25px; } .h_2_layout img { width: 100%; } .home_3 { position: relative; } .home_3 > .bg { background-color: #000000; width: 100vw; left: 50%; position: absolute; margin-left: -50vw; top: 0; height: 100%; z-index: -1; } .home_3 { color: #fff; padding-top: 30px; } .home_3 h2 { color: inherit; margin-bottom: 60px; text-align: center; } .home_3 h3 { color: inherit; font-size: 24px; margin: 35px 0 24px; color: #fff; transition: color .3s ease-out } .home_3 p { color: #626262; font-size: 14px; line-height: 24px; } .catg > a { display: block; text-decoration: none; padding-bottom: 40px; } .catg > a:hover h3 { color: #00b4ed } .catg > a > div { height: 210px; background: no-repeat center center; background-size: auto 100%; } .catg > a:nth-child(1) > div { background-image: url('http://video.cgaii.com/new4dage/images/images/home_3_b.jpg') } .catg > a:nth-child(2) > div { background-image: url('http://video.cgaii.com/new4dage/images/images/home_3_c.jpg') } .catg > a:nth-child(3) > div { background-image: url('http://video.cgaii.com/new4dage/images/images/home_3_a.jpg') } .home_4 { padding-top: 40px; margin-bottom: 20px; } .home_4 h2 { text-align: center; margin-bottom: 20px; } .home_4 h3 { font-size: 18px; color: #000; margin: 10px 0 10px; } .home_4 p { font-size: 14px; color: #666666; line-height: 24px; } .home_4 > div > a { width: 100%; float: left; margin-bottom: 30px; text-align: center; } .h_5_2 { overflow: hidden; } .home_5 { padding-bottom: 60px; } .home_5 > h2 { margin-bottom: 65px; text-align: center; } .h_5_2 > a, .h_5_2 > div { width: calc(50% - 2px); } .h_5_2 > a:nth-child(1), .h_5_2 > div:nth-child(1) { float: left; } .h_5_2 > a:nth-child(2), .h_5_2 > div:nth-child(2) { float: right; } .categ_h_5 > a, .categ_h_5 > div { width: 100%; } .h_5_article { position: relative; margin-bottom: 4px; display: block; text-decoration: none; overflow: hidden; } .h_5_article img { width: 100%; display: block; transition: transform .3s ease-out } .h_5_article div { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0); transition: background-color .3s ease-out } .h_5_article p { color: #fefefe; font-size: 14px; left: 12px; bottom: 12px; right: 12px; position: absolute; transition: transform .3s ease-out } .h_5_article:hover img { transform: scale(1.1) } .h_5_article:hover div { background-color: rgba(0,0,0,0.4) } .h_5_article:hover p { transform: translateY(-20px) } .home_6 { padding-bottom: 40px; } .home_6 h2 { text-align: center; margin-bottom: 40px; } .h_6_slide_item { display: block; text-decoration: none; } .item-content > div { height: 140px; overflow: hidden; color: #666666; margin-bottom: 20px; font-size: 14px; line-height: 20px; } .item-content > a { font-size: 14px; color: #00b4ed; display: inline-block; margin-top: 15px; } .h_6_slide_item p{ font-size: 14px; color: #010101; } .item-img { float: left; } .item-img > div { position: relative; } .item-img img { display: block; width: 100%; margin-bottom: 20px; } .item-content { margin-top: 20px; float: right; } .item-content h3{ color: #000000; font-size: 18px; margin-bottom: 40px; } .h_6_slide_foot { position: absolute; width: 100%; left: 0; bottom: 20px; text-align: center; } .h_6_slide_foot span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff; margin-left: 10px; cursor: pointer; } .h_6_slide_foot span.active { background-color: #fff; } .home_7 { padding-bottom: 100px; } .home_7 h2 { text-align: center; } .home_7 img { width: 100%; margin-top: 34px; } .home_7 .phone-cls { overflow: hidden; } .home_7 .phone-cls img { width: 50%; margin-top: 5px; /* float: left */ } .home_8 { padding-top: 42px; position: relative; padding-bottom: 30px; } .home_8 > .bg { position: absolute; left: 50%; top: 0; width: 100vw; margin-left: -50vw; background: url('http://video.cgaii.com/new4dage/images/images/team.jpg') no-repeat center center; background-size: cover; height: 100%; z-index: -1; } .home_8 > .bg::after { content: ''; display: block; left: 0; top: 0; width: 100%; height: 100%; position: absolute; background-color: rgba(0,0,0,0.7); } .home_8 > h2 { color: #fff; text-align: center; } .home_8 > p { font-size: 14px; text-align: center; color: #fff; margin-top: 25px; } .h_8_catg { margin-top: 85px; } .corse-item-slide { text-align: center; } .course-item { width: 100%; float: left; } .time-zhou { overflow: hidden; margin-top: 20px; } .time-zhou span { font-size: 16px; color: #fff; width: 20%; float: left; text-align: center; line-height: 40px; } .time-zhou span.active { font-weight: bold; font-size: 30px; line-height: 30px; } @media screen and (max-width: 425px) { .time-zhou span.active { font-size: 20px; line-height: 36px; } } .h_8_catg h3 { font-size: 30px; margin-bottom: 25px; color: #fff; } .h_8_catg h3 span { font-size: 18px; display: block; margin-top: 10px; } .h_8_catg p { font-size: 14px; line-height: 20px; color: #fff; text-align: left !important; margin-top: 10px; } .h_8_catg p::before { content: '●'; margin-right: 10px; } .h_2_layout > a { display: block; margin-bottom: 15px; } .h_2_layout > a > div:hover::after { transform: scale(1.1) } .home_5 > h2 { margin-bottom: 30px; } .h_8_catg { margin-top: 25px; } @media screen and (min-width: 700px) { .catg > a { float: left; width: 30%; padding-bottom: 120px } .catg > a:nth-child(2) { margin-left: 5%; margin-right: 5%; } .catg > a > div { height: 226px; background-size: 100% auto; } .h-m-1 { width: 49%; float: left; } .home_1>div>div h1 { font-size: 50px; } .home_1>div>div p { font-size: 20px; } .h_2_layout .h-m-2 { float: right; width: 49%; margin-bottom: 2%; } .h-m-3 { float: right; width: 49%; } .h-m-2>.img, .h-m-3>.img, .h-m-1>.img { width: 100%; /* position: static; */ left: inherit; right: inherit; margin: 0; height: 270px; overflow: hidden; } .h-m-1>.img { height: 562px; } } @media screen and (min-width: 1040px) { .item-content > a { display: inline; } .home_8 { padding-top: 72px; padding-bottom: 60px; } .h_8_catg { margin-top: 85px; } .h_2_layout > a { margin-bottom: 0; } .home_4 > div > a { width: 23%; float: left; text-align: left; margin-bottom: 110px; margin-right: 2.6666% !important; } .home_4 > div > a:last-child { margin-right: 0 !important; } .categ_h_5 > a, .categ_h_5 > div { width: calc(50% - 2px); } .item-img { width: 65%; } .item-content { margin-top: 0; width: 33%; } .course-item { width: 18%; margin-right: 2.5% !important; margin-bottom: 60px; } .course-item:last-child { margin-right: 0 !important; } .home_2 { margin: 60px auto 160px; } .home_3 { padding-top: 108px; } .home_4 { padding-top: 100px; } .home_4 h2 { margin-bottom: 80px; } .home_4 h3 { margin: 20px 0 30px; } .home_5 { padding-bottom: 140px; } .home_5 > h2 { margin-bottom: 65px; } .home_6 { padding-bottom: 150px; } .home_6 h2 { margin-bottom: 80px; } .item-img img { margin-bottom: 0; } .h_6_slide_item { max-height: inherit; position: relative; } .item-content { position: absolute; top: 0; right: 0; height: 100%; box-sizing: border-box; padding-top: 80px; padding-bottom: 32px; } .item-content > h3 { position: absolute; top: 0; left: 0; width: 100%; height: 120px; overflow: hidden; } .item-content > div { height: auto; overflow: hidden; height: 100%; margin-bottom: 0; } .item-content > a { position: absolute; bottom: 0; left: 0; } .home_8 > p { font-size: 18px; font-weight: bold; } .h_5_article p { font-size: 18px; font-weight: bold; left: 20px; right: 20px; bottom: 20px; } }