前端页面调整

This commit is contained in:
2026-10-19 10:11:42 +08:00
parent 78bbd96a57
commit 85cc02ac76
2 changed files with 67 additions and 46 deletions
+2
View File
@@ -25,6 +25,8 @@
--hero-light-img: url('@/assets/hero-light.png'); --hero-light-img: url('@/assets/hero-light.png');
--hero-blur-img: url('@/assets/hero-blur.png'); --hero-blur-img: url('@/assets/hero-blur.png');
--page-bg-img: url('@/assets/page-bg.png'); --page-bg-img: url('@/assets/page-bg.png');
--btn-primary-img: url('@/assets/btn-search.png');
--btn-ghost-img: url('@/assets/btn-adv.png');
--hero-filter: none; --hero-filter: none;
} }
+65 -46
View File
@@ -51,33 +51,13 @@ function doSearch() {
.hero { .hero {
min-height: calc(100vh - 64px); min-height: calc(100vh - 64px);
margin: -20px -24px; margin: -20px -24px;
background: var(--page-bg-img) center / cover no-repeat, #0d2a6b; background: var(--hero-light-img) center / cover no-repeat, #0d2a6b;
display: flex; display: flex;
align-items: center; align-items: flex-start;
justify-content: center; justify-content: center;
padding-top: 9vh;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
&::before {
content: '';
position: absolute;
inset: 0;
background: var(--hero-light-img) center bottom / contain no-repeat;
filter: var(--hero-filter);
pointer-events: none;
}
&::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 42%;
background: var(--hero-blur-img) center bottom / cover no-repeat;
filter: var(--hero-filter);
pointer-events: none;
}
} }
.hero-inner { .hero-inner {
@@ -86,13 +66,14 @@ function doSearch() {
text-align: center; text-align: center;
position: relative; position: relative;
z-index: 1; z-index: 1;
padding: 40px 20px; padding: 0 20px 40px;
h1 { h1 {
color: #fff; color: #fff;
font-size: 42px; font-size: 46px;
letter-spacing: 2px; font-weight: 700;
margin: 0 0 14px; letter-spacing: 3px;
margin: 0 0 18px;
} }
.sub { .sub {
@@ -103,10 +84,17 @@ function doSearch() {
} }
.searchbox { .searchbox {
background: #fff; position: relative;
border-radius: 8px;
padding: 8px; padding: 8px;
box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28); border-radius: 10px;
/* 毛玻璃:半透明白 + 背景模糊 + 提亮(乳白玻璃质感) */
background: rgba(255, 255, 255, 0.76);
backdrop-filter: blur(24px) saturate(160%) brightness(1.12);
-webkit-backdrop-filter: blur(24px) saturate(160%) brightness(1.12);
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow:
0 12px 34px rgba(0, 0, 0, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
} }
.row1 { .row1 {
@@ -116,28 +104,46 @@ function doSearch() {
} }
.sel { width: 120px; flex: none; } .sel { width: 120px; flex: none; }
.sel :deep(.el-input__wrapper) { box-shadow: none; } .sel :deep(.el-input__wrapper) {
background: transparent;
box-shadow: none;
}
.ipt { .ipt {
flex: 1; flex: 1;
min-width: 0;
border: none; border: none;
outline: none; outline: none;
font-size: 15px; font-size: 15px;
padding: 0 8px; padding: 0 12px;
height: 40px; height: 54px;
color: #303133;
&::placeholder {
color: #b7bec9;
}
} }
.btn { .btn {
height: 40px; height: 54px;
padding: 0 26px; padding: 0 30px;
border: none; border: none;
border-radius: 4px; font-size: 16px;
font-size: 15px;
cursor: pointer; cursor: pointer;
background-size: 100% 100%;
background-repeat: no-repeat;
flex: none;
} }
.btn.primary { background: var(--brand-primary); color: #fff; } .btn.primary {
.btn.ghost { background: #fff; color: var(--brand-primary); border: 1px solid var(--brand-primary); } color: #fff;
background-image: var(--btn-primary-img);
}
.btn.ghost {
color: var(--brand-primary);
background-image: var(--btn-ghost-img);
}
.types { .types {
margin-top: 8px; margin-top: 8px;
@@ -145,11 +151,11 @@ function doSearch() {
display: flex; display: flex;
gap: 18px; gap: 18px;
align-items: center; align-items: center;
color: #4b5563; color: #43506b;
font-size: 13px; font-size: 13px;
border-top: 1px solid #eef1f6; border-top: 1px solid rgba(255, 255, 255, 0.7);
.lbl { color: #6b7280; } .lbl { color: #5d688a; }
label { label {
display: flex; display: flex;
@@ -160,15 +166,28 @@ function doSearch() {
} }
.hot { .hot {
margin-top: 26px; margin-top: 32px;
color: rgba(255, 255, 255, 0.75); color: rgba(255, 255, 255, 0.8);
font-size: 13px; font-size: 13px;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
a { a {
margin-left: 14px;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
text-decoration: underline; padding: 6px 18px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.18);
border: 1px solid rgba(255, 255, 255, 0.4);
backdrop-filter: blur(12px) saturate(150%);
-webkit-backdrop-filter: blur(12px) saturate(150%);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
&:hover {
background: rgba(255, 255, 255, 0.3);
}
} }
} }
</style> </style>