style: 优化CSS样式和布局调整

- 调整头部样式和布局
- 优化列表和卡片样式
- 修复滚动条显示问题
- 更新颜色和间距
- 添加边框和阴影效果
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-07-22 18:51:34 +08:00
parent d638dade41
commit 693a0465ff
4 changed files with 300 additions and 126 deletions

View File

@@ -44,11 +44,19 @@ body {
}
}
.one-line-display {
word-break: keep-all;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.admission-head {
width: 100%;
height: 144px;
background-color: rgba(60, 125, 233, 1);
position: relative;
margin-top: -50px;
.admission-head-logo {
width: 223px;
@@ -56,6 +64,7 @@ body {
position: absolute;
top: 60px;
left: calc((100vw - 1200px) / 2);
z-index: 1;
@media screen and (max-width: 1200px) {
left: 0;
}
@@ -71,55 +80,56 @@ body {
overflow: hidden;
}
.admission-head-gray {
position: absolute;
top: 122px;
left: 50%;
transform: translateX(-50%);
width: 1920px;
height: 91px;
z-index: 1;
// .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%);
}
// &::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%);
}
}
// &::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;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 1920px;
height: 68px;
min-width: 1920px;
height: 216px;
width: 100%;
}
.admission-head-2 {
position: absolute;
top: 122px;
left: 50%;
transform: translateX(-50%);
width: 1920px;
height: 91px;
}
// .admission-head-2 {
// position: absolute;
// top: 122px;
// left: 50%;
// transform: translateX(-50%);
// width: 1920px;
// height: 91px;
// }
}
.admission-body {
@@ -130,7 +140,7 @@ body {
.interview-box {
width: 100%;
height: 435px;
margin: 0 auto 22px;
margin: 0 auto;
position: relative;
z-index: 1;
@@ -152,12 +162,12 @@ body {
margin-bottom: 11px;
.icon {
width: 38px;
height: 50px;
// height: 50px;
margin-right: 1px;
}
.name {
width: 125px;
height: 36px;
// height: 36px;
}
}
@@ -167,9 +177,32 @@ body {
position: relative;
border-radius: 10px;
overflow: hidden;
&::after {
content: "";
width: 100%;
height: 19px;
background-color: rgba(0, 0, 0, 1);
border-radius: 10px 10px 0 0;
display: block;
position: absolute;
top: 0;
left: 0;
}
&::before {
content: "";
width: 100%;
height: 19px;
background-color: rgba(0, 0, 0, 1);
border-radius: 0 0 10px 10px;
display: block;
position: absolute;
bottom: 0;
left: 0;
}
.img {
// width: 592px;
width: 592px;
height: 333px;
}
@@ -182,6 +215,7 @@ body {
transform: translate(-50%, -50%);
cursor: pointer;
}
.bottom {
position: absolute;
left: 0;
@@ -352,7 +386,7 @@ body {
.preach-box {
width: 100%;
height: 435px;
margin: 0 auto 22px;
margin: 0 auto;
position: relative;
z-index: 1;
@@ -410,10 +444,21 @@ body {
.list {
width: 404px;
margin: 0 auto;
overflow: auto;
height: 280px;
/* 隐藏垂直滚动条 */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 和 Edge */
overflow-y: auto; /* 确保内容可滚动 */
&::-webkit-scrollbar {
display: none; /* 隐藏滚动条 */
}
.item {
width: 404px;
height: 73px;
// width: 404px;
height: 70px;
padding-left: 18px;
padding-right: 20px;
cursor: pointer;
@@ -449,6 +494,7 @@ body {
font-size: 15px;
color: #000000;
margin-bottom: 4px;
width: 355px;
}
.time {
@@ -507,7 +553,8 @@ body {
}
.interview-more {
margin-bottom: 102px;
margin-top: 22px;
// margin-bottom: 102px;
.case {
width: 139px;
@@ -570,18 +617,42 @@ body {
overflow: hidden;
.swiper-item {
width: 356px;
width: 471px;
height: 200px;
position: relative;
border-radius: 10px;
cursor: pointer;
&::after {
content: "";
width: 100%;
height: 12px;
background-color: rgba(0, 0, 0, 1);
border-radius: 10px 10px 0 0;
display: block;
position: absolute;
top: 0;
left: 0;
}
&::before {
content: "";
width: 100%;
height: 12px;
background-color: rgba(0, 0, 0, 1);
border-radius: 0 0 10px 10px;
display: block;
position: absolute;
bottom: 0;
left: 0;
}
&:not(:last-child) {
margin-right: 10px;
}
.img {
width: 356px;
width: 471px;
height: 200px;
border-radius: 10px;
}
@@ -615,6 +686,7 @@ body {
}
.school-list {
margin-top: 102px;
margin-bottom: 90px;
.school-item {
@@ -667,6 +739,7 @@ body {
.img {
height: 47px;
margin-right: 10px;
cursor: pointer;
}
.name {
@@ -676,6 +749,8 @@ body {
font-size: 20px;
color: #000000;
margin-bottom: 6px;
cursor: pointer;
.arrows {
width: 12px;
height: 12px;
@@ -687,6 +762,7 @@ body {
color: #555555;
font-size: 13px;
font-family: "ArialMT", "Arial", sans-serif;
cursor: pointer;
}
}
@@ -746,6 +822,12 @@ body {
fill: #fff;
}
&.unfold {
.svg {
fill: #7d2882;
}
}
&.pitch {
color: #ffffff;
font-weight: 650;
@@ -805,7 +887,7 @@ body {
top: 28px;
left: 0;
width: 92px;
background-color: rgba(118, 196, 94, 1);
background-color: #7d2882;
border-radius: 0 0 10px 10px;
padding-top: 6px;
&::after {
@@ -952,7 +1034,9 @@ body {
z-index: 1;
&::after {
content: "";
background: linear-gradient(90deg, #d6e5e5 0%, rgba(246, 242, 234, 0.976));
// background: linear-gradient(90deg, #d6e5e5 0%, rgba(246, 242, 234, 0.976));
background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9686) 100%);
border: 1px solid #f2f2f2;
position: absolute;
top: 0;
left: 0;
@@ -1066,13 +1150,13 @@ body {
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.2);
z-index: 100;
z-index: 10000;
.more-school {
width: 706px;
border-radius: 20px;
overflow: hidden;
background: linear-gradient(90deg, rgba(214, 229, 229, 1) 0%, rgba(246, 242, 234, 1) 100%);
background: #fff;
border-radius: 20px;
position: relative;
@@ -1090,7 +1174,7 @@ body {
height: 100px;
padding-left: 36px;
background-color: rgba(255, 255, 255, 1);
border-bottom: 1px dotted #d7d7d7;
.img {
height: 47px;
margin-right: 10px;
@@ -1141,7 +1225,7 @@ body {
top: 0;
left: 0;
z-index: -1;
fill: #fff;
fill: #ebebeb;
}
&.pitch {
@@ -1159,6 +1243,7 @@ body {
margin-left: 5px;
vertical-align: middle;
transition: all 0.3s;
margin-top: 3px;
}
&.more {
@@ -1230,7 +1315,8 @@ body {
}
.list {
height: 448px;
max-height: 448px;
min-height: 138px;
overflow: auto;
padding-right: 20px;
@@ -1253,7 +1339,7 @@ body {
.item {
padding: 12px 10px 10px 20px;
background-color: #ffffff;
background-color: rgba(246, 246, 246, 1);
border-radius: 10px;
&:not(:last-child) {
@@ -1342,7 +1428,7 @@ body {
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.4);
z-index: 100;
z-index: 10000;
.paly-box {
position: relative;
.close {