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 = () => {