538 lines
12 KiB
SCSS
538 lines
12 KiB
SCSS
.project {
|
|
margin-top: -50px;
|
|
|
|
&-top {
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
&-item {
|
|
width: 516px;
|
|
height: 230px;
|
|
display: flex;
|
|
padding: 50px 38px 38px 38px;
|
|
color: #ffffff;
|
|
margin-right: 26px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 1;
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
content: "精选";
|
|
top: 0;
|
|
right: 0;
|
|
width: 61px;
|
|
height: 31px;
|
|
background: linear-gradient(95.44deg, #ff7842 -3.46%, #ff431b 98.61%);
|
|
border-radius: 0px 16px 0px 16px;
|
|
text-align: center;
|
|
line-height: 31px;
|
|
font-family: alibaba;
|
|
font-weight: 500;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.item-bg {
|
|
width: 516px;
|
|
height: 230px;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: -1;
|
|
transition: transform 0.3s ease-in-out;
|
|
}
|
|
|
|
&:hover {
|
|
.item-bg {
|
|
transform: scale(1.1);
|
|
}
|
|
}
|
|
|
|
.item-img {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
margin-right: 16px;
|
|
border: 2px solid #ffffff52;
|
|
}
|
|
|
|
.item-info {
|
|
font-size: 15px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
|
|
h5 {
|
|
line-height: 30px;
|
|
font-family: alibabareg;
|
|
font-size: 22px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
color: #ffffff;
|
|
}
|
|
|
|
p {
|
|
line-height: 24px;
|
|
font-family: alibabareg;
|
|
margin-top: 13px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.item-bottom {
|
|
margin-top: auto;
|
|
display: flex;
|
|
|
|
.item-bottom-tags {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
|
|
height: 32px;
|
|
background: rgba(255, 255, 255, 0.171);
|
|
border-radius: 4px;
|
|
padding: 5px 9px;
|
|
line-height: 22px;
|
|
font-family: alibabareg;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
|
|
img {
|
|
width: 15px;
|
|
margin-right: 5px;
|
|
height: 15px;
|
|
}
|
|
|
|
div {
|
|
opacity: 0.5;
|
|
width: 6px;
|
|
height: 6px;
|
|
background: #ffffff;
|
|
border-radius: 50%;
|
|
margin: 0 6px;
|
|
}
|
|
|
|
.item-tag {
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
padding: 0 8px;
|
|
height: 32px;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
.item-bottom-data {
|
|
opacity: 0.85;
|
|
margin-left: auto;
|
|
|
|
span {
|
|
line-height: 18px;
|
|
font-family: alibabareg;
|
|
color: #ffffff;
|
|
font-size: 13px;
|
|
position: relative;
|
|
}
|
|
|
|
span:not(:last-child) {
|
|
margin-right: 15px;
|
|
padding-right: 15px;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translate(0, -50%);
|
|
content: "";
|
|
width: 1px;
|
|
height: 9px;
|
|
background: rgba(255, 255, 255, 0.22);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
background: linear-gradient(180deg, #f4f8fd6c 0%, #f4f8fd6c 80.62%, #f4f8fd 100%), #ffffff;
|
|
border-radius: 80px 80px 0px 0px;
|
|
padding-top: 28px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
position: relative;
|
|
z-index: 20;
|
|
border-top: 2px solid #ffffff;
|
|
|
|
h2 {
|
|
line-height: 55px;
|
|
font-family: alibabaBold;
|
|
font-weight: 700;
|
|
color: #091221;
|
|
font-size: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.item-top {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
img {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
margin-right: 14px;
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
.item-title {
|
|
line-height: 30px;
|
|
font-family: alibaba;
|
|
font-weight: 500;
|
|
color: #091221;
|
|
font-size: 22px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.item-desc {
|
|
margin-top: 18px;
|
|
line-height: 21px;
|
|
font-family: alibabareg;
|
|
color: #091221;
|
|
font-size: 15px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
|
|
.item-data {
|
|
margin-top: auto;
|
|
|
|
span {
|
|
line-height: 18px;
|
|
font-family: alibabareg;
|
|
color: #5d6a80;
|
|
font-size: 13px;
|
|
position: relative;
|
|
}
|
|
|
|
span:not(:last-child) {
|
|
margin-right: 15px;
|
|
padding-right: 15px;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translate(0, -50%);
|
|
content: "";
|
|
width: 1px;
|
|
height: 9px;
|
|
background: rgba(9, 18, 33, 0.22);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-top {
|
|
width: 1600px;
|
|
background: linear-gradient(110.74deg, #f5f5fd 2.03%, #ddf0ff 98.5%);
|
|
border-radius: 16px;
|
|
display: flex;
|
|
padding: 58px 0 32px 0;
|
|
margin-top: 25px;
|
|
|
|
&-left {
|
|
padding: 0 0 0 53px;
|
|
|
|
p {
|
|
position: relative;
|
|
padding-left: 33px;
|
|
font-size: 18px;
|
|
font-family: alibaba;
|
|
|
|
&::before {
|
|
position: absolute;
|
|
content: "";
|
|
width: 16.48px;
|
|
height: 16.48px;
|
|
background-image: url("../../../images/factory/resource/star.png");
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translate(0, -50%);
|
|
}
|
|
}
|
|
|
|
.content-top-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-top: 38px;
|
|
|
|
.content-top-item {
|
|
width: 420px;
|
|
height: 219px;
|
|
border-radius: 16px;
|
|
background: #ffffff;
|
|
margin-bottom: 28px;
|
|
position: relative;
|
|
z-index: 1;
|
|
padding: 23px 29px 29px 29px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
cursor: pointer;
|
|
|
|
div:nth-child(1) {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.item-bg {
|
|
position: absolute;
|
|
width: 416px;
|
|
height: 215px;
|
|
left: 2px;
|
|
top: 2px;
|
|
z-index: -1;
|
|
}
|
|
|
|
.item-tags {
|
|
// position: absolute;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-top: 20px;
|
|
width: fit-content;
|
|
background: rgba(179, 190, 252, 0.18);
|
|
border: 1px solid;
|
|
border-color: #ffffff;
|
|
border-radius: 4px;
|
|
height: 32px;
|
|
padding: 5px 9px;
|
|
line-height: 22px;
|
|
font-family: alibabareg;
|
|
color: #091221;
|
|
font-size: 13px;
|
|
|
|
span {
|
|
max-width: 200px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
img {
|
|
width: 15px;
|
|
margin-right: 5px;
|
|
height: 15px;
|
|
}
|
|
|
|
div {
|
|
width: 6px;
|
|
height: 6px;
|
|
background: #ffffff;
|
|
border-radius: 50%;
|
|
margin: 0 6px;
|
|
}
|
|
}
|
|
|
|
&:nth-child(2n+1) {
|
|
margin-right: 32px;
|
|
}
|
|
|
|
&:nth-child(1),
|
|
&:nth-child(4) {
|
|
color: #ffffff;
|
|
|
|
h5,
|
|
div {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.item-data {
|
|
span {
|
|
color: #ffffff;
|
|
|
|
&:after {
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.item-tags {
|
|
height: 32px;
|
|
background: rgba(179, 190, 252, 0.18);
|
|
border: 1px solid;
|
|
border-color: rgba(255, 255, 255, 0.22);
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
// 最后两个元素添加margin-bottom: 28px;
|
|
&:nth-last-child(-n+2) {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&:hover {
|
|
box-shadow: 0px 0px 12px rgba(22, 76, 228, 0.06);
|
|
|
|
.item-title {
|
|
color: #164ce4;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-right {
|
|
width: 672px;
|
|
height: 516px;
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
&-bottom {
|
|
margin-top: 40px;
|
|
margin-bottom: 80px;
|
|
width: 1600px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
.content-bottom-wrapper {
|
|
margin-bottom: 26px;
|
|
|
|
&:not(:nth-child(4n)) {
|
|
margin-right: 22px;
|
|
}
|
|
}
|
|
|
|
.content-bottom-item {
|
|
width: 381.25px;
|
|
height: 256px;
|
|
background: linear-gradient(rgba(241, 247, 255, 0.48), rgba(241, 247, 255, 0.48)), #ffffff;
|
|
border: 1px solid;
|
|
border-color: rgba(19, 53, 91, 0.11);
|
|
border-radius: 16px;
|
|
z-index: 1;
|
|
position: relative;
|
|
padding: 35px 30px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.item-bg {
|
|
position: absolute;
|
|
width: 381.25px;
|
|
height: 256px;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: -1;
|
|
}
|
|
|
|
.item-desc {
|
|
-webkit-line-clamp: 2;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.item-bottom-tags {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-top: 20px;
|
|
width: fit-content;
|
|
background: rgba(179, 190, 252, 0.18);
|
|
border: 1px solid;
|
|
border-color: #ffffff;
|
|
border-radius: 4px;
|
|
height: 32px;
|
|
padding: 5px 9px;
|
|
line-height: 22px;
|
|
font-family: alibabareg;
|
|
color: #091221;
|
|
font-size: 13px;
|
|
|
|
span {
|
|
max-width: 200px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
img {
|
|
width: 15px;
|
|
margin-right: 5px;
|
|
height: 15px;
|
|
}
|
|
|
|
div {
|
|
width: 6px;
|
|
height: 6px;
|
|
background: #ffffff;
|
|
border-radius: 50%;
|
|
margin: 0 6px;
|
|
}
|
|
}
|
|
|
|
// .item-tags {
|
|
// margin-top: auto;
|
|
// display: flex;
|
|
// justify-content: flex-start;
|
|
|
|
// .item-tag {
|
|
// display: inline-block;
|
|
// padding: 0 8px;
|
|
// margin-right: 8px;
|
|
// height: 32px;
|
|
// background: rgba(22, 76, 228, 0.05);
|
|
// border-radius: 4px;
|
|
// line-height: 32px;
|
|
// font-family: alibabareg;
|
|
// color: #091221;
|
|
// font-size: 14px;
|
|
// }
|
|
// }
|
|
}
|
|
|
|
.content-bottom-btn {
|
|
width: 378px;
|
|
height: 94px;
|
|
background: linear-gradient(180deg, rgba(248, 251, 255, 0) 0%, #f3f6ff 23.71%, #f8fbff 100%);
|
|
border-radius: 0px 0px 16px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
button {
|
|
cursor: pointer;
|
|
width: 320px;
|
|
height: 36px;
|
|
background-color: #091221;
|
|
border-radius: 9px;
|
|
line-height: 20px;
|
|
font-family: alibaba;
|
|
font-weight: 500;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |