增加登陆功能,并修改正式环境用5002端口

This commit is contained in:
2026-07-21 16:00:46 +08:00
parent 22f9bccb09
commit 07e88986ab
11 changed files with 691 additions and 8 deletions

View File

@@ -867,6 +867,117 @@ color: #666;
opacity: 0.5;
}
/* ========== 登录页面 ========== */
.login-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.login-box {
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
width: 400px;
max-width: 90%;
}
.login-box h2 {
text-align: center;
color: #333;
margin-bottom: 8px;
font-size: 24px;
}
.login-subtitle {
text-align: center;
color: #888;
margin-bottom: 30px;
font-size: 14px;
}
.login-box .form-group {
margin-bottom: 20px;
}
.login-box label {
display: block;
margin-bottom: 8px;
color: #555;
font-weight: 500;
}
.login-box input {
width: 100%;
padding: 12px 15px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
box-sizing: border-box;
transition: border-color 0.3s;
}
.login-box input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.btn-block {
width: 100%;
padding: 12px;
font-size: 16px;
margin-top: 10px;
}
.login-tip {
text-align: center;
color: #aaa;
font-size: 12px;
margin-top: 20px;
}
/* 顶部栏 */
.header-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.user-info {
display: flex;
align-items: center;
gap: 15px;
font-size: 14px;
color: #555;
}
.user-info span {
font-weight: 500;
}
.btn-link {
background: none;
border: none;
color: var(--primary);
cursor: pointer;
padding: 4px 8px;
font-size: 14px;
}
.btn-link:hover {
text-decoration: underline;
}
.page-btn.active {
background: var(--primary);
color: white;