|
@@ -82,7 +82,156 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+/* 登录模态框样式 - 优化版 */
|
|
|
+.login-modal {
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ background: rgba(0, 0, 0, 0.7);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ z-index: 2000;
|
|
|
+
|
|
|
+ .modal-content {
|
|
|
+ background: white;
|
|
|
+ border-radius: 12px;
|
|
|
+ width: 90%;
|
|
|
+ max-width: 400px; /* 减小最大宽度 */
|
|
|
+ padding: 25px 20px; /* 调整内边距 */
|
|
|
+ position: relative;
|
|
|
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
|
|
|
+ animation: modalOpen 0.3s ease-out;
|
|
|
+
|
|
|
+ .close-btn {
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ right: 10px;
|
|
|
+ background: none;
|
|
|
+ border: none;
|
|
|
+ font-size: 22px;
|
|
|
+ cursor: pointer;
|
|
|
+ color: #999;
|
|
|
+ transition: color 0.2s;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ border-radius: 50%;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: #f5f5f5;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ h2 {
|
|
|
+ text-align: center;
|
|
|
+ margin: 10px 0 20px; /* 减小上下边距 */
|
|
|
+ color: #333;
|
|
|
+ font-size: 22px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .form-group {
|
|
|
+ margin-bottom: 16px; /* 减小间距 */
|
|
|
+ input[type="text"],
|
|
|
+ input[type="password"] {
|
|
|
+ width: 85%; /* 减小宽度 */
|
|
|
+ margin: 0 auto; /* 保持居中 */
|
|
|
+ display: block; /* 确保居中生效 */
|
|
|
+ }
|
|
|
+ label {
|
|
|
+ display: block;
|
|
|
+ margin-bottom: 6px; /* 减小间距 */
|
|
|
+ font-weight: 500;
|
|
|
+ color: #555;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+
|
|
|
+ input {
|
|
|
+ width: 100%;
|
|
|
+ padding: 10px 14px; /* 减小内边距 */
|
|
|
+ border: 1px solid #ddd;
|
|
|
+ border-radius: 6px;
|
|
|
+ font-size: 15px;
|
|
|
+ transition: border-color 0.3s;
|
|
|
+
|
|
|
+ &:focus {
|
|
|
+ border-color: #2575fc;
|
|
|
+ outline: none;
|
|
|
+ box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .remember-me {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 16px; /* 减小间距 */
|
|
|
+ font-size: 14px;
|
|
|
+
|
|
|
+ input {
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .error-message {
|
|
|
+ background: #ffebee;
|
|
|
+ color: #d32f2f;
|
|
|
+ padding: 8px 12px; /* 减小内边距 */
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-bottom: 12px; /* 减小间距 */
|
|
|
+ text-align: center;
|
|
|
+ font-size: 13px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .submit-btn {
|
|
|
+ width: 100%;
|
|
|
+ padding: 10px; /* 减小内边距 */
|
|
|
+ background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
|
|
+ color: white;
|
|
|
+ border: none;
|
|
|
+ border-radius: 6px;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 600;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.2s;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: translateY(-2px);
|
|
|
+ box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:disabled {
|
|
|
+ background: #ccc;
|
|
|
+ cursor: not-allowed;
|
|
|
+ transform: none;
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .login-footer {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 18px; /* 减小间距 */
|
|
|
+ padding-top: 12px; /* 减小间距 */
|
|
|
+ border-top: 1px solid #eee;
|
|
|
+ font-size: 13px;
|
|
|
+
|
|
|
+ a {
|
|
|
+ color: #2575fc;
|
|
|
+ text-decoration: none;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ text-decoration: underline;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
/* 响应式设计 - 小屏幕调整 */
|
|
|
@media (max-width: 768px) {
|
|
|
.header-nav {
|