/* 首页页面 */ @media (min-width: 768px) { .work-row { height: 800px; box-sizing: border-box; } } @media (min-width: 768px) { .row-two-col { height: 50%; overflow: hidden; } } @media (min-width: 768px) { .work-row-col { height: 100%; overflow: hidden; } } @media (min-width: 768px) { .col-two-row { height: 100%; } } .col-one-img { overflow: hidden; height: 100%; position: relative; } .col-one-img img { height: 100%; width: 100%; object-fit: cover; } @media (max-width: 767px) { .row-two-col { height: 300px; overflow: hidden; position: relative; } } .col-title { transition: all ease 1s; position: absolute; top: 0; left: 0; z-index: 999; opacity: 0; display: inline-block; width: 100%; height: 100%; background-color: rgba(4, 4, 4, 0); } .col-title a { transition: all ease 1s; position: absolute; top: 60%; display: inline-block; text-align: center; width: 100%; transform: translateY(-50%); color: var(--bs-body-bg); text-decoration: none; font-weight: bold; } .col-one-img img { transform: scale(1); transition: all ease 0.5s; } .col-img { height: 100%; } .col-one-img:hover .col-img img { transform: scale(1.1); transition: all ease 0.5s; } .col-one-img:hover .col-title { opacity: 100; transition: all ease 1s; background-color: rgba(4, 4, 4, 0.5); } .col-one-img:hover .col-title a { top: 50%; transition: all ease 1s; } /* 案例页面 */ .work-img-box { overflow: hidden; } .work-col-box { height: 300px; overflow: hidden; } .work-img-box img { object-fit: cover; left: 50%; transform: translateX(-50%) scale(1); transition: all ease 0.5s; } .work-col-title { top: 55%; transform: translateY(-50%); transition: all ease 1s; } .work-col-title-box { background-color: rgba(4, 4, 4, 0.5); z-index: 9999; transition: all ease 1s; opacity: 0; } .work-col-box:hover .work-img-box img { left: 50%; transform: translateX(-50%) scale(1.1); transition: all ease .5s; } .work-col-box:hover .work-col-title { top: 50%; transition: all ease 1s; } .work-col-box:hover .work-col-title-box { opacity: 1; transition: all ease 1s; } @media (max-width: 767px) { .work-img { width: 100%; height: 100%; object-fit: cover; } } @media (min-width: 768px) { .work-img { height: 100%; width: auto; object-fit: cover; } } @media (min-width: 768px) { .work-row { height: 800px; box-sizing: border-box; } .work-one-col { height: 100%; width: 50%; } .work-two-col { height: 50%; width: 50%; } } .col-one-img { overflow: hidden; height: 100%; position: relative; }