/* 模态框样式 */

        .modal-dialog { 
            width: 800px;
            margin: 1.75rem auto;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.4);
        }

        .modal-content {
            position: relative; /* 必须设置为相对定位，以便绝对定位的 close 能正确定位 */
            border-radius: 16px;
            overflow: hidden; /* 防止内容溢出 */
        }

        .modal-header {
            border-bottom: 1px solid #ddd;
            margin-bottom: 15px;
        }

        .modal-title {
            text-align: center;
            width: 100%;
        }

        textarea.form-control {
            resize: none;
            width: 100%;
        }

        .modal-footer {
            border-top: 1px solid #ddd;
            text-align: center;
        }

        /* 关闭图标样式 */
        .close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 24px;
            color: #343a40;
            cursor: pointer;
            opacity: 0.8;
            transition: opacity 0.3s;
            z-index: 1000; /* 确保在最上层 */
        }

        .close:hover,
        .close:focus {
            opacity: 1;
            color: #474545;
        }

                /* 登录容器 */
        .login-container {
            display: flex;
            height: 100%;
        }

        /* 左侧宣传区 */
        .login-left {
            flex: 1;
            background: linear-gradient(135deg, #368eedde, #0c3ae9);
            color: white;
            padding: 40px 30px;
            border-radius: 10px 0 0 10px;
            text-align: center;
        }

        .login-left .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
        }

        .login-left .logo img {
            width: 160px;
            height: 60px;
            margin-right: 10px;
        }

        .login-left h2 {
            font-size: 34px;
            font-weight: bold;
            margin: 20px 0;
            letter-spacing: 1px;
            color: #fff;
        }

        .login-left .features {
            list-style: none;
            padding: 0;
            margin-top: 30px;
        }

        .login-left .features li {
            margin: 12px 36px;
            font-size: 14px;
            color: #e0f7ff;
            display: flex;
            align-items: center;
        }

        .login-left .features li i {
            padding: 0 4px;
            color: #fff;
            margin-right: 8px;
        }

        /* 右侧登录区 */
        .login-right {
            flex: 1;
            background: #ffffff;
            padding: 40px;
            border-radius: 0 10px 10px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .login-right .form-group {
            margin-bottom: 20px;
        }

        .login-right .form-control {
            width: 100%;
            height: 40px;
            border: 1px solid #EBEEF5;
            color: #1b2337;
            font-size: 14px;
            border-radius: 8px;
            padding: 0 12px;
            margin-bottom: 16px;
            box-sizing: border-box;
        }

        .login-right .verify-form {
            margin-bottom: 0;
        }

        .login-title {
            font-size: 24px;
            font-weight: bold;
            color: #3b86ff;
            text-align: center;
            margin-bottom: 20px;
            padding: 10px 0;
        }

        .login-title::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 50%;
            width: 50px;
            height: 2px;
            background-color: #3b86ff;
            transform: translateX(-50%);
        }

        .btn-login {
            width: 100%;
            padding: 12px;
            background-color: #325DFF;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .btn-login:hover {
            background-color: #2c75e0;
        }

        .other-login {
            display: flex;
            justify-content: space-between;
            margin: 20px 0;
            font-size: 14px;
            color: #3b86ff;
            text-decoration: none;
        }

        .divider {
            position: relative;
            text-align: center;
            margin: 20px 0;
            font-size: 14px;
            color: #999;
        }

        .divider::before,
        .divider::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 50%;
            height: 1px;
            background-color: #eee;
        }

        .divider::before {
            left: 0;
        }

        .divider::after {
            right: 0;
        }

        .social-logins {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
        }

        .social-logins img {
            width: 40px;
            height: 40px;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .social-logins img:hover {
            transform: scale(1.1);
        }

        .footer-text {
            text-align: center;
            font-size: 12px;
            color: #999;
            margin: 15px 0;
        }

        .footer-text a {
            color: #3b86ff;
            text-decoration: none;
        }

        .register-link {
            text-align: center;
            margin-top: 20px;
        }

        .register-link a {
            color: #3b86ff;
            text-decoration: none;
            font-size: 14px;
        }

        /* 忘记密码表单样式 */
        .form-container {
            display: none;
        }

        .form-container.active {
            display: block;
        }

        .tab-switch {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .tab-switch .tab-btn {
            flex: 1;
            padding: 10px;
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            color: #6c757d;
        }

        .tab-switch .tab-btn.active {
            background-color: #fff;
            border-color: #325DFF;
            color: #325DFF;
            font-weight: bold;
        }

        .back-to-login {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #6c757d;
            cursor: pointer;
            border: none;
            background: none;
            padding: 0;
            margin-right: 10px;
        }

        .back-to-login:hover {
            color: #325DFF;
        }

        .title-text {
                font-size: 24px;
                font-weight: bold;
                color: #3b86ff;
                text-align: center;
                margin-bottom: 20px;
                padding: 10px 0;
        }

        .form-group .input-group {
            display: flex;
            flex-wrap: nowrap;
            gap: 10px;
            align-items: center;
        }

        .form-group .input-group .form-control {
            flex: 1;
            min-width: 0;
        }

        /* 统一验证码按钮样式 */
        .get-code-btn, .get-login-code-btn, .get-register-code-btn {
            height: 40px;
            padding: 10px 20px;
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 14px;
            color: #6c757d;
            cursor: pointer;
            transition: all 0.3s;
            min-width: 120px;
            white-space: nowrap;
        }

        .get-code-btn:hover, .get-login-code-btn:hover, .get-register-code-btn:hover {
            background-color: #e9ecef;
        }

        .get-code-btn:disabled, .get-login-code-btn:disabled, .get-register-code-btn:disabled {
            background-color: #e9ecef;
            color: #999;
            cursor: not-allowed;
        }

        @media (min-width: 576px) {
            .modal-dialog {
                max-width: 800px;
                margin: 1.75rem auto;
            }
        }

        /* 平板设备适配 */
        @media (max-width: 768px) {
            .desktop-only {
                display: none;
            }
            
            .modal-dialog {
                width: 95%;
                max-width: 100%;
                margin: 1rem auto;
            }
            
            .modal-content {
                border-radius: 10px;
            }
            
            .login-container {
                flex-direction: column;
            }
            
            .login-left {
                border-radius: 10px 10px 0 0;
                padding: 30px 20px;
            }
            
            .login-left .logo img {
                width: 120px;
                height: 45px;
            }
            
            .login-left h2 {
                font-size: 28px;
                margin: 15px 0;
            }
            
            .login-left .features li {
                margin: 10px 15px;
                font-size: 13px;
            }
            
            .login-right {
                border-radius: 0 0 10px 10px;
                padding: 30px 20px;
            }
            
            .login-title {
                font-size: 22px;
                margin-bottom: 15px;
            }
            
            .other-login {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .other-login a {
                text-align: center;
            }
        }

        /* 手机设备适配 */
        @media (max-width: 576px) {
            .modal-dialog {
                width: 98%;
                margin: 0.5rem auto;
            }
            
            .modal-content {
                border-radius: 8px;
            }
            
            .close {
                top: 12px;
                right: 12px;
                font-size: 20px;
            }
            
            .login-left {
                padding: 20px 15px;
            }
            
            .login-left .logo img {
                width: 100px;
                height: 38px;
            }
            
            .login-left h2 {
                font-size: 24px;
                margin: 10px 0;
            }
            
            .login-left .features li {
                margin: 8px 10px;
                font-size: 12px;
            }
            
            .login-left .features li i {
                padding: 0 2px;
                margin-right: 5px;
            }
            
            .login-right {
                padding: 20px 15px;
            }
            
            .login-title {
                font-size: 20px;
                margin-bottom: 15px;
            }
            
            .login-right .form-control {
                height: 36px;
                font-size: 13px;
                padding: 0 10px;
            }
            
            .btn-login {
                padding: 10px;
                font-size: 14px;
            }
            
            .other-login {
                margin: 15px 0;
                font-size: 13px;
            }
            
            .footer-text {
                font-size: 11px;
                margin: 10px 0;
            }
            
            .register-link a {
                font-size: 13px;
            }
            
            .social-logins {
                gap: 15px;
                margin: 15px 0;
            }
            
            .social-logins img {
                width: 32px;
                height: 32px;
            }

            .form-group .input-group {
                flex-direction: row;
            }
            
            .form-group .input-group .form-control {
                flex: 1;
            }
            
            /* 移动端验证码按钮样式 */
            .get-code-btn, .get-login-code-btn, .get-register-code-btn {
                min-width: 100px;
                padding: 8px 12px;
                font-size: 13px;
            }
        }