From 85cc02ac7674423531a18998a77aae6fd35e9810 Mon Sep 17 00:00:00 2001 From: yangbin Date: Mon, 19 Oct 2026 10:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/styles/theme.scss | 2 + frontend/src/views/Dashboard.vue | 111 ++++++++++++++++++------------- 2 files changed, 67 insertions(+), 46 deletions(-) diff --git a/frontend/src/styles/theme.scss b/frontend/src/styles/theme.scss index 8aff73c..5804aa7 100644 --- a/frontend/src/styles/theme.scss +++ b/frontend/src/styles/theme.scss @@ -25,6 +25,8 @@ --hero-light-img: url('@/assets/hero-light.png'); --hero-blur-img: url('@/assets/hero-blur.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; } diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue index 796dbe2..07932d0 100644 --- a/frontend/src/views/Dashboard.vue +++ b/frontend/src/views/Dashboard.vue @@ -51,33 +51,13 @@ function doSearch() { .hero { min-height: calc(100vh - 64px); 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; - align-items: center; + align-items: flex-start; justify-content: center; + padding-top: 9vh; overflow: hidden; 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 { @@ -86,13 +66,14 @@ function doSearch() { text-align: center; position: relative; z-index: 1; - padding: 40px 20px; + padding: 0 20px 40px; h1 { color: #fff; - font-size: 42px; - letter-spacing: 2px; - margin: 0 0 14px; + font-size: 46px; + font-weight: 700; + letter-spacing: 3px; + margin: 0 0 18px; } .sub { @@ -103,10 +84,17 @@ function doSearch() { } .searchbox { - background: #fff; - border-radius: 8px; + position: relative; 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 { @@ -116,28 +104,46 @@ function doSearch() { } .sel { width: 120px; flex: none; } -.sel :deep(.el-input__wrapper) { box-shadow: none; } +.sel :deep(.el-input__wrapper) { + background: transparent; + box-shadow: none; +} .ipt { flex: 1; + min-width: 0; border: none; outline: none; font-size: 15px; - padding: 0 8px; - height: 40px; + padding: 0 12px; + height: 54px; + color: #303133; + + &::placeholder { + color: #b7bec9; + } } .btn { - height: 40px; - padding: 0 26px; + height: 54px; + padding: 0 30px; border: none; - border-radius: 4px; - font-size: 15px; + font-size: 16px; cursor: pointer; + background-size: 100% 100%; + background-repeat: no-repeat; + flex: none; } -.btn.primary { background: var(--brand-primary); color: #fff; } -.btn.ghost { background: #fff; color: var(--brand-primary); border: 1px solid var(--brand-primary); } +.btn.primary { + color: #fff; + background-image: var(--btn-primary-img); +} + +.btn.ghost { + color: var(--brand-primary); + background-image: var(--btn-ghost-img); +} .types { margin-top: 8px; @@ -145,11 +151,11 @@ function doSearch() { display: flex; gap: 18px; align-items: center; - color: #4b5563; + color: #43506b; 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 { display: flex; @@ -160,15 +166,28 @@ function doSearch() { } .hot { - margin-top: 26px; - color: rgba(255, 255, 255, 0.75); + margin-top: 32px; + color: rgba(255, 255, 255, 0.8); font-size: 13px; + display: flex; + align-items: center; + justify-content: center; + gap: 12px; a { - margin-left: 14px; color: #fff; 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); + } } }