From bd1e58023c9c3214fcb33ed7a978c8d14f864962 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Mon, 24 Nov 2025 00:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=94=9F=E7=9A=84=E6=95=85=E4=BA=8B?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/index.css | 91 ++++++++++++++++++++-------------------------- public/header.html | 13 +++---- 2 files changed, 46 insertions(+), 58 deletions(-) diff --git a/css/index.css b/css/index.css index 6e38124..bf32188 100644 --- a/css/index.css +++ b/css/index.css @@ -64,6 +64,32 @@ align-items: center; } +/* 纯文字链接样式 */ +#index .nav-right .nav-text-link { + color: #CBD5E1; + font-size: 14px; + font-weight: 400; + padding: 0 16px; + display: flex; + align-items: center; + transition: all 0.3s ease; + cursor: pointer; + text-decoration: none; +} + +#index .nav-right .nav-text-link:hover { + color: #38BDF8; +} + +/* 分隔符样式 */ +#index .nav-right .nav-divider { + color: rgba(148, 163, 184, 0.3); + display: flex; + align-items: center; + font-size: 14px; + user-select: none; +} + /* nav-shadow 样式和 hover 效果 */ #index .nav-shadow { background: rgba(15, 23, 42, 0.8) !important; @@ -97,7 +123,7 @@ } /* ============================================ - 登录注册按钮 - 撑满高度设计 + 登录注册区域 - 撑满高度设计 ============================================ */ /* 登录注册容器 */ @@ -111,60 +137,12 @@ flex-direction: row !important; } -/* 登录按钮 - 浅色边框样式,撑满高度 */ -#index .no-login .btn.btn-normal-light.mr-10#loginBtn { - display: flex !important; - align-items: center !important; - justify-content: center !important; - padding: 0 32px !important; - font-size: 14px !important; - font-weight: 500 !important; - color: #E5E7EB !important; - background: transparent !important; - border: 1px solid rgba(148, 163, 184, 0.3) !important; - border-top: none !important; - border-bottom: none !important; - border-radius: 0 !important; - cursor: pointer !important; - transition: all 0.3s ease !important; - position: relative !important; - overflow: hidden !important; - margin: 0 !important; - min-width: 100px !important; - flex-shrink: 0 !important; - box-shadow: none !important; -} - -#index .no-login .btn.btn-normal-light.mr-10#loginBtn::before { - content: ''; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(56, 189, 248, 0.1); - opacity: 0; - transition: opacity 0.3s ease; - pointer-events: none; -} - -#index .no-login .btn.btn-normal-light.mr-10#loginBtn:hover { - color: #38BDF8 !important; - border-color: rgba(56, 189, 248, 0.5) !important; - background: rgba(56, 189, 248, 0.05) !important; - box-shadow: none !important; -} - -#index .no-login .btn.btn-normal-light.mr-10#loginBtn:hover::before { - opacity: 1; -} - /* 注册按钮 - 渐变背景样式,撑满高度 */ #index .no-login .btn.btn-normal#registBtn { display: flex !important; align-items: center !important; justify-content: center !important; - padding: 0 32px !important; + padding: 0 48px !important; font-size: 14px !important; font-weight: 500 !important; color: #ffffff !important; @@ -177,7 +155,7 @@ position: relative !important; overflow: hidden !important; margin: 0 !important; - min-width: 100px !important; + min-width: 140px !important; flex-shrink: 0 !important; box-shadow: none !important; } @@ -193,6 +171,7 @@ opacity: 0; transition: opacity 0.3s ease; pointer-events: none; + z-index: 0; } #index .no-login .btn.btn-normal#registBtn:hover { @@ -204,6 +183,16 @@ opacity: 1; } +/* 确保注册按钮文字始终可见 */ +#index .no-login .btn.btn-normal#registBtn { + z-index: 1; +} + +#index .no-login .btn.btn-normal#registBtn * { + position: relative; + z-index: 2; +} + /* 响应式 */ @media (max-width: 768px) { #index .nav-header { diff --git a/public/header.html b/public/header.html index f5189dc..60f1936 100644 --- a/public/header.html +++ b/public/header.html @@ -29,14 +29,13 @@