/* 登录表单样式 */
        /* 默认隐藏登录模态框 */
.loginModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

        .login-form {
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-bottom: 20px;
        }
        .login-form input {
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
        }
        .login-form button {
            padding: 10px;
            background-color: #0d47a1;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        .login-form button:hover {
            background-color: #0a3982;
        }
        .login-modal-content {
            padding: 30px;
            width: 350px;
        }
        .login-modal-content h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: #333;
        }
        .qr-code-container {
            margin-top: 20px;
            text-align: center;
        }
        .qr-code-container p {
            margin-top: 10px;
            color: #666;
        }
        /* 弹窗内容样式 */
        .modal-content {
            background-color: #fff;
            border-radius: 10px;
            padding: 20px 30px;
            max-width: 90%;
            width: 400px;
            text-align: center;
            position: relative;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        /* 标题样式 */
        .modal-title {
            font-size: 1.5em;
            margin-bottom: 15px;
            color: #333;
        }
        /* 提示文字样式 */
        .modal-message {
            font-size: 1em;
            margin-bottom: 20px;
            color: #666;
        }
        /* 二维码样式 */
        .modal-qr {
            width: 300px;
            margin-bottom: 20px;
        }
        /* 关闭按钮样式 */
        .modal-close {
            background-color: #007BFF;
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
        }
        .modal-close:hover {
            background-color: #0056b3;
        }

        /* 遮罩层样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000; /* 确保在最上层 */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        /* 显示弹窗时 */
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
 /* 模态弹窗背景样式 */
        .modal {
            display: none; /* 默认隐藏 */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
            justify-content: center; /* 使用flex居中 */
            align-items: center;
            z-index: 1000;
        }
        /* 模态弹窗内容样式 */
        .modal-content {
            background-color: white;
            border-radius: 8px;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            max-width: 90%; /* 最大宽度 */
            max-height: 80%; /* 最大高度 */
            overflow: hidden; /* 防止图片溢出 */
            padding: 20px;
        }
        /* 二维码图片样式 */
        .qr-code {
            max-width: 100%; /* 确保图片宽度不超过父容器的宽度 */
            max-height: 100%; /* 确保图片高度不超过父容器的高度 */
            object-fit: contain; /* 保证图片按比例缩放，不会失真 */
            display: block; /* 避免图片下方有多余空白 */
        }
        /* 针对大屏幕（PC端）进行优化 */
        @media (min-width: 768px) {
            .modal-content {
                max-width: 600px; /* 限制 PC 端图片最大宽度 */
                max-height: 80vh; /* 限制 PC 端图片最大高度 */
            }
            .qr-code {
                max-width: 100%; /* 最大宽度为父容器的 100% */
                max-height: 500px; /* 限制图片最大高度，防止过大 */
            }
        }
        /* 针对更大的屏幕（如大尺寸桌面） */
        @media (min-width: 1200px) {
            .modal-content {
                max-width: 700px; /* 对于更大的屏幕，可以适当增大最大宽度 */
                max-height: 80vh;
            }
            .qr-code {
                max-width: 100%;
                max-height: 600px; /* 控制图片最大高度 */
            }
        }
        #loading {
            margin-left: 10px;
            font-size: 16px;
            color: #888;
        }
        #loading .fa-spinner {
            margin-right: 5px;
        }
        /* 响应式设计 */
        @media (max-width: 600px) {
            .modal-content {
                width: 80%;
            }
            .modal-title {
                font-size: 1.2em;
            }
            .modal-qr {
                width: 300px;
            }
            .modal-close {
                width: 100%;
                padding: 10px;
            }
        }