From 3581e6443f71407cb7b867757f6a50cc3f7ddad4 Mon Sep 17 00:00:00 2001 From: hxuanyu <2252193204@qq.com> Date: Thu, 26 Jun 2025 17:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E8=B0=83=E6=95=B4=E8=83=8C=E6=99=AF=E3=80=81?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E5=92=8C=E6=8C=89=E9=92=AE=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E5=A2=9E=E5=BC=BA=E7=94=A8=E6=88=B7=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 30 ++++- src/style.css | 40 ++++-- src/views/HomeView.vue | 273 +++++++++++++++++++++++++++++++++-------- 3 files changed, 284 insertions(+), 59 deletions(-) diff --git a/src/App.vue b/src/App.vue index f59f05f..d968669 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,33 @@ body { margin: 0; padding: 0; - font-family: Arial, sans-serif; - overflow: hidden; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + overflow-x: hidden; /* 只隐藏水平滚动条 */ + overflow-y: auto; /* 允许垂直滚动 */ + background-color: #f5f7fa; +} + +#app { + min-height: 100vh; +} + +/* 全局滚动条样式 */ +::-webkit-scrollbar { + width: 8px; +} + +::-webkit-scrollbar-track { + background: #f1f1f1; + border-radius: 10px; +} + +::-webkit-scrollbar-thumb { + background: #c1c1c1; + border-radius: 10px; + transition: background 0.3s ease; +} + +::-webkit-scrollbar-thumb:hover { + background: #a8a8a8; } diff --git a/src/style.css b/src/style.css index f7fe674..4cd1e5f 100644 --- a/src/style.css +++ b/src/style.css @@ -1,5 +1,5 @@ :root { - font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.5; font-weight: 400; @@ -26,18 +26,40 @@ body { background-color: transparent !important; } +/* 确保滚动行为平滑 */ +html { + scroll-behavior: smooth; +} + +/* 全局文本选择样式 */ +::selection { + background-color: rgba(52, 152, 219, 0.3); + color: #2c3e50; +} + +/* 按钮通用样式改进 */ +button { + transition: all 0.3s ease; + border-radius: 8px; + font-weight: 500; +} + @media (prefers-color-scheme: light) { :root { color: #213547; background-color: transparent; } } + button:hover { - border-color: #646cff; + border-color: #3498db; + transform: translateY(-2px); } + button:focus, button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; + outline: 2px solid #3498db; + outline-offset: 2px; } .card { @@ -45,10 +67,10 @@ button:focus-visible { } #app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; + width: 100%; + margin: 0; + padding: 0; + min-height: 100vh; } @media (prefers-color-scheme: light) { @@ -57,9 +79,9 @@ button:focus-visible { background-color: #ffffff; } a:hover { - color: #747bff; + color: #3498db; } button { - background-color: #f9f9f9; + background-color: #f8f9fa; } } diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 9aea0a3..68e9f05 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -110,149 +110,326 @@ const goToDoc = () => {