PCAdmissionOfficer/css/index.less
DESKTOP-RQ919RC\Pc a13e64dd4e feat: 新增招生官页面交互功能与样式优化
style: 调整页面布局与滚动行为
refactor: 重构视频播放控制逻辑
fix: 修复滑动按钮显示问题
docs: 更新CSS样式注释
2025-07-09 18:54:16 +08:00

766 lines
27 KiB
Plaintext

* {
padding: 0;
margin: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
.admission-officer {
min-height: 100vh;
background-color: rgba(246, 246, 246, 1);
.flexflex {
display: flex;
}
.flexcenter {
display: flex;
justify-content: center;
align-items: center;
}
.flexacenter {
display: flex;
align-items: center;
}
.flex1 {
flex: 1;
}
.admission-head {
width: 100%;
height: 144px;
background-color: rgba(60, 125, 233, 1);
position: relative;
.admission-head-logo {
width: 223px;
height: 50px;
position: absolute;
top: 60px;
left: calc((100vw - 1200px) / 2);
}
.admission-head-box {
min-width: 1200px;
height: 216px;
position: relative;
top: 0;
left: 50%;
transform: translateX(-50%);
overflow: hidden;
}
.admission-head-gray {
position: absolute;
top: 122px;
left: 50%;
transform: translateX(-50%);
width: 1920px;
height: 91px;
z-index: 1;
&::after {
content: "";
position: absolute;
top: 0;
right: 1px;
height: 91px;
width: calc((100vw - 1920px) / 2);
background-color: #f6f6f6;
transform: translateX(100%);
}
&::before {
content: "";
position: absolute;
top: 0;
left: 1px;
height: 91px;
width: calc((100vw - 1920px) / 2);
background-color: #f6f6f6;
transform: translateX(-100%);
}
}
.admission-head-1 {
position: absolute;
top: 122px;
left: 50%;
transform: translateX(-50%);
width: 1920px;
height: 68px;
}
.admission-head-2 {
position: absolute;
top: 122px;
left: 50%;
transform: translateX(-50%);
width: 1920px;
height: 91px;
}
}
.admission-body {
width: 1200px;
margin: 0 auto;
padding-top: 54px;
position: relative;
.interview-box {
width: 100%;
height: 435px;
margin: 0 auto 22px;
position: relative;
z-index: 1;
.bj {
width: 100%;
height: 435px;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.left {
padding-top: 14px;
padding-left: 20px;
margin-right: 20px;
.head {
margin-bottom: 11px;
.icon {
width: 38px;
height: 50px;
margin-right: 1px;
}
.name {
width: 125px;
height: 36px;
}
}
.content {
width: 592px;
height: 333px;
position: relative;
border-radius: 10px;
overflow: hidden;
.img {
width: 592px;
height: 333px;
}
.play-btn {
width: 50px;
height: 50px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.bottom {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.047) 0%, rgba(0, 0, 0, 1) 100%);
padding: 17px 22px 13px;
transition: all 0.3s;
.title {
font-weight: 650;
font-style: normal;
font-size: 16px;
color: #ffffff;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
margin-bottom: 5px;
}
.subtitle {
font-size: 13px;
color: #ffffff;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
}
}
}
}
.focus-box {
width: 552px;
height: 293px;
background-color: rgba(251, 251, 251, 1);
border-radius: 10px;
margin-top: 115px;
position: relative;
.ok {
width: 101px;
height: 127px;
position: absolute;
top: -122px;
right: 45px;
z-index: -1;
}
.head {
width: 100%;
height: 36px;
background-color: rgba(220, 238, 213, 1);
border-radius: 10px 10px 0 0;
.arrows {
width: 24px;
height: 24px;
}
.name {
width: 79px;
height: 27px;
margin: 0 31px;
}
}
.content {
height: 257px;
.info {
border-right: 1px solid #ebebeb;
width: 193px;
padding: 25px 24px;
.label {
position: relative;
z-index: 1;
width: 72px;
height: 21px;
font-weight: 650;
font-style: normal;
font-size: 15px;
color: #ffffff;
margin-bottom: 20px;
.icon {
position: absolute;
z-index: -1;
width: 72px;
height: 21px;
}
}
.name {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 20px;
color: #000000;
margin-bottom: 11px;
.professional {
font-size: 14px;
color: #555555;
display: flex;
align-items: flex-end;
font-weight: 400;
margin-left: 6px;
}
}
.subheading {
font-size: 14px;
color: #555555;
margin-bottom: 11px;
}
}
.introduce-box {
flex-direction: column;
justify-content: space-between;
padding-bottom: 20px;
padding-top: 13px;
.introduce-list {
padding-left: 49px;
.introduce-item {
width: 291px;
font-size: 14px;
line-height: 33px;
color: #333333;
padding: 10px 0;
position: relative;
&::after {
content: "";
width: 6px;
height: 6px;
background-color: #000000;
border-radius: 50%;
position: absolute;
top: 24px;
left: -16px;
}
&:not(:last-child) {
border-bottom: 1px dotted #d7d7d7;
}
}
}
.play-btn {
width: 126px;
height: 34px;
background-color: rgba(211, 81, 16, 1);
border-radius: 86px;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: #ffffff;
margin-left: auto;
.icon {
width: 20px;
height: 20px;
margin-left: 6px;
}
}
}
}
}
}
.interview-more {
margin-bottom: 102px;
.case {
width: 139px;
height: 200px;
background-color: rgba(118, 196, 94, 1);
border-radius: 10px;
flex-direction: column;
margin-right: 10px;
.name {
font-weight: 650;
font-style: normal;
font-size: 20px;
color: #ffffff;
margin-bottom: 9px;
}
.english {
font-size: 14px;
color: #ffffff;
text-align: center;
}
}
.swiper-box {
position: relative;
.btn {
width: 40px;
height: 40px;
background-color: rgba(255, 255, 255, 0.8);
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1;
border-radius: 50%;
cursor: pointer;
user-select: none;
&.left {
left: 10px;
}
&.right {
right: 10px;
transform: translateY(-50%) rotate(180deg);
}
.arrows {
width: 13px;
height: 20px;
}
}
.swiper {
width: 1052px;
overflow: hidden;
.swiper-item {
width: 356px;
height: 200px;
position: relative;
border-radius: 10px;
// overflow-x: auto;
&:not(:last-child) {
margin-right: 10px;
}
.img {
width: 356px;
height: 200px;
}
.bottom {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.047) 0%, rgba(0, 0, 0, 1) 100%);
padding: 17px 22px 13px;
border-radius: 0 0 10px 10px;
.title {
font-weight: 650;
font-style: normal;
font-size: 16px;
color: #ffffff;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
margin-bottom: 5px;
}
.subtitle {
font-size: 13px;
color: #ffffff;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
}
}
}
}
}
}
.school-list {
margin-bottom: 90px;
.school-item {
&:not(:last-child) {
margin-bottom: 102px;
}
.left {
position: relative;
margin-right: 45px;
z-index: 2;
.abbreviation {
width: 100px;
height: 32px;
line-height: 32px;
background-color: rgba(125, 40, 130, 1);
border-radius: 86px;
font-family: "Arial-Black", "Arial Black", sans-serif;
font-weight: 900;
font-style: normal;
color: #ffffff;
font-size: 13px;
display: inline-flex;
position: absolute;
top: 0;
left: 0;
z-index: 2;
text-align: center;
}
.icon {
width: 130px;
height: 62px;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
}
.right {
width: 651px;
.info {
padding-bottom: 24px;
border-bottom: 1px dotted #d7d7d7;
.img {
width: 60px;
height: 47px;
margin-right: 10px;
}
.name {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 20px;
color: #000000;
margin-bottom: 6px;
}
.english {
color: #555555;
font-size: 13px;
font-family: "ArialMT", "Arial", sans-serif;
}
}
.introduce {
font-size: 14px;
color: #555555;
padding-top: 19px;
padding-bottom: 24px;
}
.content {
padding-top: 27px;
padding-right: 20px;
padding-bottom: 31px;
position: relative;
z-index: 1;
&::after {
content: "";
width: 1051px;
height: 100%;
background: -webkit-linear-gradient(0deg, rgba(214, 229, 229, 1) 0%, rgba(246, 242, 234, 1) 100%);
background: -moz-linear-gradient(90deg, rgba(214, 229, 229, 1) 0%, rgba(246, 242, 234, 1) 100%);
background: linear-gradient(90deg, rgba(214, 229, 229, 1) 0%, rgba(246, 242, 234, 1) 100%);
border-radius: 20px;
display: block;
position: absolute;
top: 0;
right: 0;
z-index: -1;
}
.year {
margin-bottom: 24px;
.item {
width: 100px;
height: 28px;
line-height: 28px;
position: relative;
font-size: 14px;
color: #333333;
text-align: center;
z-index: 1;
cursor: pointer;
.svg {
width: 100px;
height: 28px;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
&.pitch {
color: #ffffff;
font-weight: 650;
.svg {
fill: #7d2882;
}
}
.arrows {
transform: translateY(-50%);
width: 9px;
height: 5px;
margin-left: 5px;
vertical-align: middle;
}
&:hover {
.more-box {
display: block;
}
}
.more-box {
display: none;
border-radius: 7px;
background: #fff;
position: absolute;
width: 100%;
top: 32px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.118);
&::after {
content: "";
width: 100%;
height: 10px;
display: block;
top: 0;
position: absolute;
transform: translateY(-100%);
z-index: -1;
}
.more-item {
height: 32px;
line-height: 32px;
&:hover {
text-decoration: underline;
}
&:not(:last-child) {
border-bottom: 1px dotted #d7d7d7;
}
}
}
}
}
.course-list {
.item {
padding: 12px 10px 10px 20px;
background-color: #ffffff;
border-radius: 10px;
&:not(:last-child) {
margin-bottom: 10px;
}
.icon {
width: 28px;
height: 28px;
background-color: #f3f4f8;
border-radius: 50%;
margin-right: 10px;
.img {
width: 20px;
height: 20px;
}
}
.name {
font-size: 16px;
color: #333333;
margin-bottom: 8px;
.label {
width: 120px;
height: 26px;
line-height: 26px;
background-color: rgba(60, 125, 233, 1);
border-radius: 3px;
position: relative;
color: #ffffff;
font-size: 13px;
font-family: "ArialMT", "Arial", sans-serif;
padding: 0 6px;
margin-left: 12px;
.arrows {
position: absolute;
width: 9px;
height: 16px;
top: 50%;
transform: translateY(-50%) rotate(180deg);
left: -4px;
}
}
}
.bottom {
justify-content: space-between;
.time {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 14px;
color: #000000;
}
.btn {
width: 100px;
height: 32px;
line-height: 32px;
background-color: rgba(125, 40, 130, 1);
border-radius: 86px;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 14px;
color: #ffffff;
cursor: pointer;
.arrows {
width: 12px;
height: 12px;
margin-left: 7px;
}
}
}
}
}
}
}
}
}
.retrospect {
padding-bottom: 108px;
.more-icon {
width: 112px;
height: 40px;
margin-bottom: 30px;
}
.list {
flex-wrap: wrap;
.item {
width: 392px;
height: 180px;
border-radius: 15px;
background: linear-gradient(90deg, #d6e5e5 0%, rgba(246, 242, 234, 0.988) 100%);
align-items: flex-start;
padding: 20px;
margin-bottom: 12px;
margin-right: 12px;
&:nth-child(3n) {
margin-right: 0;
}
.img {
width: 47px;
margin-right: 10px;
}
.right {
.name {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 20px;
color: #000000;
margin-bottom: 2px;
}
.english {
color: #555555;
font-size: 13px;
margin-bottom: 22px;
}
.year {
flex-wrap: wrap;
.year-item {
width: 80px;
height: 24px;
line-height: 24px;
position: relative;
font-size: 14px;
color: #333333;
text-align: center;
z-index: 1;
cursor: pointer;
margin-bottom: 10px;
.svg {
width: 80px;
height: 24px;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.arrows {
transform: translateY(-50%);
width: 9px;
height: 5px;
margin-left: 5px;
vertical-align: middle;
}
}
}
}
}
}
}
}
}