- 替换登录页面为极光背景玻璃拟态设计,移除注册/忘记密码页面 - 新增插件强制更新功能,支持设置最低版本和截止时间 - 修复通知账号选择占位文本和拉取失败注释 - 新增审计日志系统用户相关操作类型 - 新增用户菜单头像 fallback 逻辑 - 重构 XQ0037 工作簿写入逻辑,改用 openpyxl 直写避免时区问题 - 更新 XQ0034 脚本参数默认值和注释
367 lines
7.9 KiB
CSS
367 lines
7.9 KiB
CSS
/* ============================================================
|
|
登录页:极光动态背景 + 点阵纹理 + 玻璃拟态卡片 + 微交互
|
|
适配明暗主题与主题色切换(全部走 CSS 变量)
|
|
============================================================ */
|
|
|
|
.login-page {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
overflow: hidden;
|
|
background: var(--main-bg, #f5f7fb);
|
|
}
|
|
|
|
/* ---------- 极光光斑(大范围模糊,缓慢漂浮) ---------- */
|
|
.blob {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(90px);
|
|
opacity: 0.55;
|
|
pointer-events: none;
|
|
will-change: transform;
|
|
}
|
|
|
|
.blob-1 {
|
|
top: -180px;
|
|
left: -120px;
|
|
width: 560px;
|
|
height: 560px;
|
|
background: radial-gradient(circle at 35% 35%,
|
|
color-mix(in srgb, var(--el-color-primary) 55%, transparent), transparent 70%);
|
|
animation: drift-a 16s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.blob-2 {
|
|
right: -160px;
|
|
bottom: -200px;
|
|
width: 620px;
|
|
height: 620px;
|
|
background: radial-gradient(circle at 60% 60%,
|
|
rgba(124, 92, 255, 0.5), transparent 70%);
|
|
animation: drift-b 20s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.blob-3 {
|
|
top: 40%;
|
|
left: 58%;
|
|
width: 380px;
|
|
height: 380px;
|
|
background: radial-gradient(circle at 50% 50%,
|
|
rgba(0, 200, 255, 0.38), transparent 70%);
|
|
animation: drift-c 18s ease-in-out infinite alternate;
|
|
}
|
|
|
|
@keyframes drift-a {
|
|
0% { transform: translate(0, 0) scale(1); }
|
|
100% { transform: translate(90px, 60px) scale(1.12); }
|
|
}
|
|
|
|
@keyframes drift-b {
|
|
0% { transform: translate(0, 0) scale(1); }
|
|
100% { transform: translate(-80px, -70px) scale(1.08); }
|
|
}
|
|
|
|
@keyframes drift-c {
|
|
0% { transform: translate(0, 0) scale(1); }
|
|
100% { transform: translate(-60px, 50px) scale(1.15); }
|
|
}
|
|
|
|
/* ---------- 点阵纹理(径向渐隐) ---------- */
|
|
.grid-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background-image: radial-gradient(
|
|
circle,
|
|
color-mix(in srgb, var(--art-gray-400, #9ca3af) 55%, transparent) 1px,
|
|
transparent 1px
|
|
);
|
|
background-size: 26px 26px;
|
|
-webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 75%);
|
|
mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 75%);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/* ---------- 左上角品牌 ---------- */
|
|
.corner-brand {
|
|
position: absolute;
|
|
top: 22px;
|
|
left: 26px;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--art-gray-700);
|
|
}
|
|
|
|
/* ---------- 玻璃拟态卡片 ---------- */
|
|
.login-card {
|
|
position: relative;
|
|
z-index: 10;
|
|
box-sizing: border-box;
|
|
width: 430px;
|
|
max-width: calc(100vw - 32px);
|
|
padding: 38px 38px 26px;
|
|
overflow: hidden;
|
|
background: rgba(255, 255, 255, 0.62);
|
|
border: 1px solid rgba(255, 255, 255, 0.65);
|
|
border-radius: 24px;
|
|
box-shadow:
|
|
0 30px 80px rgba(31, 38, 88, 0.16),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.7);
|
|
backdrop-filter: blur(22px) saturate(160%);
|
|
-webkit-backdrop-filter: blur(22px) saturate(160%);
|
|
animation: cardIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
}
|
|
|
|
@keyframes cardIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(26px) scale(0.98);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
/* 顶部主题色流光条 */
|
|
.login-card::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 3px;
|
|
content: '';
|
|
background: linear-gradient(90deg,
|
|
var(--el-color-primary),
|
|
rgba(124, 92, 255, 0.9),
|
|
rgba(0, 200, 255, 0.9),
|
|
var(--el-color-primary));
|
|
background-size: 300% 100%;
|
|
animation: sheen 6s linear infinite;
|
|
}
|
|
|
|
@keyframes sheen {
|
|
0% { background-position: 0% 0; }
|
|
100% { background-position: 300% 0; }
|
|
}
|
|
|
|
.card-head {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 68px;
|
|
height: 68px;
|
|
margin-bottom: 16px;
|
|
background: var(--default-box-color);
|
|
border: 1px solid var(--art-border-color, rgba(0, 0, 0, 0.06));
|
|
border-radius: 20px;
|
|
box-shadow: 0 10px 26px rgba(31, 38, 88, 0.12);
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
color: var(--art-gray-900);
|
|
}
|
|
|
|
.sub-title {
|
|
margin: 8px 0 0;
|
|
font-size: 13px;
|
|
color: var(--art-gray-500);
|
|
}
|
|
|
|
/* ---------- 表单 ---------- */
|
|
.login-form {
|
|
margin-top: 26px;
|
|
}
|
|
|
|
.login-form :deep(.el-form-item) {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
/* 玻璃质感输入框 */
|
|
.login-form :deep(.el-input__wrapper) {
|
|
height: 44px;
|
|
padding: 0 14px;
|
|
background: rgba(255, 255, 255, 0.55);
|
|
border-radius: 12px;
|
|
box-shadow: 0 0 0 1px var(--art-border-color, rgba(0, 0, 0, 0.08)) inset;
|
|
transition: box-shadow 0.25s, background 0.25s;
|
|
}
|
|
|
|
.login-form :deep(.el-input__wrapper:hover) {
|
|
box-shadow: 0 0 0 1px color-mix(in srgb, var(--el-color-primary) 45%, transparent) inset;
|
|
}
|
|
|
|
.login-form :deep(.el-input__wrapper.is-focus) {
|
|
background: rgba(255, 255, 255, 0.85);
|
|
box-shadow:
|
|
0 0 0 1px var(--el-color-primary) inset,
|
|
0 0 0 4px color-mix(in srgb, var(--el-color-primary) 14%, transparent);
|
|
}
|
|
|
|
.form-opts {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: -6px;
|
|
}
|
|
|
|
/* 渐变主按钮 */
|
|
.login-btn {
|
|
width: 100%;
|
|
height: 44px;
|
|
margin-top: 8px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
letter-spacing: 4px;
|
|
border: none;
|
|
background: linear-gradient(135deg,
|
|
var(--el-color-primary) 0%,
|
|
color-mix(in srgb, var(--el-color-primary) 72%, #7c5cff) 100%);
|
|
box-shadow: 0 10px 24px color-mix(in srgb, var(--el-color-primary) 35%, transparent);
|
|
transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
|
|
}
|
|
|
|
.login-btn:hover {
|
|
transform: translateY(-1px);
|
|
filter: brightness(1.06);
|
|
box-shadow: 0 14px 30px color-mix(in srgb, var(--el-color-primary) 45%, transparent);
|
|
}
|
|
|
|
.login-btn:active {
|
|
transform: translateY(0) scale(0.99);
|
|
}
|
|
|
|
/* ---------- 特性胶囊 ---------- */
|
|
.feature-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-top: 22px;
|
|
}
|
|
|
|
.feature {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 14px;
|
|
font-size: 12px;
|
|
color: var(--art-gray-600);
|
|
cursor: default;
|
|
background: color-mix(in srgb, var(--el-color-primary) 7%, transparent);
|
|
border-radius: 999px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.feature svg {
|
|
color: var(--el-color-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.feature:hover {
|
|
color: var(--el-color-primary);
|
|
background: color-mix(in srgb, var(--el-color-primary) 14%, transparent);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* ---------- 页脚 ---------- */
|
|
.page-footer {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
width: 100%;
|
|
font-size: 12px;
|
|
color: var(--art-gray-500);
|
|
}
|
|
|
|
/* ---------- 暗色主题 ---------- */
|
|
.dark .login-page {
|
|
background: #101116;
|
|
}
|
|
|
|
.dark .blob {
|
|
opacity: 0.42;
|
|
}
|
|
|
|
.dark .grid-overlay {
|
|
background-image: radial-gradient(
|
|
circle,
|
|
rgba(255, 255, 255, 0.16) 1px,
|
|
transparent 1px
|
|
);
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.dark .corner-brand {
|
|
color: var(--art-gray-300);
|
|
}
|
|
|
|
.dark .login-card {
|
|
background: rgba(24, 25, 31, 0.62);
|
|
border: 1px solid rgba(255, 255, 255, 0.09);
|
|
box-shadow:
|
|
0 30px 80px rgba(0, 0, 0, 0.5),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.dark .login-form :deep(.el-input__wrapper) {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.dark .login-form :deep(.el-input__wrapper.is-focus) {
|
|
background: rgba(255, 255, 255, 0.09);
|
|
}
|
|
|
|
.dark .brand-mark {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.dark .title {
|
|
color: var(--art-gray-100);
|
|
}
|
|
|
|
.dark .feature {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
color: var(--art-gray-300);
|
|
}
|
|
|
|
.dark .page-footer {
|
|
color: var(--art-gray-500);
|
|
}
|
|
|
|
/* ---------- 小屏适配 ---------- */
|
|
@media (width <= 640px) {
|
|
.login-card {
|
|
padding: 30px 22px 20px;
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.corner-brand {
|
|
display: none;
|
|
}
|
|
}
|