xg-project-library/css/index.css
2024-12-27 14:58:23 +08:00

712 lines
15 KiB
CSS

:root {
--main-color: #3498db;
}
.header-box {
width: 100%;
height: 130px;
padding: 0 50px;
border-radius: 12px;
justify-content: space-between;
position: relative;
margin-bottom: 20px;
}
.header-box:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 12px;
background-image: linear-gradient(to right, rgba(60, 26, 94, 0.717647), rgba(53, 60, 90, 0.886275));
z-index: -1;
}
.header-box .bj {
position: absolute;
top: 0;
left: 0;
z-index: -2;
width: 100%;
height: 130px;
border-radius: 12px;
}
.header-box .search {
width: 610px;
height: 48px;
background-color: rgba(255, 255, 255, 0.4);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 183px;
padding: 0 20px;
cursor: pointer;
position: relative;
z-index: 10;
transition: all 0.1s;
}
.header-box .search.input-active {
border: 1px solid #c4c7ce;
background-color: #ffffff;
border-radius: 10px 10px 0 0;
border-bottom: none;
}
.header-box .search.input-active .input {
color: #333;
}
.header-box .search .input {
height: 48px;
line-height: 48px;
background-color: transparent;
color: #ffffff;
border: none;
outline: none;
font-size: 16px;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
padding-right: 10px;
}
.header-box .search .input::placeholder {
color: #ffffff;
}
.header-box .search .search-icon {
width: 22px;
height: 22px;
}
.header-box .search .hint-list {
position: absolute;
width: 610px;
height: 0;
max-height: 400px;
top: 46px;
left: -1px;
background-color: #ffffff;
border-radius: 0 0 10px 10px;
z-index: 10;
overflow: auto;
animation: hintShow 0.3s forwards;
border: 0px solid #c4c7ce;
border-top: none;
}
@keyframes hintShow {
0% {
height: 0;
}
100% {
border-width: 1px;
height: auto;
}
}
.header-box .search .hint-list .item {
color: #333333;
font-size: 14px;
padding: 10px 20px;
cursor: pointer;
line-height: 30px;
display: block;
}
.header-box .search .hint-list .item:not(:last-of-type) {
border-bottom: 1px #e6e4e4 dotted;
}
.header-box .btn .item {
width: 160px;
height: 40px;
background: -webkit-linear-gradient(194.03624347deg, #dbe3fd 0%, #eef7f5 100%);
background: -moz-linear-gradient(255.96375653deg, #dbe3fd 0%, #eef7f5 100%);
background: linear-gradient(255.96375653deg, #dbe3fd 0%, #eef7f5 100%);
border-radius: 70px;
margin-left: 20px;
font-size: 16px;
color: #000000;
cursor: pointer;
}
.header-box .btn .item .icon {
height: 22px;
margin-right: 8px;
}
.screen {
margin-bottom: 20px;
}
.screen .block {
background-color: #ffffff;
border-radius: 12px;
padding: 24px 34px 32px;
}
.screen .block .title {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-size: 18px;
color: #000000;
margin-bottom: 26px;
}
.screen .block .title .icon {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 10px;
}
.screen .block .title .icon .img {
width: 24px;
}
.screen .block .list .item {
width: fit-content;
height: 36px;
line-height: 36px;
background-color: #fbfbfb;
border: 1px solid #ebebeb;
border-radius: 12px;
font-size: 14px;
color: #333;
cursor: pointer;
text-align: center;
}
.screen .block.school {
width: 500px;
margin-right: 20px;
}
.screen .block.school .title .icon {
background-color: #d5f1f7;
}
.screen .block.school .list {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
}
.screen .block.school .list .item {
width: 78px;
}
.screen .block.subject {
padding-bottom: 12px;
}
.screen .block.subject .title .icon {
background-color: #fdefbc;
}
.screen .block.subject .list {
flex-wrap: wrap;
}
.screen .block.subject .list .item {
padding: 0 17px;
margin-right: 10px;
margin-bottom: 10px;
}
.fate {
width: 100%;
background-color: #ffffff;
border-radius: 12px;
margin-bottom: 20px;
padding: 31px 37px 10px;
}
.fate .title {
justify-content: space-between;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-size: 18px;
color: #000000;
margin-bottom: 6px;
}
.fate .title .btn {
font-weight: 400;
color: #555555;
font-size: 14px;
cursor: pointer;
}
.fate .title .btn .icon {
width: 16px;
height: 16px;
margin-right: 8px;
transition: transform 0.5s ease;
transform: rotate(var(--rotation, 0deg));
/* 使用CSS变量 */
}
.fate .list {
justify-content: space-between;
flex-wrap: wrap;
}
.fate .list .item {
width: 510px;
margin-left: 20px;
padding-top: 22px;
padding-bottom: 22px;
justify-content: space-between;
}
.fate .list .item:not(:nth-last-child(-n + 2)) {
border-bottom: 1px dotted #ebebeb;
}
.fate .list .item .left {
position: relative;
}
.fate .list .item .left::after {
content: "";
position: absolute;
top: 10px;
left: -20px;
transform: translateY(-50%);
width: 8px;
height: 8px;
background-color: #f2f2f2;
border: 1px solid #d7d7d7;
border-radius: 39px;
box-sizing: border-box;
}
.fate .list .item .left .name {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-size: 16px;
color: #000000;
margin-bottom: 7px;
position: relative;
max-width: 405px;
box-sizing: border-box;
}
.fate .list .item .left .message {
color: #7f7f7f;
font-size: 14px;
}
.fate .list .item .left .message .project {
max-width: 280px;
font-weight: 400;
font-size: 14px;
}
.fate .list .item .left .message .virgule {
color: #d7d7d7;
margin: 0 9px;
}
.fate .list .item .btn {
width: 110px;
height: 32px;
background: -webkit-linear-gradient(196.2201937deg, #dbe3fd 0%, #eef7f5 100%);
background: -moz-linear-gradient(253.7798063deg, #dbe3fd 0%, #eef7f5 100%);
background: linear-gradient(253.7798063deg, #dbe3fd 0%, #eef7f5 100%);
border-radius: 61px;
font-size: 14px;
color: #000000;
cursor: pointer;
}
.fate .list .item .btn .add {
width: 24px;
height: 24px;
background-color: #ffffff;
border: 1px solid #dbe3fd;
border-radius: 20px;
margin: 0 3px;
}
.fate .list .item .btn .add .icon {
width: 10px;
height: 10px;
}
.fate .list .item .already {
font-size: 14px;
color: #7f7f7f;
}
.fate .list .item .already .tick-box {
width: 20px;
height: 20px;
background-color: #f6f6f6;
border: 1px solid #d7d7d7;
border-radius: 20px;
margin-right: 5px;
}
.fate .list .item .already .tick-box .img-tick {
width: 10px;
height: 8px;
}
.recruit {
width: 100%;
border: 1px solid #ebebeb;
border-radius: 16px;
padding: 24px 30px 24px;
margin-bottom: 20px;
position: relative;
z-index: 1;
}
.recruit .title {
justify-content: space-between;
margin-bottom: 20px;
}
.recruit .title .img {
width: 100px;
height: 26px;
}
.recruit .title .btn {
font-size: 14px;
color: #333333;
cursor: pointer;
}
.recruit .title .btn .icon {
width: 16px;
height: 16px;
margin-left: 7px;
transform: rotate(270deg);
}
.recruit .list {
overflow: hidden;
margin-bottom: 20px;
width: 1140px;
}
.recruit .list .list-item {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.recruit .list .item {
width: 565px;
background-color: #ffffff;
border: 1px solid #ebebeb;
border-radius: 12px;
padding: 25px 24px;
align-items: flex-start;
position: relative;
}
.recruit .list .item .avatar {
width: 32px;
object-fit: contain;
margin-right: 10px;
}
.recruit .list .item .info .school {
font-size: 14px;
color: #333333;
margin-bottom: 10px;
}
.recruit .list .item .info .name {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-size: 16px;
color: #000000;
margin-bottom: 10px;
width: 490px;
}
.recruit .list .item .info .name-en {
font-size: 14px;
color: #7f7f7f;
width: 490px;
font-weight: 40;
}
.recruit .list .item .info .aq {
width: 477px;
height: 36px;
line-height: 36px;
background-color: #f9f8f8;
border-radius: 3px;
padding: 0 10px;
}
.recruit .list .item .info .aq .text {
font-size: 14px;
color: #e4c762;
margin-right: 10px;
}
.recruit .list .item .info .aq .value {
font-size: 15px;
color: #333333;
}
.recruit .list .item .info .aq .icon {
width: 20px;
height: 20px;
}
.recruit .list .item .operate {
position: relative;
position: absolute;
top: 24px;
right: 24px;
}
.recruit .list .item .operate .circle {
position: relative;
z-index: 3;
cursor: pointer;
width: 28px;
height: 28px;
background-color: #dbe3fd;
border: 1px solid #afb5ca;
border-radius: 20px;
}
.recruit .list .item .operate .circle .img-add {
width: 12px;
height: 12px;
}
.recruit .list .item .operate .circle .img-dot {
width: 18px;
height: 8px;
}
.recruit .list .item .operate .select {
position: absolute;
right: -24px;
top: -24px;
background-color: #fbfbfb;
border-radius: 8px;
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216);
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216);
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216);
transition: all 0.3s;
overflow: hidden;
opacity: 0;
height: 0;
width: 300px;
flex-direction: column;
align-items: center;
}
.recruit .list .item .operate .select.show {
height: 180px;
opacity: 1;
z-index: 2;
}
.recruit .list .item .operate .select .title {
font-size: 14px;
color: #7f7f7f;
margin-top: 75px;
margin-bottom: 19px;
}
.recruit .list .item .operate .select .title .dot {
width: 8px;
height: 8px;
border-radius: 50%;
border: 1px solid #cab157;
background-color: #fddf6d;
margin-right: 5px;
}
.recruit .list .item .operate .select .btn {
cursor: pointer;
width: 144px;
height: 36px;
background: -webkit-linear-gradient(194.03624347deg, #dbe3fd 0%, #eef7f5 100%);
background: -moz-linear-gradient(255.96375653deg, #dbe3fd 0%, #eef7f5 100%);
background: linear-gradient(255.96375653deg, #dbe3fd 0%, #eef7f5 100%);
border-radius: 158px;
font-size: 14px;
color: #333333;
}
.recruit .list .item .operate .select .btn .img {
width: 16px;
height: 16px;
margin-right: 8px;
}
.recruit .list .item .operate .select-mask {
position: fixed;
width: 100%;
height: 100%;
z-index: 2;
top: 0;
left: 0;
}
.recruit .list .item .operate .already {
font-size: 14px;
color: #7f7f7f;
}
.recruit .list .item .operate .already .tick-box {
width: 20px;
height: 20px;
background-color: #f6f6f6;
border: 1px solid #d7d7d7;
border-radius: 20px;
margin-right: 5px;
}
.recruit .list .item .operate .already .tick-box .img-tick {
width: 10px;
height: 8px;
}
.recruit .indicate {
line-height: 12px;
}
.recruit .indicate .icon {
width: 7px;
height: 12px;
cursor: pointer;
}
.recruit .indicate .icon.btn-right {
transform: rotate(180deg);
}
.recruit .indicate .text {
color: #555555;
font-size: 13px;
margin: 0 12px;
}
.recruit .bj {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
border-radius: 12px;
}
.data .fall {
width: 284px;
height: 284px;
display: block;
margin-bottom: 20px;
border-radius: 12px;
}
.data .item {
width: 285px;
background-color: #ffffff;
border: 1px solid #ebebeb;
border-radius: 12px;
padding: 21px 15px 0;
margin-bottom: 20px;
}
.data .item .school {
font-size: 14px;
color: #333333;
margin-bottom: 12px;
}
.data .item .school .img {
height: 20px;
margin-right: 8px;
}
.data .item .name {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: #000000;
margin-bottom: 12px;
}
.data .item .name-en {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 14px;
color: #555555;
margin-bottom: 12px;
}
.data .item .introduce {
color: #555555;
font-size: 14px;
margin-bottom: 12px;
flex-wrap: wrap;
}
.data .item .introduce .quantity {
font-family: "Arial-Black", "Arial Black", sans-serif;
font-weight: 900;
color: #000000;
margin-left: 8px;
}
.data .item .introduce .line {
color: #d7d7d7;
margin: 0 10px;
}
.data .item .word {
background-color: #f9f8f8;
border-radius: 3px;
padding: 10px;
font-size: 14px;
color: #7f7f7f;
margin-bottom: 12px;
}
.data .item .type {
width: 284px;
height: 38px;
background: linear-gradient(82.271363deg, #ecf6f6 0%, #ddebf8 65%, #e3e4fb 99%);
border-radius: 0 0 12px 12px;
margin-left: -15px;
}
.data .item .type .type-name {
width: 70px;
height: 18px;
}
.data .item .type .type-icon {
width: 40px;
height: 40px;
position: absolute;
bottom: 36px;
right: 0;
}
.data .item .operate {
height: 80px;
position: relative;
cursor: auto;
}
.data .item .operate .circle {
position: relative;
z-index: 6;
cursor: pointer;
width: 28px;
height: 28px;
background-color: #dbe3fd;
border: 1px solid #afb5ca;
border-radius: 20px;
margin-bottom: 10px;
}
.data .item .operate .circle .img-add {
width: 12px;
height: 12px;
}
.data .item .operate .circle .img-dot {
width: 18px;
height: 8px;
}
.data .item .operate .select {
position: absolute;
bottom: 0;
width: 285px;
background-color: #fbfbfb;
border-radius: 8px;
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216);
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216);
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216);
flex-direction: column;
transition: all 0.3s;
overflow: hidden;
opacity: 0;
height: 0;
z-index: 4;
}
.data .item .operate .select.show {
height: 211px;
opacity: 1;
}
.data .item .operate .select .top {
flex-direction: column;
}
.data .item .operate .select .top .title {
font-size: 14px;
color: #7f7f7f;
margin-bottom: 19px;
}
.data .item .operate .select .top .title .dot {
width: 8px;
height: 8px;
border-radius: 50%;
border: 1px solid #cab157;
background-color: #fddf6d;
margin-right: 5px;
}
.data .item .operate .select .top .btn {
cursor: pointer;
width: 144px;
height: 36px;
background: -webkit-linear-gradient(194.03624347deg, #dbe3fd 0%, #eef7f5 100%);
background: -moz-linear-gradient(255.96375653deg, #dbe3fd 0%, #eef7f5 100%);
background: linear-gradient(255.96375653deg, #dbe3fd 0%, #eef7f5 100%);
border-radius: 158px;
font-size: 14px;
color: #333333;
}
.data .item .operate .select .top .btn .img {
width: 16px;
height: 16px;
margin-right: 8px;
}
.data .item .operate .select .bottom {
border-top: 1px dotted #ebebeb;
height: 80px;
}
.data .item .operate .select-mask {
position: fixed;
width: 100%;
height: 100%;
z-index: 2;
top: 0;
left: 0;
}
.data .item .operate .already {
font-size: 14px;
color: #7f7f7f;
}
.data .item .operate .already .tick-box {
width: 20px;
height: 20px;
background-color: #f6f6f6;
border: 1px solid #d7d7d7;
border-radius: 20px;
margin-right: 5px;
}
.data .item .operate .already .tick-box .img-tick {
width: 10px;
height: 8px;
}